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

:root {
    --primary: #8b0000;
    --accent: #c41e3a;
    --light: #fff2d9;
    --cream: #f5ead3;
    --surface: #ffffff;
    --gold: #d4af37;
    --gray: #5a5a5a;
    --border: #d4cfc4;
    --dark-text: #1a1a1a;
    --base-text-size: 16px;
    --transition-speed: 0.8s;
    --header-bg: #8b0000;
    --footer-bg: #8b0000;
}

/* ── Dark mode: auto (system) ───────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary:   #060f1a;
        --accent:    #e8c048;
        --light:     #0d1b2a;
        --cream:     #0f2035;
        --surface:   #152847;
        --gold:      #f0cc50;
        --gray:      #7a9ebe;
        --border:    #1d3a5c;
        --dark-text: #dde8f5;
        --header-bg: #060f1a;
        --footer-bg: #060f1a;
    }
}

/* ── Dark mode: manual override ─────────────────────────── */
[data-theme="dark"] {
    --primary:   #060f1a;
    --accent:    #e8c048;
    --light:     #0d1b2a;
    --cream:     #0f2035;
    --surface:   #152847;
    --gold:      #f0cc50;
    --gray:      #7a9ebe;
    --border:    #1d3a5c;
    --dark-text: #dde8f5;
    --header-bg: #060f1a;
    --footer-bg: #060f1a;
}

/* ── Light mode: manual override ────────────────────────── */
[data-theme="light"] {
    --primary:   #8b0000;
    --accent:    #c41e3a;
    --light:     #fff2d9;
    --cream:     #f5ead3;
    --surface:   #ffffff;
    --gold:      #d4af37;
    --gray:      #5a5a5a;
    --border:    #d4cfc4;
    --dark-text: #1a1a1a;
    --header-bg: #8b0000;
    --footer-bg: #8b0000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--light);
    font-size: var(--base-text-size);
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Subtle text shadow for all text */
h1, h2, h3, h4, h5, h6, p, a, span, li {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Stronger shadow for headings */
h1, h2, h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Hide scrollbar but keep scroll functionality */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Page load fade-in (not header) */
.page-content-wrapper {
    opacity: 0;
    animation: pageLoad 0.8s ease-in-out forwards;
}

@keyframes pageLoad {
    to {
        opacity: 1;
    }
}

/* Header stays visible */
header {
    opacity: 1 !important;
    animation: none !important;
}

/* Scroll fade-in animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for multiple items */
.fade-in-section:nth-child(1) { transition-delay: 0.1s; }
.fade-in-section:nth-child(2) { transition-delay: 0.2s; }
.fade-in-section:nth-child(3) { transition-delay: 0.3s; }
.fade-in-section:nth-child(4) { transition-delay: 0.4s; }
.fade-in-section:nth-child(5) { transition-delay: 0.5s; }
.fade-in-section:nth-child(6) { transition-delay: 0.6s; }

/* Header */
header {
    background: var(--header-bg);
    color: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    border-bottom: 4px solid var(--gold);
    transition: background 0.3s ease;
}

header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        to right,
        rgba(212, 175, 55, 0.3) 0%,
        rgba(255, 215, 0, 0.8) 15%,
        rgba(212, 175, 55, 1) 25%,
        rgba(255, 223, 128, 0.9) 35%,
        rgba(212, 175, 55, 1) 50%,
        rgba(255, 223, 128, 0.9) 65%,
        rgba(212, 175, 55, 1) 75%,
        rgba(255, 215, 0, 0.8) 85%,
        rgba(212, 175, 55, 0.3) 100%
    );
    box-shadow: 
        0 1px 3px rgba(212, 175, 55, 0.6),
        0 2px 8px rgba(255, 215, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(139, 0, 0, 0.3);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.logo::before {
    content: '⟡';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fce8a4;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.logo:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.5s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a, .nav-links .dropdown-toggle {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    display: block;
    transition: all 0.8s ease-in-out;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.nav-links a:hover, .nav-links .dropdown-toggle:hover {
    background: rgba(255,255,255,0.15);
}

.nav-links a.active,
.dropdown-content a.active,
.dropdown-toggle.active {
    background: rgba(255, 255, 255, 0.22);
    color: #ffdd57;
}

:root[data-theme="light"] .nav-links a.active,
:root[data-theme="light"] .dropdown-content a.active,
:root[data-theme="light"] .dropdown-toggle.active {
    color: var(--dark-text);
    background: rgba(255, 255, 255, 0.32);
}

.dropdown.open .dropdown-content {
    display: block;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: var(--light);
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 1001;
    border: 2px solid var(--accent);
    border-radius: 4px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--dark-text);
    padding: 1rem 1.5rem;
    display: block;
    white-space: nowrap;
    transition: all 0.8s ease-in-out;
    border-bottom: 1px solid var(--border);
}

.dropdown-content a:hover {
    background: var(--cream);
    color: var(--accent);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.8em;
}

/* Page Hero */
.page-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.page-hero h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
    letter-spacing: -0.5px;
}

.page-hero .subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    font-style: italic;
}

/* Home Page Hero */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 4px solid var(--gold);
}

.hero-content h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: var(--dark-text);
}

.hero-content .initials {
    color: var(--accent);
}

.hero-content .tagline {
    font-size: 1.4rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.3px;
}

.hero-content .description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.9;
    color: var(--dark-text);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    padding: 0.85rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.8s ease-in-out;
    border: 2px solid var(--primary);
    border-radius: 2px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

.hero-visual {
    display: none;
}

.visual-box {
    position: absolute;
    background: var(--primary);
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.visual-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.03) 10px,
            rgba(0, 0, 0, 0.03) 20px
        );
    mix-blend-mode: overlay;
}

.visual-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%
    );
}

.visual-box:nth-child(1) {
    width: 250px;
    height: 250px;
    top: 30px;
    right: 100px;
    animation: float 6s ease-in-out infinite;
    opacity: 0.95;
    z-index: 1;
}

.visual-box:nth-child(2) {
    width: 180px;
    height: 180px;
    top: 100px;
    right: 300px;
    background: var(--accent);
    animation: float 8s ease-in-out infinite;
    opacity: 0.9;
    z-index: 2;
}

.visual-box:nth-child(3) {
    width: 140px;
    height: 140px;
    top: 200px;
    right: 180px;
    opacity: 0.85;
    animation: float 7s ease-in-out infinite;
    z-index: 3;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Section Styling */
section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--dark-text);
    letter-spacing: -0.5px;
    text-align: center;
}

/* Featured Content Section */
.featured-content {
    background: var(--cream);
    border-top: 3px solid var(--accent);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.9s ease-in-out;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    background: var(--light);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.feature-card p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.7;
}

/* About Section */
.about-section {
    background: var(--cream);
    box-shadow: inset 0 2px 12px rgba(0,0,0,0.03);
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 1.75rem;
    color: var(--dark-text);
}

.about-content p:first-child:first-letter {
    font-size: 2.5em;
    font-family: 'Playfair Display', 'Georgia', serif;
    float: left;
    line-height: 0.8;
    margin: 0.1em 0.1em 0 0;
    color: var(--accent);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.65rem 1.75rem;
    border-radius: 2px;
    border: 1px solid var(--dark-text);
    background: white;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.8s ease-in-out;
    color: var(--dark-text);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-btn:hover {
    background: var(--dark-text);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.filter-btn.active {
    background: var(--dark-text);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Content Grids */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Video Cards */
.video-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.8s ease-in-out;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.video-thumbnail {
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease-in-out;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-info {
    padding: 1.25rem;
}

.video-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Film/Book Cards */
.film-card, .book-card {
    cursor: pointer;
    transition: transform 0.9s ease-in-out;
}

.film-card:hover, .book-card:hover {
    transform: translateY(-10px);
}

.film-card img, .book-card img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.9s ease-in-out;
}

.film-card:hover img, .book-card:hover img {
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.film-title, .book-title {
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
}

.film-rating, .book-rating {
    text-align: center;
    margin-top: 0.65rem;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Channel Cards */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.channel-card {
    background: white;
    padding: 3rem;
    border-radius: 4px;
    border: 3px solid var(--accent);
    text-align: center;
    transition: all 0.9s ease-in-out;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.channel-card::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Reviews channel - red castle background */
#channel-reviews {
    background-image: url('bg-castle.png');
}

/* Gaming channel - minecraft background */
#channel-gaming {
    background-image: url('bg-minecraft.jpg');
}

/* Darkening overlay for readability */
.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: all 0.9s ease-in-out;
}

.channel-card:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

/* Gold outline above overlay */
.channel-card::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 2px solid var(--gold);
    border-radius: 1px;
    z-index: 3;
    pointer-events: none;
}

/* Ensure content is above overlay */
.channel-card > * {
    position: relative;
    z-index: 2;
}

.channel-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 3px solid var(--accent);
    position: relative;
    z-index: 2;
}

.channel-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.channel-card h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.channel-card p {
    color: white !important;
    font-style: italic;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.channel-btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 500;
    transition: all 0.8s ease-in-out;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.channel-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(204, 0, 0, 0.4);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border-radius: 2px;
    border: 1px solid var(--dark-text);
    background: white;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.8s ease-in-out;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-btn:hover {
    background: var(--dark-text);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tab-btn.active {
    background: var(--dark-text);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Full page embed */
.full-page-embed {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: calc(100vh - 65px);
    border: none;
    background: white;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 2.5rem;
    margin-top: 5rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: background 0.3s ease;
}

/* Settings Page Styles */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.settings-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.settings-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.settings-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 2px solid var(--accent);
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
    font-family: 'Playfair Display', serif;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-info label {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.setting-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.setting-control {
    margin-left: 2rem;
}

.setting-select {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.setting-select:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.setting-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

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

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

.toggle-slider:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Settings Actions */
.settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-reset,
.btn-save {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
}

.btn-reset:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-save {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
}

.btn-save:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Settings Note */
.settings-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
}

.settings-note p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* Settings Notification */
.settings-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.settings-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce Motion Class */
body.reduce-motion * {
    animation: none !important;
    transition-duration: 0s !important;
}

/* Responsive */
@media (max-width: 768px) {
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .setting-control {
        margin-left: 0;
        width: 100%;
    }

    .setting-select {
        width: 100%;
    }

    .settings-actions {
        flex-direction: column;
    }

    .btn-reset,
    .btn-save {
        width: 100%;
    }
}

/* Feedback Form Styles */
.feedback-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.feedback-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.feedback-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.feedback-form {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 2px solid var(--accent);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.required {
    color: var(--accent);
}

.optional {
    font-weight: 400;
    color: #999;
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-actions {
    margin-top: 2rem;
}

.btn-submit {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.form-status {
    margin-top: 1.5rem;
    display: none;
}

.status-loading,
.status-success,
.status-error {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.status-loading {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.feedback-info {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 12px;
    border-left: 4px solid var(--gold);
}

.feedback-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feedback-info p {
    margin-bottom: 0.75rem;
    color: #666;
}

.feedback-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.feedback-info a:hover {
    color: var(--gold);
}

.privacy-note {
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Responsive Feedback Form */
@media (max-width: 768px) {
    .feedback-container {
        padding: 2rem 1rem;
    }

    .feedback-title {
        font-size: 2.2rem;
    }

    .feedback-form {
        padding: 1.5rem;
    }

    .btn-submit {
        padding: 0.875rem 2rem;
    }
}

/* Responsive - Tablet & Small Desktop (768px - 968px) */
@media (max-width: 968px) {
    .hero {
        padding: 3rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content p {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .full-page-embed {
        top: 55px;
        height: calc(100vh - 55px);
    }
}

/* Responsive - Mobile Tablets (768px and below) */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .hamburger-menu {
        display: flex;
    }
    
    nav {
        flex-wrap: wrap;
    }
    
    .nav-links {
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        border-bottom: 4px solid var(--gold);
        gap: 0;
    }
    
    .nav-links.active {
        max-height: 100vh;
        padding-bottom: 1rem;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a, .nav-links .dropdown-toggle {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    .dropdown-content {
        position: static !important;
        display: none !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-width: auto !important;
    }
    
    .dropdown.open .dropdown-content {
        display: block !important;
    }
    
    .dropdown-content a {
        color: rgba(255, 255, 255, 0.9) !important;
        border: none !important;
        padding: 0.75rem 3.5rem !important;
    }
    
    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.15) !important;
    }
    
    .dropdown-toggle::after {
        float: right;
        margin-right: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    header {
        padding: 0.75rem 1rem;
    }
    
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .hero {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1;
        margin-bottom: 1rem;
    }
    
    .hero-avatar {
        width: 150px;
        height: 150px;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .social-links a {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .about-section, .featured-content {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1.75rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    footer {
        padding: 1.5rem;
        margin-top: 3rem;
    }
}

/* Responsive - Small Mobile (480px and below) */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }
    
    .hamburger-menu span {
        width: 22px;
        height: 2.5px;
    }
    
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .hero-content .tagline {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-content .description {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-links a {
        padding: 0.65rem 1.25rem;
        font-size: 0.75rem;
        flex: 1;
        min-width: 80px;
    }
    
    section {
        padding: 1.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    footer {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .nav-links a, .nav-links .dropdown-toggle {
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .dropdown-content a {
        padding: 0.65rem 3rem !important;
    }
}


/* Sidebar Toggle Button */
/* Sidebar Mode */
body.sidebar-mode header {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    padding: 2rem 0;
    flex-direction: column;
    border-bottom: none;
    border-right: 4px solid var(--gold);
    z-index: 1000;
}

body.sidebar-mode nav {
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 0 1.5rem;
}

body.sidebar-mode .logo {
    margin-bottom: 3rem;
    font-size: 1.8rem;
}

body.sidebar-mode .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
}

body.sidebar-mode .nav-links > li {
    width: 100%;
    margin: 0;
}

body.sidebar-mode .nav-links > li > a,
body.sidebar-mode .dropdown-toggle {
    display: block;
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    border-radius: 4px;
}

body.sidebar-mode .nav-links > li > a:hover,
body.sidebar-mode .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

body.sidebar-mode .dropdown-content {
    position: static;
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 4px;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
}

body.sidebar-mode .dropdown.open .dropdown-content {
    display: block;
}

body.sidebar-mode .dropdown-content a {
    padding: 0.75rem 2.5rem;
}

body.sidebar-mode .dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Adjust content when sidebar is active */
body.sidebar-mode .page-content-wrapper,
body.sidebar-mode .settings-container,
body.sidebar-mode .feedback-container {
    margin-left: 250px;
}

body.sidebar-mode .full-page-embed {
    left: 250px;
    width: calc(100% - 250px);
}

/* Settings Gear Icon */
.settings-icon {
    font-size: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.sidebar-mode .settings-icon {
    font-size: 2rem;
}

/* Video Plans Icon */
.video-plans-icon {
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.video-plans-icon:hover {
    transform: scale(1.15);
}

body.sidebar-mode .video-plans-icon {
    font-size: 1.8rem;
}

/* Fix footer in sidebar mode */
body.sidebar-mode footer {
    margin-left: 250px;
}

body.sidebar-mode .page-content-wrapper {
    min-height: calc(100vh - 200px);
}

/* Sidebar Mode */
body.sidebar-mode header {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    padding: 0;
    border-bottom: none;
    border-right: 4px solid var(--gold);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.sidebar-mode header::-webkit-scrollbar {
    display: none;
}

body.sidebar-mode nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    height: 100%;
}

body.sidebar-mode .logo {
    margin-bottom: 3rem;
    font-size: 1.8rem;
}

body.sidebar-mode .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
}

body.sidebar-mode .nav-links li {
    width: 100%;
    margin: 0;
}

body.sidebar-mode .nav-links a,
body.sidebar-mode .dropdown-toggle {
    display: block;
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: left;
    border-radius: 6px;
    transition: all 0.8s ease-in-out;
    color: white;
}

body.sidebar-mode .nav-links a:hover,
body.sidebar-mode .dropdown-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateX(10px);
}

body.sidebar-mode .dropdown {
    position: relative;
}

body.sidebar-mode .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 6px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-in-out, padding 0.8s ease-in-out;
    padding: 0 0.5rem;
}

body.sidebar-mode .dropdown:hover .dropdown-content {
    max-height: 500px;
    padding: 0.5rem;
}

body.sidebar-mode .dropdown-content a {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    color: white;
}

body.sidebar-mode .layout-toggle {
    margin-top: auto;
    margin-left: 0;
    width: 100%;
}

body.sidebar-mode .toggle-icon {
    transform: rotate(90deg);
}

/* Mobile - disable sidebar mode */
@media (max-width: 968px) {
    body.sidebar-mode {
        margin-left: 0;
    }
    
    body.sidebar-mode header {
        position: sticky;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 4px solid var(--gold);
    }
    
    body.sidebar-mode nav {
        flex-direction: row;
        padding: 1rem 2rem;
    }
    
    body.sidebar-mode .nav-links {
        flex-direction: row;
    }
    
    body.sidebar-mode .logo {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
    
    body.sidebar-mode .layout-toggle {
        margin-top: 0;
        margin-left: auto;
        width: auto;
    }
    
    body.sidebar-mode .toggle-icon {
        transform: none;
    }
}
/* ── Theme Toggle Button ─────────────────────────────────── */
.theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: var(--gold);
    transform: rotate(15deg) scale(1.1);
}

/* ── Dark mode surface overrides ─────────────────────────── */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .channel-card:not([style*="background-image"]) {
    background: var(--surface);
}

[data-theme="dark"] .featured-content,
[data-theme="dark"] .about-section {
    background: var(--cream);
}

[data-theme="dark"] .filter-btn,
[data-theme="dark"] .tab-btn {
    background: var(--surface);
    color: var(--dark-text);
    border-color: var(--border);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .tab-btn:hover,
[data-theme="dark"] .filter-btn.active,
[data-theme="dark"] .tab-btn.active {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

/* Auto dark mode surface overrides (mirrors manual) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .feature-card,
    :root:not([data-theme="light"]) .profile-card {
        background: var(--surface);
    }

    :root:not([data-theme="light"]) .featured-content,
    :root:not([data-theme="light"]) .about-section {
        background: var(--cream);
    }

    :root:not([data-theme="light"]) .filter-btn,
    :root:not([data-theme="light"]) .tab-btn {
        background: var(--surface);
        color: var(--dark-text);
        border-color: var(--border);
    }
}
