*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.5;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

/* Navigation */
.top-nav {
    background: var(--color-primary);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    color: white;
    font-size: 1.4em;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-spacer {
    margin-left: auto;
}

.nav-btn {
    color: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85em;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-btn:hover, .nav-btn.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.admin-btn {
    background: rgba(255,200,0,0.25);
    font-weight: 600;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: var(--color-primary);
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--color-bg);
    padding: 20px;
}

.auth-card {
    background: var(--color-bg-card, white);
    border-radius: 24px;
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
}

.auth-logo {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 0.95em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.auth-link {
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--color-text-muted);
}

/* Inputs */
.input-label {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: -4px;
}

.input-big {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 14px;
    font-size: 1em;
    background: white;
    transition: border-color 0.2s;
    outline: none;
}

.input-big:focus {
    border-color: var(--color-primary);
}

/* Buttons */
.btn-big {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: 14px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    min-height: 56px;
    min-width: 48px;
    text-decoration: none;
}

.btn-big:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-danger {
    background: var(--color-danger, #e74c3c);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: var(--color-success, #27ae60);
    color: white;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    min-height: 40px;
}

/* Search Bar */
.search-container {
    margin-top: 20px;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input {
    flex: 1;
    font-size: 1.1em;
}

.search-btn {
    flex-shrink: 0;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--color-bg-card, white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.video-card-body {
    padding: 12px 14px;
}

.video-title {
    font-size: 0.95em;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    line-height: 1.3;
}

.video-channel {
    font-size: 0.8em;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.icon-btn {
    background: rgba(255,255,255,0.85);
    border: 2px solid #ddd;
    font-size: 1.5em;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.icon-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn.favorited {
    color: #f1c40f;
    border-color: #f1c40f;
    background: #fffbe6;
    box-shadow: 0 2px 8px rgba(241,196,15,0.4);
}

.icon-btn.favorited:hover {
    box-shadow: 0 4px 14px rgba(241,196,15,0.6);
}

.icon-btn.banned {
    color: var(--color-danger, #e74c3c);
    border-color: var(--color-danger, #e74c3c);
    background: #fdecea;
    box-shadow: 0 2px 8px rgba(231,76,60,0.3);
}

.icon-btn.banned:hover {
    box-shadow: 0 4px 14px rgba(231,76,60,0.5);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 12px 24px;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    background: white;
    color: var(--color-primary);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
}

.page-btn:hover {
    background: var(--color-primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Player Page */
.watch-page {
    max-width: 1600px;
}

.watch-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.player-section {
    min-width: 0;
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--color-player-bg, #000);
    border-radius: 18px;
    overflow: hidden;
}

.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.player-click-guard {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
}

.skip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 20;
}

.skip-message {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 1.1em;
    font-weight: 600;
}

/* Skip Bar (outside player) */
.skip-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--color-primary);
    color: white;
    border-radius: 0 0 14px 14px;
    font-size: 0.9em;
    font-weight: 600;
}

.skip-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.skip-bar-fill {
    height: 100%;
    width: 0%;
    background: rgba(255,255,255,0.8);
    border-radius: 4px;
    transition: width 0.2s linear;
}

.skip-bar-text {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Custom Controls */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s;
}

.player-wrapper:hover .custom-controls,
.custom-controls.visible {
    opacity: 1;
}

.ctrl-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.3em;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.ctrl-btn:hover {
    background: rgba(255,255,255,0.35);
}

.ctrl-nav-btn {
    font-size: 1em;
}

.ctrl-big {
    min-width: 56px;
    min-height: 56px;
    font-size: 1.5em;
}

.ctrl-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.ctrl-time {
    color: white;
    font-size: 0.85em;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.ctrl-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctrl-volume {
    width: 80px;
    accent-color: white;
}

.ctrl-btn.voice-active {
    background: rgba(255, 0, 0, 0.5);
    animation: voice-pulse 1.5s ease-in-out infinite;
}

.ctrl-rotate-btn {
    display: none;
}

@keyframes voice-pulse {
    0%, 100% { box-shadow: 0 0 6px 2px rgba(255,0,0,0.4); }
    50% { box-shadow: 0 0 14px 6px rgba(255,0,0,0.7); }
}

.voice-toast {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.voice-toast.visible {
    opacity: 1;
}

.voice-transcript {
    text-align: center;
    font-size: 0.85em;
    color: var(--color-text-muted, #888);
    min-height: 1.4em;
    padding: 4px 0;
    transition: color 0.2s, font-weight 0.2s;
}

.voice-transcript.highlight {
    color: #ff4444;
    font-weight: 700;
}

/* Related Videos */
.related-section {
    background: var(--color-bg-card, white);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.related-title {
    font-size: 1.1em;
    margin-bottom: 14px;
    color: var(--color-primary);
}

.related-group-label {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    margin-top: 4px;
}

.related-group-label:first-child {
    margin-top: 0;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.related-item {
    display: flex;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s;
}

.related-item:hover {
    background: rgba(0,0,0,0.05);
}

.related-section.skip-locked .related-item {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.related-section.skip-locked .related-item:hover {
    background: transparent;
}

.related-item img {
    width: 120px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.related-item-info {
    flex: 1;
    min-width: 0;
}

.related-item-title {
    font-size: 0.85em;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.related-item-channel {
    font-size: 0.75em;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Video Info */
.video-info {
    padding: 16px 0;
}

.video-info h1 {
    font-size: 1.3em;
    margin-bottom: 6px;
}

.video-info .channel-name {
    font-size: 1em;
    color: var(--color-text-muted);
}

.video-description {
    margin-top: 12px;
    font-size: 0.9em;
    color: var(--color-text-muted);
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
}

/* Channel List (Favorites/Banned) */
.channel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-card {
    background: var(--color-bg-card, white);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.channel-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.channel-info strong {
    font-size: 1.05em;
}

.channel-info small {
    font-size: 0.75em;
    color: var(--color-text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--color-text-muted);
}

.empty-state p {
    margin-bottom: 12px;
    font-size: 1.1em;
}

/* Alert */
.alert {
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.9em;
}

.alert-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #e8f5e9;
    color: #27ae60;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

/* Loading */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #ddd;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Profile */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: var(--color-bg-card, white);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.profile-card h3 {
    margin-bottom: 16px;
    color: var(--color-primary);
}

.profile-card p {
    margin-bottom: 8px;
}

.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.profile-photo,
.profile-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.profile-photo-placeholder {
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
}
.profile-photo-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.photo-upload-label {
    cursor: pointer;
}

/* Theme Picker */
.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    border-radius: 14px;
    border: 3px solid transparent;
    transition: border-color 0.2s;
}

.theme-option.selected, .theme-option:hover {
    border-color: var(--color-primary);
}

.theme-option input { display: none; }

.theme-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.theme-label {
    font-size: 0.75em;
    text-align: center;
    color: var(--color-text-muted);
}

/* Theme swatch colors */
.theme-ocean  { background: #4A90D9; }
.theme-candy  { background: #E87EA7; }
.theme-forest { background: #5B9F6B; }
.theme-galaxy { background: #8B6FC0; }
.theme-sunset { background: #E8924A; }
.theme-fire   { background: #D9504A; }
.theme-aqua   { background: #4AB8B8; }

/* Admin specific */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-card {
    background: var(--color-bg-card, white);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
}

.admin-card h3 {
    font-size: 0.9em;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.admin-card .stat {
    font-size: 2em;
    font-weight: 700;
    color: var(--color-primary);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card, white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-table th, .admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 0.85em;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-form {
    background: var(--color-bg-card, white);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-width: 500px;
    margin-bottom: 24px;
}

.admin-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85em;
}

.admin-form .toggle-wrap {
    display: flex;
    margin-bottom: 6px;
}

.admin-form .input-big {
    margin-bottom: 16px;
}

/* Toggle switch */
.toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.toggle {
    position: relative;
    width: 56px;
    height: 28px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
    background: var(--color-primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(28px);
}

/* Responsive */
@media (max-width: 1100px) {
    .watch-container { grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
}

@media (max-width: 768px) {
    html { font-size: 16px; }
    .watch-container { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .nav-inner { flex-wrap: wrap; }
    .nav-links { width: 100%; justify-content: flex-end; }

    .custom-controls {
        gap: 6px;
        padding: 8px 10px;
    }
    .ctrl-btn {
        min-width: 36px;
        min-height: 36px;
        font-size: 1em;
        padding: 6px;
    }
    .ctrl-big {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.2em;
    }
    .ctrl-volume {
        width: 60px;
    }
    .ctrl-time {
        font-size: 0.75em;
        min-width: 80px;
    }
    .ctrl-rotate-btn {
        display: flex;
    }
    .nav-inner {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .theme-options { grid-template-columns: repeat(3, 1fr); }

    .custom-controls {
        gap: 4px;
        padding: 6px 6px;
    }
    .ctrl-btn {
        min-width: 30px;
        min-height: 30px;
        font-size: 0.85em;
        padding: 4px;
    }
    .ctrl-big {
        min-width: 36px;
        min-height: 36px;
        font-size: 1em;
    }
    .ctrl-volume {
        width: 40px;
    }
    .ctrl-time {
        font-size: 0.65em;
        min-width: 60px;
    }
    .ctrl-right {
        gap: 4px;
    }
}

/* Chat Room */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.chat-heading {
    text-align: center;
    margin-bottom: 4px;
}
.chat-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-size: 0.9em;
}
.chat-captcha-box {
    background: var(--color-card-bg, #fff);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    margin: 0 auto;
}
.chat-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.85em;
    color: #856404;
}
.chat-box {
    background: var(--color-card-bg, #fff);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 60vh;
    min-height: 400px;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.chat-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border, #eee);
}
.chat-msg:last-child {
    border-bottom: none;
}
.chat-msg-avatar,
.chat-msg-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.chat-msg-avatar-placeholder {
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
}
.chat-msg-body {
    flex: 1;
    min-width: 0;
}
.chat-msg-user {
    font-weight: 700;
    color: var(--color-primary);
    margin-right: 8px;
}
.chat-msg-time {
    font-size: 0.75em;
    color: var(--color-text-muted);
}
.chat-msg-text {
    margin-top: 4px;
    line-height: 1.5;
    word-break: break-word;
}
.chat-link {
    color: #1a73e8;
    text-decoration: underline;
    word-break: break-all;
}
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--color-border, #ddd);
    background: var(--color-bg);
    border-radius: 0 0 12px 12px;
}
.chat-input {
    flex: 1;
    resize: none;
    padding: 10px;
    border: 1px solid var(--color-border, #ccc);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9em;
    line-height: 1.4;
}
.chat-send-btn {
    align-self: flex-end;
    white-space: nowrap;
}
.chat-char-count {
    text-align: right;
    font-size: 0.75em;
    color: var(--color-text-muted);
    padding: 0 12px 8px;
    margin: 0;
}

/* More Videos Note */
.more-videos-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--color-bg-card, #fff);
    border: 1px solid var(--color-border, #ddd);
    border-radius: 12px;
    font-size: 0.85em;
    line-height: 1.6;
    color: var(--color-text-muted);
}
.more-videos-note a {
    color: #1a73e8;
    text-decoration: underline;
    word-break: break-all;
}

/* PayPal Donate */
.paypal-donate {
    margin-top: 16px;
    text-align: center;
}
.paypal-donate-btn {
    background: #ffc439;
    color: #111;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.paypal-donate-btn:hover {
    background: #f2ba30;
}
