:root {
    /* Default Dark Mode */
    --bg-color: #0f0f0f;
    --sidebar-bg: #0f0f0f;
    --content-bg: #0f0f0f;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-red: #ff0000;
    --accent-blue: #3ea6ff;
    --border-color: #303030;
    --hover-bg: #272727;
    --input-bg: #121212;
    --btn-bg: #222222;
}

[data-theme="light"] {
    --bg-color: #f9f9f9;
    --sidebar-bg: #ffffff;
    --content-bg: #f9f9f9;
    --card-bg: #ffffff;
    --text-primary: #0f0f0f;
    --text-secondary: #606060;
    --accent-red: #cc0000;
    --accent-blue: #065fd4;
    --border-color: #e5e5e5;
    --hover-bg: #f2f2f2;
    --input-bg: #ffffff;
    --btn-bg: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Header */
header {
    height: 56px;
    background-color: var(--sidebar-bg);
    /* Use sidebar bg for header consistency in light mode */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Adjusted for theme btn */
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
    z-index: 1100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.youtube-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text-wrapper h1 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 0;
}

.tagline {
    font-size: 0.75rem;
    /* Increased for legibility */
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
    opacity: 0.9;
}

#main-footer {
    text-align: center;
    padding: 15px 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background-color: var(--sidebar-bg);
}


/* Theme Selector */
.theme-selector {
    position: relative;
}

#theme-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    /* Larger icon */
    cursor: pointer;
    padding: 12px;
    /* Larger touch target */
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#theme-btn:hover {
    background-color: var(--hover-bg);
}

.theme-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.theme-menu.hidden {
    display: none;
}

.theme-option {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.theme-option:hover {
    background-color: var(--hover-bg);
}

/* Main Layout */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: var(--sidebar-bg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 1px solid var(--border-color);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    transition: background-color 0.2s;
}

.nav-btn i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.nav-btn:hover {
    background-color: var(--hover-bg);
}

.nav-btn.active {
    background-color: var(--hover-bg);
    font-weight: 500;
}

.nav-btn.active i {
    color: var(--accent-red);
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 24px;
    background-color: var(--content-bg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Search Bar */
.search-bar-wrapper {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
}

.search-box-premium {
    display: flex;
    align-items: center;
    width: 100% !important;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    overflow: hidden;
    height: 44px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
}

.search-box-premium:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(62, 166, 255, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.search-box-premium input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 16px;
    color: var(--text-primary);
    font-size: 1rem;
    height: 100%;
    outline: none;
}

.search-box-premium button {
    background-color: var(--btn-bg);
    border: none;
    border-left: 1px solid var(--border-color);
    height: 100%;
    width: 64px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.search-box button:hover i {
    transform: scale(1.1);
}

.search-box button i {
    transition: transform 0.2s ease;
}

/* Output Area */
.output-container {
    width: 100%;
    max-width: 800px;
}

.placeholder-message {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.placeholder-message i {
    font-size: 4rem;
    opacity: 0.2;
}

.feature-instructions {
    margin-top: 35px;
    background: transparent;
    border-left: 3px solid var(--accent-red);
    padding: 5px 0 5px 20px;
    max-width: 500px;
    text-align: left;
}

.feature-instructions h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.9;
}

.feature-instructions h4 i {
    font-size: 0.85rem;
    color: var(--accent-red);
}

.feature-instructions ol {
    padding-left: 15px;
    list-style: none;
    counter-reset: item;
}

.feature-instructions li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.feature-instructions li::before {
    content: counter(item) ".";
    counter-increment: item;
    margin-right: 10px;
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.85rem;
}

.feature-instructions strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Cards for Results */
.result-card {
    background-color: var(--card-bg);
    /* Now uses variable */
    border: 1px solid var(--border-color);
    /* Added border to help card definition in light mode */
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-header {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.thumb-preview {
    width: 320px;
    aspect-ratio: 16/9;
    background-color: #333;
    border-radius: 12px;
    object-fit: cover;
}

.video-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.video-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.channel-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.description-box {
    background-color: var(--hover-bg);
    padding: 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
    color: var(--text-primary);
    margin-top: 10px;
}

/* Tags Styles */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}

.tag-pill {
    color: var(--accent-red);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Thumbnail Grid */
.thumbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.thumb-item img {
    width: 100%;
    border-radius: 12px;
}

.thumb-item p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Error State */
.error-msg {
    color: #ff4e45;
    background: rgba(255, 78, 69, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ff4e45;
    text-align: center;
}

/* Post Download Styles */
.post-text {
    padding: 15px;
    background: var(--hover-bg);
    border-radius: 8px;
    margin-bottom: 20px;
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--text-primary);
}

.post-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.post-image-item {
    position: relative;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.post-image-item img {
    width: 100%;
    border-radius: 8px;
    display: block;
    margin-bottom: 10px;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--accent-red);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    border-radius: 4px;
}

.download-btn:hover {
    background: #cc0000;
}

.download-btn i {
    margin-right: 5px;
}

.post-meta {
    background: var(--hover-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Channel Info Premium Styles */
.channel-info-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.channel-banner {
    width: 100%;
    height: 180px;
    position: relative;
    background-color: #333;
}

.channel-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-header {
    display: flex;
    align-items: flex-end;
    padding: 0 30px;
    margin-top: -50px;
    /* Overlap banner */
    margin-bottom: 25px;
    position: relative;
    gap: 20px;
    flex-wrap: wrap;
}

.channel-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    background: var(--card-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    z-index: 2;
}

.channel-header-text {
    padding-bottom: 10px;
    flex: 1;
    min-width: 200px;
}

.channel-header-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--text-primary);
    line-height: 1.2;
    word-break: break-word;
}

.channel-handle {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

/* Premium SEO and Landing Content Styles */
.seo-section {
    width: 100%;
    max-width: 900px;
    margin-top: 20px;
    padding: 60px 20px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seo-container h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-red));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: -1px;
}

.seo-container>p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

.seo-feature {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-color));
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.seo-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-red);
    opacity: 0;
    transition: opacity 0.3s;
}

.seo-feature:hover {
    transform: translateY(-8px);
    border-color: var(--accent-red);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.1);
}

.seo-feature:hover::before {
    opacity: 1;
}

.seo-feature h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.seo-feature h3 i {
    background: rgba(255, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--accent-red);
    font-size: 1.2rem;
}

.seo-feature p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Premium FAQ Styles */
.faq-section {
    margin-top: 80px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.faq-section h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 30px;
    background: none;
    -webkit-text-fill-color: var(--text-primary);
}

.faq-item {
    margin-bottom: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3::before {
    content: '?';
    color: var(--accent-red);
    font-weight: 800;
    font-size: 1.2rem;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }
}

.channel-id {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 4px;
    font-family: 'Roboto Mono', monospace;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 0 30px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-red);
}

.stat-card i {
    font-size: 1.4rem;
    color: var(--accent-red);
    margin-bottom: 8px;
    display: block;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.channel-section {
    padding: 0 30px;
    margin-bottom: 30px;
}

.channel-section h4 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.channel-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-height: 250px;
    overflow-y: auto;
}

/* Custom Scrollbar for Description */
.channel-description::-webkit-scrollbar {
    width: 6px;
}

.channel-description::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.featured-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
}

.featured-channel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-color);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.featured-channel-item:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
    border-color: var(--border-color);
}

.featured-channel-item img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 2px solid var(--card-bg);
}

.featured-channel-item span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* --- RESPONSIVE DESIGN --- */

/* Tablet and Mobile (under 900px) */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }

    /* Horizontal Scrollable Sidebar */
    .sidebar {
        width: 100%;
        height: auto;
        min-height: 50px;
        /* Ensure visibility */
        flex: 0 0 auto;
        /* Explicitly verify it doesn't shrink */
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        /* Thicker border to see it */
        padding: 10px;
        background-color: var(--sidebar-bg);
        position: relative;
        /* Sticky sometimes buggy in nested flex */
        z-index: 1000;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    /* Add scroll indicator gradient */
    .sidebar::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, var(--sidebar-bg));
        pointer-events: none;
    }

    /* Hide scrollbar for cleaner look */
    .sidebar::-webkit-scrollbar {
        display: none;
    }

    .sidebar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .nav-btn {
        flex: 0 0 auto;
        padding: 12px 20px;
        /* Larger touch target for mobile */
        min-height: 48px;
        /* Standard accessible height */
        border-radius: 24px;
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        margin-right: 12px;
        margin-bottom: 0;
        font-size: 0.95rem;
        gap: 10px;
    }

    .nav-btn.active {
        background-color: var(--text-primary);
        color: var(--bg-color);
        border-color: var(--text-primary);
    }

    .nav-btn.active i {
        color: var(--bg-color);
    }

    .nav-btn i {
        font-size: 1rem;
    }

    .content-area {
        padding: 15px;
    }

    .search-bar-container {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        min-width: 0;
        font-size: 0.9rem;
    }

    /* Grids: Auto-fit usually handles it, but let's be explicit for smaller screens */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 10px;
    }
}

/* Mobile (under 600px) */
@media (max-width: 600px) {

    /* Header Adjustments */
    header {
        height: auto;
        padding: 10px 15px;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .logo-container {
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
    }

    .logo-container span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .youtube-logo {
        height: 24px;
    }

    /* Make search bar take full width on mobile */
    .search-bar-container {
        width: 100%;
        padding: 0;
    }

    .search-box-premium {
        width: 100% !important;
        height: 52px;
        /* Taller for better mobile interaction */
    }

    .search-box-premium input {
        padding: 0 16px;
        font-size: 16px;
        /* Prevents auto-zoom on iOS */
    }

    /* Force single column for these grids on mobile */
    .thumbs-grid,
    .post-images-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }


    .card-header {
        flex-direction: column;
    }

    .thumb-preview {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .channel-banner {
        height: 120px;
    }

    .channel-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -40px;
        padding: 0 15px;
    }

    .channel-header-text {
        width: 100%;
        padding-bottom: 0;
    }

    .channel-profile-img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .search-box button {
        width: 50px;
        flex-shrink: 0;
    }

    /* Improve tags display on mobile */
    .tags-container {
        padding: 15px 0;
        gap: 10px;
    }

    .tag-pill {
        font-size: 0.85rem;
        padding: 2px 0;
        line-height: 1.6;
    }

    .nav-btn {
        padding: 6px 14px;
        /* Smaller pads */
    }
}

/* Small Mobile (under 400px) */
@media (max-width: 400px) {
    .nav-btn i {
        display: none;
        /* Hide icons to fit more text */
    }
}

/* --- REDESIGNED VIDEO INFO PAGE --- */
.video-info-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-bottom: 40px;
}

.video-header-full {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.video-title-large {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.video-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.v-stat {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.v-stat i {
    color: var(--accent-red);
}

/* Layout Grid */
.video-layout-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
}

.video-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-thumb-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-main-thumb {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.yt-watch-btn {
    display: block;
    background: #ff0000;
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.yt-watch-btn:hover {
    background: #cc0000;
}

.channel-card-small {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cc-icon {
    font-size: 2rem;
    color: var(--text-secondary);
}

.cc-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.cc-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    word-break: break-word;
}

/* Description Panel */
.description-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.desc-header {
    padding: 15px 20px;
    background: var(--hover-bg);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.desc-content {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-y: auto;
    flex: 1;
    max-height: 600px;
    color: var(--text-secondary);
}

/* Custom Scrollbar for Description */
.custom-scroll::-webkit-scrollbar {
    width: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.custom-scroll::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-secondary);
}

/* Responsive Adjustments for Video Info */
@media (max-width: 900px) {
    .video-layout-grid {
        grid-template-columns: 1fr;
    }

    .video-info-container {
        max-width: 100%;
    }
}


/* SEO/FAQ Styles (For noscript crawlers) */
.seo-section {
    display: none;
}