/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Hide content initially to prevent flash of static placeholders before JS loads */
body:has(#preloader):not(.loaded) .app-container {
    opacity: 0 !important;
    pointer-events: none !important;
}

.loader-logo {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: -1px;
}

.loader-logo span {
    color: var(--accent-color);
}

.loader-pulse {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 208, 0, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader-pulse::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 208, 0, 0.05);
    animation: pulse 1.5s ease-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ── Skeleton / Lazy-Image Loading ─────────────────────────────────────────── */
/* Card images start as the dark DEFAULT_AVATAR placeholder and fade in once loaded */
.card-lazy-img,
.hero-lazy-img {
    opacity: 0;
    transition: opacity 0.35s ease;
    background: linear-gradient(90deg, #1c1d21 25%, #252629 50%, #1c1d21 75%);
    background-size: 200% 100%;
    animation: tadb-shimmer 1.4s infinite linear;
}

.card-lazy-img.img-loaded,
.hero-lazy-img.img-loaded {
    opacity: 1;
    animation: none;
    background: none;
    transition: none !important; /* Disable transition once loaded to destroy GPU composite layer */
}

@keyframes tadb-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Img wrapper shows shimmer background while image loads */
.img-wrapper {
    position: relative;
    overflow: hidden;
}

.img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #1c1d21 25%, #252629 50%, #1c1d21 75%);
    background-size: 200% 100%;
    animation: tadb-shimmer 1.4s infinite linear;
    z-index: 0;
    border-radius: inherit;
}

/* Hide shimmer once image has loaded */
.img-wrapper:has(.img-loaded)::before {
    display: none;
}

/* Fallback for browsers without :has support */
.img-wrapper img {
    position: relative;
    z-index: 1;
}
/* ─────────────────────────────────────────────────────────────────────────── */


:root {
    --bg-color: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #ffd000;
    --nav-bg: #1c1c1c;
    --card-bg: #222222;
}

html {
    scroll-behavior: smooth;
    background-color: #0f0f0f; /* Prevent transparent bleed behind system nav bar */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.top-nav, .bottom-nav, .hero-carousel, .hero-slide, .post-details, .post-card, .wl-card, .pp-btn, .theme-pull-switch, .modal, .pp-body {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Base App Layout */
.app-container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 90px;
    transition: opacity 0.4s ease-out;
}

/* Hero wrapper — full-width zone for header + hero carousel */
.hero-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

/* Top Navigation Header - Google TV Style */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
    z-index: 2000;
    background: transparent;
    transition: transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

/* Scrolled state */
.top-nav.nav-scrolled {
    background: rgba(15, 15, 15, 0.98);
    padding: 10px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hidden state (on scroll down) */
.top-nav.nav-hidden {
    transform: translateY(-100%);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px; /* Slightly tighter gap */
}

.menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px; /* Balanced size */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.logo {
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%; /* Circle like Google TV */
    background-color: #B9C3FF; /* Light blue/purple from screenshot */
    border: none;
    color: #000; /* Dark icon */
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: #a4afff;
    transform: scale(1.05);
}

.search-btn:active {
    opacity: 0.8;
}

/* Removed profile-pic styles as requested */

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 65vh; /* Large hero image */
    min-height: 550px;
    max-height: 800px;
    overflow: hidden; /* Added to clip slide movement */
}

.hero-slides {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex; /* Added for horizontal sliding */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); /* Ultra smooth slide curve */
}

.hero-slide {
    position: relative; /* Changed from absolute to relative */
    width: 100%;
    height: 100%;
    flex-shrink: 0; /* Prevent slides from shrinking */
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.06);
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active .hero-bg img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient mimicking the design to make text readable */
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.5) 0%,
        rgba(15, 15, 15, 0.1) 30%,
        rgba(15, 15, 15, 0.8) 75%,
        #0f0f0f 100%
    );
    /* Adding a subtle pinkish tint gradient from top left like the ref image */
    background-image: 
        radial-gradient(circle at top left, rgba(230, 100, 150, 0.2) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(15,15,15,0.2) 0%, transparent 30%, #0f0f0f 100%);
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 50px;
    left: 24px;
    right: 24px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(30px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.hero-slide.active .hero-content {
    transform: translateX(0);
    opacity: 1;
}

.platform-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 6px 14px;
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.platform-logo::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

.hero-title {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title-logo {
    max-width: 180px; /* Reduced logo width */
    max-height: 80px;  /* Reduced logo height */
    object-fit: contain;
    margin-bottom: 12px;
    cursor: pointer;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.hero-desc {
    font-size: 14px;
    color: #c4c4c4;
    line-height: 1.5;
    max-width: 90%;
    margin-bottom: 24px;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.primary-btn {
    background-color: var(--text-primary);
    color: #0f0f0f;
    padding: 16px 32px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.primary-btn:active {
    transform: scale(0.95);
    background-color: #ddd;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 60px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 24px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 4px;
}

/* Horizontal Lists */
.content-row {
    padding-bottom: clamp(10px, 3.9vw, 16px);
    position: relative;
    z-index: 20;
    margin-top: -10px; /* Slight overlap on desktop */
}

.row-header {
    display: flex;
    align-items: center;
    padding: 0 clamp(16px, 5.8vw, 24px);
    margin-bottom: clamp(8px, 3vw, 12px);
}

.row-header h2 {
    font-size: clamp(15px, 4.4vw, 18px);
    font-weight: 600;
    color: #f0f0f0;
}

.more-btn {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.cards-scroller {
    display: flex;
    gap: clamp(8px, 3.1vw, 12px);
    padding: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: clamp(16px, 5.8vw, 24px);
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
}

.cards-scroller::before,
.cards-scroller::after {
    content: '';
    flex: 0 0 clamp(8px, 3.1vw, 12px); /* responsive edge spacer */
}

.cards-scroller::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.card {
    min-width: calc((100vw - 72px) / 3);
    width: calc((100vw - 72px) / 3);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease;
    position: relative;
    content-visibility: auto; /* Skips off-screen layout/painting to prevent VRAM texture garbage-collection */
    contain-intrinsic-size: 110px 180px; /* Avoids layout shifts */
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

@media (min-width: 768px) and (hover: hover) {
    .card:hover {
        z-index: 10;
    }
}

.img-wrapper {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    margin-bottom: 8px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translate3d(0, 0, 0);
    will-change: transform, box-shadow;
}

@media (hover: hover) {
    .card:hover .img-wrapper {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(19, 57, 120, 0.3);
        border-color: rgba(19, 57, 120, 0.5);
    }
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* Uncensored Blur Effect */
.card.uncensored .img-wrapper img {
    filter: blur(25px) brightness(0.7);
}

.card.uncensored .img-wrapper::after {
    content: 'Uncensored';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 900;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card.uncensored:hover .img-wrapper img {
    filter: blur(0) brightness(1);
}

.card.uncensored:hover .img-wrapper::after {
    opacity: 0;
}

/* Subtle gradient at bottom of cards so rounded corners look clean */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-overlay::after {
    content: 'WATCH NOW';
    background: #133978;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(19, 57, 120, 0.4);
}

.card:hover .card-overlay::after {
    transform: translateY(0);
}

/* Search Result Blur */
.search-item.uncensored-item img {
    filter: blur(10px) brightness(0.7);
}

.search-item.uncensored-item::after {
    content: 'Uncensored';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff4d4d;
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 900;
    z-index: 5;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.card-title {
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 500;
    margin: clamp(3px, 1vw, 4px) clamp(4px, 1.5vw, 6px) 2px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
}

/* View More Card Style */
.view-more-card {
    min-width: calc((100vw - 72px) / 3);
    width: calc((100vw - 72px) / 3);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.view-more-content {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.view-more-card:hover .view-more-content {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.view-more-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(255, 208, 0, 0.3);
}

.view-more-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

@media (min-width: 768px) {
    .view-more-card {
        min-width: 180px;
        width: 180px;
    }
    .view-more-content {
        border-radius: 20px;
    }
}

.platform {
    font-size: clamp(9px, 2.5vw, 10px);
    color: var(--text-secondary);
    font-weight: 500;
}

.rating, .year {
    font-size: clamp(9px, 2.5vw, 10px);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Floating Actions */
.floating-cast-btn {
    position: fixed;
    bottom: 96px;
    right: 24px;
    background-color: #3f424c;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
    z-index: 105;
    cursor: pointer;
    transition: transform 0.2s;
}

.floating-cast-btn:active {
    transform: scale(0.95);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #0f0f0f; /* Solid dark background to prevent transparent bleed in app */
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 110;
    padding-bottom: env(safe-area-inset-bottom); /* iOS support */
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 400;
    flex: 1;
}

.nav-item i {
    font-size: 18px; /* Matched to desktop size */
}

.nav-item.active {
    color: var(--bg-color);
}

.nav-item.active span {
    color: #ffffff;
}

.active-indicator {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 12px; /* Curved square */
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.active-indicator span {
    display: none; /* Hide text to keep indicator square */
}


/* Generic Grid Page */
.grid-page {
    padding-top: 100px;
    padding-bottom: 40px;
}

.grid-header {
    padding: 0 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.grid-header h1 {
    font-size: 28px;
    font-weight: 500;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--nav-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.cards-grid .card {
    width: 100%;
    min-width: 0; /* Changed from unset to 0 so grid items can shrink below min-content */
}

@media (min-width: 500px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Daily News Page */
.news-page {
    padding-top: 100px;
}

.page-header {
    padding: 24px;
    padding-bottom: 0;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.news-feed {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

.news-card {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:active {
    transform: scale(0.98);
}

.news-img {
    position: relative;
    flex-shrink: 0;
    background-color: #333;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.news-date {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.news-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
}

.news-tag.anime { background-color: #3b82f6; }
.news-tag.manga { background-color: #ec4899; }
.news-tag.event { background-color: #8b5cf6; }

/* Standard horizontal card layout */
.news-card:not(.featured) .news-img {
    width: 120px;
}

/* Featured large card layout */
.news-card.featured {
    flex-direction: column;
    border-radius: 20px;
}

.news-card.featured .news-img {
    width: 100%;
    height: 200px;
}

.news-card.featured .news-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.news-card.featured .news-content {
    background: linear-gradient(to top, rgba(15,15,15,1) 0%, rgba(34,34,34,1) 100%);
    padding: 24px 20px;
}

.news-card.featured .news-date {
    margin-bottom: 8px;
}

.news-card.featured .news-title {
    font-size: 24px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.news-card.featured .news-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}


/*
======================
POST PAGE STYLES
======================
*/
.post-page-body {
    background-color: #0f0f0f;
}

.post-app-container {
    padding-bottom: 0; 
}

/* Post Top Actions overlay */
.post-top-actions {
    position: absolute;
    top: 40px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
}

.post-right-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.top-love-indicator {
    width: 44px;
    min-height: 44px;
    border-radius: 22px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: white;
    padding: 6px 0;
}

.top-love-indicator i {
    font-size: 14px;
    color: #ff3e6e;
    text-shadow: 0 0 8px rgba(255, 62, 110, 0.5);
}

#topLoveCount {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.post-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
}

.post-action-btn:active {
    transform: scale(0.9);
}

/* Hero Cover */
.post-hero {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 400px;
}

.post-cover {
    width: 100%;
    height: 100%;
    position: relative;
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, #0f0f0f 0%, transparent 100%);
}

.trailer-btn-wrapper {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.trailer-btn {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Details Section */
.post-details {
    padding: 0 24px;
    text-align: center;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.post-title {
    font-size: 26px; /* Smaller title for mobile */
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .post-title {
        font-size: 32px; /* Original size for desktop */
    }
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.meta-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    font-weight: 600;
}

.meta-rating i {
    color: #f5c518;
    font-size: 14px;
}

.meta-badge {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.meta-dot {
    font-size: 10px;
}

.post-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 30px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Primary Action buttons */
.post-primary-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .post-primary-actions,
    body.light-mode .post-primary-actions {
        flex-direction: row !important;
        gap: 20px !important;
        align-items: stretch !important;
    }
    
    .post-primary-actions .post-primary-btn,
    body.light-mode .post-primary-actions .post-primary-btn,
    .post-primary-actions #postQuizBtn,
    body.light-mode .post-primary-actions #postQuizBtn {
        flex: 1 !important;
        width: auto !important;
        height: 58px !important; /* Fixed height for consistency */
        padding: 0 24px !important;
        border-radius: 40px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0 !important;
    }

    .post-primary-actions .post-secondary-row,
    body.light-mode .post-primary-actions .post-secondary-row {
        flex: 1 !important;
        width: auto !important;
        display: flex !important;
        gap: 10px !important;
        align-items: stretch !important;
        margin: 0 !important;
    }

    .post-primary-actions .post-secondary-row .post-text-btn,
    body.light-mode .post-primary-actions .post-secondary-row .post-text-btn {
        flex: 1 !important;
        width: auto !important;
        height: 58px !important; /* Fixed height for consistency */
        padding: 0 24px !important;
        border-radius: 40px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0 !important;
    }

    .post-primary-actions .post-primary-btn:hover,
    .post-primary-actions .post-text-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .post-primary-actions .post-primary-btn:hover {
        filter: brightness(1.1);
    }

    #postQuizBtn:not(.coming-soon):hover {
        background-color: rgba(255, 208, 0, 0.18) !important;
    }

    #guideBtn.post-text-btn {
        background-color: rgba(255, 255, 255, 0.08) !important;
        color: white !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }
    
    #guideBtn.post-text-btn:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    #guideBtn.post-text-btn i {
        font-size: 18px !important; /* Slightly larger icon for desktop button */
    }
}

.post-outline-btn {
    width: 100%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.post-primary-btn {
    width: 100%;
    background-color: #d1d977;
    color: #0f0f0f;
    border: none;
    padding: 16px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}

.btn-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-primary-btn small {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
}

.post-text-btn {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.post-text-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.post-text-btn i {
    font-size: 14px;
}

/* Engagement Row */
.post-engagement-row {
    display: flex;
    justify-content: space-around;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 32px;
}

.season-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 0;
    overflow: visible;
}

/* Premium Season Slider UI */
.season-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto;
    max-width: 380px;
    width: 100%;
}
.season-slider-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.6);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
}
.season-slider-btn:hover:not(:disabled) {
    border-color: var(--accent-yellow, #ffd000);
    background: rgba(255,208,0,0.08);
    color: var(--accent-yellow, #ffd000);
    transform: scale(1.08);
}
.season-slider-btn:disabled {
    opacity: 0.15;
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.04);
}
.season-slider-display {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 40px;
    display: flex; align-items: center; justify-content: center;
    min-width: 0;
}
.season-slider-chip {
    padding: 8px 14px;
    background: var(--accent-yellow, #ffd000);
    color: #000;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 208, 0, 0.15);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    cursor: default;
    width: 100%;
    height: 38px;
    box-sizing: border-box;
}
.season-slider-scroll-container {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    display: flex;
    align-items: center;
    min-width: 0;
}
.season-slider-scroll-container::-webkit-scrollbar {
    display: none;
}
.season-slider-scroll-container span {
    white-space: nowrap;
    margin: 0 auto;
    padding: 0 4px;
    flex-shrink: 0;
}

/* Slide Animations */
.season-slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}
.season-slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}
.season-slide-in-left {
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.season-slide-in-right {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Light mode overrides */
body.light-mode .season-slider-btn {
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.02);
    color: rgba(0,0,0,0.5);
}
body.light-mode .season-slider-btn:hover:not(:disabled) {
    border-color: #2e51a2;
    background: rgba(46,81,162,0.06);
    color: #2e51a2;
}
body.light-mode .season-slider-chip {
    background: #2e51a2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 81, 162, 0.15);
}

/* Legacy Fallback for Season Chips */
.season-chip {
    padding: 8px 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    border-radius: 20px !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    display: inline-block !important;
    margin: 4px !important;
}
.season-chip.active {
    background: var(--accent-yellow, #ffd000) !important;
    color: #000 !important;
}
body.light-mode .season-chip {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #374151 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .season-chip.active {
    background: #2e51a2 !important;
    color: #ffffff !important;
    border-color: #2e51a2 !important;
}

.schedule-container {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 15px;
}

.schedule-container::-webkit-scrollbar {
    display: none;
}

.schedule-scroller-inner {
    display: flex;
    gap: 12px;
}

.schedule-card {
    min-width: 160px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-platform-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-platform-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sc-platform-name {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.sc-status-badge {
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 208, 0, 0.1);
    color: var(--accent-yellow);
}

.sc-release-box {
    margin-top: 0px;
}

.sc-release-value {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

.eng-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.eng-item i {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.spoiler-text {
    cursor: pointer;
    user-select: none;
    position: relative;
    display: block;
}

.spoiler-content {
    filter: blur(8px);
    transition: filter 0.4s ease;
    display: block;
}

.spoiler-text:hover .spoiler-content {
    filter: blur(6px);
}

.spoiler-text.revealed .spoiler-content {
    filter: blur(0) !important;
}

.spoiler-text.revealed {
    user-select: text;
    cursor: default;
}

.spoiler-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
    z-index: 2;
}

.spoiler-text.revealed .spoiler-hint {
    opacity: 0;
    display: none;
}

/* Episode Countdown */
.episode-countdown-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
}

.countdown-header {
    font-size: 13px;
    font-weight: 700;
    color: #ffd000;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.timer-unit span {
    font-size: 24px;
    font-weight: 800;
    color: white;
    font-family: 'Outfit', sans-serif;
}

.timer-unit small {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}

/* Sections */
.post-section {
    margin-bottom: 32px;
}

.post-section h2 {
    font-size: 13px;
    font-weight: 800;
    margin: 0 24px 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-section h2::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
}

.post-section .row-header {
    margin-bottom: 24px;
    padding: 0 24px;
}

.post-section .row-header h2 {
    margin: 0;
    flex: 1;
}

.post-section .row-header h2::after {
    background: linear-gradient(to right, rgba(255,208,0,0.3), transparent);
}

/* Ratings */
.ratings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .ratings-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .rating-box {
        width: 320px;
        flex-shrink: 0;
    }
}

.rating-box {
    background-color: rgba(255,255,255,0.03);
    border-radius: 24px; /* More rounded pill-shape */
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}

.rating-box:hover {
    background-color: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.rating-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Base style for circular logos */
.rating-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%; /* Perfect Circle */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 900;
    flex-shrink: 0;
}

.imdb-logo {
    background-color: #f5c518;
    color: black;
    letter-spacing: -0.5px;
}

.mal-logo {
    background-color: #2e51a2;
    color: white;
}

.rx-icon {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
}

.rating-score {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
}

.rating-score small {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 2px;
}

/* Cast List Content */
.cast-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px;
}

.cast-section-label {
    width: 100%;
}

@media (min-width: 768px) {
    .cast-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-content: start;
        justify-items: stretch;
    }

    .cast-section-label {
        grid-column: 1 / -1;
    }
}

.cast-row-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.cast-left, .cast-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.cast-right {
    justify-content: flex-end;
}

.cast-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.text-right {
    align-items: flex-end;
    text-align: right;
}

.cast-person-img, .cast-char-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background-color: #333;
    flex-shrink: 0;
}

/* Optional slight border/glow for character if needed, but keeping it identical */
.cast-char-img {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cast-person-name, .cast-char-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cast-person-role {
    font-size: 11px;
    color: #9cb2c9;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cast-char-studio {
    font-size: 11px;
    color: #ffd000;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Empty State Styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    margin: 10px 24px;
    animation: fadeInEmpty 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes fadeInEmpty {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.empty-icon-shield {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.empty-icon-shield i {
    font-size: 32px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.empty-text {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.empty-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 260px;
    line-height: 1.6;
    opacity: 0.6;
    position: relative;
    z-index: 2;
}

/* Landscape Cards */
.landscape-scroller .card {
    min-width: 240px;
    width: 240px;
}

.landscape-scroller .img-wrapper {
    aspect-ratio: 16/9;
}

/* Info Grid */
.info-list-section {
    padding-bottom: 60px;
}

.info-grid {
    padding: 0 24px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px 16px;
    font-size: 13px;
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    line-height: 1.4;
}

.info-value small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 11px;
}

.studio-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: color 0.3s, border-bottom-color 0.3s;
}

.studio-link:hover {
    color: var(--accent-color) !important;
    border-bottom-color: var(--accent-color) !important;
}


/* More Services Bottom Sheet */
.services-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .services-overlay {
        left: 0; /* Cover full screen including sidebar */
    }
}

.services-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.services-sheet {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -45%) scale(0.9);
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    background-color: #1a1a1a;
    z-index: 1001;
    border-radius: 24px;
    padding: 24px 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    display: block;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s, visibility 0.3s;
}

.services-sheet.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

@media (min-width: 768px) {
    .services-sheet {
        width: 600px;
        max-width: 90vw;
        max-height: 85vh;
        border-radius: 28px;
    }
}


.sheet-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sheet-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.sheet-close-btn:hover {
    color: white;
}

.sheet-header h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.sheet-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Full Page Trailer Style for Desktop */
@media (min-width: 768px) {
    #trailersSheet, #freeSheet {
        position: fixed;
        width: 100vw !important;
        height: 100vh !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: translateY(100%) !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        background-color: #0c0d10 !important;
        padding-top: 0 !important;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 2000 !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }

    #trailersSheet.active, #freeSheet.active {
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    #trailersSheet .sheet-header, #freeSheet .sheet-header {
        padding: 50px 10% 20px;
        margin-bottom: 40px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    #trailersSheet .sheet-header h3, #freeSheet .sheet-header h3 {
        font-size: 24px;
    }

    #trailersSheet .sheet-close-btn, #freeSheet .sheet-close-btn {
        width: 50px;
        height: 50px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 50%;
        font-size: 20px;
    }

    #trailersSheet .sheet-close-btn:hover, #freeSheet .sheet-close-btn:hover {
        background: rgba(255,255,255,0.06);
        transform: rotate(90deg);
    }

    #trailersSheet .sheet-content, #freeSheet .sheet-content {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 50px !important;
        padding: 0 10% 100px !important;
        max-width: 1400px;
        margin: 0 auto;
    }
}

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.sc-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sc-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent huge icons */
    background: rgba(255,255,255,0.05); /* Proper background */
}

.sc-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.sc-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.sc-right .sc-action {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
}

/* Full Screen Trailers Page */
.trailers-page {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #0f0f0f;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

.trailers-page.active {
    transform: translateX(0);
}

.trailers-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    position: sticky;
    top: 0;
    background-color: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.close-trailers-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.trailers-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.trailers-content {
    padding: 0 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.trailer-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trailer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trailer-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.trailer-type {
    font-size: 11px;
    font-weight: 600;
    color: #ff0000; /* YouTube red style indicator */
    background: rgba(255,0,0,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-mode .video-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

body.light-mode .video-wrapper:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    border-color: rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tadb-video-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 0 2px;
    line-height: 1.4;
    text-transform: none;
}

body.light-mode .tadb-video-title {
    color: #111827 !important;
}

/* Artist Details Page Styles */
.artist-detail-content {
    padding: 0 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artist-comparison {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    padding-top: 20px;
}

.compare-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.compare-item img {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.compare-item span {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-align: center;
}

.compare-x {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 24px;
    opacity: 0.5;
}

.artist-anime-title {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    text-align: center;
}

.artist-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 32px;
}

@media (max-width: 480px) {
    .artist-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

.ai-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.ai-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 700;
}

.ai-value {
    font-size: 13px;
    color: white;
    font-weight: 600;
}

.artist-extra-info {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
}

.artist-extra-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artist-extra-info p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.clickable-cast {
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.clickable-cast:active {
    transform: scale(0.98);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Footer */
.post-footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.post-footer p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0d10;
    z-index: 2000;
    display: none; /* Controlled by active class in JS */
    flex-direction: column;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-overlay.active {
    display: flex;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
}

.search-back-btn, .search-mic-btn, .search-clear-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.search-back-btn:active, .search-mic-btn:active {
    opacity: 0.6;
}

.search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
}

#searchInput {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    outline: none;
    font-family: inherit;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-clear-btn {
    opacity: 0;
    pointer-events: none;
}

.search-clear-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.search-results-container {
    flex: 1;
    overflow-y: auto;
    background-color: #16171a;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px 16px;
    margin-top: 8px;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-item img {
    width: 48px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.search-item span {
    color: #f0f0f0;
    font-size: 15px;
    font-weight: 500;
}

.search-suggestion {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 4px 0;
}

.search-suggestion i {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.search-suggestion span {
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 500;
}

/* SMALL DEVICE OVERRIDES (≤ 389px — moderately small Androids) */
@media (max-width: 389px) {
    /* Override all inline style="margin-top: 24px" on sections */
    body.home-page .content-row {
        margin-top: 16px !important;
    }

    /* Top nav more compact */
    .top-nav {
        padding: 12px 16px;
    }

    .top-nav.nav-scrolled {
        padding: 8px 16px;
    }

    /* Slightly reduce free-episodes section inline padding */
    #free-to-watch-section {
        padding: 14px 10px !important;
    }

    /* Reduce bottom nav padding so it doesn't eat too much real estate */
    .bottom-nav {
        height: 72px;
    }

    .app-container {
        padding-bottom: 80px;
    }

    /* Platform pills slightly more compact */
    .platform-pill {
        padding: 8px 4px;
    }

    .platform-pill .pill-name {
        font-size: 9px;
    }

    /* Search button scaled slightly */
    .search-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* DESKTOP STYLING */
@media (min-width: 768px) {
    /* hero-wrapper: full viewport width, 100vh tall */
    .hero-wrapper {
        width: 100vw;
        height: 100vh;
        position: relative;
        overflow: hidden;
    }

    /* Hero carousel fills hero-wrapper completely */
    .hero-wrapper .hero-carousel {
        width: 100% !important;
        height: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        min-height: unset !important;
        max-height: unset !important;
    }

    /* Top nav floats over hero, full-width */
    .hero-wrapper .top-nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        z-index: 100;
    }

    /* app-container: sidebar (left) + content (right), below hero */
    .app-container {
        display: flex !important;
        flex-direction: row !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        min-height: auto;
        width: 100%;
    }

    /* bottom-nav becomes LEFT sidebar */
    .bottom-nav {
        order: -1 !important;         /* Force to LEFT side even though it's after main in HTML */
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        flex-direction: column;
        width: 90px;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 32px;
        border-right: 1px solid rgba(255,255,255,0.05);
        border-left: none !important;
        border-top: none;
        padding-bottom: 0;
        z-index: 200;
        background: #000;
        display: flex;
        flex-shrink: 0;
        align-self: flex-start;
    }

    .main-content {
        flex: 1;
        min-width: 0;
        padding-right: 0 !important;
        width: 100%;
    }

    /* top-nav for non-hero pages stays fixed full-width */
    .top-nav {
        position: fixed;
        left: 0;
        width: 100%;
        z-index: 2000;
    }

    body.home-page .main-content {
        width: calc(100% - 90px);
    }
    
    /* Move Bottom Nav to Sidebar */
    .bottom-nav {
        flex-direction: column;
        width: 90px;
        height: 100vh;
        top: 0;
        bottom: auto;
        justify-content: flex-start;
        padding-top: 120px;
        gap: 32px;
        border-right: 1px solid rgba(255,255,255,0.05);
        border-top: none;
        padding-bottom: 0;
        z-index: 200;
        background: #000;
        display: flex;
    }

    .nav-item {
        flex: none;
        color: rgba(255, 255, 255, 0.5); /* Muted text for non-active */
        width: 100%;
    }

    .nav-item i {
        font-size: 20px;
        color: rgba(255, 255, 255, 0.7); /* Visible icons */
        transition: all 0.3s ease;
    }

    .nav-item:hover {
        color: #fff;
    }

    .nav-item:hover i {
        color: #fff;
        transform: scale(1.1);
    }

    .nav-item.active {
        color: #fff !important; /* Force white text for active label on desktop sidebar */
    }

    .nav-item.active .active-indicator {
        padding: 12px;
        border-radius: 12px;
        width: 44px;
        height: 44px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #fff;
    }

    .nav-item.active .active-indicator i {
        color: #000 !important; /* Dark icon inside white box */
        font-size: 20px;
    }
    
    .nav-item.active .active-indicator span {
        display: none;
    }

    .nav-svg-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.05);
        border-radius: 12px;
        transition: 0.3s;
    }

    .nav-item:hover .nav-svg-wrapper {
        background: rgba(255,255,255,0.1);
        transform: translateY(-2px);
    }
    
    .floating-cast-btn {
        bottom: 30px;
        right: 40px;
    }

    .hero-carousel {
        height: 100vh;
        min-height: 600px;
        max-height: 100vh;
        border-radius: 0;
        overflow: hidden;
    }

    .hero-content {
        left: 60px !important;
        bottom: 100px;
        right: 60px;
        max-width: 60%;
    }

    .hero-title {
        font-size: 64px;
        margin-bottom: 24px;
    }

    .hero-desc {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 40px;
    }

    .carousel-dots {
        bottom: 30px;
        right: 60px;
    }

    .row-header {
        padding: 0 60px;
        margin-bottom: 24px;
    }

    .row-header h2 {
        font-size: 24px;
    }

    .cards-scroller {
        padding: 0 60px;
        gap: 24px;
    }

    .card {
        min-width: 180px;
        width: 180px;
        contain-intrinsic-size: 180px 280px; /* Desktop intrinsic size */
    }

    /* Desktop Updates for Cards */
    .row-header {
        padding: 0 60px;
        margin-bottom: 24px;
    }

    .cards-scroller {
        padding: 0 60px;
        gap: 24px;
    }

    .cards-scroller::before,
    .cards-scroller::after {
        display: none;
    }

    .card {
        min-width: 180px;
        width: 180px;
        contain-intrinsic-size: 180px 280px; /* Desktop intrinsic size */
    }

    .img-wrapper {
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 16px;
        margin: 6px 8px 4px;
    }

    .platform, .rating {
        font-size: 13px;
        padding: 0 2px;
    }
    
    @media (hover: hover) {
        .card:hover .img-wrapper {
            box-shadow: 0 12px 24px rgba(0,0,0,0.6);
        }
    }
    
    .img-wrapper {
        transition: all 0.3s ease;
    }

    /* Grid Page Updates */
    .grid-page {
        padding-top: 130px;
    }

    .grid-header {
        padding: 0 60px;
    }

    .grid-header h1 {
        font-size: 36px;
    }

    .cards-grid {
        padding: 0 60px;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 24px;
    }

    /* Desktop News Updates */
    .news-page {
        padding-top: 130px;
    }

    .page-header {
        padding: 0 60px;
    }

    .news-feed {
        padding: 0 60px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .news-card.featured {
        grid-column: 1 / -1;
        flex-direction: row;
        height: 400px;
    }

    .news-card.featured .news-img {
        width: 60%;
        height: 100%;
    }

    .news-card.featured .news-content {
        width: 40%;
        padding: 40px;
        justify-content: center;
    }

    .news-card.featured .news-title {
        font-size: 32px;
    }

    .news-card.featured .news-excerpt {
        font-size: 16px;
    }

    /* Content area layout: rows-container + browse-platform side by side */

    /* 2. Create a layout for content below hero to have a right sidebar for platforms */
    .content-area-wrapper {
        display: flex;
        width: 100%;
    }

    .rows-container {
        flex: 1;
        min-width: 0;
    }

    /* 3. Browse by Platform as a STICKY side column — stays fixed while content scrolls */
    .browse-platform {
        position: sticky !important;
        top: 0 !important;
        align-self: flex-start !important;
        width: 260px !important;
        min-width: 220px !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        padding: 32px 20px 32px 20px !important;
        margin: 0 !important;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        display: block !important;
        flex-shrink: 0 !important;
        scrollbar-width: none !important;
    }

    .browse-platform::-webkit-scrollbar {
        display: none !important;
    }

    .platform-pills {
        flex-direction: column !important;
        gap: 10px;
    }

    .platform-pill {
        width: 100%;
        justify-content: space-between !important;
    }

    /* content-area-wrapper must be stretch for sticky to work */
    .content-area-wrapper {
        align-items: stretch !important;
    }
}

/* --- Redesigned About Page (Premium) --- */
.about-page-body {
    background-color: #0c0d10;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

.bg-particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #1a1c24 0%, #0c0d10 100%);
}

.particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 20s infinite alternate ease-in-out;
}

.p1 { width: 300px; height: 300px; background: #ffd000; top: -100px; right: -50px; animation-duration: 25s; }
.p2 { width: 400px; height: 400px; background: #264de4; bottom: -150px; left: -100px; animation-duration: 35s; }
.p3 { width: 250px; height: 250px; background: #e44d26; top: 40%; left: 30%; animation-duration: 30s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.about-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0c0d10; /* Solid background, no blur */
}

.back-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-circle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
}

.modern-header-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.about-main {
    padding: 20px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.glass-card {
    background: #16171a; /* Solid dark background */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Slightly more visible border */
    border-radius: 32px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.profile-card {
    text-align: center;
    padding: 40px 30px;
}

.profile-decoration {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(to right, transparent, #ffd000, transparent);
}

.avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 24px;
}

.avatar-main {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e2029 0%, #0c0d10 100%);
    border: 2px solid rgba(255, 208, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 800;
    color: #ffd000;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.avatar-glow {
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    background: #ffd000;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(15px);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    from { transform: scale(1); opacity: 0.1; }
    to { transform: scale(1.1); opacity: 0.3; }
}

.dev-name {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 16px; /* Increased space between name and role */
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role-tag {
    font-size: 11px;
    font-weight: 800;
    color: #ffd000;
    letter-spacing: 2px;
    padding: 6px 16px;
    background: rgba(255, 208, 0, 0.08);
    border-radius: 20px;
    display: inline-block;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-header i {
    color: #ffd000;
    font-size: 18px;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.bio-text p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.accent-text { color: #fff; font-weight: 600; }
.glow-text { color: #ffd000; font-weight: 700; text-shadow: 0 0 10px rgba(255,208,0,0.3); }

.quote-box {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-left: 3px solid #ffd000;
    border-radius: 4px 16px 16px 4px;
    font-style: italic;
    display: flex;
    gap: 15px;
}

.quote-box i { color: rgba(255,255,255,0.2); font-size: 24px; }
.quote-box p { margin: 0; color: rgba(255,255,255,0.9); font-size: 14px; }

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.stat-card {
    background: #16171a; /* Solid dark background */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.05); }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.html { background: rgba(228, 77, 38, 0.1); color: #e44d26; }
.stat-icon.css { background: rgba(38, 77, 228, 0.1); color: #264de4; }
.stat-icon.js { background: rgba(247, 223, 30, 0.1); color: #f7df1e; }
.stat-icon.firebase { background: rgba(255, 145, 0, 0.1); color: #ff9100; }
.stat-icon.firestore { background: rgba(0, 176, 255, 0.1); color: #00b0ff; }
.stat-icon.pwa { background: rgba(0, 230, 118, 0.1); color: #00e676; }

.stat-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 13px; font-weight: 700; color: white; }
.stat-value { font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.4); text-align: right; }

.mini-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.fill { height: 100%; border-radius: 4px; }
.fill.html { background: #e44d26; box-shadow: 0 0 10px rgba(228, 77, 38, 0.5); }
.fill.css { background: #264de4; box-shadow: 0 0 10px rgba(38, 77, 228, 0.5); }
.fill.js { background: #f7df1e; box-shadow: 0 0 10px rgba(247, 223, 30, 0.5); }
.fill.firebase { background: #ff9100; box-shadow: 0 0 10px rgba(255, 145, 0, 0.5); }
.fill.firestore { background: #00b0ff; box-shadow: 0 0 10px rgba(0, 176, 255, 0.5); }
.fill.pwa { background: #00e676; box-shadow: 0 0 10px rgba(0, 230, 118, 0.5); }

.connect-section {
    text-align: center;
    margin-top: 20px;
}

.connect-section h3 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 24px;
}

.social-glass-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #16171a; /* Solid dark background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-circle:hover { transform: translateY(-5px) scale(1.1); color: #ffd000; border-color: rgba(255, 208, 0, 0.3); background: rgba(255, 208, 0, 0.05); }

.about-simple-footer {
    text-align: center;
    margin-top: 40px;
}

.about-simple-footer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 500;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .about-app-container {
        padding-left: 0 !important;
    }
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Post Page Footer */
.post-footer {
    padding: 60px 24px;
    background-color: #0c0d10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* Views Counter (Online Now Pulse Badge) */
.footer-views-counter {
    margin: 0 auto 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Emerald Green */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.footer-views-counter span {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-views-counter strong {
    color: #ffffff;
    font-weight: 800;
    margin-left: 4px;
}

body.light-mode .footer-views-counter {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

body.light-mode .pulse-dot {
    background-color: #10b981 !important; /* Keep green in light mode */
}

body.light-mode .footer-views-counter span {
    color: #4b5563 !important;
}

body.light-mode .footer-views-counter strong {
    color: #111827 !important;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-data-sharing {
    margin-bottom: 40px;
}

.footer-data-sharing h4 {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-data-sharing h4::before,
.footer-data-sharing h4::after {
    content: "";
    height: 1px;
    width: 40px;
    background: linear-gradient(to var(--dir, right), transparent, rgba(255,255,255,0.3));
}

.footer-data-sharing h4::before {
    --dir: left;
}

.footer-data-sharing p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}


/* ── Site Footer Layout ───────────────────────────────────── */
.site-footer {
    padding: 48px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 40px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand { max-width: 320px; }

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.footer-logo span { color: var(--accent-color, #ffd000); }

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 12px;
}

.footer-links-grid { display: flex; gap: 40px; flex-wrap: wrap; }

.footer-links-col h3 {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 14px;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col ul li a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-col ul li a:hover { color: #ffffff; }

/* ── Footer Logo Row & Live Visitor Counter ────────── */
.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-logo-row .footer-logo {
    margin-bottom: 0 !important;
}

/* Base counter layout classes */
.footer-live-counter.desktop-only {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-live-counter.mobile-only {
    display: none;
}

/* Desktop-specific small badge styling */
.desktop-only .footer-live-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #161719;
    border: 1px solid #2a2b2f;
    border-radius: 50%;
    flex-shrink: 0;
}

.desktop-only .footer-live-dot {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
    border: 1px solid #161719;
    flex-shrink: 0;
}

.desktop-only .footer-live-count {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.desktop-only .footer-live-label {
    font-size: 9px;
    font-weight: 600;
    color: #555555;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile-specific larger badge styling in grid gap */
@media (max-width: 767px) {
    .footer-live-counter.desktop-only {
        display: none !important;
    }
    
    .footer-live-counter.mobile-only {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        grid-column: auto;
        justify-self: end;
        margin-top: 16px;
    }
    
    .mobile-only .footer-live-badge {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        background: #161719;
        border: 1px solid #2a2b2f;
        border-radius: 50%;
    }
    
    .mobile-only .footer-live-dot {
        position: absolute;
        top: 3px;
        right: 3px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #22c55e;
        border: 1.5px solid #161719;
        flex-shrink: 0;
    }
    
    .mobile-only .footer-live-count {
        font-size: 13px;
        font-weight: 700;
        color: #ffffff;
        font-family: 'Outfit', sans-serif;
        line-height: 1;
        letter-spacing: -0.2px;
    }
    
    .mobile-only .footer-live-label {
        font-size: 9px;
        font-weight: 600;
        color: #555555;
        font-family: 'Outfit', sans-serif;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: center;
    }
}

/* Light mode */
body.light-mode .footer-live-badge {
    background: #ffffff;
    border-color: #e5e5e5;
}

body.light-mode .footer-live-dot {
    background: #16a34a;
    border-color: #ffffff;
}

body.light-mode .footer-live-count {
    color: #111111;
}

body.light-mode .footer-live-label {
    color: #888888;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* Light mode footer overrides */


.footer-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}


.footer-socials a {
    color: white;
    font-size: 20px;
    transition: 0.3s;
    opacity: 0.6;
}

.footer-socials a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Posters Grid Styling - Minimalist & Premium */
#postersList {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row on mobile */
    gap: 10px;
    padding: 10px 0;
}

@media (min-width: 768px) {
    #postersList {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.poster-item {
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.poster-img-container {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #000;
    border-radius: 12px; /* Smooth rounded corners for the poster */
    border: 1px solid rgba(255,255,255,0.1);
}

.poster-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sharp Black Bar at Bottom with Gap */
.poster-credit {
    margin-top: 8px; /* The Gap */
    padding: 6px 8px;
    background: rgba(255,255,255,0.05); /* Slightly lighter black box */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px; /* Tiny curve for the bar itself */
}

.creator-link {
    font-size: 8px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.creator-link:hover {
    color: #ffd000; /* Highlight on hover */
}

.mini-dl-icon {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    transition: 0.2s;
    padding: 2px;
}

.poster-item:active {
    transform: scale(0.97);
}

/* Browse by Platform */
.browse-platform {
    margin: 48px auto;
    text-align: center;
    padding: 0 24px;
}

.browse-platform h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
}

.browse-platform h2 span {
    color: var(--accent-color);
}

.platform-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.platform-pill {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 6px 6px 6px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: #fff;
}

.platform-pill:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.platform-pill .pill-name {
    font-size: 13px;
    font-weight: 600;
    margin-right: 12px;
}

.platform-pill .pill-count {
    background-color: #2a2a2a;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

/* Mobile Alignment for Platforms */
@media (max-width: 767px) {
    .platform-pills {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0;
    }

    .platform-pill {
        flex-direction: column;
        padding: 10px 6px;
        border-radius: 12px;
        justify-content: center;
        text-align: center;
    }

    .platform-pill .pill-name {
        margin-right: 0;
        margin-bottom: 6px;
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .platform-pill .pill-count {
        font-size: 9px;
        padding: 2px 6px;
    }
}






/* Ratings Page specific styles */
.rating-tabs-container {
    padding: 0 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}

.rating-tab {
    padding: 10px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.rating-tab.active {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.rating-tab.active .imdb-logo-mini {
    background-color: #f5c518;
    color: black;
}

.rating-tab.active .mal-logo-mini {
    background-color: #2e51a2;
    color: white;
}

.imdb-logo-mini, .mal-logo-mini {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 7px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.8);
    color: var(--accent-color);
    min-width: 28px;
    width: auto;
    height: 28px;
    padding: 0 6px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
    border: 2px solid rgba(255, 208, 0, 0.5);
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Give top 3 ranks special colors */
.rank-badge.rank-1 { color: #f2ce46; border-color: #f2ce46; }
.rank-badge.rank-2 { color: #ccc; border-color: #ccc; }
.rank-badge.rank-3 { color: #d68b4b; border-color: #d68b4b; }

.rating-score-display {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* Base style for menu button removed outline */
.menu-btn {
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
}

/* Sidebar Menu */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-menu {
    position: fixed;
    top: 0; bottom: 0; left: -100%;
    width: 100%;
    background: #0c0d10;
    z-index: 2001;
    transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-close-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar-close-btn:hover {
    color: #fff;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
}

.sidebar-link-list {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 18px;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255,255,255,0.03);
    color: #fff;
}

.sidebar-link:hover i, .sidebar-link.active i {
    color: var(--accent-color);
}

.sidebar-link.active {
    border-left: 3px solid var(--accent-color);
    padding-left: 21px; /* Adjust for border */
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 16px 24px;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.sidebar-footer p {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    margin-bottom: 16px;
}

.sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sidebar-socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar-socials a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0c0d10;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), #ff9500);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffe242, #ffb340);
}

/* Global simple Firefox scrollbar support */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #0c0d10;
}

@media (min-width: 768px) {
    .sidebar-link-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        padding: 0 24px;
    }

    .sidebar-link {
        padding: 14px 16px;
        margin-bottom: 8px;
        border-radius: 8px;
    }

    .sidebar-link.active {
        border-left: none;
        padding-left: 16px;
        background: rgba(255, 208, 0, 0.1);
        border: 1px solid rgba(255, 208, 0, 0.2);
    }
    
    .sidebar-divider {
        grid-column: 1 / -1;
        margin: 16px 0;
    }
}

@media (min-width: 1024px) {
    .sidebar-link-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Premium Custom Alert / Toast */
#customAlert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(22, 23, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 208, 0, 0.3);
    padding: 16px 24px;
    border-radius: 100px;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    opacity: 0;
    pointer-events: none;
}

#customAlert.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
    top: 30px;
}

#customAlert i {
    color: #ffd000;
    font-size: 18px;
    background: rgba(255, 208, 0, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#customAlert span {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   AUTHENTICATION & PROFILE STYLES (TADB PREMIUM GLASSMORPHIC SYSTEM)
   ========================================================================== */

/* Profile Header Button */
.profile-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding: 0;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-btn:hover {
    transform: scale(1.05);
    border-color: rgba(255, 208, 0, 0.4);
    box-shadow: 0 6px 15px rgba(255, 208, 0, 0.15);
}

.profile-btn:active {
    transform: scale(0.96);
}

.profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-btn-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffd000, #ff8c00);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Auth Overlay — blurred backdrop + centered card */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
    box-sizing: border-box;
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Centered card modal */
.auth-modal {
    background: #0c0d10;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9);
    padding: 40px 32px;
    position: relative;
    transform: translateY(28px) scale(0.96);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    scrollbar-width: none;
}

.auth-overlay.active .auth-modal {
    transform: translateY(0) scale(1);
}

.auth-modal::-webkit-scrollbar { display: none; }

/* Back button in screens */
.auth-back-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s;
    margin-left: -10px;
    margin-bottom: 10px;
}

.auth-back-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    z-index: 100;
}

.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

/* Auth Screens */
.auth-screen {
    display: none;
    flex-direction: column;
    width: 100%;
    animation: authFadeIn 0.3s ease;
    box-sizing: border-box;
}

.auth-screen.active {
    display: flex;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Welcome Splash Animations ─────────────────────────────── */
/* Each element animates in sequentially for a cinematic intro */

#screenWelcome.active .auth-logo-large {
    animation: splashLogo 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.05s;
}

#screenWelcome.active .auth-welcome-container {
    animation: splashUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.22s;
}

#screenWelcome.active .auth-welcome-subtitle {
    animation: splashFade 0.55s ease both;
    animation-delay: 0.42s;
}

#screenWelcome.active .auth-tagline {
    animation: splashFade 0.45s ease both;
    animation-delay: 0.55s;
}

#screenWelcome.active #btnWelcomeGetStarted {
    animation: splashBtn 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.65s;
}

@keyframes splashLogo {
    from { opacity: 0; transform: translateY(-20px) scale(0.85); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

@keyframes splashUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes splashFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes splashBtn {
    from { opacity: 0; transform: translateY(20px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}


/* Welcome screen — logo top, content center, button bottom */
#screenWelcome {
    justify-content: space-between;
}

.auth-welcome-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    box-sizing: border-box;
}

.auth-welcome-title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.auth-welcome-title span {
    color: var(--accent-color);
}

.auth-welcome-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
    font-weight: 300;
}

.auth-welcome-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 8px;
    box-sizing: border-box;
}

.auth-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-bottom: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Logos & Titles */
.auth-logo-large {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.auth-logo-large span {
    color: var(--accent-color);
}

.auth-logo-small {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}
.auth-logo-small span {
    color: var(--accent-color);
}

.auth-screen-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    text-align: left;
}

/* Form Group Styles */
.auth-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.auth-group label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-modal input,
.auth-modal select {
    width: 100%;
    padding: 16px 24px;
    background: #141517;
    border: 1.5px solid #222327;
    border-radius: 30px !important;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.auth-modal input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-modal input:focus,
.auth-modal select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #161719;
    box-shadow: 0 0 12px rgba(255, 208, 0, 0.15);
}

.password-toggle-icon {
    position: absolute !important;
    right: 20px !important;
    cursor: pointer !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 16px !important;
    transition: color 0.2s !important;
    user-select: none !important;
    z-index: 10 !important;
}

.password-toggle-icon:hover {
    color: var(--accent-color) !important;
}

/* Checkboxes and options row */
.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 24px;
    font-size: 13px;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid #333;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    background: #141517;
    transition: all 0.2s;
}

.auth-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.auth-checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.auth-forgot-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: var(--accent-color);
}

/* Primary buttons */
.auth-pill-btn {
    width: 100%;
    padding: 16px;
    border-radius: 30px !important;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.auth-pill-btn.btn-primary {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 208, 0, 0.25);
}

.auth-pill-btn.btn-primary:hover {
    background: #ffdb33;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 208, 0, 0.35);
}

.auth-pill-btn.btn-primary:active {
    transform: translateY(0);
}

.auth-pill-btn.btn-primary:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Google Sign-in Button */
.google-btn {
    width: 100%;
    background: #141517;
    color: #fff;
    border: 1.5px solid #222327;
    padding: 14px;
    border-radius: 30px !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

.google-btn:hover {
    background: #1c1d20;
    border-color: rgba(255, 255, 255, 0.15);
}

.google-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Dividers */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
}

.auth-divider:not(:empty)::before { margin-right: 15px; }
.auth-divider:not(:empty)::after { margin-left: 15px; }

/* Notes & footers */
.auth-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.auth-footer-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 24px;
}

.auth-footer-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Alert Box */
.auth-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 8px;
    animation: authShake 0.4s ease;
    box-sizing: border-box;
}

@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}



/* Authenticated User Profile view */
.profile-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(255, 208, 0, 0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-large-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffd000, #ff8c00);
    color: #000;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.profile-actions-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.profile-action-btn-primary {
    background: rgba(255, 208, 0, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-action-btn-primary:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 208, 0, 0.2);
}

.profile-signout-btn {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-signout-btn:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* Watchlist styling in modal */
.profile-watchlist-section {
    width: 100%;
    text-align: left;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
}

.profile-watchlist-section h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.watchlist-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.watchlist-items-list::-webkit-scrollbar {
    width: 4px;
}
.watchlist-items-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.watchlist-item-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.watchlist-item-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.watchlist-item-img {
    width: 32px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.watchlist-item-info {
    flex: 1;
    overflow: hidden;
}

.watchlist-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.watchlist-item-category {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.watchlist-item-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watchlist-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.watchlist-empty {
    text-align: center;
    padding: 20px 0;
    color: var(--text-secondary);
    font-size: 12px;
    font-style: italic;
}

/* Save / Bookmark Button in post.html */
.watchlist-save-btn {
    transition: all 0.2s ease;
}

.watchlist-save-btn.saved {
    background: rgba(255, 208, 0, 0.1) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

.watchlist-save-btn.saved i {
    font-weight: 900 !important; /* solid icon */
}

/* Loading Spinner inside modal buttons */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btnSpinnerSpin 0.6s linear infinite;
}

@keyframes btnSpinnerSpin {
    to { transform: rotate(360deg); }
}

/* Admin Access Denied Page */
.access-denied-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: #0c0d10;
    text-align: center;
}

.access-denied-card {
    background: #16171a;
    border: 1px solid rgba(255, 68, 68, 0.15);
    padding: 40px 30px;
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.access-denied-icon {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 20px;
    background: rgba(239, 68, 68, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}



/* App-Specific Navigation Bar Layout Overrides */
body.in-app.home-page .bottom-nav {
    height: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

body.in-app.home-page .app-container {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Popularity Rank Styles */
.top-love-indicator {
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
}
.top-love-indicator:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.65);
}
.top-love-indicator:active {
    transform: scale(0.95);
}

.rank-current-status {
    background: linear-gradient(135deg, rgba(255, 208, 0, 0.15) 0%, rgba(255, 208, 0, 0.05) 100%);
    border: 1px solid rgba(255, 208, 0, 0.3);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(255, 208, 0, 0.05);
}

.rc-rank {
    font-size: 28px;
    font-weight: 800;
    color: #ffd000;
    text-shadow: 0 0 10px rgba(255, 208, 0, 0.3);
    font-family: 'Outfit', sans-serif;
}

.rc-details {
    display: flex;
    flex-direction: column;
}

.rc-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.rc-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.rank-explain-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.rank-explain-card h4, .rank-leaderboard-section h4 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
    margin-top: 0;
}

.rank-explain-card p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 6px 0;
}

.rank-explain-card p.telugu-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 8px;
    margin-top: 8px;
}

.rank-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 12px;
    transition: background 0.2s;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-item.is-current {
    background: rgba(255, 208, 0, 0.06);
    border-color: rgba(255, 208, 0, 0.15);
}

.li-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.li-rank {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    width: 24px;
    text-align: center;
}

.li-rank.top-1 { color: #ffd700; }
.li-rank.top-2 { color: #e5e5e5; }
.li-rank.top-3 { color: #cd7f32; }

.li-img {
    width: 32px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255,255,255,0.05);
}

.li-info {
    display: flex;
    flex-direction: column;
}

.li-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.li-loves {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.li-loves i {
    color: #ff3e6e;
}

/* Free Episodes Badges & Highlighting */
.card-badge.free-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 208, 0, 0.9); /* Native Yellow with high transparency */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #000; /* Contrast black text for premium readability */
    font-size: 8px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 3.5px;
    z-index: 2;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(255, 208, 0, 0.3);
    text-transform: uppercase;
}

.card-badge.free-badge i {
    font-size: 7px;
    color: #000;
}

.free-btn-active i {
    color: #ffd000 !important;
    text-shadow: 0 0 12px rgba(255, 208, 0, 0.7);
    animation: pulseIcon 1.5s infinite alternate;
}

.free-btn-active span {
    color: #ffd000 !important;
    font-weight: 700;
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Sidebar Download & Support items in Dark Mode (default styling) */
.sidebar-download-btn,
#appDonateBtnSidebar {
    color: #ffd000 !important;
    font-weight: 700 !important;
}
.sidebar-download-btn i,
#appDonateBtnSidebar i {
    color: #ffd000 !important;
}
.sidebar-badge {
    font-size: 9px;
    background: #ffd000;
    color: #000000;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 800;
    margin-left: 6px;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL LIGHT MODE OVERRIDES — applies to ALL pages (grid/listing pages)
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Body & Background --- */
body.light-mode {
    --bg-color: #f7f8fa !important;
    --text-primary: #111827 !important;
    --text-secondary: #4b5563 !important;
    --nav-bg: #ffffff !important;
    --card-bg: #ffffff !important;
    --accent-color: #1b3a70 !important;
    --accent-color-light: rgba(27, 58, 112, 0.05) !important;
    background-color: #f7f8fa !important;
    color: #111827 !important;
    background-image:
        radial-gradient(circle at -5% 45%, rgba(37, 99, 235, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 105% 5%, rgba(6, 182, 212, 0.02) 0%, transparent 25%),
        radial-gradient(circle at 105% 95%, rgba(99, 102, 241, 0.02) 0%, transparent 30%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
}


/* --- Top Navigation Header — same as dark mode (transparent, white icons) --- */
body.light-mode .top-nav {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
body.light-mode .top-nav.nav-scrolled {
    background: rgba(247, 248, 250, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
    padding: 10px 24px !important;
}
body.light-mode .top-nav .menu-btn {
    color: #111827 !important;
}
body.light-mode.home-page .top-nav:not(.nav-scrolled) .menu-btn,
body.light-mode.post-page-body .top-nav:not(.nav-scrolled) .menu-btn {
    color: #ffffff !important;
}
/* Nav icons & logo keep dark mode white colors — no black overrides */


/* --- Bottom Navigation --- */
body.light-mode .bottom-nav {
    background-color: #ffffff !important; /* Solid white background to prevent transparent bleed in app */
    border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04) !important;
}
body.light-mode .nav-item {
    color: #9ca3af !important;
}
body.light-mode .nav-item.active {
    color: var(--accent-color) !important;
}
body.light-mode .nav-item.active span {
    color: var(--accent-color) !important;
}
body.light-mode .active-indicator {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
}
body.light-mode .active-indicator i {
    color: #ffffff !important;
}

/* --- Back Button --- */
body.light-mode .back-btn {
    background-color: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* --- Grid Page Header --- */
body.light-mode .grid-header h1 {
    color: #111827 !important;
}

/* --- Cards (grid pages) --- */
body.light-mode .card-title {
    color: #111827 !important;
}
body.light-mode .platform,
body.light-mode .year,
body.light-mode .rating {
    color: #6b7280 !important;
}

body.light-mode #free-to-watch-scroller .platform,
body.light-mode #free-to-watch-scroller .year,
body.light-mode #free-to-watch-scroller .rating {
    background-color: var(--accent-color) !important; /* MAL Blue #2E51A2 */
    color: #ffffff !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}
body.light-mode .img-wrapper {
    background-color: #e5e7eb !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .card:hover .img-wrapper {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 0 15px rgba(27, 58, 112, 0.35) !important;
    border-color: rgba(27, 58, 112, 0.45) !important;
}

/* --- Content Row headers --- */
body.light-mode .row-header h2 {
    color: #111827 !important;
}
body.light-mode .more-btn {
    background-color: #ffffff !important;
    color: #4b5563 !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease !important;
}
body.light-mode .more-btn:hover {
    color: #111827 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}


/* --- Search Overlay (Light Mode) --- */
body.light-mode .search-overlay {
    background-color: #f7f8fa !important;
}
body.light-mode .search-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
body.light-mode .search-back-btn,
body.light-mode .search-mic-btn,
body.light-mode .search-clear-btn {
    color: #374151 !important;
}
body.light-mode .search-input-container {
    background: #f3f4f6 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 4px 12px !important;
}
body.light-mode #searchInput {
    background: transparent !important;
    color: #111827 !important;
    font-size: 16px !important;
}
body.light-mode #searchInput::placeholder {
    color: #9ca3af !important;
}
/* Results container — was dark #16171a */
body.light-mode .search-results-container {
    background-color: #f7f8fa !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}
/* Search result items */
body.light-mode .search-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    color: #111827 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
}
body.light-mode .search-item:hover {
    background: #f9fafb !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
/* Item text — was white #f0f0f0 */
body.light-mode .search-item span,
body.light-mode .search-item-title {
    color: #111827 !important;
}
body.light-mode .search-item-sub {
    color: #6b7280 !important;
}
/* Search suggestion chips */
body.light-mode .search-suggestion {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #374151 !important;
}
body.light-mode .search-suggestion:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}
body.light-mode .search-suggestion i {
    color: #9ca3af !important;
}
/* No results state */
body.light-mode .no-results {
    color: #6b7280 !important;
}
body.light-mode .no-results i {
    color: #d1d5db !important;
}

/* --- View More Card --- */
body.light-mode .view-more-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}
body.light-mode .view-more-card:hover .view-more-content {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .view-more-icon {
    background: #111827 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}
body.light-mode .view-more-text {
    color: #111827 !important;
}

/* --- Content Row on homepage --- */
body.light-mode .content-row {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- Browse Platform Pills section --- */
@media (min-width: 768px) {
    body.light-mode .browse-platform {
        border-left: 1px solid rgba(0, 0, 0, 0.07) !important;
    }
}
body.light-mode .browse-platform h2 {
    color: #111827 !important;
}
body.light-mode .browse-platform h2 span {
    color: #6b7280 !important;
}
body.light-mode .platform-pill {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    color: #374151 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
body.light-mode .platform-pill:hover,
body.light-mode .platform-pill.active {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #111827 !important;
}

/* --- Preloader --- */
body.light-mode .preloader {
    background-color: #ffffff !important;
}
body.light-mode .preloader .loader-logo {
    color: #111827 !important;
}

/* --- Icon button (generic) --- */
body.light-mode .icon-btn {
    color: #111827 !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   POST PAGE — LIGHT MODE OVERRIDES (Card Layout)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Body background */
body.light-mode.post-page-body {
    background-color: #f7f8fa !important;
}

/* ── Hero → Index-page style (full bleed + dark gradient + overlaid title) ── */
.post-hero,
body.light-mode .post-hero {
    height: 65vh !important;
    min-height: 400px !important;
    padding: 0 !important;
    background: transparent !important;
    display: block !important;
    align-items: unset !important;
}

@media (min-width: 768px) {
    .post-hero,
    body.light-mode .post-hero {
        height: 78vh !important;
        min-height: 520px !important;
    }
}

.post-cover,
body.light-mode .post-cover {
    width: 100% !important;
    max-width: unset !important;
    height: 100% !important;
    aspect-ratio: unset !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: none !important;
    background: #000000 !important;
}

body.light-mode .post-cover img,
.post-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top;
    border-radius: 0 !important;
}

/* Dark gradient at bottom so white title text is readable — fades to background */
.post-gradient {
    display: block !important;
    background: linear-gradient(
        to top,
        #0f0f0f                   0%,
        rgba(15, 15, 15, 0.90)    18%,
        rgba(15, 15, 15, 0.60)    45%,
        rgba(15, 15, 15, 0.20)    72%,
        transparent               100%
    ) !important;
    height: 90% !important;
}

body.light-mode .post-gradient {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 1)          0%,
        rgba(0, 0, 0, 0.90)       18%,
        rgba(0, 0, 0, 0.60)       45%,
        rgba(0, 0, 0, 0.20)       72%,
        transparent               100%
    ) !important;
}

/* Hide floating trailer from hero */
.trailer-btn-wrapper {
    display: none !important;
}

/* ════════════════════════════════════════════════════
   POST-HERO OVERLAY  (Both light & dark modes)
   Single overlay div at the bottom of the hero image
   contains: prefix → Bold Title JP → meta → rating+studio
   No negative margins, no overlaps.
   ════════════════════════════════════════════════════ */

/* Show as column at the bottom of the hero gradient, pushed up for rounded details card */
.post-hero-overlay {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    position: absolute !important;
    bottom: 35px !important;
    left: 0 !important;
    right: 0 !important;
    padding: 16px 22px 14px !important;
    z-index: 40 !important;
    gap: 4px !important;
    pointer-events: none !important;
}

/* Italic prefix line (e.g. "The" or first half of long title) */
.pho-prefix {
    font-size: 13px !important;
    font-style: italic !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.70) !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7) !important;
    line-height: 1.2 !important;
    display: block !important;
}

/* Bold title + JP badge row */
.pho-title-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}
.pho-main {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 12px rgba(0,0,0,0.8) !important;
    letter-spacing: -0.2px !important;
    line-height: 1.1 !important;
}
.pho-badge {
    font-size: 9px !important;
    font-weight: 800 !important;
    color: rgba(255,255,255,0.60) !important;
    border: 1px solid rgba(255,255,255,0.38) !important;
    border-radius: 3px !important;
    padding: 2px 4px !important;
    letter-spacing: 0.8px !important;
    line-height: 1 !important;
    align-self: center !important;
}

/* Pipe-separated meta line */
.pho-meta {
    font-size: 10.5px !important;
    color: rgba(255,255,255,0.68) !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6) !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

/* Bottom bar: rating (left) + studio (right) */
.pho-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-top: 4px !important;
}
.pho-rating {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6) !important;
}
.pho-star {
    color: #f5c518 !important;
    font-size: 13px !important;
}
.pho-studio {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,0.82) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6) !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.pho-grid {
    color: rgba(255,255,255,0.45) !important;
    font-size: 14px !important;
}

/* ════════════════════════════════════════════════════
   POST-DETAILS  — clean overlay section below hero
   NO negative margin, title/meta hidden (shown in overlay)
   ════════════════════════════════════════════════════ */
.post-details {
    margin-top: -35px !important;
    border-radius: 32px 32px 0 0 !important;
    padding-top: 30px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    background: #0f0f0f !important;
    position: relative !important;
    z-index: 50 !important;
    text-align: left !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3) !important;
}

body.light-mode .post-details {
    background: #ffffff !important;
    box-shadow: none !important;
}

/* Hide original title + meta (now shown inside the hero overlay) */
.post-details .post-title {
    display: none !important;
}
.post-details .post-meta {
    display: none !important;
}

/* Description — clean text, good spacing */
.post-description {
    margin-top: 0 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

body.light-mode .post-description {
    color: #374151 !important;
}

body.light-mode .post-top-actions {
    top: 40px !important;
    z-index: 200 !important;
}
body.light-mode .post-action-btn {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.light-mode .top-love-indicator {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.light-mode .top-love-indicator i {
    color: #ff4757 !important;
}
body.light-mode .top-love-indicator span {
    color: #374151 !important;
    font-weight: 600 !important;
}


/* ── Button arrangement: Watch (full) → Guide + Trailer side-by-side ── */
body.light-mode .post-primary-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* WHERE TO WATCH — full width, solid black pill */
body.light-mode .post-primary-btn {
    width: 100% !important;
    background: #111827 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 15px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    box-shadow: none !important;
    border: none !important;
}
body.light-mode .post-primary-btn:active {
    transform: scale(0.98) !important;
    box-shadow: none !important;
}

/* GUIDE — light bordered pill, flex sibling with Trailer */
body.light-mode .post-text-btn {
    flex: 1 !important;
    background: #ffffff !important;
    color: #111827 !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 50px !important;
    padding: 13px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

/* Secondary row (Guide + Trailer) — visible in all modes */
.post-secondary-row {
    display: flex;
    gap: 10px;
    width: 100%;
}
.post-secondary-row .post-text-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Show side-by-side in light mode */
body.light-mode .post-secondary-row {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
}
body.light-mode .post-secondary-row .post-text-btn {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* In light mode, hide the original standalone Guide button (it's now in the row) */
body.light-mode #guideBtn {
    /* stays inside .post-secondary-row — no hide needed */
}

/* Engagement row */
body.light-mode .post-engagement-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .eng-item {
    color: #374151 !important;
}
body.light-mode .eng-item i {
    color: #374151 !important;
}
body.light-mode .eng-item svg path {
    stroke: #374151 !important;
}

/* Sections */
body.light-mode .post-section {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .post-section h2 {
    color: #111827 !important;
}
body.light-mode .post-section h2::after {
    background: #111827 !important;
}

/* Season chips */
body.light-mode .season-chip {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #374151 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .season-chip.active {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #111827 !important;
}

/* Rating boxes */
body.light-mode .rating-box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: none !important;
}
body.light-mode .rating-score {
    color: #111827 !important;
}
body.light-mode .rating-score small {
    color: #9ca3af !important;
}
body.light-mode .rx-icon {
    color: #9ca3af !important;
}

/* Cast cards */
body.light-mode .cast-row-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: none !important;
}
body.light-mode .cast-person-name {
    color: #111827 !important;
}
body.light-mode .cast-person-role,
body.light-mode .cast-char-studio {
    color: #9ca3af !important;
}
body.light-mode .cast-char-name {
    color: #374151 !important;
}

/* Info grid */
body.light-mode .info-label {
    color: #9ca3af !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}
body.light-mode .info-value {
    color: #111827 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* Countdown */
body.light-mode .countdown-container {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
    border-radius: 16px !important;
}

body.light-mode .countdown-platform {
    color: #9ca3af !important;
}
body.light-mode .flip-number {
    color: #111827 !important;
}
body.light-mode .flip-unit small {
    color: #9ca3af !important;
}
body.light-mode .countdown-footer {
    color: #9ca3af !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Bottom sheets */
body.light-mode .services-overlay {
    background: rgba(0, 0, 0, 0.25) !important;
}
body.light-mode .services-sheet {
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: none !important;
}
body.light-mode .sheet-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
}
body.light-mode .sheet-header h3 {
    color: #111827 !important;
}
body.light-mode .sheet-close-btn {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}
body.light-mode .sheet-close-btn:hover {
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: none !important;
}

/* Service cards in sheets */
body.light-mode .service-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}
body.light-mode .service-card:hover {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: none !important;
}

body.light-mode .sc-name {
    color: #111827 !important;
}
body.light-mode .sc-action {
    color: #6b7280 !important;
}

/* Post footer */
body.light-mode .post-footer {
    background: #ffffff !important; /* Pure white background to match dark mode layout */
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 60px 24px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

body.light-mode .footer-data-sharing h4 {
    color: #111827 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    text-align: center !important;
}

body.light-mode .footer-data-sharing h4::before,
body.light-mode .footer-data-sharing h4::after {
    content: "" !important;
    height: 1px !important;
    width: 40px !important;
    background: linear-gradient(to var(--dir, right), transparent, rgba(46, 81, 162, 0.35)) !important;
}

body.light-mode .footer-data-sharing p {
    color: #4b5563 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    text-align: center !important;
}



/* Trailer button on hero (keep white since hero bg is dark) */
body.light-mode .trailer-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(12px) !important;
}

/* Guide sheet text */
body.light-mode .guide-h2 {
    color: #111827 !important;
}
body.light-mode .guide-p {
    color: #4b5563 !important;
}
body.light-mode .guide-caption {
    color: #9ca3af !important;
}

/* Artist detail full-screen modal */
body.light-mode .trailers-page {
    background: #f7f8fa !important;
}
body.light-mode .trailers-header {
    background: #f7f8fa !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .trailers-header h3 {
    color: #111827 !important;
}
body.light-mode .close-trailers-btn {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease !important;
}
body.light-mode .close-trailers-btn:hover {
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}
body.light-mode .artist-anime-title {
    color: #374151 !important;
}
body.light-mode .ai-box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    border-radius: 12px !important;
}
body.light-mode .ai-label {
    color: #6b7280 !important;
}
body.light-mode .ai-value {
    color: #111827 !important;
}

body.light-mode .artist-extra-info h4 {
    color: #374151 !important;
}
body.light-mode .artist-extra-info p {
    color: #6b7280 !important;
}

/* Custom Radial Ratings Gauge */
.custom-rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 15px;
    padding: 0 24px;
    box-sizing: border-box;
}

.rating-gauge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
}

.rating-gauge-svg-box {
    position: relative;
    width: 100%;
    max-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rating-gauge-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Background tracks & fill */
.gauge-bg-arc {
    stroke: rgba(255, 255, 255, 0.06);
}

.gauge-fill-arc {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-dot-track {
    stroke: rgba(255, 255, 255, 0.15);
}

/* Gauge Score Info */
.gauge-score-info {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-score-value {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    letter-spacing: -0.5px;
}

.gauge-score-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

/* Sub-cards styling */
.rating-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.rating-sub-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rating-sub-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.08);
}

.sub-card-icon-wrapper {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.sub-card-logo {
    font-size: 10px;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1;
}

.imdb-sub-logo {
    background-color: #f5c518;
    color: #000000;
    letter-spacing: -0.2px;
}

.mal-sub-logo {
    background-color: #2e51a2;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.tadb-card-icon {
    font-size: 15px;
    color: #ff3e6e;
    filter: drop-shadow(0 0 5px rgba(255, 62, 110, 0.3));
}

.sub-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.sub-card-label {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Light mode overrides */
body.light-mode .gauge-bg-arc {
    stroke: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .gauge-dot-track {
    stroke: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .gauge-score-value {
    color: #111827 !important;
}

body.light-mode .gauge-score-label {
    color: rgba(0, 0, 0, 0.4) !important;
}

body.light-mode .rating-sub-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .rating-sub-card:hover {
    background-color: #f9fafb !important;
    border-color: rgba(0, 0, 0, 0.09) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .sub-card-value {
    color: #111827 !important;
}

body.light-mode .sub-card-label {
    color: rgba(0, 0, 0, 0.4) !important;
}

/* Remove decorative borders & lines around the Ratings section */
.ratings-section {
    border-top: none !important;
}

body.light-mode .ratings-section {
    border-top: none !important;
}

body.light-mode .ratings-section + .post-section {
    border-top: none !important;
}

/* --- Light Mode Empty State Redesign --- */
body.light-mode .empty-state {
    background-color: #ffffff !important;
    border: 1px dashed rgba(0, 0, 0, 0.12) !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02) !important;
    padding: 48px 32px !important;
}

body.light-mode .empty-state::before {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.01) 0%, transparent 70%) !important;
}

body.light-mode .empty-icon-shield {
    background: #f9fafb !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .empty-icon-shield i {
    color: #4b5563 !important;
    opacity: 0.9 !important;
}

body.light-mode .empty-text {
    color: #111827 !important;
    font-weight: 700 !important;
}

body.light-mode .empty-subtext {
    color: #6b7280 !important;
    opacity: 0.95 !important;
}

/* Fallback overrides for other inline-styled empty states */
body.light-mode .empty-state h2 {
    color: #111827 !important;
}

body.light-mode .empty-state p {
    color: #6b7280 !important;
}

body.light-mode .empty-state i {
    color: #4b5563 !important;
}

/* --- Light Mode More Info Section Redesign --- */
body.light-mode .info-grid {
    gap: 0 16px !important; /* Eliminate vertical gap to align dividers perfectly */
}

body.light-mode .info-label {
    color: #4b5563 !important; /* Clear dark grey readability */
    font-weight: 500 !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .info-value {
    color: #111827 !important;
    font-weight: 600 !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .info-value small {
    color: #6b7280 !important;
}

/* Studio Link in Light Mode */
body.light-mode .studio-link {
    color: #2563eb !important; /* Elegant blue highlight accent link */
    border-bottom: 1px dashed rgba(37, 99, 235, 0.4) !important;
    font-weight: 600 !important;
}

body.light-mode .studio-link:hover {
    color: #1d4ed8 !important;
    border-bottom-color: rgba(29, 78, 216, 0.8) !important;
    border-bottom-style: solid !important;
}

/* Schedule / Telugu Release Dates Scroller in Light Mode */
body.light-mode #scheduleScroller {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-bottom: 24px !important;
    margin-bottom: 14px !important;
}

body.light-mode #scheduleScroller > span {
    color: #4b5563 !important; /* Visible clean label */
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
}

/* Schedule Card in Light Mode */
body.light-mode .schedule-card {
    background: #ffffff !important; /* Clean solid matte white card */
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    padding: 12px !important;
}

body.light-mode .schedule-card:hover {
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

/* --- Sidebar Drawer Light Mode Overrides (Global) --- */
body.light-mode .sidebar-menu {
    background: #ffffff !important;
    border-right: 1px solid #f3f4f6 !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.03) !important;
}
body.light-mode .sidebar-header {
    border-bottom: 1px solid #f3f4f6 !important;
}
body.light-mode .sidebar-header .logo span {
    color: #111827 !important;
    font-weight: 700 !important;
    text-transform: lowercase !important;
}
body.light-mode .sidebar-header .logo span strong {
    display: none !important;
}
body.light-mode .sidebar-download-btn,
body.light-mode #appDonateBtnSidebar {
    color: #111827 !important;
    font-weight: 600 !important;
}
body.light-mode .sidebar-download-btn i,
body.light-mode #appDonateBtnSidebar i {
    color: #111827 !important;
}
body.light-mode .sidebar-badge {
    background: #111827 !important;
    color: #ffffff !important;
}
body.light-mode .sidebar-header .logo::before {
    display: none !important;
}
body.light-mode .sidebar-link i.fa-trophy {
    color: #9ca3af !important;
}
body.light-mode .sidebar-close-btn {
    color: #111827 !important;
}
body.light-mode .sidebar-link {
    color: #4b5563 !important;
    font-weight: 500 !important;
}
body.light-mode .sidebar-link i {
    color: #9ca3af !important;
}
body.light-mode .sidebar-link:hover, 
body.light-mode .sidebar-link.active {
    background: #f3f4f6 !important;
    color: var(--accent-color) !important; /* MAL Blue */
    border-left: 4px solid var(--accent-color) !important;
}
body.light-mode .sidebar-link:hover i, 
body.light-mode .sidebar-link.active i {
    color: var(--accent-color) !important;
}
body.light-mode .sidebar-divider {
    background: #f3f4f6 !important;
    height: 1px !important;
}
body.light-mode .sidebar-footer p,
body.light-mode .sidebar-socials a {
    color: #9ca3af !important;
}
body.light-mode .sidebar-socials a:hover {
    color: #111827 !important;
}

/* Schedules Page Light Mode Overrides */
body.light-mode.grid-page .schedule-header h1 {
    color: #111827 !important;
}
body.light-mode.grid-page .schedule-header p {
    color: #4b5563 !important;
}
body.light-mode .day-title {
    color: var(--accent-color) !important; /* MAL Blue */
}
body.light-mode .day-title::after {
    background: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .sc-platform-label {
    color: #6b7280 !important;
}
body.light-mode .sc-status-yellow {
    color: #b45309 !important; /* Dark orange/yellow */
}
body.light-mode .sc-title {
    color: #111827 !important;
}
body.light-mode .timer-val {
    color: var(--accent-color) !important; /* MAL Blue countdown */
}
body.light-mode .timer-label {
    color: #6b7280 !important;
}
body.light-mode .sc-footer-info {
    color: #4b5563 !important;
}
body.light-mode .sc-footer-info span {
    color: #111827 !important;
    opacity: 0.9 !important;
}

body.light-mode .sc-platform-name {
    color: #111827 !important; /* Dark text for readability */
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.light-mode .sc-release-value {
    color: #4b5563 !important; /* Darker release date text */
    font-size: 11px !important;
    font-weight: 500 !important;
}

body.light-mode .sc-status-badge {
    background-color: #fef3c7 !important; /* Soft yellow/amber background */
    color: #b45309 !important; /* Dark amber text for clear contrast */
    border: 1px solid rgba(217, 119, 6, 0.12) !important;
    border-radius: 3px !important;
}

body.light-mode .sc-platform-icon i {
    color: #4b5563 !important;
}



/* ═══════════════════════════════════════════════════════════════════
   MYANIMELIST BRAND THEME SYSTEM — Light Mode
   Applies a fixed, high-contrast MyAnimeList light theme palette:
   - Primary/Accent Blue: #2E51A2
   - Ambient Canvas: #f7f8fa
   - Foreground Cards: #ffffff
   - Main Text: #1a1a1a
   - Subtext: #666666
   ═══════════════════════════════════════════════════════════════════ */

/* ── Details Card: clean MAL blue top border ── */
body.light-mode .post-details {
    background: #ffffff !important;
    border-top: none !important;
    box-shadow: inset 0 3.5px 0 #2E51A2, 0 -10px 30px rgba(0, 0, 0, 0.08) !important;
}

/* ── "Where to Watch" button: MAL Brand Blue ── */
body.light-mode #primaryWatchBtn {
    background: #2E51A2 !important;
    color: #ffffff !important;
    box-shadow: 
        0 6px 20px rgba(46, 81, 162, 0.22),
        0 2px 8px rgba(46, 81, 162, 0.1) !important;
    border: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease !important;
}
body.light-mode #primaryWatchBtn:hover {
    background: #1f3b7c !important;
    box-shadow: 0 8px 24px rgba(46, 81, 162, 0.32) !important;
}
body.light-mode #primaryWatchBtn:active {
    transform: scale(0.97) !important;
    box-shadow: 0 3px 12px rgba(46, 81, 162, 0.15) !important;
}

/* ── Secondary row buttons: MAL accent border ── */
body.light-mode .post-secondary-row .post-text-btn,
body.light-mode #guideBtn {
    border: 1.5px solid #2E51A2 !important;
    color: #2E51A2 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}
body.light-mode .post-secondary-row .post-text-btn i,
body.light-mode #guideBtn i {
    color: #2E51A2 !important;
}
body.light-mode .post-secondary-row .post-text-btn:hover,
body.light-mode .post-secondary-row .post-text-btn:active,
body.light-mode #guideBtn:hover,
body.light-mode #guideBtn:active {
    background: rgba(46, 81, 162, 0.06) !important;
    border-color: #1f3b7c !important;
    color: #1f3b7c !important;
}

/* ── Section headings: subtle left border accent in MAL blue ── */
body.light-mode .post-section > h2,
body.light-mode .post-section .row-header h2 {
    border-left: 3.5px solid #2E51A2 !important;
    padding-left: 10px !important;
    color: #1a1a1a !important;
}
body.light-mode .post-section h2::after {
    display: none !important; /* Hide default bottom bar line */
}

/* ── Rating gauge arc — MAL blue fill stroke ── */
body.light-mode .gauge-fill-arc {
    stroke: #2E51A2 !important;
}

/* ── Season chips — MAL blue when active ── */
body.light-mode .season-chip.active {
    background: #2E51A2 !important;
    color: #ffffff !important;
    border-color: #2E51A2 !important;
}

/* ── Cast character studio label ── */
body.light-mode .cast-char-studio {
    color: #2E51A2 !important;
}

/* ── More info labels & Studio Link ── */
body.light-mode .info-label {
    color: #666666 !important;
}
body.light-mode .studio-link {
    color: #2E51A2 !important;
    border-bottom: 1px dashed rgba(46, 81, 162, 0.5) !important;
}
body.light-mode .studio-link:hover {
    color: #1f3b7c !important;
    border-bottom-color: #1f3b7c !important;
}

/* ── Engagement row active icon ── */
body.light-mode .eng-item i {
    color: #2E51A2 !important;
}
body.light-mode .free-btn-active i {
    color: #2E51A2 !important;
    text-shadow: none !important;
}
body.light-mode .free-btn-active span {
    color: #2E51A2 !important;
}

/* ── Rating sub-cards: chip highlight on hover ── */
body.light-mode .rating-sub-card:hover {
    border-color: #2E51A2 !important;
    box-shadow: 0 4px 16px rgba(46, 81, 162, 0.08) !important;
}

/* ── Service cards in "Where to Watch" sheet ── */
body.light-mode .service-card {
    border-left: 3px solid #2E51A2 !important;
}

/* ── Comments / Discussion Section Light Mode Overrides ── */
body.light-mode .comments-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .comments-section h2 {
    color: #1a1a1a !important;
    border-left: 3.5px solid #2E51A2 !important;
    padding-left: 10px !important;
    margin-bottom: 24px !important;
}

body.light-mode .comment-refresh-btn-header {
    color: #6b7280 !important;
}

body.light-mode .comment-refresh-btn-header:hover {
    color: #2E51A2 !important;
    background: rgba(46, 81, 162, 0.08) !important;
}

body.light-mode .comment-input-area {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02) !important;
}

body.light-mode .comments-login-cta i {
    color: #2E51A2 !important;
}

body.light-mode .comments-login-cta p {
    color: #4b5563 !important;
    font-weight: 500 !important;
}

body.light-mode .comments-login-btn {
    background: #2E51A2 !important;
    border: 1px solid #2E51A2 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(46, 81, 162, 0.18) !important;
    transition: all 0.2s ease !important;
}

body.light-mode .comments-login-btn:hover {
    background: #1f3b7c !important;
    border-color: #1f3b7c !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(46, 81, 162, 0.28) !important;
}

body.light-mode .comment-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

body.light-mode .reply-card {
    background: #f9fafb !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: none !important;
}

body.light-mode .comment-author-name {
    color: #111827 !important;
}

body.light-mode .comment-time {
    color: #9ca3af !important;
}

body.light-mode .comment-card-body {
    color: #374151 !important;
}

body.light-mode .comment-reply-btn {
    color: #6b7280 !important;
}

body.light-mode .comment-reply-btn:hover {
    background: rgba(46, 81, 162, 0.06) !important;
    color: #2E51A2 !important;
}

body.light-mode .comment-delete-btn {
    color: #9ca3af !important;
}

body.light-mode .comment-delete-btn:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
}

body.light-mode .comment-admin-badge {
    background: rgba(46, 81, 162, 0.08) !important;
    color: #2E51A2 !important;
    border-color: rgba(46, 81, 162, 0.2) !important;
}

body.light-mode .comments-empty-state {
    color: #6b7280 !important;
}

body.light-mode .comment-replies-wrapper {
    border-left: 2px solid rgba(46, 81, 162, 0.15) !important;
}

body.light-mode .reply-form-container {
    background: #f9fafb !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .comment-textarea,
body.light-mode .reply-textarea {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
}

body.light-mode .comment-textarea:focus,
body.light-mode .reply-textarea:focus {
    border-color: #2E51A2 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(46, 81, 162, 0.15) !important;
}

body.light-mode .comment-char-counter {
    color: #6b7280 !important;
}

body.light-mode .comment-submit-btn,
body.light-mode .reply-submit-btn {
    background: #2E51A2 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(46, 81, 162, 0.18) !important;
}

body.light-mode .comment-submit-btn:hover,
body.light-mode .reply-submit-btn:hover {
    background: #1f3b7c !important;
}

body.light-mode .comment-submit-btn:disabled,
body.light-mode .reply-submit-btn:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    box-shadow: none !important;
}

body.light-mode .reply-cancel-btn {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
}

body.light-mode .reply-cancel-btn:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
}

body.light-mode .comment-avatar-wrapper {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .comment-avatar-placeholder {
    background: linear-gradient(135deg, #4f74c8, #2E51A2) !important;
    color: #ffffff !important;
}

/* --- Watchlist Modal (My List Sheet) Light Mode Matte Overrides --- */
body.light-mode .services-sheet {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .services-sheet h3 {
    color: #111827 !important;
}

body.light-mode .sheet-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .sheet-close-btn {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .sheet-close-btn:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
}

body.light-mode .mylist-info-box {
    background: #f9fafb !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode #mylistAnimeTitle {
    color: #111827 !important;
}

body.light-mode .mylist-info-box span {
    color: #2E51A2 !important;
}

body.light-mode .auth-group label {
    color: #4b5563 !important;
}

/* Form inputs styling inside watchlist sheet */
body.light-mode .auth-input-wrapper select,
body.light-mode .auth-input-wrapper input[type="date"],
body.light-mode .auth-input-wrapper input[type="number"],
body.light-mode .mylist-season-ep-input {
    background: #f9fafb !important;
    border: 1.5px solid #d1d5db !important;
    color: #111827 !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
}

body.light-mode .auth-input-wrapper select:focus,
body.light-mode .auth-input-wrapper input[type="date"]:focus,
body.light-mode .auth-input-wrapper input[type="number"]:focus,
body.light-mode .mylist-season-ep-input:focus {
    background: #ffffff !important;
    border-color: #2E51A2 !important;
    box-shadow: 0 0 0 3px rgba(46, 81, 162, 0.1) !important;
    outline: none !important;
}

body.light-mode .auth-input-wrapper > i:not(.password-toggle-icon) {
    color: #4b5563 !important;
}

body.light-mode .auth-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0) !important;
    opacity: 0.6 !important;
}

body.light-mode #mylistTotalEpisodes {
    color: #6b7280 !important;
}

body.light-mode .season-input-row {
    background: #f9fafb !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .season-input-row > span {
    color: #111827 !important;
}

body.light-mode .season-input-row div > span {
    color: #6b7280 !important;
}

body.light-mode #mylistSeasonsGroup label {
    color: #4b5563 !important;
}

/* Custom dropdown style overrides inside the watchlist popup */
body.light-mode .custom-dropdown-trigger {
    background: #f9fafb !important;
    border: 1.5px solid #d1d5db !important;
    color: #111827 !important;
}

body.light-mode .custom-dropdown-trigger:hover,
body.light-mode .custom-dropdown-container.open .custom-dropdown-trigger {
    background: #ffffff !important;
    border-color: #2E51A2 !important;
    box-shadow: 0 0 0 3px rgba(46, 81, 162, 0.1) !important;
}

body.light-mode .custom-dropdown-trigger i.icon-left,
body.light-mode .custom-dropdown-trigger i.icon-arrow {
    color: #4b5563 !important;
}

body.light-mode .custom-dropdown-container.open .custom-dropdown-trigger i.icon-arrow {
    color: #2E51A2 !important;
}

body.light-mode .custom-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .custom-dropdown-option {
    color: #374151 !important;
}

body.light-mode .custom-dropdown-option i {
    color: #6b7280 !important;
}

body.light-mode .custom-dropdown-option:hover {
    background: rgba(46, 81, 162, 0.06) !important;
    color: #2E51A2 !important;
}

body.light-mode .custom-dropdown-option:hover i {
    color: #2E51A2 !important;
}

body.light-mode .custom-dropdown-option.selected {
    background: rgba(46, 81, 162, 0.1) !important;
    color: #2E51A2 !important;
}

body.light-mode .custom-dropdown-option.selected i {
    color: #2E51A2 !important;
}

/* Small dropdown overrides */
body.light-mode .custom-dropdown-trigger-small {
    background: #f9fafb !important;
    border: 1.5px solid #d1d5db !important;
    color: #111827 !important;
}

body.light-mode .custom-dropdown-trigger-small:hover,
body.light-mode .custom-dropdown-container-small.open .custom-dropdown-trigger-small {
    border-color: #2E51A2 !important;
    box-shadow: 0 0 0 3px rgba(46, 81, 162, 0.1) !important;
}

body.light-mode .custom-dropdown-menu-small {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .custom-dropdown-option-small {
    color: #374151 !important;
}

body.light-mode .custom-dropdown-option-small:hover {
    background: rgba(46, 81, 162, 0.06) !important;
    color: #2E51A2 !important;
}

body.light-mode .custom-dropdown-option-small.selected {
    background: rgba(46, 81, 162, 0.1) !important;
    color: #2E51A2 !important;
}

/* Save / Remove buttons */
body.light-mode .auth-submit-btn {
    background: #2E51A2 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}

body.light-mode .auth-submit-btn:hover {
    background: #1f3b7c !important;
}

body.light-mode #btnRemoveFromMylist {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    box-shadow: none !important;
}

body.light-mode #btnRemoveFromMylist:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

/* Global scrollbar overrides for light mode (MAL Theme) */
html:has(body.light-mode) ::-webkit-scrollbar-track,
body.light-mode ::-webkit-scrollbar-track {
    background: #f7f8fa !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
}

html:has(body.light-mode) ::-webkit-scrollbar-thumb,
body.light-mode ::-webkit-scrollbar-thumb {
    background: #b9c4db !important; /* Soft MAL Blue-grey */
    border-radius: 10px !important;
}

html:has(body.light-mode) ::-webkit-scrollbar-thumb:hover,
body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: #2e51a2 !important; /* Active MAL brand blue */
}

html:has(body.light-mode) ::-webkit-scrollbar-button,
body.light-mode ::-webkit-scrollbar-button {
    display: none !important;
}

body.light-mode html {
    scrollbar-color: #b9c4db #f7f8fa !important;
}

/* Leaderboard list specific scrollbar overrides */
body.light-mode .leaderboard-list::-webkit-scrollbar {
    width: 6px !important;
}
body.light-mode .leaderboard-list::-webkit-scrollbar-track {
    background: #f1f3f7 !important;
    border-radius: 10px !important;
    border-left: none !important;
}
body.light-mode .leaderboard-list::-webkit-scrollbar-thumb {
    background: #2e51a2 !important; /* MAL brand blue */
    border-radius: 10px !important;
}
body.light-mode .leaderboard-list::-webkit-scrollbar-thumb:hover {
    background: #1e3d7d !important;
}
body.light-mode .leaderboard-list::-webkit-scrollbar-button {
    display: none !important;
}


/* --- Popularity Rank Board Light Mode Overrides (MAL Style) --- */
body.light-mode .rank-current-status {
    background: linear-gradient(135deg, rgba(46, 81, 162, 0.08) 0%, rgba(46, 81, 162, 0.03) 100%) !important;
    border: 1px solid rgba(46, 81, 162, 0.18) !important;
    box-shadow: 0 8px 24px rgba(46, 81, 162, 0.03) !important;
}

body.light-mode .rc-rank {
    color: #2E51A2 !important;
    text-shadow: none !important;
}

body.light-mode .rc-title {
    color: #111827 !important;
}

body.light-mode .rc-count {
    color: #4b5563 !important;
}

body.light-mode .rank-explain-card {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .rank-explain-card h4, 
body.light-mode .rank-leaderboard-section h4 {
    color: #4b5563 !important;
}

body.light-mode .rank-explain-card p {
    color: #374151 !important;
}

body.light-mode .rank-explain-card p.telugu-text {
    color: #4b5563 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .leaderboard-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .leaderboard-item:hover {
    background: #f9fafb !important;
}

body.light-mode .leaderboard-item.is-current {
    background: rgba(46, 81, 162, 0.06) !important;
    border-color: rgba(46, 81, 162, 0.25) !important;
}

body.light-mode .li-rank {
    color: #4b5563 !important;
}

body.light-mode .li-title {
    color: #111827 !important;
}

body.light-mode .li-loves {
    color: #6b7280 !important;
}

body.light-mode .leaderboard-item .li-current-badge {
    background: rgba(46, 81, 162, 0.12) !important;
    color: #2E51A2 !important;
}

body.light-mode .services-sheet::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .services-sheet::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 10px !important;
}

body.light-mode .services-sheet::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* --- Voice Cast & Crew Badge Light Mode Overrides (MAL Style) --- */
body.light-mode .cast-rank-badge {
    text-shadow: none !important;
}
body.light-mode .cast-rank-badge.rank-badge-1 {
    background: rgba(46, 81, 162, 0.12) !important; /* MAL Blue Tint */
    color: #2E51A2 !important;
    border: 1px solid rgba(46, 81, 162, 0.25) !important;
}
body.light-mode .cast-rank-badge.rank-badge-1 i {
    color: #d97706 !important; /* Warm gold */
}
body.light-mode .cast-rank-badge.rank-badge-2 {
    background: rgba(75, 85, 99, 0.12) !important; /* Silver/Gray Tint */
    color: #4b5563 !important;
    border: 1px solid rgba(75, 85, 99, 0.25) !important;
}
body.light-mode .cast-rank-badge.rank-badge-2 i {
    color: #4b5563 !important;
}
body.light-mode .cast-rank-badge.rank-badge-3 {
    background: rgba(180, 83, 9, 0.12) !important; /* Bronze/Amber Tint */
    color: #b45309 !important;
    border: 1px solid rgba(180, 83, 9, 0.25) !important;
}
body.light-mode .cast-rank-badge.rank-badge-3 i {
    color: #b45309 !important;
}
body.light-mode .cast-rank-badge.rank-badge-other {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #4b5563 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* --- Artist Details Card Popup Light Mode Overrides (MAL Style) --- */
body.light-mode .compare-item img {
    border: 2px solid rgba(46, 81, 162, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .compare-item span {
    color: #111827 !important;
}
body.light-mode .compare-x {
    color: #6b7280 !important;
    opacity: 0.7 !important;
}
body.light-mode .artist-anime-title {
    color: #2E51A2 !important;
    font-weight: 800 !important;
}
body.light-mode .artist-extra-info {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}
body.light-mode #detailPlatform {
    color: #2E51A2 !important; /* Override inline platform color to MAL Blue */
}
body.light-mode #artistRankExplainCard h4 {
    color: #111827 !important;
}
body.light-mode #artistRankExplainCard p {
    color: #374151 !important;
}
body.light-mode #artistRankExplainCard p b,
body.light-mode #artistRankExplainCard p strong {
    color: #111827 !important;
}
body.light-mode #artistRankExplainCard b[style*="color"],
body.light-mode #artistRankExplainCard strong[style*="color"] {
    color: #2E51A2 !important; /* Override dynamic inline yellow text to MAL Blue */
}
body.light-mode #artistRankExplainCard p:nth-of-type(2) {
    color: #4b5563 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.light-mode #viewFullLeaderboardLink {
    color: #2E51A2 !important;
}

/* --- Light Mode Top Navigation Logo Color Overrides (MAL Style) --- */
body.light-mode .top-nav .logo span {
    color: #2E51A2 !important; /* Default logo color to MAL Blue in light mode */
}
/* If the page contains a hero cover banner, keep the logo and its strong dot white when transparent at the top */
body.light-mode:has(.hero-carousel) .top-nav:not(.nav-scrolled) .logo span,
body.light-mode:has(.post-hero) .top-nav:not(.nav-scrolled) .logo span {
    color: #ffffff !important;
}
body.light-mode:has(.hero-carousel) .top-nav:not(.nav-scrolled) .logo span strong,
body.light-mode:has(.post-hero) .top-nav:not(.nav-scrolled) .logo span strong {
    color: #ffffff !important;
}

/* Remove top border from More Info section in light mode */
body.light-mode .post-section.info-list-section {
    border-top: none !important;
}

/* --- Ratings Page Light Mode Overrides (MAL Style) --- */
body.light-mode .inline-search-bar {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}
body.light-mode .inline-search-bar:focus {
    background: #ffffff !important;
    border-color: var(--accent-color) !important; /* MAL Blue */
    box-shadow: 0 0 15px rgba(46, 81, 162, 0.1) !important;
}
body.light-mode .search-inner-icon {
    color: #9ca3af !important;
}
body.light-mode .inline-search-bar:focus + .search-inner-icon {
    color: var(--accent-color) !important;
}
body.light-mode .rating-tab {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #4b5563 !important;
}
body.light-mode .rating-tab:hover {
    background: #f9fafb !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}
body.light-mode .imdb-logo-mini,
body.light-mode .mal-logo-mini {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #4b5563 !important;
}
body.light-mode #tab-imdb.active {
    background: #f5c518 !important; /* IMDb brand yellow */
    color: #000000 !important;
    border-color: #f5c518 !important;
}
body.light-mode #tab-imdb.active .imdb-logo-mini {
    background-color: #000000 !important;
    color: #f5c518 !important;
}

body.light-mode #tab-mal.active {
    background: #2e51a2 !important; /* MAL brand blue */
    color: #ffffff !important;
    border-color: #2e51a2 !important;
}
body.light-mode #tab-mal.active .mal-logo-mini {
    background-color: #ffffff !important;
    color: #2e51a2 !important;
}
body.light-mode .empty-state h2 {
    color: #111827 !important;
}
body.light-mode .empty-state p {
    color: #6b7280 !important;
}
body.light-mode .empty-icon-shield {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .empty-icon-shield i {
    color: #9ca3af !important;
}

/* --- Rank Badge and Ratings Display Light Mode --- */
body.light-mode .rank-badge {
    background: #ffffff !important;
    color: var(--accent-color) !important; /* MAL Blue #2E51A2 */
    border: 2px solid rgba(46, 81, 162, 0.25) !important;
    box-shadow: 0 2px 10px rgba(46, 81, 162, 0.1) !important;
    text-shadow: none !important;
}

body.light-mode .rank-badge.rank-1 {
    color: #b45309 !important; /* Premium Amber Gold */
    border-color: rgba(217, 119, 6, 0.4) !important;
    background: #fffbeb !important;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.15) !important;
}

body.light-mode .rank-badge.rank-2 {
    color: #4b5563 !important; /* Premium Silver */
    border-color: rgba(107, 114, 128, 0.4) !important;
    background: #f3f4f6 !important;
    box-shadow: 0 2px 10px rgba(107, 114, 128, 0.15) !important;
}

body.light-mode .rank-badge.rank-3 {
    color: #9a3412 !important; /* Premium Bronze */
    border-color: rgba(234, 88, 12, 0.4) !important;
    background: #fff7ed !important;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.15) !important;
}

body.light-mode .rating-score-display {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(4px) !important;
}

/* --- Casting Page Light Mode Overrides --- */
body.light-mode .casting-hero {
    background: radial-gradient(circle at top, #ebedf2 0%, #f7f8fa 70%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .db-badge {
    background: #2e51a2 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(46, 81, 162, 0.15) !important;
}
body.light-mode .casting-hero h1 {
    color: #111827 !important;
}
body.light-mode .casting-hero p {
    color: #4b5563 !important;
}
body.light-mode .stats-bar {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
}
body.light-mode .stat-group:not(:last-child)::after {
    background: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .stat-num {
    color: #2e51a2 !important;
}
body.light-mode .stat-txt {
    color: #6b7280 !important;
}

/* Contributors Section */
body.light-mode .contributor-box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03) !important;
}
body.light-mode .contributor-box h3 {
    color: #2e51a2 !important;
}
body.light-mode .rank-card {
    background: #f9fafb !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .rank-card:hover {
    background: #f3f4f6 !important;
}
body.light-mode .rank-num {
    color: #9ca3af !important;
}
body.light-mode .rank-name {
    color: #111827 !important;
}
body.light-mode .rank-works {
    color: #6b7280 !important;
}

/* Top 3 ranks on leaderboards */
body.light-mode .rank-card.rank-1 {
    border-color: rgba(217, 119, 6, 0.3) !important;
    background: #fffbeb !important;
}
body.light-mode .rank-card.rank-2 {
    border-color: rgba(107, 114, 128, 0.3) !important;
    background: #f3f4f6 !important;
}
body.light-mode .rank-card.rank-3 {
    border-color: rgba(234, 88, 12, 0.3) !important;
    background: #fff7ed !important;
}

body.light-mode .rank-card.rank-1 .rank-num { color: #b45309 !important; }
body.light-mode .rank-card.rank-2 .rank-num { color: #4b5563 !important; }
body.light-mode .rank-card.rank-3 .rank-num { color: #9a3412 !important; }

body.light-mode .rank-card.rank-1 .rank-medal { color: #b45309 !important; text-shadow: none !important; }
body.light-mode .rank-card.rank-2 .rank-medal { color: #4b5563 !important; text-shadow: none !important; }
body.light-mode .rank-card.rank-3 .rank-medal { color: #9a3412 !important; text-shadow: none !important; }

/* Cast & Crew list section */
body.light-mode .artist-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .artist-card:hover {
    background: #f9fafb !important;
    border-color: rgba(46, 81, 162, 0.25) !important;
}
body.light-mode .artist-index {
    color: #9ca3af !important;
}
body.light-mode .artist-icon-box {
    background: #f3f4f6 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .artist-icon-box i {
    color: #2e51a2 !important;
}
body.light-mode .artist-name {
    color: #111827 !important;
}
body.light-mode .artist-chevron {
    color: #9ca3af !important;
}
body.light-mode .artist-card:hover .artist-chevron {
    color: #2e51a2 !important;
}

/* Legend and search input */
body.light-mode .inline-search-input {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
}
body.light-mode .inline-search-input:focus {
    border-color: #2e51a2 !important;
    background: #ffffff !important;
    box-shadow: 0 0 15px rgba(46, 81, 162, 0.1) !important;
}
body.light-mode .inline-search-icon {
    color: #9ca3af !important;
}
body.light-mode .inline-search-input:focus + .inline-search-icon {
    color: #2e51a2 !important;
}

body.light-mode .role-legend {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .legend-item {
    color: #4b5563 !important;
}
body.light-mode .highlight-yellow {
    color: #d97706 !important;
}
body.light-mode .row-header h2 {
    color: #111827 !important;
}
body.light-mode .row-header-title::before {
    background: linear-gradient(to right, transparent, #2e51a2) !important;
}
body.light-mode .row-header-title::after {
    background: linear-gradient(to left, transparent, #2e51a2) !important;
}

/* Pagination buttons */
body.light-mode .page-btn {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #4b5563 !important;
}
body.light-mode .page-btn:hover {
    background: #f9fafb !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #111827 !important;
}
body.light-mode .page-btn.active {
    background: #2e51a2 !important;
    border-color: #2e51a2 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(46, 81, 162, 0.2) !important;
}

/* --- Artist Page (artist.html) & Character Modal Light Mode --- */
body.light-mode .artist-hero-bg img {
    filter: blur(20px) brightness(0.85) !important;
}
body.light-mode .artist-hero .hero-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, #f7f8fa 100%) !important;
}
body.light-mode .artist-main-img {
    border-color: #2e51a2 !important;
    box-shadow: 0 10px 30px rgba(46, 81, 162, 0.15) !important;
}
body.light-mode .artist-name-title {
    color: #111827 !important;
}
body.light-mode .works-count-badge {
    background: rgba(46, 81, 162, 0.06) !important;
    color: #2e51a2 !important;
    border: 1px solid rgba(46, 81, 162, 0.18) !important;
}
body.light-mode .section-label {
    color: #2e51a2 !important;
}
body.light-mode .section-label::before,
body.light-mode .section-label::after {
    background: linear-gradient(to right, transparent, #2e51a2, transparent) !important;
}
body.light-mode .char-name {
    color: #111827 !important;
}
body.light-mode .char-img-box {
    border-color: rgba(46, 81, 162, 0.2) !important;
    background: #ffffff !important;
}
body.light-mode .char-card:hover .char-img-box {
    border-color: #2e51a2 !important;
    box-shadow: 0 5px 15px rgba(46, 81, 162, 0.15) !important;
}
body.light-mode .read-more-btn {
    background: rgba(46, 81, 162, 0.05) !important;
    color: #2e51a2 !important;
    border-color: rgba(46, 81, 162, 0.18) !important;
}
body.light-mode .char-card:hover .read-more-btn {
    background: #2e51a2 !important;
    color: #ffffff !important;
    border-color: #2e51a2 !important;
}

/* Character Popup Modal */
body.light-mode .char-modal {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
body.light-mode .modal-body {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border-color: rgba(46, 81, 162, 0.2) !important;
    box-shadow: 0 20px 50px rgba(46, 81, 162, 0.1) !important;
}
body.light-mode .modal-img-wrapper {
    border-color: #2e51a2 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 25px rgba(46, 81, 162, 0.1) !important;
}
body.light-mode .modal-char-name {
    color: #111827 !important;
}
body.light-mode .work-box {
    background: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(46, 81, 162, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}
body.light-mode .work-label {
    color: #2e51a2 !important;
}
body.light-mode .work-val {
    color: #4b5563 !important;
}
body.light-mode .close-modal {
    background: rgba(255, 255, 255, 0.6) !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}
body.light-mode .close-modal:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}
body.light-mode #mViewAnime {
    background: #2e51a2 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(46, 81, 162, 0.3) !important;
}
body.light-mode #mViewAnime:hover {
    background: #1e3d7d !important;
}
body.light-mode .post-action-btn {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

/* --- Light Mode Logo Visibility Fixes (Staff Roles Plain Overrides) --- */
#staffGrid .char-img-box,
body.light-mode #staffGrid .char-img-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 16px !important; /* Scale down logos to prevent them from looking too big */
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-img-wrapper[style*="background: transparent"],
body.light-mode .modal-img-wrapper[style*="background: transparent"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#staffGrid .char-card:hover .char-img-box,
body.light-mode #staffGrid .char-card:hover .char-img-box {
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Apply a crisp, solid flat drop shadow (100% opacity, no blur) pointing downwards in light mode */
body.light-mode #staffGrid .char-img-box img,
body.light-mode .modal-img-wrapper[style*="background: transparent"] img {
    filter: drop-shadow(0 2px 0 #000000) !important;
}

/* --- Profile Page (profile.html) Light Mode Overrides (MAL Theme & Matte Badges) --- */
body.light-mode .pp-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .pp-back {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #4b5563 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease !important;
}
body.light-mode .pp-back:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}
body.light-mode .pp-logo {
    color: #111827 !important;
}
body.light-mode .pp-logo span {
    color: #2e51a2 !important;
}
body.light-mode .pp-admin-badge {
    background: rgba(46, 81, 162, 0.06) !important;
    border: 1px solid rgba(46, 81, 162, 0.2) !important;
    color: #2e51a2 !important;
}

body.light-mode .pp-hero {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
    color: #111827 !important;
}
body.light-mode .pp-name {
    color: #111827 !important;
}
body.light-mode .pp-email {
    color: #4b5563 !important;
}

body.light-mode .pp-stats {
    background: rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01) !important;
}
body.light-mode .pp-stat {
    background: #f9fafb !important;
}
body.light-mode .pp-stat-num {
    color: #2e51a2 !important;
}
body.light-mode .pp-stat-label {
    color: #6b7280 !important;
}

/* Edit profile form and buttons */
body.light-mode .pp-edit-form {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}
body.light-mode .pp-edit-label {
    color: #4b5563 !important;
}
body.light-mode .pp-edit-input,
body.light-mode .pp-edit-select {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
}
body.light-mode .pp-edit-input:focus,
body.light-mode .pp-edit-select:focus {
    border-color: #2e51a2 !important;
    box-shadow: 0 0 0 3px rgba(46, 81, 162, 0.1) !important;
}

body.light-mode .pp-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
}
body.light-mode .pp-btn-edit {
    background: #2e51a2 !important;
    color: #ffffff !important;
    border: none !important;
}
body.light-mode .pp-btn-edit:hover {
    background: #244080 !important;
}
body.light-mode .pp-btn-community {
    background: #2e51a2 !important;
    color: #ffffff !important;
    border: none !important;
}
body.light-mode .pp-btn-community:hover {
    background: #244080 !important;
}
body.light-mode .pp-btn-admin {
    background: #2e51a2 !important;
    color: #ffffff !important;
    border: none !important;
}
body.light-mode .pp-btn-admin:hover {
    background: #244080 !important;
}
body.light-mode .pp-btn-signout {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: none !important;
}
body.light-mode .pp-btn-signout:hover {
    background: #dc2626 !important;
}
body.light-mode .pp-save-btn {
    background: #2e51a2 !important;
    color: #ffffff !important;
    border-color: #2e51a2 !important;
    box-shadow: 0 4px 12px rgba(46, 81, 162, 0.2) !important;
}
body.light-mode .pp-save-btn:hover {
    background: #1e3d7d !important;
}

/* Custom dropdown */
body.light-mode .custom-dropdown-trigger {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
}
body.light-mode .custom-dropdown-trigger:hover {
    background: #f9fafb !important;
}
body.light-mode .custom-dropdown-container.active .custom-dropdown-trigger {
    border-color: #2e51a2 !important;
    box-shadow: 0 0 0 3px rgba(46, 81, 162, 0.1) !important;
}
body.light-mode .custom-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .custom-dropdown-search-input {
    background: #f3f4f6 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
}
body.light-mode .custom-dropdown-opt {
    color: #4b5563 !important;
}
body.light-mode .custom-dropdown-opt:hover {
    background: rgba(46, 81, 162, 0.06) !important;
    color: #2e51a2 !important;
}
body.light-mode .custom-dropdown-opt.selected {
    background: rgba(46, 81, 162, 0.12) !important;
    color: #2e51a2 !important;
}

/* Achievements section title */
body.light-mode #ppAchievementsSection h3 {
    color: #111827 !important;
}
body.light-mode #btnAchievementsInfo {
    color: #2e51a2 !important;
    text-decoration-color: #2e51a2 !important;
}

/* Premium Matte Badges Look (No Solid Block Cards, No Neon) */
body.light-mode .modal-badge-card-btn {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
    border-radius: 12px !important;
    padding: 12px 8px !important;
    transition: all 0.25s ease !important;
}
body.light-mode .modal-badge-card-btn:hover {
    background: #f9fafb !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-1px) !important;
}
body.light-mode .modal-badge-card-btn i {
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin-bottom: 8px !important;
    font-size: 12px !important;
    transition: all 0.25s ease !important;
}
body.light-mode .modal-badge-card-title {
    color: #374151 !important; /* Matte dark slate */
    font-weight: 700 !important;
    font-size: 9.5px !important;
}

/* Premium Matte Personality Tags */
body.light-mode .modal-badge-title {
    border: 1px solid currentColor !important;
    font-weight: 700 !important;
    padding: 3px 12px !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}
body.light-mode .modal-badge-title.strict-critic   { color: #dc2626 !important; background: rgba(220, 38, 38, 0.06) !important; border-color: rgba(220, 38, 38, 0.18) !important; }
body.light-mode .modal-badge-title.anime-hoarder   { color: #ea580c !important; background: rgba(234, 88, 12, 0.06) !important; border-color: rgba(234, 88, 12, 0.18) !important; }
body.light-mode .modal-badge-title.generous-otaku  { color: #db2777 !important; background: rgba(219, 39, 119, 0.06) !important; border-color: rgba(219, 39, 119, 0.18) !important; }
body.light-mode .modal-badge-title.active-tracker  { color: #0891b2 !important; background: rgba(8, 145, 178, 0.06) !important; border-color: rgba(8, 145, 178, 0.18) !important; }
body.light-mode .modal-badge-title.binge-watcher   { color: #ca8a04 !important; background: rgba(202, 138, 4, 0.06) !important; border-color: rgba(202, 138, 4, 0.18) !important; }
body.light-mode .modal-badge-title.anime-novice     { color: #4b5563 !important; background: rgba(75, 85, 99, 0.06) !important; border-color: rgba(75, 85, 99, 0.18) !important; }
body.light-mode .modal-badge-title.elite-otaku     { color: #d97706 !important; background: rgba(217, 119, 6, 0.06) !important; border-color: rgba(217, 119, 6, 0.18) !important; }
body.light-mode .modal-badge-title.rising-otaku    { color: #ea580c !important; background: rgba(234, 88, 12, 0.06) !important; border-color: rgba(234, 88, 12, 0.18) !important; }
body.light-mode .modal-badge-title.dedicated-otaku { color: #db2777 !important; background: rgba(219, 39, 119, 0.06) !important; border-color: rgba(219, 39, 119, 0.18) !important; }
body.light-mode .modal-badge-title.veteran-otaku   { color: #4b5563 !important; background: rgba(75, 85, 99, 0.06) !important; border-color: rgba(75, 85, 99, 0.18) !important; }
body.light-mode .modal-badge-title.anime-sensei    { color: #ca8a04 !important; background: rgba(202, 138, 4, 0.06) !important; border-color: rgba(202, 138, 4, 0.18) !important; }
body.light-mode .modal-badge-title.master-otaku    { color: #2563eb !important; background: rgba(37, 99, 235, 0.06) !important; border-color: rgba(37, 99, 235, 0.18) !important; }
body.light-mode .modal-badge-title.grand-master    { color: #dc2626 !important; background: rgba(220, 38, 38, 0.06) !important; border-color: rgba(220, 38, 38, 0.18) !important; }
body.light-mode .modal-badge-title.anime-sage      { color: #16a34a !important; background: rgba(22, 163, 74, 0.06) !important; border-color: rgba(22, 163, 74, 0.18) !important; }
body.light-mode .modal-badge-title.anime-god       { color: #7c3aed !important; background: rgba(124, 58, 237, 0.06) !important; border-color: rgba(124, 58, 237, 0.18) !important; }

/* Unlocked cards styling (matte white card + tinted border + dynamic circular icon backdrop) */
body.light-mode .modal-badge-card-btn.unlocked {
    border-width: 1px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}
body.light-mode .modal-badge-card-btn.unlocked .modal-badge-card-title {
    color: #111827 !important; /* Dark charcoal */
}
body.light-mode .modal-badge-card-btn.unlocked.binge       { border-color: rgba(239, 68, 68, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.binge i     { color: #ef4444 !important; background: rgba(239, 68, 68, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.elite       { border-color: rgba(245, 158, 11, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.elite i     { color: #f59e0b !important; background: rgba(245, 158, 11, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.dedicated   { border-color: rgba(236, 72, 153, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.dedicated i { color: #ec4899 !important; background: rgba(236, 72, 153, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.veteran     { border-color: rgba(99, 102, 241, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.veteran i   { color: #6366f1 !important; background: rgba(99, 102, 241, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.sensei      { border-color: rgba(234, 179, 8, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.sensei i    { color: #eab308 !important; background: rgba(234, 179, 8, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.master      { border-color: rgba(59, 130, 246, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.master i    { color: #3b82f6 !important; background: rgba(59, 130, 246, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.grandmaster { border-color: rgba(220, 38, 38, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.grandmaster i { color: #dc2626 !important; background: rgba(220, 38, 38, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.sage        { border-color: rgba(16, 185, 129, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.sage i      { color: #10b981 !important; background: rgba(16, 185, 129, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.god         { border-color: rgba(139, 92, 246, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.god i       { color: #8b5cf6 !important; background: rgba(139, 92, 246, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.active      { border-color: rgba(6, 182, 212, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.active i    { color: #06b6d4 !important; background: rgba(6, 182, 212, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.critic      { border-color: rgba(244, 63, 94, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.critic i    { color: #f43f5e !important; background: rgba(244, 63, 94, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.generous    { border-color: rgba(217, 70, 239, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.generous i  { color: #d946ef !important; background: rgba(217, 70, 239, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.hoarder     { border-color: rgba(245, 158, 11, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.hoarder i   { color: #f59e0b !important; background: rgba(245, 158, 11, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.challenger  { border-color: rgba(251, 191, 36, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.challenger i { color: #fbbf24 !important; background: rgba(251, 191, 36, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.champion    { border-color: rgba(253, 224, 71, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.champion i  { color: #fde047 !important; background: rgba(253, 224, 71, 0.08) !important; }

body.light-mode .modal-badge-card-btn.unlocked.verified    { border-color: rgba(59, 130, 246, 0.18) !important; background: #ffffff !important; }
body.light-mode .modal-badge-card-btn.unlocked.verified i  { color: #3b82f6 !important; background: rgba(59, 130, 246, 0.08) !important; }

/* My watchlist section */
body.light-mode .wl-title {
    color: #111827 !important;
}
body.light-mode .wl-count-pill {
    background: #2e51a2 !important;
    color: #ffffff !important;
}
body.light-mode .wl-vbtn {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #4b5563 !important;
}
body.light-mode .wl-vbtn.active {
    background: #2e51a2 !important;
    color: #ffffff !important;
    border-color: #2e51a2 !important;
}
body.light-mode .wl-tabs {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
body.light-mode .wl-tab {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #4b5563 !important;
}
body.light-mode .wl-tab.active {
    background: rgba(46, 81, 162, 0.08) !important;
    border-color: rgba(46, 81, 162, 0.25) !important;
    color: #2e51a2 !important;
}

body.light-mode .wl-sort-bar {
    color: #6b7280 !important;
}
body.light-mode .wl-sort-sel {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
}

/* Watchlist card grids */
body.light-mode .wl-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}
body.light-mode .wl-card-title {
    color: #111827 !important;
}
body.light-mode .wl-card-meta {
    color: #6b7280 !important;
}
body.light-mode .wl-card-progress {
    color: #4b5563 !important;
}

/* Watchlist list view rows */
body.light-mode .wl-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01) !important;
}
body.light-mode .wl-item-title {
    color: #111827 !important;
}
body.light-mode .wl-item-meta {
    color: #6b7280 !important;
}
body.light-mode .wl-item-progress {
    color: #4b5563 !important;
}
body.light-mode .wl-empty {
    color: #9ca3af !important;
}
body.light-mode .wl-empty p {
    color: #6b7280 !important;
}

/* --- Dynamic Authentication Modal (Login/Signup popup) Light Mode Overrides --- */
body.light-mode .auth-modal {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
}

body.light-mode .auth-close-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #4b5563 !important;
}

body.light-mode .auth-close-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #111827 !important;
}

body.light-mode .auth-back-btn {
    color: #4b5563 !important;
}

body.light-mode .auth-back-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #111827 !important;
}

body.light-mode .auth-logo-large,
body.light-mode .auth-logo-small,
body.light-mode .auth-welcome-title,
body.light-mode .auth-screen-title {
    color: #111827 !important;
}

body.light-mode .auth-logo-large span,
body.light-mode .auth-logo-small span,
body.light-mode .auth-welcome-title span {
    color: #2e51a2 !important; /* MAL accent blue */
}

body.light-mode .auth-welcome-subtitle,
body.light-mode .auth-tagline,
body.light-mode .auth-footer-text,
body.light-mode .auth-note {
    color: #4b5563 !important;
}

body.light-mode .auth-modal input,
body.light-mode .auth-modal select {
    background: #f3f4f6 !important;
    border: 1.5px solid #e5e7eb !important;
    color: #111827 !important;
}

body.light-mode .auth-modal input::placeholder {
    color: rgba(0, 0, 0, 0.45) !important;
}

body.light-mode .auth-modal input:focus,
body.light-mode .auth-modal select:focus {
    background: #ffffff !important;
    border-color: #2e51a2 !important;
    box-shadow: 0 0 0 3px rgba(46, 81, 162, 0.1) !important;
    color: #111827 !important;
}

body.light-mode .password-toggle-icon {
    color: #6b7280 !important;
}

body.light-mode .password-toggle-icon:hover {
    color: #2e51a2 !important;
}

body.light-mode .auth-checkbox-label {
    color: #4b5563 !important;
}

body.light-mode .custom-checkbox {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

body.light-mode .auth-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background: #2e51a2 !important;
    border-color: #2e51a2 !important;
}

body.light-mode .auth-checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    color: #ffffff !important;
}

body.light-mode .auth-forgot-link {
    color: #4b5563 !important;
}

body.light-mode .auth-forgot-link:hover {
    color: #2e51a2 !important;
}

body.light-mode .auth-footer-text a {
    color: #2e51a2 !important;
}

body.light-mode .auth-footer-text a:hover {
    color: #1e3d7d !important;
    text-decoration: underline !important;
}

body.light-mode .auth-pill-btn.btn-primary {
    background: #2e51a2 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(46, 81, 162, 0.25) !important;
}

body.light-mode .auth-pill-btn.btn-primary:hover {
    background: #1e3d7d !important;
    box-shadow: 0 6px 20px rgba(46, 81, 162, 0.35) !important;
    transform: translateY(-2px) !important;
}

body.light-mode .auth-pill-btn.btn-primary:active {
    transform: translateY(0) !important;
}

body.light-mode .auth-pill-btn.btn-primary:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
}

body.light-mode .google-btn {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1.5px solid #d1d5db !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
}

body.light-mode .google-btn:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
}

body.light-mode .auth-divider {
    color: #6b7280 !important;
}

body.light-mode .auth-divider::before,
body.light-mode .auth-divider::after {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .auth-alert {
    background: #fee2e2 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #b91c1c !important;
}

/* --- Watchlist Category Tabs & Icons Light Mode Matte Redesign --- */
body.light-mode .wl-title i {
    color: #2e51a2 !important;
}

body.light-mode #ppAchievementsSection h3 i {
    color: #2e51a2 !important;
}

body.light-mode .wl-tab {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #4b5563 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

body.light-mode .wl-tab:hover {
    background: #f9fafb !important;
    color: #111827 !important;
}

body.light-mode .wl-tab.ta-all {
    background: rgba(46, 81, 162, 0.06) !important;
    border-color: rgba(46, 81, 162, 0.18) !important;
    color: #2e51a2 !important;
}

body.light-mode .wl-tab.ta-watching {
    background: rgba(37, 99, 235, 0.06) !important;
    border-color: rgba(37, 99, 235, 0.18) !important;
    color: #2563eb !important;
}

body.light-mode .wl-tab.ta-completed {
    background: rgba(22, 163, 74, 0.06) !important;
    border-color: rgba(22, 163, 74, 0.18) !important;
    color: #16a34a !important;
}

body.light-mode .wl-tab.ta-plan {
    background: rgba(124, 58, 237, 0.06) !important;
    border-color: rgba(124, 58, 237, 0.18) !important;
    color: #7c3aed !important;
}

body.light-mode .wl-tab.ta-hold {
    background: rgba(234, 88, 12, 0.06) !important;
    border-color: rgba(234, 88, 12, 0.18) !important;
    color: #ea580c !important;
}

body.light-mode .wl-tab.ta-dropped {
    background: rgba(220, 38, 38, 0.06) !important;
    border-color: rgba(220, 38, 38, 0.18) !important;
    color: #dc2626 !important;
}

/* --- Desktop Light Mode Navigation Sidebar Overrides --- */
@media (min-width: 768px) {
    body.light-mode .bottom-nav {
        background-color: #ffffff !important;
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-top: none !important;
        border-left: none !important;
        height: 100vh !important;
        width: 90px !important;
        padding-top: 120px !important; /* Matches dark mode gap above Home button */
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 32px !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02) !important;
        position: sticky !important;
        top: 0 !important;
    }

    body.light-mode .bottom-nav .nav-item {
        flex: none !important;
        height: auto !important;
        width: 100% !important;
        max-width: none !important;
        color: #6b7280 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    body.light-mode .bottom-nav .nav-item i {
        font-size: 20px !important;
        color: #6b7280 !important;
        height: auto !important;
        width: auto !important;
        transition: all 0.3s ease !important;
    }

    body.light-mode .bottom-nav .nav-item span {
        display: block !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        color: #6b7280 !important;
        margin-top: 2px !important;
        transition: color 0.3s ease !important;
    }

    body.light-mode .bottom-nav .nav-item:hover i {
        color: #111827 !important;
        transform: scale(1.1) !important;
    }

    body.light-mode .bottom-nav .nav-item:hover span {
        color: #111827 !important;
    }

    body.light-mode .bottom-nav .nav-item.active {
        color: #111827 !important;
    }

    body.light-mode .bottom-nav .nav-item.active span {
        color: #111827 !important;
        font-weight: 600 !important;
    }

    body.light-mode .bottom-nav .active-indicator {
        background-color: #f3f4f6 !important;
        border-radius: 12px !important;
        width: 44px !important;
        height: 44px !important;
        padding: 12px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-shadow: none !important;
    }

    body.light-mode .bottom-nav .active-indicator i {
        color: #111827 !important;
        font-size: 20px !important;
    }
}

/* Book Tickets Primary Section & Button */
.book-tickets-primary-section {
    width: 100%;
    margin: 20px 0 32px 0;
    box-sizing: border-box;
}

.book-ticket-primary-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #ffd000, #ffb700);
    border: none;
    border-radius: 40px;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 208, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.book-ticket-primary-btn i {
    font-size: 18px;
}

.book-ticket-primary-btn span {
    flex-grow: 1;
    text-align: left;
    margin-left: 15px;
    letter-spacing: 0.3px;
}

.book-ticket-primary-btn .book-btn-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.book-ticket-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 208, 0, 0.45);
    background: linear-gradient(135deg, #ffe033, #ffd000);
}

.book-ticket-primary-btn:hover .book-btn-arrow {
    transform: translateX(4px);
}

.book-ticket-primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 208, 0, 0.2);
}

/* Light Mode adaptations for the button */
body.light-mode .book-ticket-primary-btn {
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.2);
}
body.light-mode .book-ticket-primary-btn:hover {
    box-shadow: 0 6px 16px rgba(218, 165, 32, 0.35);
}

/* ==========================================================================
   CHARACTERS 3D CAROUSEL SLIDER STYLES
   ========================================================================== */
.characters-section {
    margin-bottom: 40px !important;
}

.chara-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 !important;
    margin: 0 24px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
}

.chara-slider-content {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 15px;
}

.chara-images-wrapper {
    position: relative;
    width: 100% !important;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.chara-images-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chara-img-slide {
    position: absolute;
    width: auto;
    height: 280px;
    max-width: 260px !important;
    max-height: 280px !important;
    object-fit: contain;
    object-position: bottom;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease, filter 0.6s ease;
    will-change: transform, opacity, filter;
}

.chara-info-wrapper {
    width: 100% !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chara-info-wrapper h3 {
    font-size: 16px !important;
    font-weight: 700;
    margin: 10px 0 0 0 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    letter-spacing: 2.5px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
}

.chara-arrow {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.chara-arrow:hover {
    background: #ffd000;
    color: black;
    border-color: #ffd000;
    transform: scale(1.1);
}

.chara-left-arrow {
    margin-right: -10px;
}

.chara-right-arrow {
    margin-left: -10px;
}

/* Light Mode Overrides for Slider */
body.light-mode .chara-slider-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.light-mode .chara-info-wrapper h3 {
    color: rgba(0, 0, 0, 0.7) !important;
}

body.light-mode .chara-arrow {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-mode .chara-arrow:hover {
    background: #2E51A2;
    color: white;
    border-color: #2E51A2;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .chara-slider-container {
        padding: 10px 0 !important;
        margin: 0 16px;
    }

    .chara-slider-content {
        gap: 12px;
    }

    .chara-images-wrapper {
        height: 260px;
    }

    .chara-img-slide {
        width: auto;
        height: 200px;
        max-width: 160px !important;
        max-height: 200px !important;
    }

    .chara-info-wrapper h3 {
        font-size: 14px !important;
        margin-top: 8px !important;
    }

    .chara-arrow {
        width: 36px;
        height: 36px;
    }

    .chara-left-arrow {
        position: absolute;
        left: 0px;
        top: 45%;
        transform: translateY(-50%);
        margin: 0;
    }

    .chara-right-arrow {
        position: absolute;
        right: 0px;
        top: 45%;
        transform: translateY(-50%);
        margin: 0;
    }
}
/* Large screen: enforce uniform character image height */
@media (min-width: 769px) {
    .chara-images-wrapper {
        height: 520px;
    }

    .chara-img-slide {
        width: auto;
        height: 300px;
        max-width: 280px !important;
        max-height: 300px !important;
        object-fit: contain;
        object-position: bottom;
    }
}


.chara-forms-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
    min-height: 32px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 5;
}

.chara-forms-selector.visible {
    opacity: 1;
    transform: translateY(0);
}

.chara-form-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.chara-form-pill span {
    position: relative;
    z-index: 1;
}

.chara-form-pill:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chara-form-pill.active {
    color: #000 !important;
    border-color: var(--chara-theme-color, #ffd000) !important;
    background: var(--chara-theme-color, #ffd000) !important;
    font-weight: 700;
    box-shadow: 0 0 15px var(--chara-theme-color, rgba(255, 208, 0, 0.4)) !important;
}

body.light-mode .chara-form-pill {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .chara-form-pill:hover {
    color: #000;
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .chara-form-pill.active {
    color: #fff !important;
    border-color: var(--chara-theme-color, #2E51A2) !important;
    background: var(--chara-theme-color, #2E51A2) !important;
    box-shadow: none !important;
}

/* Evolution Animation Classes */
.chara-img-slide.evolving {
    animation: evolution-flash-desktop 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    pointer-events: none;
}

.chara-info-wrapper h3.evolving-text {
    animation: text-evolve 0.9s ease forwards !important;
}

@keyframes evolution-flash-desktop {
    0% {
        transform: translate(0px, 0px) scale(1.7) rotate(0deg);
        filter: brightness(1) contrast(1) drop-shadow(0 0 0px transparent);
    }
    15% {
        transform: translate(0px, 0px) scale(1.4) rotate(-5deg);
        filter: brightness(1.4) contrast(1.1) drop-shadow(0 0 15px var(--chara-theme-color, #ffd000));
    }
    45% {
        transform: translate(0px, 0px) scale(1.0) rotate(15deg);
        filter: brightness(12) contrast(2) drop-shadow(0 0 50px #fff) drop-shadow(0 0 80px var(--chara-theme-color, #ffd000));
    }
    55% {
        transform: translate(0px, 0px) scale(1.0) rotate(-15deg);
        filter: brightness(12) contrast(2) drop-shadow(0 0 50px #fff) drop-shadow(0 0 80px var(--chara-theme-color, #ffd000));
    }
    85% {
        transform: translate(0px, 0px) scale(1.8) rotate(5deg);
        filter: brightness(1.4) contrast(1.1) drop-shadow(0 0 20px var(--chara-theme-color, #ffd000));
    }
    100% {
        transform: translate(0px, 0px) scale(1.7) rotate(0deg);
        filter: brightness(1) contrast(1) drop-shadow(0 0 0px transparent);
    }
}

@keyframes evolution-flash-mobile {
    0% {
        transform: translate(0px, 0px) scale(1.4) rotate(0deg);
        filter: brightness(1) contrast(1) drop-shadow(0 0 0px transparent);
    }
    15% {
        transform: translate(0px, 0px) scale(1.15) rotate(-5deg);
        filter: brightness(1.4) contrast(1.1) drop-shadow(0 0 12px var(--chara-theme-color, #ffd000));
    }
    45% {
        transform: translate(0px, 0px) scale(0.9) rotate(15deg);
        filter: brightness(12) contrast(2) drop-shadow(0 0 40px #fff) drop-shadow(0 0 60px var(--chara-theme-color, #ffd000));
    }
    55% {
        transform: translate(0px, 0px) scale(0.9) rotate(-15deg);
        filter: brightness(12) contrast(2) drop-shadow(0 0 40px #fff) drop-shadow(0 0 60px var(--chara-theme-color, #ffd000));
    }
    85% {
        transform: translate(0px, 0px) scale(1.5) rotate(5deg);
        filter: brightness(1.4) contrast(1.1) drop-shadow(0 0 15px var(--chara-theme-color, #ffd000));
    }
    100% {
        transform: translate(0px, 0px) scale(1.4) rotate(0deg);
        filter: brightness(1) contrast(1) drop-shadow(0 0 0px transparent);
    }
}

@keyframes text-evolve {
    0% {
        opacity: 0.75;
        transform: scale(1);
        text-shadow: none;
    }
    45% {
        opacity: 0;
        transform: scale(0.8);
        text-shadow: 0 0 20px var(--chara-theme-color, #ffd000);
    }
    55% {
        opacity: 0;
        transform: scale(1.2);
        text-shadow: 0 0 20px var(--chara-theme-color, #ffd000);
    }
    100% {
        opacity: 0.75;
        transform: scale(1);
        text-shadow: none;
    }
}

@media (max-width: 768px) {
    .chara-img-slide.evolving {
        animation: evolution-flash-mobile 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    }
}

/* ==========================================================================
   POKEDEX SECTION STYLES
   ========================================================================== */
.pokedex-section {
    margin-bottom: 50px !important;
}

.pokedex-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    overflow: visible;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Grid View */
.pokedex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#gadgetsGrid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
}

/* Make pokedex and gadgets preview grids on post page scroll horizontally on all screen sizes */
.post-page-body #pokedexGrid, .post-page-body #gadgetsGrid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 24px !important;
    padding: 12px 4px !important;
    -webkit-overflow-scrolling: touch;
}

.post-page-body #pokedexGrid .pokemon-card {
    flex: 0 0 200px !important;
    scroll-snap-align: start;
}

.post-page-body #gadgetsGrid .pokemon-card {
    flex: 0 0 140px !important;
    scroll-snap-align: start;
}

.post-page-body #pokedexGrid .view-all-card {
    flex: 0 0 180px !important;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    cursor: pointer;
    background: rgba(255, 87, 87, 0.05) !important;
    border: 1px dashed rgba(255, 87, 87, 0.3) !important;
}

.post-page-body #gadgetsGrid .view-all-card {
    flex: 0 0 120px !important;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    cursor: pointer;
    background: rgba(0, 162, 255, 0.05) !important;
    border: 1px dashed rgba(0, 162, 255, 0.3) !important;
}

@media (min-width: 768px) {
    .post-page-body #pokedexGrid::-webkit-scrollbar, .post-page-body #gadgetsGrid::-webkit-scrollbar {
        height: 6px !important;
        display: block !important;
    }
    .post-page-body #pokedexGrid::-webkit-scrollbar-thumb, .post-page-body #gadgetsGrid::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 3px !important;
    }
    .post-page-body #pokedexGrid::-webkit-scrollbar-track, .post-page-body #gadgetsGrid::-webkit-scrollbar-track {
        background: transparent !important;
    }
}

@media (max-width: 767px) {
    /* Make the pokedex and gadgets preview grid on post page scroll horizontally */
    .post-page-body #pokedexGrid, .post-page-body #gadgetsGrid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 16px !important;
        padding: 10px 4px !important;
        margin: 0 -24px !important; /* Bleed to screen edges */
        padding-left: 24px !important;
        padding-right: 24px !important;
        -webkit-overflow-scrolling: touch;
    }
    .post-page-body #pokedexGrid::-webkit-scrollbar, .post-page-body #gadgetsGrid::-webkit-scrollbar {
        display: none !important;
    }
    .post-page-body #pokedexGrid .pokemon-card, .post-page-body #gadgetsGrid .pokemon-card {
        flex: 0 0 170px !important;
        scroll-snap-align: start;
    }
    .post-page-body #pokedexGrid .view-all-card, .post-page-body #gadgetsGrid .view-all-card {
        flex: 0 0 140px !important;
        scroll-snap-align: start;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        cursor: pointer;
    }
    .post-page-body #pokedexGrid .view-all-card {
        background: rgba(255, 87, 87, 0.05) !important;
        border: 1px dashed rgba(255, 87, 87, 0.3) !important;
    }
    .post-page-body #gadgetsGrid .view-all-card {
        background: rgba(0, 162, 255, 0.05) !important;
        border: 1px dashed rgba(0, 162, 255, 0.3) !important;
    }
    .pokemon-page-body .pokedex-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .pokemon-page-body .pokemon-card {
        padding: 8px !important;
        border-radius: 12px !important;
    }
    .pokemon-page-body .poke-card-img-wrapper {
        width: 75px !important;
        height: 75px !important;
        margin-bottom: 6px !important;
    }
    .pokemon-page-body .poke-card-name {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }
    .pokemon-page-body .gadget-card-img-wrapper {
        height: 75px !important;
        margin-bottom: 6px !important;
    }
    .pokemon-page-body .gadget-card-name {
        font-size: 11px !important;
        margin-bottom: 0 !important;
    }

    /* Specific override for Pokémon page on mobile to show 2 per row with slightly larger cards */
    .poke-grid-page .pokedex-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .poke-grid-page .pokemon-card {
        padding: 12px !important;
        border-radius: 14px !important;
    }
    .poke-grid-page .poke-card-img-wrapper {
        width: 90px !important;
        height: 90px !important;
        margin-bottom: 8px !important;
    }
    .poke-grid-page .poke-card-name {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
}

.pokedex-grid.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.pokemon-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pokemon-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.poke-card-img-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 12px;
    transition: transform 0.4s ease;
}

.pokemon-card:hover .poke-card-img-wrapper {
    transform: scale(1.08);
}

.poke-card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.poke-card-num {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.poke-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.poke-types-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    width: 100%;
}

/* Pokemon Type Badge styling */
.poke-type-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    display: inline-block;
}

/* Weaknesses Badge styling */
.poke-weakness-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Type Colors */
.type-grass { background: #78C850; box-shadow: 0 0 8px rgba(120, 200, 80, 0.3); }
.type-poison { background: #A040A0; box-shadow: 0 0 8px rgba(160, 64, 160, 0.3); }
.type-fire { background: #F08030; box-shadow: 0 0 8px rgba(240, 128, 48, 0.3); }
.type-water { background: #6890F0; box-shadow: 0 0 8px rgba(104, 144, 240, 0.3); }
.type-flying { background: #A890F0; box-shadow: 0 0 8px rgba(168, 144, 240, 0.3); }
.type-bug { background: #A8B820; box-shadow: 0 0 8px rgba(168, 184, 32, 0.3); }
.type-normal { background: #A8A878; box-shadow: 0 0 8px rgba(168, 168, 120, 0.3); }
.type-electric { background: #F8D030; color: #000; text-shadow: none; box-shadow: 0 0 8px rgba(248, 208, 48, 0.3); }
.type-ground { background: #E0C068; box-shadow: 0 0 8px rgba(224, 192, 104, 0.3); }
.type-fairy { background: #EE99AC; box-shadow: 0 0 8px rgba(238, 153, 172, 0.3); }
.type-fighting { background: #C03028; box-shadow: 0 0 8px rgba(192, 48, 40, 0.3); }
.type-psychic { background: #F85888; box-shadow: 0 0 8px rgba(248, 88, 136, 0.3); }
.type-rock { background: #B8A038; box-shadow: 0 0 8px rgba(184, 160, 56, 0.3); }
.type-steel { background: #B8B8D0; box-shadow: 0 0 8px rgba(184, 184, 208, 0.3); }
.type-ice { background: #98D8D8; color: #000; text-shadow: none; box-shadow: 0 0 8px rgba(152, 216, 216, 0.3); }
.type-ghost { background: #705898; box-shadow: 0 0 8px rgba(112, 88, 152, 0.3); }
.type-dragon { background: #7038F8; box-shadow: 0 0 8px rgba(112, 56, 248, 0.3); }
.type-dark { background: #705848; box-shadow: 0 0 8px rgba(112, 88, 72, 0.3); }

/* Detail View */
.pokedex-detail-view {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
    animation: slideUpFade 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.poke-detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.poke-nav-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.poke-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.poke-back-btn {
    background: rgba(255, 87, 87, 0.08);
    border: 1px solid rgba(255, 87, 87, 0.25);
    color: #ff5757;
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    transition: all 0.2s ease;
}

.poke-back-btn:hover {
    background: #ff5757;
    color: #fff;
    border-color: #ff5757;
    box-shadow: 0 4px 12px rgba(255, 87, 87, 0.25);
    transform: translateY(-1px);
}

.poke-detail-main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.poke-detail-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.poke-img-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.poke-img-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.poke-img-card img.fade-in-scale {
    animation: scaleInPoke 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes scaleInPoke {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.poke-detail-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.poke-detail-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.poke-detail-title span:last-child {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.poke-detail-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin: 0;
}

/* Attributes Box */
.poke-attributes-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.poke-attr-item {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.poke-attr-item strong {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.poke-types-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poke-types-box h4 {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.poke-types-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Stats Card & Bars */
.poke-stats-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 16px;
}

.poke-stats-card h4 {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
}

.poke-stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poke-stat-row {
    display: grid;
    grid-template-columns: 60px 30px 1fr;
    align-items: center;
    gap: 8px;
}

.poke-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.poke-stat-val {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-align: right;
}

.poke-stat-bar-bg {
    background: rgba(255, 255, 255, 0.04);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.poke-stat-bar {
    height: 100%;
    width: 0%; /* Animated via JS */
    border-radius: 3px;
    background: var(--chara-theme-color, #ffd000);
    box-shadow: 0 0 8px var(--chara-theme-color, rgba(255,208,0,0.4));
    transition: width 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Light mode overrides */
body.light-mode .pokemon-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .pokemon-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: none !important;
}

body.light-mode .poke-card-num {
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .poke-card-name {
    color: #000;
}

body.light-mode .pokedex-detail-view {
    background: rgba(0, 0, 0, 0.01) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .poke-nav-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .poke-nav-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
    box-shadow: none !important;
}

body.light-mode .poke-back-btn {
    box-shadow: none !important;
}

body.light-mode .poke-back-btn:hover {
    box-shadow: none !important;
}

body.light-mode .poke-detail-title {
    color: #000;
}

body.light-mode .poke-detail-title span:last-child {
    color: rgba(0, 0, 0, 0.3);
}

body.light-mode .poke-detail-desc {
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .poke-attr-item {
    color: rgba(0, 0, 0, 0.8);
}

body.light-mode .poke-attr-item strong {
    color: rgba(0, 0, 0, 0.45);
}

body.light-mode .poke-stat-label {
    color: rgba(0, 0, 0, 0.55);
}

body.light-mode .poke-stat-val {
    color: #000;
}

body.light-mode .poke-stat-bar-bg {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .poke-stat-bar {
    box-shadow: none !important;
}

body.light-mode .poke-weakness-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

/* Base Stats card & Attributes box styles for Light Mode */
body.light-mode .poke-stats-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
}

body.light-mode .poke-stats-card h4 {
    color: rgba(0, 0, 0, 0.45) !important;
}

body.light-mode .poke-attributes-box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
}

body.light-mode .poke-types-box h4 {
    color: rgba(0, 0, 0, 0.45) !important;
}

body.light-mode .poke-detail-nav {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .poke-img-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
}

body.light-mode #pokeSearchInput {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
}

body.light-mode #pokeSearchInput::placeholder {
    color: #9ca3af !important;
}

body.light-mode .poke-search-wrapper i {
    color: rgba(0, 0, 0, 0.4) !important;
}

body.light-mode #pokeTypeFilter {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
}

body.light-mode #pokeTypeFilter option {
    background: #ffffff !important;
    color: #111827 !important;
}

@media (max-width: 768px) {
    .poke-detail-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .poke-img-card {
        height: 220px;
    }
    
    .poke-detail-nav {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }
    
    .poke-nav-btn span,
    .poke-back-btn span {
        display: none !important;
    }
    
    .poke-nav-btn,
    .poke-back-btn {
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }

    .poke-filter-row {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .poke-select-wrapper {
        width: 100% !important;
    }

    #pokeTypeFilter {
        width: 100% !important;
        height: 48px !important;
    }
}

/* Premium Doraemon Gadget Cards styling (Clean, Transparent & Small) */
#gadgetsSection {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 32px 0 !important;
}

#gadgetsSection h2::after {
    background: linear-gradient(to right, rgba(46, 81, 162, 0.5), transparent) !important;
}

#gadgetsGrid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 16px !important;
}

@media (max-width: 767px) {
    .pokemon-page-body #gadgetsGrid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
}

.gadget-preview-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
    width: 120px !important;
    flex-shrink: 0 !important;
}

.post-page-body #gadgetsGrid .gadget-preview-card {
    flex: 0 0 120px !important;
    width: 120px !important;
}

.gadget-preview-card:hover {
    transform: translateY(-4px) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gadget-preview-card::before {
    display: none !important;
}

.gadget-card-img-wrapper {
    width: 100% !important;
    height: 90px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.gadget-card-img-wrapper img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: none !important;
}

.gadget-preview-card:hover .gadget-card-img-wrapper img {
    transform: none !important;
}

.gadget-card-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    line-height: 1.2 !important;
}

/* Hide scrollbar completely for Doraemon gadgets grid only */
#gadgetsGrid {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important;  /* IE and Edge */
}
#gadgetsGrid::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
}

#gadgetsGrid .view-all-card {
    background: transparent !important;
    border: 1px dashed rgba(46, 81, 162, 0.3) !important;
    border-radius: 12px !important;
    flex: 0 0 100px !important;
    width: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 90px !important;
    margin-top: 6px !important;
    box-shadow: none !important;
}

#gadgetsGrid .view-all-card:hover {
    border-color: rgba(46, 81, 162, 0.6) !important;
    background: rgba(46, 81, 162, 0.05) !important;
}

#gadgetsGrid .view-all-content {
    color: #2E51A2 !important;
    padding: 0 !important;
    min-height: auto !important;
}

#gadgetsGrid .view-all-content i {
    font-size: 24px !important;
    margin-bottom: 6px !important;
    filter: drop-shadow(0 0 6px rgba(46, 81, 162, 0.3)) !important;
}

#gadgetsGrid .view-all-content span {
    font-size: 10px !important;
    font-weight: 700 !important;
}


/* ==========================================================================
   Premium Site Footer Styling (Home Page)
   ========================================================================== */
.site-footer {
    background-color: #07080a;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 60px 24px 40px;
    color: var(--text-secondary);
    position: relative;
    z-index: 10;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-brand {
    max-width: 450px;
}

.footer-logo {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-links-col h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-links-col a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-socials a:hover {
    color: #000;
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 208, 0, 0.2);
}

.footer-copy {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Responsiveness for Site Footer */
@media (max-width: 767px) {
    body.home-page .app-container,
    body.in-app.home-page .app-container {
        padding-bottom: 0 !important;
    }
    .site-footer {
        padding: 40px 20px calc(85px + env(safe-area-inset-bottom, 0px)) !important; /* Sleek padding to clear bottom-nav with no extra gap */
    }
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 60px;
    }
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 50px;
        padding-top: 25px;
    }
}

/* Light Mode Overrides for Site Footer */
body.light-mode .site-footer {
    background-color: #1b3a70 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

body.light-mode .footer-logo {
    color: #ffffff !important;
}

body.light-mode .footer-desc {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.light-mode .site-footer .footer-links-col h3 {
    color: #ffffff !important;
}

body.light-mode .site-footer .footer-links-col a {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.light-mode .site-footer .footer-links-col a:hover {
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

body.light-mode .site-footer .footer-socials a {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
}

body.light-mode .site-footer .footer-socials a:hover {
    color: #000000 !important;
    background: var(--accent-color, #ffd000) !important;
    border-color: var(--accent-color, #ffd000) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(255, 208, 0, 0.25) !important;
}

body.light-mode .site-footer .footer-copy {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.light-mode .site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* --- Footer Theme Switcher Button --- */
.footer-theme-toggle {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    margin: 10px 0 !important;
}
.footer-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}
.footer-theme-toggle i {
    font-size: 14px !important;
    transition: transform 0.3s ease !important;
}
.footer-theme-toggle:hover i {
    transform: rotate(30deg) !important;
}

body.light-mode .footer-theme-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}
body.light-mode .footer-theme-toggle:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #1b3a70 !important;
}

/* --- Awards Page (awards.html) Light Mode Overrides --- */
body.light-mode .awards-hero {
    background: radial-gradient(circle at top, rgba(46, 81, 162, 0.08) 0%, transparent 70%) !important;
    border-bottom: 1px solid rgba(46, 81, 162, 0.08) !important;
}
body.light-mode .awards-trophy {
    color: #2e51a2 !important;
    filter: none !important;
}
body.light-mode .awards-title {
    color: #111827 !important;
    text-shadow: none !important;
}
body.light-mode .awards-title span {
    color: #2e51a2 !important;
}
body.light-mode .awards-subtitle {
    color: #4b5563 !important;
}
body.light-mode .total-votes-badge {
    background: rgba(46, 81, 162, 0.06) !important;
    border-color: rgba(46, 81, 162, 0.2) !important;
    color: #2e51a2 !important;
    box-shadow: none !important;
}
body.light-mode .year-chip {
    background: rgba(46, 81, 162, 0.05) !important;
    color: #4b5563 !important;
    border-color: rgba(46, 81, 162, 0.15) !important;
}
body.light-mode .year-chip.active {
    background: #2e51a2 !important;
    color: #ffffff !important;
    border-color: #2e51a2 !important;
    box-shadow: none !important;
}
body.light-mode .awards-back-btn {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
}
body.light-mode .awards-share-btn {
    background: #2e51a2 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
body.light-mode .award-box {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(46, 81, 162, 0.1) !important;
    box-shadow: none !important;
}
body.light-mode .award-box:hover {
    background: rgba(46, 81, 162, 0.05) !important;
    border-color: rgba(46, 81, 162, 0.3) !important;
    box-shadow: none !important;
}
body.light-mode .award-box-title {
    color: #111827 !important;
}
body.light-mode .award-box i {
    color: #2e51a2 !important;
    background: rgba(46, 81, 162, 0.08) !important;
}
body.light-mode .award-box:hover i {
    background: #2e51a2 !important;
    color: #ffffff !important;
}
body.light-mode .category-icon {
    background: linear-gradient(135deg, rgba(46, 81, 162, 0.1), rgba(46, 81, 162, 0.02)) !important;
    border-color: rgba(46, 81, 162, 0.2) !important;
    color: #2e51a2 !important;
    box-shadow: none !important;
}
body.light-mode .category-title {
    color: #111827 !important;
}
body.light-mode .winner-card-container {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(46, 81, 162, 0.15) !important;
    box-shadow: none !important;
}
body.light-mode .winner-card-container::before {
    background: #2e51a2 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
body.light-mode .winner-name {
    color: #111827 !important;
}
body.light-mode .winner-desc {
    color: #4b5563 !important;
}
body.light-mode .winner-meta {
    color: #6b7280 !important;
}
body.light-mode .vote-count-badge {
    background: rgba(46, 81, 162, 0.9) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
body.light-mode .vote-count-badge i {
    color: #ffffff !important;
}
body.light-mode .vote-btn {
    background: #2e51a2 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
body.light-mode .vote-btn:hover {
    background: #1e3d7d !important;
    box-shadow: none !important;
}
body.light-mode .vote-btn.voted {
    background: rgba(46, 81, 162, 0.1) !important;
    color: #2e51a2 !important;
    border-color: rgba(46, 81, 162, 0.2) !important;
}
body.light-mode .detail-back-btn {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
}
body.light-mode .detail-view-title {
    color: #111827 !important;
}
body.light-mode .lock-container {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(46, 81, 162, 0.15) !important;
    box-shadow: none !important;
}
body.light-mode .lock-icon {
    color: #2e51a2 !important;
    text-shadow: none !important;
}
body.light-mode .lock-title {
    color: #111827 !important;
}
body.light-mode .lock-desc {
    color: #4b5563 !important;
}
body.light-mode .countdown-item {
    background: rgba(46, 81, 162, 0.04) !important;
    border-color: rgba(46, 81, 162, 0.15) !important;
}
body.light-mode .countdown-val {
    color: #2e51a2 !important;
}
body.light-mode .countdown-label {
    color: #6b7280 !important;
}
body.light-mode .lock-action {
    background: #2e51a2 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
body.light-mode .lock-action:hover {
    background: #1e3d7d !important;
    box-shadow: none !important;
}
body.light-mode .artist-popover {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border-color: rgba(46, 81, 162, 0.2) !important;
    color: #111827 !important;
    box-shadow: none !important;
}
body.light-mode .popover-backdrop {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
body.light-mode .popover-item {
    background: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(46, 81, 162, 0.1) !important;
}
body.light-mode .popover-show-name {
    color: #4b5563 !important;
}
body.light-mode .popover-close {
    color: #4b5563 !important;
}
body.light-mode .popover-close:hover {
    color: #111827 !important;
}
body.light-mode .popover-char-name {
    color: #2e51a2 !important;
}

/* --- Creators Page (creators.html) Light Mode Overrides --- */
body.light-mode .creator-card {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(46, 81, 162, 0.15) !important;
    box-shadow: none !important;
}
body.light-mode .creator-name {
    color: #111827 !important;
}
body.light-mode .creator-bio {
    color: #4b5563 !important;
}
body.light-mode .creator-card .love-btn {
    background: rgba(46, 81, 162, 0.08) !important;
    color: #2e51a2 !important;
}
body.light-mode .detail-hero {
    background: linear-gradient(to bottom, rgba(46, 81, 162, 0.05) 0%, transparent 100%) !important;
    border-bottom-color: rgba(46, 81, 162, 0.08) !important;
}
body.light-mode .detail-hero h2 {
    color: #111827 !important;
}
body.light-mode .detail-bio {
    color: #4b5563 !important;
}
body.light-mode .social-icon {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
}
body.light-mode .social-icon:active {
    background: rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .reco-title {
    color: #111827 !important;
}
body.light-mode .reco-name {
    color: #111827 !important;
}
body.light-mode .reco-meta {
    color: #6b7280 !important;
}
body.light-mode .reco-img-container {
    border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .reco-rating-badge {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #2e51a2 !important;
    border-color: rgba(46, 81, 162, 0.2) !important;
    box-shadow: none !important;
}
body.light-mode .reco-rating-badge i {
    color: #2e51a2 !important;
}
body.light-mode .reco-rank-badge {
    background: #2e51a2 !important;
    color: white !important;
}
body.light-mode .top-nav .back-btn {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
    box-shadow: none !important;
}
body.light-mode .top-nav .logo span {
    color: #111827 !important;
}
body.light-mode .creator-img {
    border-color: #2e51a2 !important;
    box-shadow: none !important;
}
body.light-mode .detail-img {
    border-color: #2e51a2 !important;
    box-shadow: none !important;
}

/* --- About Page (about.html) Light Mode Overrides --- */
body.light-mode.about-page-body {
    background: #f7f8fa !important;
}
body.light-mode .about-header-modern {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
}
body.light-mode .modern-header-title {
    color: #111827 !important;
}
body.light-mode .back-circle-btn {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
    box-shadow: none !important;
}
body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(46, 81, 162, 0.15) !important;
    box-shadow: none !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}
body.light-mode .dev-name {
    background: none !important;
    -webkit-text-fill-color: #111827 !important;
    text-fill-color: #111827 !important;
    color: #111827 !important;
}
body.light-mode .profile-decoration {
    background: linear-gradient(to right, transparent, #2e51a2, transparent) !important;
}
body.light-mode .role-tag {
    color: #2e51a2 !important;
}
body.light-mode .bio-card h2 {
    color: #111827 !important;
}
body.light-mode .bio-card .card-header i {
    color: #2e51a2 !important;
}
body.light-mode .bio-text p {
    color: #4b5563 !important;
}
body.light-mode .accent-text {
    color: #2e51a2 !important;
}
body.light-mode .glow-text {
    color: #2e51a2 !important;
    text-shadow: none !important;
}
body.light-mode .quote-box {
    background: rgba(46, 81, 162, 0.05) !important;
    border-left-color: #2e51a2 !important;
}
body.light-mode .quote-box p {
    color: #4b5563 !important;
}
body.light-mode .quote-box i {
    color: rgba(46, 81, 162, 0.2) !important;
}
body.light-mode .strike-through {
    color: #9ca3af !important;
}
body.light-mode .stat-card {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(46, 81, 162, 0.1) !important;
    box-shadow: none !important;
}
body.light-mode .stat-card:hover {
    background: rgba(46, 81, 162, 0.05) !important;
    box-shadow: none !important;
}
body.light-mode .stat-label {
    color: #111827 !important;
}
body.light-mode .stat-value {
    color: #4b5563 !important;
}
body.light-mode .mini-bar {
    background: rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .fill {
    box-shadow: none !important;
}
body.light-mode .connect-section h3 {
    color: #111827 !important;
}
body.light-mode .social-circle {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
    box-shadow: none !important;
}
body.light-mode .about-simple-footer p {
    color: #9ca3af !important;
}
body.light-mode .bg-particles {
    opacity: 0.15 !important;
}
body.light-mode .avatar-main {
    background: #ffffff !important;
    border-color: #2e51a2 !important;
    color: #2e51a2 !important;
    box-shadow: none !important;
}
body.light-mode .avatar-glow {
    background: rgba(46, 81, 162, 0.2) !important;
    box-shadow: none !important;
}

/* ==========================================================================
   GLOBAL BOTTOM NAVIGATION BAR LIGHT MODE OVERRIDES
   ========================================================================== */
@media (max-width: 767px) {
    body.light-mode .bottom-nav {
        background-color: #ffffff !important;
        border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.04) !important;
    }

    body.light-mode .bottom-nav .nav-item {
        color: #4b5563 !important;
    }

    body.light-mode .bottom-nav .nav-item span {
        color: #4b5563 !important;
    }

    body.light-mode .bottom-nav .nav-item i {
        color: #4b5563 !important;
    }

    /* Hover effect on inactive items */
    body.light-mode .bottom-nav .nav-item:not(.active):hover i {
        color: #1b3a70 !important;
    }
    body.light-mode .bottom-nav .nav-item:not(.active):hover span {
        color: #1b3a70 !important;
    }

    /* Active Navigation Item highlighted with MAL Blue color style */
    body.light-mode .bottom-nav .nav-item.active {
        color: #1b3a70 !important;
    }

    body.light-mode .bottom-nav .nav-item.active i {
        color: #ffffff !important;
    }

    body.light-mode .bottom-nav .nav-item.active span {
        color: #1b3a70 !important;
    }

    body.light-mode .bottom-nav .active-indicator {
        background-color: #1b3a70 !important;
        box-shadow: 0 4px 12px rgba(27, 58, 112, 0.25) !important;
    }

    body.light-mode .bottom-nav .active-indicator i {
        color: #ffffff !important;
    }
}

/* ==========================================================================
   POKÉDEX PAGE ADDITIONAL LIGHT MODE OVERRIDES
   ========================================================================== */
body.light-mode.poke-grid-page {
    background-color: #f7f8fa !important;
    background-image: 
        radial-gradient(circle at -5% 45%, rgba(37, 99, 235, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 105% 5%, rgba(6, 182, 212, 0.02) 0%, transparent 25%),
        radial-gradient(circle at 105% 95%, rgba(99, 102, 241, 0.02) 0%, transparent 30%) !important;
    background-attachment: fixed !important;
    color: #111827 !important;
}

body.light-mode.poke-grid-page .post-action-btn {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #111827 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode.poke-grid-page .post-action-btn:hover {
    background: #f9fafb !important;
    color: #ff5757 !important;
}

body.light-mode.poke-grid-page .poke-top-actions h1 {
    color: #ff3e3e !important;
    text-shadow: none !important;
}

body.light-mode .pokemon-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

body.light-mode .pokemon-card:hover {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .poke-card-img-wrapper {
    background: #f9fafb !important;
}

/* Base Stats & Attributes Box */
body.light-mode .poke-stat-bar-bg {
    background: #e5e7eb !important;
    height: 8px !important;
    border-radius: 4px !important;
}

body.light-mode .poke-stat-bar {
    height: 100% !important;
    border-radius: 4px !important;
    background: linear-gradient(90deg, #ff5757, #ff7b7b) !important;
    box-shadow: 0 1px 3px rgba(255, 87, 87, 0.2) !important;
}

/* Pokemon Evolution Animation Mappings */
.poke-img-card img.evolving {
    animation: evolution-flash-desktop 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    pointer-events: none;
}

.poke-detail-title.evolving-text {
    animation: text-evolve 0.9s ease forwards !important;
}

@media (max-width: 768px) {
    .poke-img-card img.evolving {
        animation: evolution-flash-mobile 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    }
}


/* Keep bottom nav and post footer dark on post page in light mode to match dark mode appearance */
/* Post page bottom nav styles for light mode */
body.light-mode.post-page-body .bottom-nav {
    background-color: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.04) !important;
}

@media (min-width: 768px) {
    body.light-mode.post-page-body .bottom-nav {
        background-color: #ffffff !important;
        border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-top: none !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02) !important;
    }
}

body.light-mode.post-page-body .bottom-nav .nav-item {
    color: #6b7280 !important;
}

body.light-mode.post-page-body .bottom-nav .nav-item span {
    color: #6b7280 !important;
}

body.light-mode.post-page-body .bottom-nav .nav-item i {
    color: #6b7280 !important;
}

body.light-mode.post-page-body .bottom-nav .nav-item svg path {
    stroke: #6b7280 !important;
}

body.light-mode.post-page-body .bottom-nav .nav-item:hover i {
    color: #111827 !important;
}

body.light-mode.post-page-body .bottom-nav .nav-item:hover span {
    color: #111827 !important;
}

body.light-mode.post-page-body .bottom-nav .nav-item:hover svg path {
    stroke: #111827 !important;
}

body.light-mode.post-page-body .bottom-nav .nav-item.active {
    color: #111827 !important;
}

body.light-mode.post-page-body .bottom-nav .nav-item.active span {
    color: #111827 !important;
    font-weight: 600 !important;
}

body.light-mode.post-page-body .bottom-nav .active-indicator {
    background-color: #1b3a70 !important;
    box-shadow: 0 4px 12px rgba(27, 58, 112, 0.25) !important;
}

body.light-mode.post-page-body .bottom-nav .active-indicator i {
    color: #ffffff !important;
}

body.light-mode.post-page-body .bottom-nav .active-indicator svg path {
    stroke: #ffffff !important;
}

@media (min-width: 768px) {
    body.light-mode.post-page-body .bottom-nav .active-indicator {
        background-color: #f3f4f6 !important;
        box-shadow: none !important;
    }

    body.light-mode.post-page-body .bottom-nav .active-indicator i {
        color: #111827 !important;
    }

    body.light-mode.post-page-body .bottom-nav .active-indicator svg path {
        stroke: #111827 !important;
    }
}

/* Post page footer styles for light mode */
body.light-mode.post-page-body .post-footer {
    background: #f7f8fa !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode.post-page-body .footer-data-sharing h4 {
    color: #111827 !important;
}

body.light-mode.post-page-body .footer-data-sharing h4::before,
body.light-mode.post-page-body .footer-data-sharing h4::after {
    background: linear-gradient(to var(--dir, right), transparent, rgba(0, 0, 0, 0.1)) !important;
}

body.light-mode.post-page-body .footer-data-sharing p {
    color: #4b5563 !important;
}

body.light-mode.post-page-body .footer-socials a {
    color: #4b5563 !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

body.light-mode.post-page-body .footer-socials a:hover {
    transform: translateY(-4px) !important;
    opacity: 1 !important;
}

body.light-mode.post-page-body .footer-socials a[href*="youtube"]:hover {
    background: #ff0000 !important;
    border-color: #ff0000 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2) !important;
}

body.light-mode.post-page-body .footer-socials a[href*="instagram"]:hover {
    background: #e1306c !important;
    border-color: #e1306c !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.2) !important;
}

body.light-mode.post-page-body .footer-socials a[href*="whatsapp"]:hover {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2) !important;
}

body.light-mode.post-page-body .footer-socials a[href*="discord"]:hover {
    background: #5865f2 !important;
    border-color: #5865f2 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.2) !important;
}

body.light-mode.post-page-body .footer-socials a[href*="t.me"]:hover,
body.light-mode.post-page-body .footer-socials a[href*="telegram"]:hover {
    background: #0088cc !important;
    border-color: #0088cc !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.2) !important;
}

body.light-mode.post-page-body .footer-copy {
    color: #6b7280 !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    margin-top: 24px !important;
}



/* Desktop screen overrides for inline buttons and container padding in both modes */
@media (min-width: 768px) {
    .post-page-body .post-gradient,
    body.light-mode.post-page-body .post-gradient {
        height: 50% !important;
    }

    body.light-mode.post-page-body .post-gradient {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.55) 30%,
            rgba(0, 0, 0, 0.20) 65%,
            transparent 100%
        ) !important;
    }

    .post-page-body .post-details,
    body.light-mode.post-page-body .post-details {
        padding: 32px 40px 20px 40px !important;
    }

    .post-page-body .post-description,
    body.light-mode.post-page-body .post-description {
        margin-top: 20px !important;
        margin-bottom: 24px !important;
    }

    .post-page-body .post-primary-actions,
    body.light-mode.post-page-body .post-primary-actions {
        gap: 12px !important;
    }
    
    .post-page-body .post-primary-btn,
    body.light-mode.post-page-body .post-primary-btn {
        height: 52px !important;
        font-size: 13.5px !important;
        padding: 0 20px !important;
    }
    
    .post-page-body .post-secondary-row,
    body.light-mode.post-page-body .post-secondary-row {
        gap: 12px !important;
    }
    
    .post-page-body .post-secondary-row .post-text-btn,
    .post-page-body #guideBtn,
    body.light-mode.post-page-body .post-secondary-row .post-text-btn,
    body.light-mode.post-page-body #guideBtn {
        height: 52px !important;
        font-size: 13.5px !important;
        padding: 0 20px !important;
    }

    .post-page-body .post-secondary-row .post-text-btn i,
    .post-page-body #guideBtn i,
    body.light-mode.post-page-body .post-secondary-row .post-text-btn i,
    body.light-mode.post-page-body #guideBtn i {
        font-size: 13.5px !important;
    }
}

/* Hide Pokédex and Gadgets grid scrollbars in light mode */
body.light-mode.post-page-body #pokedexGrid::-webkit-scrollbar,
body.light-mode.post-page-body #gadgetsGrid::-webkit-scrollbar {
    display: none !important;
}
body.light-mode.post-page-body #pokedexGrid,
body.light-mode.post-page-body #gadgetsGrid {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important;  /* IE and Edge */
}

/* ── System Navigation Bar Background Fix ───────────────────────────────────
   Ensure html element has a solid background in both themes.
   This prevents page content from bleeding through the Android system
   navigation bar area when using edge-to-edge layout in the WebView.
   ─────────────────────────────────────────────────────────────────────────── */
html:has(body.light-mode) {
    background-color: #f7f8fa !important; /* Light (Glacier) mode bg */
}

/* ── News Scroller Layout and Cards ── */
.news-scroller-card {
    flex: 0 0 240px; /* 16:9 ratio styled cards */
    width: 240px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    margin-bottom: 8px; /* Offset spacing for shadow */
}
body.light-mode .news-scroller-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.news-scroller-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
body.light-mode .news-scroller-card:hover {
    border-color: rgba(46, 81, 162, 0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.news-scroller-img-wrapper {
    position: relative;
    width: 100%;
    height: 135px; /* 16:9 aspect ratio */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}
.news-scroller-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-scroller-card:hover .news-scroller-img-wrapper img {
    transform: scale(1.05);
}
.news-scroller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
body.light-mode .news-scroller-badge {
    background: rgba(46, 81, 162, 0.9);
    color: #fff;
    border: none;
}
.news-scroller-title {
    padding: 12px 12px 6px 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
body.light-mode .news-scroller-title {
    color: #1f2937;
}
.news-scroller-card:hover .news-scroller-title {
    color: var(--accent-color, #ffd000);
}
body.light-mode .news-scroller-card:hover .news-scroller-title {
    color: #2E51A2;
}
.news-scroller-info {
    padding: 0 12px 12px 12px;
}
.news-scroller-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}
body.light-mode .news-scroller-date {
    color: rgba(0, 0, 0, 0.5);
}

/* Custom view more for news scroller */
.news-view-more {
    height: calc(100% - 8px); /* Align height with news cards */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
body.light-mode .news-view-more {
    background: rgba(46, 81, 162, 0.02) !important;
    border: 1px solid rgba(46, 81, 162, 0.1) !important;
}

/* ==========================================================================
   SCHEDULES PAGE HERO SECTION & NEWS TICKER SCROLLER (SHARP & PLAIN COLORS)
   ========================================================================== */
.schedule-hero {
    position: relative;
    width: 100%;
    min-height: 180px;
    border-radius: 0px !important; /* Sharp corners */
    background: #111111 !important; /* Plain solid color */
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 24px 28px;
    box-sizing: border-box;
    margin-top: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.schedule-hero-overlay {
    display: none !important; /* Remove radial overlay gradient */
}

.schedule-hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.schedule-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffd000 !important; /* Plain solid color */
    border: none !important;
    color: #000000 !important; /* Dark text */
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 0px !important; /* Sharp corners */
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.schedule-hero-title {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 8px 0;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
    text-shadow: none !important; /* Plain text */
}

.schedule-hero-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65) !important; /* Plain greyish white */
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Light Mode support for Schedule Hero (Sharp & Plain) */
body.light-mode .schedule-hero {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

body.light-mode .schedule-hero-title {
    color: #111827 !important;
}

body.light-mode .schedule-hero-subtitle {
    color: #4b5563 !important;
}

body.light-mode .schedule-hero-badge {
    background: #2e51a2 !important;
    color: #ffffff !important;
}

/* News Ticker Bar (Sharp & Plain) */
.news-ticker-container {
    display: flex;
    align-items: center;
    background: #111111 !important; /* Plain solid color */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0px !important; /* Sharp corners */
    height: 38px;
    overflow: hidden;
    margin-bottom: 24px;
    box-sizing: border-box;
}

body.light-mode .news-ticker-container {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.news-ticker-label {
    background: #2e51a2 !important; /* Plain solid blue */
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 800;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 14px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
    box-shadow: none !important; /* Plain */
    border-radius: 0px !important; /* Sharp */
}

body.light-mode .news-ticker-label {
    background: #2e51a2 !important;
}

.news-ticker-label i {
    color: #ffd000;
    margin-right: 6px;
}

.news-ticker-marquee {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.news-ticker-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: absolute;
    padding-left: 100%;
    animation: ticker-animation 75s linear infinite;
}

.news-ticker-marquee:hover .news-ticker-text {
    animation-play-state: paused;
}

.ticker-item {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.light-mode .ticker-item {
    color: #374151 !important;
}

.ticker-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticker-item a:hover {
    color: #ffd000;
}

body.light-mode .ticker-item a:hover {
    color: #2e51a2 !important;
}

.ticker-item i {
    color: #ffd000;
    font-size: 11px;
}

body.light-mode .ticker-item i {
    color: #2e51a2 !important;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 16px;
    font-weight: 700;
}

body.light-mode .ticker-separator {
    color: rgba(0, 0, 0, 0.1) !important;
}

/* Left-to-Right Scrolling Marquee animation */
@keyframes ticker-animation {
    0% {
        transform: translate3d(-100%, 0, 0);
    }
    100% {
        transform: translate3d(100%, 0, 0);
    }
}


@media (max-width: 600px) {
    .schedule-hero {
        min-height: 140px;
        padding: 18px 18px;
        margin-top: 10px;
        margin-bottom: 12px;
    }
    .schedule-hero-title {
        font-size: 20px;
    }
    .schedule-hero-subtitle {
        font-size: 11.5px;
    }
    .news-ticker-container {
        height: 34px;
        margin-bottom: 16px;
    }
    .news-ticker-label {
        font-size: 9px;
        padding: 0 10px;
    }
    .ticker-item {
        font-size: 11.5px;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   EXTRA COMPACT OVERRIDES FOR VERY SMALL SCREENS (≤ 360px — Realme 8, 312px CSS width)
   Placing this at the very bottom of style.css ensures it overrides all earlier definitions.
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
    /* ── Cards: show 3 per row so they're smaller ── */
    .card {
        min-width: calc((100vw - 36px) / 3) !important;
        width: calc((100vw - 36px) / 3) !important;
        contain-intrinsic-size: calc((100vw - 36px) / 3) calc((100vw - 36px) / 3 * 1.5) !important;
    }

    .view-more-card {
        min-width: calc((100vw - 36px) / 3) !important;
        width: calc((100vw - 36px) / 3) !important;
    }

    /* ── Scroller spacing ── */
    .cards-scroller {
        gap: 6px !important;
        scroll-padding-left: 8px !important;
    }

    .cards-scroller::before,
    .cards-scroller::after {
        flex: 0 0 6px !important;
    }

    /* ── Section headers ── */
    .row-header {
        padding: 0 8px !important;
        margin-bottom: 4px !important;
    }

    .row-header h2 {
        font-size: 11px !important;
        letter-spacing: -0.2px !important;
    }

    .more-btn {
        width: 20px !important;
        height: 20px !important;
        font-size: 8px !important;
    }

    /* ── Light Mode Pill-style More Button (Heavily Shrunk) ── */
    body.light-mode .row-header .more-btn {
        font-size: 8px !important;
        padding: 3px 8px !important;
        gap: 2px !important;
        width: auto !important;
        height: auto !important;
        border-radius: 12px !important;
    }
    
    body.light-mode .row-header .more-btn i {
        font-size: 6px !important;
        margin-left: 1px !important;
    }

    /* ── Card text ── */
    .card-title {
        font-size: 9.5px !important;
        margin: 2px 2px 1px !important;
    }

    .card-info {
        padding: 0 2px !important;
    }

    .platform, .year, .rating {
        font-size: 8px !important;
        gap: 1.5px !important;
    }

    /* ── Free episodes light mode badges (Heavily Shrunk) ── */
    body.light-mode #free-to-watch-scroller .platform,
    body.light-mode #free-to-watch-scroller .year,
    body.light-mode #free-to-watch-scroller .rating {
        padding: 1px 3px !important;
        border-radius: 3px !important;
        font-size: 6.5px !important;
    }

    /* ── Card image wrapper ── */
    .img-wrapper {
        border-radius: 6px !important;
        margin-bottom: 3px !important;
    }

    /* ── Free badge ── */
    .card-badge.free-badge {
        font-size: 5.5px !important;
        padding: 1.5px 3px !important;
        top: 3px !important;
        right: 3px !important;
        gap: 1.5px !important;
        border-radius: 4px !important;
    }

    .card-badge.free-badge i {
        font-size: 5px !important;
    }

    /* ── Section spacing ── */
    body.home-page .content-row {
        margin-top: 10px !important;
    }

    .content-row {
        padding-bottom: 4px !important;
    }

    /* ── Top nav ── */
    .top-nav {
        padding: 8px 10px !important;
    }

    .top-nav.nav-scrolled {
        padding: 6px 10px !important;
    }

    .logo span {
        font-size: 17px !important;
    }
    
    .logo span strong {
        font-size: 24px !important;
    }

    .menu-btn {
        font-size: 16px !important;
    }

    .search-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }

    /* ── Bottom nav ── */
    .bottom-nav {
        height: 56px !important;
    }

    .nav-item {
        font-size: 8.5px !important;
        gap: 2px !important;
    }

    .nav-item i {
        font-size: 14px !important;
    }

    .app-container {
        padding-bottom: 60px !important;
    }

    /* ── Free-to-watch section ── */
    #free-to-watch-section {
        padding: 10px 6px !important;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    /* ── Platform pills ── */
    .browse-platform {
        margin: 16px auto !important;
        padding: 0 10px !important;
    }
    .browse-platform h2 {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
    .platform-pills {
        gap: 6px !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .platform-pill {
        padding: 8px 4px !important;
        border-radius: 10px !important;
    }
    .platform-pill .pill-name {
        font-size: 9px !important;
        margin-bottom: 4px !important;
    }
    .platform-pill .pill-count {
        font-size: 7.5px !important;
        padding: 1.5px 4px !important;
    }

    /* ── Sidebar download and support/donate buttons ── */
    .sidebar-link.sidebar-download-btn,
    #appDonateBtnSidebar {
        font-size: 11.5px !important;
        padding: 10px 16px !important;
        gap: 10px !important;
    }
    .sidebar-link.sidebar-download-btn i,
    #appDonateBtnSidebar i {
        font-size: 14px !important;
    }
    .sidebar-link.sidebar-download-btn .sidebar-badge,
    #appDonateBtnSidebar .sidebar-badge {
        font-size: 7.5px !important;
        padding: 1.5px 4px !important;
    }

    /* ── Floating Install / Donate Side Tab ── */
    .tadb-side-tab {
        bottom: 96px !important;
        font-size: 10px !important;
        padding: 5px 8px 5px 12px !important;
        border-radius: 14px 0 0 14px !important;
        gap: 6px !important;
    }
    .tadb-side-tab i {
        font-size: 11px !important;
    }

    /* ── Footer ── */
    .site-footer {
        padding: 16px 12px 12px !important;
        margin-top: 16px !important;
    }
    .footer-top {
        gap: 16px !important;
        margin-bottom: 16px !important;
    }
    .footer-logo {
        font-size: 16px !important;
    }
    .footer-logo-row {
        gap: 8px !important;
        margin-bottom: 8px !important;
    }
    .footer-desc {
        font-size: 9px !important;
        line-height: 1.4 !important;
        margin-top: 6px !important;
    }
    .footer-links-grid {
        gap: 16px !important;
    }
    .footer-links-col h3 {
        font-size: 8px !important;
        margin-bottom: 6px !important;
        letter-spacing: 0.5px !important;
    }
    .footer-links-col ul {
        gap: 6px !important;
    }
    .footer-links-col ul li a {
        font-size: 10px !important;
    }
    .footer-socials {
        gap: 16px !important;
        margin-bottom: 16px !important;
    }
    .footer-socials a {
        font-size: 14px !important;
    }
    .footer-copy {
        font-size: 8px !important;
        margin-top: 10px !important;
    }
    .mobile-only .footer-live-badge {
        width: 32px !important;
        height: 32px !important;
    }
    .mobile-only .footer-live-dot {
        top: 1px !important;
        right: 1px !important;
        width: 4px !important;
        height: 4px !important;
    }
    .mobile-only .footer-live-count {
        font-size: 10px !important;
    }
    .mobile-only .footer-live-label {
        font-size: 7px !important;
        letter-spacing: 0.2px !important;
    }
    .footer-live-counter.mobile-only {
        margin-top: 8px !important;
        gap: 2px !important;
    }
    .footer-bottom {
        padding-top: 10px !important;
    }
}

