/* ============================================================
   eGranth — Master Unified Stylesheet (Mobile & Desktop Optimized)
   ============================================================ */

:root { 
    color-scheme: dark; 
    --theme-red: #e50914; 
    --theme-red-light: #ff3b3b; 
    --theme-red-deep: #7a060c; 
}

* { 
    -webkit-tap-highlight-color: transparent; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    box-sizing: border-box; 
}

*::-webkit-scrollbar { 
    display: none; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background: radial-gradient(120% 55% at 50% -8%, rgba(229,9,20,0.16), transparent 62%), #0a0a0a; 
    background-attachment: fixed; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
    text-rendering: optimizeLegibility; 
    transition: padding-left 0.3s ease;
}

h1, h2, h3, .heading-font { 
    font-family: 'Outfit', sans-serif; 
    letter-spacing: -0.01em; 
}

.brand-font { 
    font-family: 'Montserrat', sans-serif; 
}

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { 
    outline: 2px solid var(--theme-red-light); 
    outline-offset: 2px; 
    border-radius: 4px; 
}

@media (prefers-reduced-motion: reduce) { 
    *, *::before, *::after { 
        animation-duration: 0.01ms !important; 
        animation-iteration-count: 1 !important; 
        transition-duration: 0.01ms !important; 
        scroll-behavior: auto !important; 
    } 
}

/* iOS Safe Area Support */
.pb-safe { 
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom)); 
}

/* ============================================================
   Splash Screen Loader Animations
   ============================================================ */
#splash-screen { transition: opacity 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loadingLine { 0% { width: 0%; } 50% { width: 70%; } 100% { width: 100%; } }

/* ============================================================
   Navbar Styles (Sleek Netflix Style - No Hard Borders)
   ============================================================ */
.navbar-gradient { background: linear-gradient(180deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 38%, rgba(0,0,0,0.28) 70%, rgba(0,0,0,0) 100%); }

.nav-link { position: relative; cursor: pointer; padding-bottom: 4px; transition: color 0.2s ease; font-family: 'Inter', sans-serif; }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { color: #d1d5db; } }
.nav-link.active { color: #fff; font-weight: 600; }

#search-input { width: 0; opacity: 0; pointer-events: none; padding: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#search-input.expanded { width: 180px; opacity: 1; pointer-events: auto; padding: 0.375rem 0.75rem; }
@media (min-width: 768px) { #search-input.expanded { width: 240px; } }

/* ============================================================
   Hero Carousel Styles
   ============================================================ */
.hero-shell { position: relative; width: 100%; height: 54vh; min-height: 390px; max-height: 540px; border-radius: 0; box-shadow: none; --hero-mx: 0px; --hero-my: 0px; --hero-sy: 0px; }
@media (min-width: 768px) { .hero-shell { height: min(36vw, 80vh); min-height: 460px; max-height: 760px; } }
@media (max-width: 380px) { .hero-shell { min-height: 360px; } }

.hero-slide-media { -webkit-mask-image: var(--hero-fade); mask-image: var(--hero-fade); --hero-fade: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0.86) 78%, rgba(0,0,0,0.50) 88%, rgba(0,0,0,0.16) 96%, transparent 100%); }
@media (min-width: 768px) { .hero-slide-media { --hero-fade: linear-gradient(180deg, #000 0%, #000 76%, rgba(0,0,0,0.90) 86%, rgba(0,0,0,0.62) 92%, rgba(0,0,0,0.28) 97%, transparent 100%); } }
.hero-parallax { position: absolute; inset: -26px; transform: translate3d(var(--hero-mx, 0px), calc(var(--hero-my, 0px) + var(--hero-sy, 0px)), 0); }
.hero-slide-bg { background-size: cover; background-position: var(--hero-pos, 66% center); background-repeat: no-repeat; }
@media (min-width: 768px) { .hero-slide-bg { background-position: var(--hero-pos, top center); } }

.hero-swiper, .hero-swiper .swiper-wrapper, .hero-swiper .swiper-slide { height: 100%; width: 100%; }
.hero-swiper .swiper-slide { position: relative; overflow: hidden; }
.hero-swiper .swiper-slide .hero-slide-bg { transform: scale(1.004); transform-origin: 62% 34%; }
.hero-swiper .swiper-slide-active .hero-slide-bg { animation: heroDrift 12s cubic-bezier(0.16, 0.6, 0.35, 1) forwards; }
@keyframes heroDrift { from { transform: scale(1.004); } to { transform: scale(1.032); } }

.hero-content > * { opacity: 1; }
.hero-swiper .swiper-slide-active .hero-content > * { animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-swiper .swiper-slide-active .hero-content > *:nth-child(1) { animation-delay: 0.12s; }
.hero-swiper .swiper-slide-active .hero-content > *:nth-child(2) { animation-delay: 0.24s; }
.hero-swiper .swiper-slide-active .hero-content > *:nth-child(3) { animation-delay: 0.38s; }
.hero-swiper .swiper-slide-active .hero-content > *:nth-child(4) { animation-delay: 0.52s; }
@keyframes heroRise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

.hero-swiper .swiper-slide::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(128% 100% at 62% 34%, transparent 42%, rgba(0,0,0,0.22) 76%, rgba(0,0,0,0.44) 100%); }
.hero-swiper .swiper-slide-active::after { content: ''; position: absolute; inset: -12%; z-index: 2; pointer-events: none; opacity: 0.55; background: radial-gradient(30% 34% at 74% 26%, rgba(255,186,150,0.10), transparent 70%), radial-gradient(26% 30% at 30% 74%, rgba(229,9,20,0.09), transparent 72%); animation: heroAtmos 34s ease-in-out infinite alternate; }
@keyframes heroAtmos { from { transform: translate3d(-1.2%, 0.8%, 0) scale(1); } to { transform: translate3d(1.6%, -1.2%, 0) scale(1.06); } }

.hero-seam { position: relative; height: 1px; margin: 0.35rem 1rem 0 1rem; background: linear-gradient(90deg, rgba(255,59,59,0.85) 0%, rgba(229,9,20,0.45) 14%, rgba(229,9,20,0.14) 38%, rgba(229,9,20,0.04) 62%, transparent 100%); z-index: 12; pointer-events: none; }
.hero-seam::before { content: ''; position: absolute; left: 0; top: -2px; width: min(240px, 45%); height: 5px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,59,59,0.7), transparent); filter: blur(4px); opacity: 0.8; }
@media (min-width: 768px) { .hero-seam { margin: 0.5rem 3rem 0 3rem; } .hero-seam::before { width: min(360px, 32%); } }

.hero-swiper-pagination { position: absolute; left: 1rem; right: 1rem; bottom: 0; z-index: 30; display: flex; align-items: stretch; gap: 0; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,0.10); }
@media (min-width: 768px) { .hero-swiper-pagination { left: 3rem; right: 3rem; height: 3px; bottom: 0; } }
.hero-swiper-pagination .swiper-pagination-bullet { flex: 1 1 0; width: auto; height: auto; min-width: 0; border-radius: 0; margin: 0; opacity: 1; cursor: pointer; background: transparent; transition: background 0.45s ease, box-shadow 0.45s ease; }
@media (hover: hover) and (pointer: fine) { .hero-swiper-pagination .swiper-pagination-bullet:hover { background: rgba(255,255,255,0.22); } }
.hero-swiper-pagination .swiper-pagination-bullet-active { background: linear-gradient(90deg, var(--theme-red-light), var(--theme-red)); box-shadow: 0 0 14px rgba(229,9,20,0.65); }

.hero-title { font-family: 'Playfair Display', 'Outfit', serif; font-size: clamp(2rem, 3.9vw, 4.4rem); line-height: 1.05; color: #ffffff; font-weight: 700; letter-spacing: -0.012em; text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 16px 44px rgba(0,0,0,0.75); margin-bottom: 0.65rem; max-width: 24ch; word-wrap: break-word; overflow-wrap: break-word; }
@media (min-width: 768px) { .hero-title { margin-bottom: 1.15rem; } }

.hero-meta { font-family: 'Outfit', sans-serif; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: #b9bec7; margin-bottom: 0.9rem; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
.hero-meta::before { content: ''; flex: none; width: 22px; height: 2px; margin-right: 0.85rem; border-radius: 2px; background: linear-gradient(90deg, var(--theme-red-light), rgba(229,9,20,0.25)); box-shadow: 0 0 12px rgba(229,9,20,0.55); }
@media (min-width: 768px) { .hero-meta { font-size: 0.8rem; letter-spacing: 0.26em; margin-bottom: 1.25rem; } .hero-meta::before { width: 34px; } }
.hero-meta-sep { color: rgba(156,163,175,0.5); margin: 0 0.5em; }

.hero-description { font-family: 'Inter', sans-serif; max-width: 40rem; font-size: 0.9rem; font-weight: 400; line-height: 1.4; color: #e5e7eb; margin-bottom: 1rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); word-wrap: break-word; overflow-wrap: break-word; }
@media (min-width: 768px) { .hero-description { font-size: 1.05rem; line-height: 1.6; margin-bottom: 2.25rem; max-width: 34rem; } }

.hero-content .hero-read-btn, .hero-content .hero-info-btn, .hero-content .btn-red-gradient { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, background 0.35s ease; }
.hero-content .hero-read-btn::after, .hero-content .btn-red-gradient::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.38), transparent); transform: translate3d(-180%, 0, 0) skewX(-18deg); opacity: 0; }
@media (hover: hover) and (pointer: fine) {
    .hero-content .hero-read-btn:hover, .hero-content .btn-red-gradient:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(229,9,20,0.55), 0 12px 26px -8px rgba(0,0,0,0.75); }
    .hero-content .hero-read-btn:hover::after, .hero-content .btn-red-gradient:hover::after { animation: heroSheen 0.85s cubic-bezier(0.3,0,0.2,1); }
    .hero-content .hero-info-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.28); box-shadow: 0 12px 26px -10px rgba(0,0,0,0.7); }
}
@keyframes heroSheen { from { transform: translate3d(-180%, 0, 0) skewX(-18deg); opacity: 1; } to { transform: translate3d(320%, 0, 0) skewX(-18deg); opacity: 0; } }
.hero-content .hero-info-btn { background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }

.hero-gradient-left { background: none; }
@media (min-width: 768px) { .hero-gradient-left { background: linear-gradient(90deg, rgba(8,8,10,0.80) 0%, rgba(8,8,10,0.66) 18%, rgba(8,8,10,0.40) 34%, rgba(8,8,10,0.16) 48%, rgba(8,8,10,0.04) 58%, transparent 66%); } }
.hero-gradient-bottom { background: linear-gradient(180deg, transparent 0%, rgba(8,8,10,0.05) 58%, rgba(8,8,10,0.20) 78%, rgba(8,8,10,0.40) 92%, rgba(10,10,10,0.55) 100%); }
@media (min-width: 768px) { .hero-gradient-bottom { background: linear-gradient(180deg, transparent 0%, rgba(8,8,10,0.03) 66%, rgba(8,8,10,0.12) 82%, rgba(8,8,10,0.26) 93%, rgba(10,10,10,0.38) 100%); } }
.hero-text-pocket { background: radial-gradient(78% 62% at 8% 92%, rgba(5,5,8,0.80) 0%, rgba(5,5,8,0.52) 38%, rgba(5,5,8,0.22) 62%, transparent 82%); }
@media (min-width: 768px) { .hero-text-pocket { background: radial-gradient(52% 72% at 20% 78%, rgba(5,5,8,0.74) 0%, rgba(5,5,8,0.46) 40%, rgba(5,5,8,0.18) 66%, transparent 84%); } }

/* ============================================================
   Cards, Rows, & Spotlight Scroller
   ============================================================ */
.scroll-row { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; cursor: grab; }
.scroll-row:active { cursor: grabbing; }

.row-fade { position: relative; }
.row-fade::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 3rem; background: linear-gradient(to left, var(--fade-color, #0a0a0a), transparent); pointer-events: none; z-index: 10; }
@media (min-width: 768px) { .row-fade::after { width: 7rem; } }

.card-cover { transition: transform 0.3s cubic-bezier(0.25,1,0.5,1), box-shadow 0.3s; }
.card-overlay { opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 0.3s cubic-bezier(0.25,1,0.5,1); }
@media (hover: hover) and (pointer: fine) {
    .card-cover:hover { transform: scale(1.08); z-index: 40; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.6), 0 0 22px rgba(229,9,20,0.28); border: 1px solid rgba(220, 38, 38, 0.35); }
    .card-cover:hover .card-overlay { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

.category-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 40%), linear-gradient(0deg, rgba(0,0,0,0.35), transparent 55%); pointer-events: none; }
.category-tile { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); transition: transform 0.3s cubic-bezier(0.25,1,0.5,1), box-shadow 0.3s; }
@media (hover: hover) and (pointer: fine) { .category-tile:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 12px 24px -8px rgba(0,0,0,0.6), 0 0 20px rgba(229,9,20,0.25); } }

.detail-card { position: relative; }
.detail-card::before { content: ''; position: absolute; top: -1px; left: 12%; right: 12%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--theme-red-light), transparent); opacity: 0.7; }

.preview-end-card { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; text-align: center; padding: 0.5rem; border-radius: 0.25rem; cursor: pointer; background: linear-gradient(155deg, rgba(229,9,20,0.16), rgba(20,20,20,0.9) 65%); border: 1px dashed rgba(229,9,20,0.45); color: #fff; font-family: 'Inter', sans-serif; transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
@media (hover: hover) and (pointer: fine) { .preview-end-card:hover { border-color: var(--theme-red-light); box-shadow: 0 0 20px rgba(229,9,20,0.3); transform: translateY(-2px); } }
.preview-end-card .preview-end-icon { height: 26px; width: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--theme-red-light), var(--theme-red-deep)); box-shadow: 0 0 12px rgba(229,9,20,0.45); }
.preview-end-card .preview-end-label { font-size: 9px; line-height: 1.25; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.9); }
@media (min-width: 768px) { .preview-end-card .preview-end-label { font-size: 10px; } }

.trending-number { position: absolute; left: -0.35rem; bottom: -0.15rem; font-size: 3.75rem; font-weight: 900; line-height: 1; font-family: 'Outfit', sans-serif; background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.04)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.22); z-index: 0; pointer-events: none; user-select: none; }
@media (min-width: 480px) { .trending-number { font-size: 5rem; left: -0.5rem; bottom: -0.2rem; } }
@media (min-width: 768px) { .trending-number { font-size: 8rem; left: 0; bottom: -0.4rem; } }

.spotlight-wrap { position: relative; }
.spotlight-wrap.spotlight-on::before { content: ''; position: absolute; left: 0; right: 0; top: 8%; bottom: 8%; z-index: 0; pointer-events: none; background: radial-gradient(30% 62% at 50% 50%, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 46%, transparent 74%), radial-gradient(22% 74% at 50% 50%, rgba(229,9,20,0.09) 0%, rgba(229,9,20,0.03) 54%, transparent 78%); }
.spotlight-wrap .scroll-row { position: relative; z-index: 1; }
.spotlight-row .card-cover { --spot: 1; opacity: calc(0.62 + 0.38 * var(--spot)); transform: scale(calc(0.94 + 0.06 * var(--spot))); transition: opacity 0.3s linear, transform 0.3s cubic-bezier(0.25,1,0.5,1); }
.spotlight-row .card-cover::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: #05050a; opacity: calc(0.26 - 0.26 * var(--spot)); transition: opacity 0.3s linear; }
@media (hover: hover) and (pointer: fine) { .spotlight-row .card-cover:hover { --spot: 1 !important; transform: scale(1.08); z-index: 40; } }

/* ============================================================
   Modals & Popups
   ============================================================ */
#detail-modal { transition: opacity 0.3s ease; }
#detail-panel { transition: transform 0.4s cubic-bezier(.2,.8,.2,1); transform: translateX(100%); }
#detail-modal.is-open #detail-panel { transform: translateX(0); }
.modal-hero-shell { height: 40dvh; min-height: 260px; max-height: 460px; }
@media (min-width: 768px) { .modal-hero-shell { height: 52dvh; min-height: 380px; max-height: 620px; } }
.modal-title-fluid { font-size: clamp(1.5rem, 5.2vw, 3rem); line-height: 1.12; }
.modal-gradient-left { background: linear-gradient(100deg, #0f0f0f 0%, rgba(15,15,15,0.9) 25%, rgba(15,15,15,0.45) 55%, transparent 90%); }
.modal-gradient-bottom { background: linear-gradient(180deg, transparent 0%, rgba(15,15,15,0.35) 45%, rgba(15,15,15,0.92) 85%, #0f0f0f 100%); }

#publisher-modal { transition: opacity 0.28s ease; }
#publisher-panel { transform: translateY(24px); opacity: 0; transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.28s ease; }
#publisher-modal.is-open #publisher-panel { transform: translateY(0); opacity: 1; }

/* Celebration Modal Animation */
.modal-enter { opacity: 1 !important; pointer-events: auto !important; }
.modal-leave { opacity: 0 !important; pointer-events: none !important; }
.panel-enter { transform: scale(1) translateY(0) !important; opacity: 1 !important; }
.panel-leave { transform: scale(0.95) translateY(10px) !important; opacity: 0 !important; }

/* ============================================================
   Sidebar Core
   ============================================================ */
#user-sidebar-overlay { transition: opacity 0.3s ease; }
#user-sidebar-panel { transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
#user-sidebar-overlay.is-open { opacity: 1 !important; }
#user-sidebar-panel.is-open { transform: translateX(0) !important; }

/* ============================================================
   Desktop Internal Sidebar (Always Open on Left)
   ============================================================ */
@media (min-width: 1024px) {
    /* If the sidebar is set to the left (internal pages) */
    body:has(#user-sidebar-panel.left-0) {
        padding-left: 24rem; /* Push content to make room for max-w-sm (384px) */
    }
    #user-sidebar-panel.left-0 {
        transform: translateX(0) !important; /* Always visible */
        border-right: 1px solid rgba(255,255,255,0.1);
        box-shadow: none !important;
    }
    body:has(#user-sidebar-panel.left-0) #user-sidebar-overlay {
        display: none !important; /* No dark overlay */
    }
    body:has(#user-sidebar-panel.left-0) #navbar {
        left: 24rem !important;
        width: calc(100% - 24rem) !important;
    }
    /* Hide the close (X) button on desktop */
    #user-sidebar-panel.left-0 .flex.items-center.justify-between button {
        display: none;
    }
    /* Hide the top-right avatar menu trigger on desktop, since sidebar is already open */
    body:has(#user-sidebar-panel.left-0) #native-user-menu {
        display: none !important;
    }
}

/* ============================================================
   Netflix Specific Form & Account Styling
   ============================================================ */
.netflix-input {
    background-color: #333333;
    color: #ffffff;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}
.netflix-input:focus {
    background-color: #454545;
    border-color: #ffffff;
    outline: none;
    box-shadow: none;
}
.netflix-input:disabled {
    background-color: #222222;
    color: #888888;
    cursor: not-allowed;
}

.netflix-input-wrap {
    position: relative;
}
.netflix-input-wrap label {
    position: absolute;
    left: 16px;
    top: 14px;
    color: #8c8c8c;
    font-size: 15px;
    transition: all 0.2s ease-out;
    pointer-events: none;
}
.netflix-input:focus ~ label,
.netflix-input:not(:placeholder-shown) ~ label {
    transform: translateY(-8px) scale(0.75);
    transform-origin: top left;
    color: #b3b3b3;
}

.netflix-link {
    color: #0071eb;
    text-decoration: none;
    font-weight: 500;
}
.netflix-link:hover {
    text-decoration: underline;
}

/* ============================================================
   Publisher Details
   ============================================================ */
.publisher-chip { display: inline-flex; align-items: center; gap: 0.3rem; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-align: left; text-decoration: none; transition: opacity 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .publisher-chip:hover { opacity: 0.8; } }
.publisher-chip[aria-disabled="true"] { cursor: default; opacity: 1; pointer-events: none; }
.publisher-chip-caret { height: 0.85em; width: 0.85em; opacity: 0.5; flex: none; transition: transform 0.2s ease, opacity 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .publisher-chip:hover .publisher-chip-caret { opacity: 0.95; transform: translateX(2px); } }
.publisher-chip[aria-disabled="true"] .publisher-chip-caret { display: none; }

.publisher-hero-band { background: radial-gradient(120% 140% at 12% 0%, rgba(229,9,20,0.22), transparent 62%), #121212; border-bottom: 1px solid rgba(255,255,255,0.07); }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .info-grid { grid-template-columns: 1fr 1fr; gap: 0 32px; } }
.info-row { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.info-label { font-family: 'Outfit', sans-serif; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #6f7480; margin-bottom: 5px; }
.info-value { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: #e5e7eb; line-height: 1.5; word-break: break-word; }
.info-value a { color: #e5e7eb; text-decoration: none; border-bottom: 1px solid rgba(229,9,20,0.5); transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .info-value a:hover { color: var(--theme-red-light); } }

.publisher-band { position: relative; overflow: hidden; background: #0f0f0f; border-bottom: 1px solid rgba(255,255,255,0.07); }
.band-art { position: absolute; top: 50%; right: -8%; z-index: 0; display: flex; gap: 10px; align-items: center; transform: translateY(-50%) rotate(-9deg) scale(1.05); opacity: 0.10; filter: blur(1.5px); pointer-events: none; user-select: none; }
.band-art .band-cover:nth-child(n+4) { display: none; }
@media (min-width: 640px) { .band-art { right: -5%; gap: 13px; opacity: 0.13; transform: translateY(-50%) rotate(-9deg) scale(1.1); } .band-art .band-cover:nth-child(n+4) { display: block; } }
@media (min-width: 1024px) { .band-art { right: -4%; gap: 16px; opacity: 0.17; transform: translateY(-50%) rotate(-9deg) scale(1.18); } }
.band-cover { width: 76px; flex: none; aspect-ratio: 2/3; border-radius: 8px; background-size: cover; background-position: top center; background-color: #1a1a1a; box-shadow: 0 18px 40px -18px rgba(0,0,0,1); }
@media (min-width: 640px) { .band-cover { width: 96px; border-radius: 9px; } }
@media (min-width: 1024px) { .band-cover { width: 128px; border-radius: 10px; } }
.band-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #0f0f0f 30%, rgba(15,15,15,0.88) 58%, rgba(15,15,15,0.55) 100%); }
.publisher-band::before { content: ''; position: absolute; top: -30%; left: -10%; z-index: 1; width: 55%; height: 160%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(229,9,20,0.14) 0%, transparent 70%); filter: blur(10px); animation: bandGlowDrift 14s ease-in-out infinite alternate; }
@keyframes bandGlowDrift { 0%   { transform: translate(0, 0) scale(1); } 100% { transform: translate(6%, 8%) scale(1.15); } }
.band-inner { position: relative; z-index: 2; opacity: 0; transform: translateY(14px); animation: bandInnerRise 0.65s cubic-bezier(.2,.8,.2,1) 0.05s forwards; }
@keyframes bandInnerRise { to { opacity: 1; transform: translateY(0); } }

.publisher-logo-plate { display: flex; align-items: center; justify-content: center; height: 84px; width: 84px; flex: none; border-radius: 16px; padding: 10px; position: relative; background: linear-gradient(155deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03)) padding-box, linear-gradient(155deg, rgba(229,9,20,0.65), rgba(255,255,255,0.08) 45%, rgba(229,9,20,0.25)) border-box; border: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 12px 26px -12px rgba(0,0,0,0.95), 0 0 14px -6px rgba(229,9,20,0.4); transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .publisher-logo-plate[role="button"]:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 16px 32px -12px rgba(0,0,0,0.95), 0 0 20px -4px rgba(229,9,20,0.55); } }
.publisher-logo-plate[role="button"]:active { transform: translateY(0); }
@media (min-width: 768px) { .publisher-logo-plate { height: 128px; width: 128px; border-radius: 24px; padding: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 16px 36px -14px rgba(0,0,0,0.95), 0 0 26px -6px rgba(229,9,20,0.45); } }
.publisher-logo-plate img { max-height: 100%; max-width: 100%; object-fit: contain; position: relative; z-index: 1; }
.publisher-initials { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.85rem; letter-spacing: -0.02em; background: linear-gradient(180deg, #fff, rgba(255,255,255,0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 16px rgba(229,9,20,0.3); position: relative; z-index: 1; }
@media (min-width: 768px) { .publisher-initials { font-size: 2.2rem; text-shadow: 0 0 24px rgba(229,9,20,0.35); } }

.publisher-name { position: relative; display: inline-block; font-size: clamp(1.5rem, 6vw, 3rem); line-height: 1.1; font-weight: 800; }
.publisher-eyebrow { font-family: 'Outfit', sans-serif; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #6f7480; }
.publisher-stats-grid { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 640px) { .publisher-stats-grid { gap: 10px; } }
.publisher-stat { font-family: 'Outfit', sans-serif; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9ca3af; display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09); padding: 6px 10px 6px 8px; border-radius: 999px; transition: border-color 0.2s ease, background 0.2s ease; max-width: 100%; }
@media (hover: hover) and (pointer: fine) {
    .publisher-stat:hover { border-color: rgba(229,9,20,0.4); background: rgba(255,255,255,0.07); }
    .publisher-stats-grid[role="button"]:hover .publisher-stat { border-color: rgba(229,9,20,0.22); }
}
.publisher-stat-text { white-space: normal; overflow-wrap: break-word; }
.publisher-stat b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; font-size: 0.72rem; }
.publisher-stat svg { height: 0.8rem; width: 0.8rem; opacity: 0.65; flex: none; }
@media (min-width: 640px) { .publisher-stat { font-size: 0.68rem; letter-spacing: 0.1em; gap: 0.4rem; padding: 6px 12px 6px 10px; } .publisher-stat b { font-size: 0.85rem; } .publisher-stat svg { height: 0.95rem; width: 0.95rem; } }

/* ============================================================
   General Utilities
   ============================================================ */
.btn-red-gradient { background: linear-gradient(135deg, var(--theme-red-light) 0%, var(--theme-red) 55%, var(--theme-red-deep) 100%); }
@media (hover: hover) and (pointer: fine) { .btn-red-gradient:hover { background: linear-gradient(135deg, #ff5b5b 0%, #ff0f1c 55%, #8f070d 100%); } }
.text-gradient-red { background: linear-gradient(90deg, var(--theme-red-light), var(--theme-red) 65%, var(--theme-red-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn-glow { box-shadow: 0 0 20px rgba(229,9,20,0.4), 0 4px 10px rgba(0,0,0,0.4); transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease, background 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(229,9,20,0.5), 0 8px 18px rgba(0,0,0,0.5); } }
.btn-glow:active { transform: translateY(0); }

.btn-glass { background: rgba(40,40,40,0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15); transition: transform 0.2s cubic-bezier(.2,.8,.2,1), background 0.2s ease, border-color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .btn-glass:hover { transform: translateY(-2px); background: rgba(60,60,60,0.85); border-color: rgba(229,9,20,0.4); } }
.btn-glass:active { transform: translateY(0); }

.section-heading { position: relative; padding-left: 14px; }
.section-heading::before { content: ''; position: absolute; left: 0; top: 0.14em; bottom: 0.14em; width: 4px; border-radius: 3px; background: linear-gradient(180deg, var(--theme-red-light), var(--theme-red-deep)); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag-pill::after { content: '|'; margin: 0 0.6em; color: rgba(255,255,255,0.3); }
.tag-pill:last-child::after { content: ''; margin: 0; }
::selection { background: var(--theme-red); color: #fff; }

@media (max-width: 380px) { 
    #publications-section, #rows-container, #view-categories, #view-popular, #view-mylist { padding-left: 0.85rem; padding-right: 0.85rem; } 
    .hero-title { font-size: clamp(1.65rem, 8vw, 2rem); } 
}

/* ============================================================
   Premium Footer (Responsive Grid)
   ============================================================ */
.premium-footer { background: #050505; padding: 50px 20px 30px 20px; color: #ffffff; position: relative; z-index: 10; margin-bottom: 60px; font-family: 'Inter', sans-serif; }
@media (min-width: 768px) { .premium-footer { margin-bottom: 0; } }

.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr; gap: 30px; padding-bottom: 40px; }
.footer-col h4 { color: var(--theme-red); font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.8px; margin-bottom: 20px; text-transform: uppercase; }
.footer-col p { color: #9ca3af; font-size: 13.5px; line-height: 1.6; margin-bottom: 15px; font-weight: 300; }
.footer-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-nav-link { color: #9ca3af; text-decoration: none; font-size: 13.5px; transition: all 0.2s ease; display: inline-block; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .footer-nav-link:hover { color: #fff; transform: translateX(3px); } }

.footer-brand-logo { max-width: 180px; height: auto; object-fit: contain; margin-bottom: 15px; transition: opacity 0.3s ease; }
@media (hover: hover) and (pointer: fine) { .footer-brand-logo:hover { opacity: 0.8; } }

.parent-brand-logo { max-width: 250px; width: 100%; height: auto; object-fit: contain; transition: opacity 0.3s ease; }
@media (hover: hover) and (pointer: fine) { .parent-brand-logo:hover { opacity: 0.85; } }

.footer-bottom-bar { max-width: 1200px; margin: 0 auto; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-copyright { color: rgba(255, 255, 255, 0.4); font-size: 12.5px; letter-spacing: 0.3px; }
.footer-credits { color: rgba(255, 255, 255, 0.3); font-size: 11.5px; letter-spacing: 0.5px; text-transform: uppercase; }

.developer-link { color: var(--theme-red); text-decoration: none; font-weight: 600; transition: all 0.3s ease; }
@media (hover: hover) and (pointer: fine) { .developer-link:hover { color: #fff; text-shadow: 0 0 10px rgba(229, 9, 20, 0.6); } }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { 
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 35px; } 
    .footer-col h4 { margin-bottom: 15px; } 
    .footer-nav-list { align-items: center; } 
    .footer-nav-link:hover { transform: translateX(0); color: #fff; } 
    .footer-brand-logo { margin: 0 auto 15px auto; } 
    .parent-brand-logo { margin: 0 auto; } 
    .footer-bottom-bar { flex-direction: column; text-align: center; justify-content: center; } 
}