/* CINEVA UNIFIED DESIGN SYSTEM — shared visual language across all pages */
:root{
 --cineva-header-height:76px;--cineva-content-width:1440px;
 --cineva-gutter:clamp(15px,3.2vw,46px);--cineva-section-gap:clamp(36px,5vw,68px);
 --cineva-panel:linear-gradient(145deg,rgba(20,20,39,.96),rgba(12,12,25,.96));
}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{min-width:320px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 12% -12%,rgba(139,53,245,.10),transparent 34%),var(--cineva-bg,#080812);color:var(--cineva-text,#fff);line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%}button,input,select,textarea{font:inherit}a{text-decoration:none}
::selection{background:rgba(139,53,245,.72);color:#fff}

/* One cinematic glass treatment for every site's header variant */
.main-header,.info-header,.vip-header,.vip-room-header,.auth-header{background:rgba(8,8,18,.9);border-bottom:1px solid var(--cineva-border);box-shadow:0 8px 28px rgba(0,0,0,.13);backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%)}
.main-header{min-height:var(--cineva-header-height)}
.info-header{position:sticky;top:0;z-index:2000;min-height:var(--cineva-header-height);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 var(--cineva-gutter)}
.main-header .navbar.container,.main-header .header-container{max-width:var(--cineva-content-width);margin-inline:auto}
.main-header .header-container{min-height:var(--cineva-header-height);padding-inline:var(--cineva-gutter);display:flex;align-items:center;justify-content:space-between;gap:20px}
.info-logo,.vip-header .brand,.vip-room-brand,.auth-logo{color:#fff;font-weight:900;letter-spacing:-.045em;flex-shrink:0}
.info-nav,.header-nav,.vip-room-nav{display:flex;align-items:center;justify-content:flex-end;gap:clamp(8px,1.5vw,22px)}
.info-nav a,.header-nav a,.vip-room-nav a,.nav-link{color:var(--cineva-muted);font-size:13px;font-weight:650;transition:color .2s ease,background .2s ease}
.info-nav a:hover,.info-nav a.active,.header-nav a:hover,.header-nav a.active,.vip-room-nav a:hover,.nav-link:hover,.nav-link.active{color:#fff}
.info-nav a.active,.header-nav a.active{position:relative}
.info-nav a.active:after,.header-nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:-10px;height:2px;border-radius:4px;background:var(--cineva-gradient)}
.main-header .brand-icon,.main-footer .brand-icon,.logo .brand-icon{border-radius:14px;overflow:hidden;border:1px solid rgba(192,132,252,.28);box-shadow:0 7px 22px rgba(91,35,170,.2)}
.mobile-menu-btn,.menu-toggle,.vip-room-menu-toggle{border:1px solid var(--cineva-border);background:rgba(255,255,255,.045);color:#fff;border-radius:12px}

/* Hero family — home, informational, VIP and member areas */
.hero-section,.info-hero,.vip-hero,.vip-room-hero,.auth-card{isolation:isolate}
.hero-section{background-color:var(--cineva-bg)}
.info-hero,.vip-hero,.vip-room-hero{position:relative;overflow:hidden;border:1px solid rgba(192,132,252,.17);border-radius:clamp(18px,2.5vw,28px);background:radial-gradient(ellipse at 82% 18%,rgba(239,49,94,.15),transparent 36%),radial-gradient(ellipse at 72% 80%,rgba(139,53,245,.24),transparent 42%),linear-gradient(125deg,#111322,#111020 56%,#1a1029);box-shadow:0 22px 65px rgba(0,0,0,.24)}
.info-hero{padding:clamp(38px,6vw,78px) clamp(22px,5vw,68px)}
.info-hero h1,.vip-hero h1,.vip-room-hero h1{color:#fff;font-weight:900;letter-spacing:-.055em;line-height:1.06;text-wrap:balance}
.info-hero h1{font-size:clamp(34px,5.3vw,62px)}
.info-hero p,.vip-hero .hero-content>p,.vip-room-hero-copy>p{color:var(--cineva-muted);line-height:1.85}
.info-label,.vip-badge,.vip-room-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:rgba(139,53,245,.13);border:1px solid rgba(168,85,247,.25);color:#d9c1ff;font-size:10px;font-weight:800;letter-spacing:.12em}
.hero-information h1,.hero-content h1{letter-spacing:-.055em;text-wrap:balance}
.hero-information h1 span,.hero-content h1 span,.info-hero h1 span{background:var(--cineva-gradient);-webkit-background-clip:text;background-clip:text;color:transparent}

/* Content, section headings, cards and information panels */
.info-content,.vip-room-main,.auth-main{width:min(calc(100% - 2 * var(--cineva-gutter)),var(--cineva-content-width));margin-inline:auto}
.content-section{padding-block:var(--cineva-section-gap)}
.info-content{padding-block:32px 64px}
.section-title h2,.section-heading h2,.info-card h2{color:#fff;letter-spacing:-.04em;font-weight:850}
.section-title h2,.section-heading h2{font-size:clamp(20px,2.3vw,29px)}
.section-title p,.section-heading p{color:var(--cineva-muted)}
.info-card,.benefit-card,.payment-panel,.vip-room-panel,.vip-room-status-card{background:var(--cineva-panel);border:1px solid var(--cineva-border);border-radius:18px;box-shadow:0 14px 42px rgba(0,0,0,.17)}
.movie-card{border:1px solid var(--cineva-border);border-radius:16px;background:linear-gradient(155deg,#171727,#10101c);overflow:hidden;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.movie-card:hover{transform:translateY(-5px);border-color:rgba(168,85,247,.42);box-shadow:0 15px 35px rgba(0,0,0,.28)}
.movie-info h3,.movie-info h4{color:#fff}.movie-meta,.movie-info p,.movie-upload-time{color:var(--cineva-muted)}

/* Buttons, inputs and subscription callouts */
.primary-btn,.hero-btn,.plan-select-btn,.payment-submit,.auth-submit,.newsletter-form button,.newsletter-form .subscribe-btn{background:var(--cineva-gradient);color:#fff;border:0;box-shadow:0 9px 25px rgba(139,53,245,.2);font-weight:800}
.primary-btn:hover,.hero-btn:hover,.plan-select-btn:hover,.payment-submit:hover,.auth-submit:hover,.newsletter-form button:hover{filter:brightness(1.09);transform:translateY(-1px)}
.secondary-btn{color:#fff;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.15)}
input,select,textarea{color:#fff;border-color:var(--cineva-border)}
input:focus,select:focus,textarea:focus{border-color:rgba(168,85,247,.75)!important;box-shadow:0 0 0 3px rgba(139,53,245,.12)}
.newsletter-section,.footer-newsletter{border:1px solid rgba(168,85,247,.2);border-radius:22px;background:radial-gradient(ellipse at 90% 0%,rgba(239,49,94,.12),transparent 42%),linear-gradient(125deg,rgba(139,53,245,.13),rgba(17,19,34,.94) 58%)}
.newsletter-text h2,.newsletter-content h2,.footer-newsletter h2{color:#fff;letter-spacing:-.045em}
.newsletter-text p,.newsletter-content p,.footer-newsletter p{color:var(--cineva-muted)}

/* Matching footer surface and link language */
.main-footer,.info-footer,.vip-footer,.vip-room-footer,.auth-footer,.cineva-footer{color:var(--cineva-muted);background:linear-gradient(180deg,rgba(13,13,25,.96),#080812 78%);border-top:1px solid var(--cineva-border)}
.main-footer{margin-top:var(--cineva-section-gap)}
.info-footer,.vip-footer,.vip-room-footer,.auth-footer{padding:32px var(--cineva-gutter)}
.footer-container,.footer-main{max-width:var(--cineva-content-width);margin-inline:auto}
.footer-column h3,.footer-navigation h3{color:#fff;font-weight:800}
.footer-brand p,.footer-nav-description{color:var(--cineva-muted)}
.footer-column ul li a,.footer-navigation ul li a,.footer-links a,.info-footer-links a,.footer-bottom-links a{color:var(--cineva-muted);transition:color .2s ease}
.footer-column ul li a:hover,.footer-navigation ul li a:hover,.footer-links a:hover,.info-footer-links a:hover,.footer-bottom-links a:hover{color:#fff}
.social-links a{border:1px solid var(--cineva-border);background:rgba(255,255,255,.045);color:#d9c1ff;transition:background .2s ease,color .2s ease,transform .2s ease}
.social-links a:hover{color:#fff;background:rgba(139,53,245,.22);transform:translateY(-2px)}
.social-links a.github-profile-link{
    color:#fff;
    background:linear-gradient(135deg,rgba(139,53,245,.24),rgba(239,49,94,.14));
    border-color:rgba(168,85,247,.48);
    box-shadow:0 0 18px rgba(139,53,245,.12);
}
.social-links a.github-profile-link:hover{
    color:#fff;
    background:linear-gradient(135deg,#8b35f5,#b23ce6);
    border-color:#b77aff;
    box-shadow:0 5px 22px rgba(139,53,245,.28);
}
.footer-bottom,.footer-bottom-content{border-color:var(--cineva-border)}
.info-footer{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.info-footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px}
.info-footer p,.footer-bottom p,.footer-bottom-content p,.vip-footer>small,.vip-room-footer>small{color:var(--cineva-subtle)}
.search-result-arrow,.view-all:hover,.inline-link:hover{color:var(--cineva-lavender)}
:focus-visible{outline:2px solid var(--cineva-lavender);outline-offset:3px}


/* =========================================================
   CINEVA — SHARED TYPOGRAPHY SYSTEM
   Inter: interface/body copy | Outfit: headings/display
========================================================= */
:root{
  --cineva-font-body:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --cineva-font-display:'Outfit','Inter',system-ui,sans-serif;
}
html,body{
  font-family:var(--cineva-font-body);
  font-synthesis:none;
}
body,button,input,select,textarea,optgroup{
  font-family:var(--cineva-font-body);
}
button,input,select,textarea{font:inherit}
h1,h2,h3,h4,h5,h6,
.hero-information h1,.hero-content h1,
.info-hero h1,.vip-hero h1,.vip-room-hero h1,
.section-title h2,.section-heading h2,
.auth-heading h1,.series-heading h1{
  font-family:var(--cineva-font-display);
  font-optical-sizing:auto;
  font-weight:700;
  letter-spacing:-.035em;
}
.logo-text h2,.info-logo,.vip-header .brand,.auth-logo{
  font-family:var(--cineva-font-display);
}

/* Android/mobile and tablet */
@media(max-width:950px){:root{--cineva-header-height:68px;--cineva-gutter:18px}.info-header{min-height:68px;flex-wrap:wrap}.info-nav,.header-nav,.vip-room-nav{gap:8px 15px}.info-nav a,.header-nav a,.vip-room-nav a{font-size:12px}.info-hero{padding:34px 22px}}
@media(max-width:650px){:root{--cineva-gutter:15px;--cineva-section-gap:38px}.info-header{min-height:64px;padding-inline:15px}.info-nav{width:100%;justify-content:flex-start;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}.info-nav::-webkit-scrollbar{display:none}.info-nav a{white-space:nowrap}.info-hero,.vip-hero,.vip-room-hero{border-radius:17px}.info-hero{padding:30px 19px}.info-hero h1{font-size:clamp(32px,9vw,44px)}.info-content{padding-block:22px 42px}.info-footer{padding:27px 15px}.info-footer-links{gap:10px 16px}.main-footer{margin-top:38px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}



/* =========================================================
   CINEVA — SITE-WIDE HARMONY PASS
   Shared typography, navigation, surfaces and page rhythm.
   Keep page-specific layouts and all existing functionality.
========================================================= */
:root{
  --cineva-page-gutter:clamp(15px,3.2vw,46px);
  --cineva-panel:linear-gradient(145deg,rgba(20,20,39,.96),rgba(12,12,25,.96));
}
body{min-width:320px;max-width:100%;overflow-x:clip}
img,video,iframe{max-width:100%}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--cineva-lavender,#a855f7);outline-offset:3px}

/* Consistent global navigation across every public page variant. */
.main-header{
  background:rgba(8,8,18,.92)!important;
  border-bottom:1px solid rgba(255,255,255,.085)!important;
  box-shadow:0 8px 30px rgba(0,0,0,.2)!important;
  backdrop-filter:blur(22px) saturate(145%);
  -webkit-backdrop-filter:blur(22px) saturate(145%);
}
.main-header .navbar,.main-header .header-container{
  max-width:1440px;
  margin-inline:auto;
}
.main-header .nav-link{
  color:var(--cineva-muted,#b6b6c7);
  font-weight:650;
  transition:color .2s ease,background .2s ease;
}
.main-header .nav-link:hover,.main-header .nav-link.active{color:#fff}
.main-header .nav-link.active:after{
  background:var(--cineva-gradient);
}
.main-header .nav-icon,.main-header .mobile-menu-btn,.main-header .menu-toggle{
  transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}
.main-header .nav-icon:hover,.main-header .mobile-menu-btn:hover,.main-header .menu-toggle:hover{
  color:#fff;border-color:rgba(168,85,247,.42);background:rgba(139,53,245,.14);
}
.search-box,.search-box input{min-width:0;max-width:100%}

/* Shared page canvas and content width. */
.genre-page,.viewall-page,.categories-page,.watch-page-body{
  background:
    radial-gradient(ellipse at 12% -12%,rgba(139,53,245,.10),transparent 34%),
    var(--cineva-bg,#080812)!important;
  color:var(--cineva-text,#fff);
}
.genre-main,.viewall-page,.categories-page,.watch-page{
  width:100%;max-width:100%;min-width:0;
}
.genre-content-section,.viewall-main{
  width:100%;
}
.genre-content-section>.container,
.viewall-page .container,
.categories-page .container,
.watch-page .container{
  width:min(calc(100% - 2 * var(--cineva-page-gutter)),1440px);
  margin-inline:auto;
}

/* Genre / browse / catalogue heroes use the same cinematic surface. */
.genre-hero,.viewall-hero{
  background:
    radial-gradient(ellipse at 82% 18%,rgba(239,49,94,.13),transparent 36%),
    radial-gradient(ellipse at 72% 80%,rgba(139,53,245,.22),transparent 42%),
    linear-gradient(125deg,#111322,#111020 56%,#1a1029)!important;
  border-bottom:1px solid rgba(255,255,255,.075);
}
.genre-hero-copy h1,.viewall-hero h1{
  font-family:var(--cineva-font-display)!important;
  font-weight:800;letter-spacing:-.05em;
}
.genre-hero-copy p,.viewall-hero-content>p{color:var(--cineva-muted)}
.genre-stat,.viewall-stat,.genre-toolbar,.viewall-filters{
  background:var(--cineva-panel);
  border:1px solid var(--cineva-border);
  box-shadow:0 14px 42px rgba(0,0,0,.16);
}
.genre-toolbar,.viewall-filters{border-radius:17px}
.genre-select-wrap select,.genre-search-field input,
#catalogueSearch,#typeFilter,#categoryFilter,#sortFilter{
  color:#fff;background:#100e1d;border:1px solid var(--cineva-border);
  border-radius:11px;min-width:0;
}
.genre-select-wrap select option,
#typeFilter option,#categoryFilter option,#sortFilter option{
  color:#fff;background:#171326;
}
.genre-grid,.viewall-grid,.movie-grid{
  min-width:0;
}
.genre-grid .movie-card,.viewall-grid .movie-card{
  border:1px solid rgba(255,255,255,.075);
  border-radius:14px;
  background:linear-gradient(155deg,#171727,#10101c);
  box-shadow:0 8px 25px rgba(0,0,0,.2);
}
.genre-grid .movie-card:hover,.viewall-grid .movie-card:hover{
  border-color:rgba(168,85,247,.48);
  box-shadow:0 15px 35px rgba(0,0,0,.35),0 0 22px rgba(145,60,255,.12);
}
.genre-empty,.genre-error,#viewallEmpty,.viewall-empty{
  background:rgba(255,255,255,.025);
  border:1px dashed rgba(255,255,255,.13);
  border-radius:18px;
}

/* Categories landing page — same spacing, cards and visual language. */
.categories-page{
  min-height:calc(100vh - var(--cineva-header-height,76px));
  padding:clamp(34px,5vw,68px) 0;
}
.categories-heading{
  width:min(calc(100% - 2 * var(--cineva-page-gutter)),1440px);
  margin:0 auto clamp(25px,4vw,42px);
}
.categories-heading h1{
  color:#fff;font-size:clamp(30px,4.4vw,52px);font-weight:800;
}
.categories-heading p{max-width:650px;color:var(--cineva-muted);line-height:1.8}
.categories-page .genre-grid{
  width:min(calc(100% - 2 * var(--cineva-page-gutter)),1440px);
  margin-inline:auto;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(12px,2vw,22px);
}
.categories-page .genre-card{
  min-width:0;overflow:hidden;border:1px solid var(--cineva-border);
  border-radius:17px;background:var(--cineva-panel);
  box-shadow:0 12px 32px rgba(0,0,0,.17);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.categories-page .genre-card:hover{
  transform:translateY(-5px);border-color:rgba(168,85,247,.48);
  box-shadow:0 16px 36px rgba(0,0,0,.3);
}
.categories-page .genre-icon{border-radius:13px;overflow:hidden}
.categories-note{color:var(--cineva-muted)}

/* Watch experience: premium player frame, metadata, controls and panels. */
.watch-page-body{
  background:
    radial-gradient(ellipse at 82% 2%,rgba(139,53,245,.13),transparent 32%),
    #080812!important;
}
.watch-page{min-height:70vh}
.watch-details-section,.player-section,.movie-parts-section,
.episodes-section,.comments-section,.related-section{
  border-color:var(--cineva-border);
}
.watch-details-section{background:transparent}
.watch-information,.watch-poster,.player-section,.movie-parts-section,
.episodes-section,.comments-section,.related-section,
.comment-form-card,.player-topbar{
  background:var(--cineva-panel);
  border:1px solid var(--cineva-border);
  border-radius:18px;
  box-shadow:0 14px 42px rgba(0,0,0,.16);
}
.watch-title{color:#fff;font-weight:800;line-height:1.12}
.watch-description,.watch-meta,.watch-small-label{color:var(--cineva-muted)}
.video-player-wrapper{
  overflow:hidden;border:1px solid rgba(168,85,247,.22);
  border-radius:16px;background:#030308;
  box-shadow:0 18px 48px rgba(0,0,0,.32);
}
.player-action-btn,.engagement-btn,.episode-card,.movie-part-card{
  border-color:var(--cineva-border);
}
.player-action-btn:hover,.engagement-btn:hover{
  border-color:rgba(168,85,247,.5);background:rgba(139,53,245,.13);
}
.primary-watch-btn,.download-watch-btn,.post-comment-btn{
  border-radius:11px;font-weight:800;
}
.watch-section-heading h2{font-family:var(--cineva-font-display)!important}
.related-grid,.related-horizontal-grid{min-width:0}
.related-grid .movie-card,.related-horizontal-grid .movie-card{
  border:1px solid var(--cineva-border);border-radius:14px;overflow:hidden;
}
.watch-loading,.watch-error{
  color:var(--cineva-muted);
}

/* Shared footer, buttons, form controls and focus states. */
.main-footer{
  background:linear-gradient(180deg,rgba(13,13,25,.98),#080812 78%);
  border-top:1px solid var(--cineva-border);
}
.primary-btn,.secondary-btn,.genre-reset-btn,.genre-empty-btn,
#resetFilters,#loadMoreBtn,.watch-back-home{
  border-radius:11px;font-weight:750;
}
input,select,textarea{
  max-width:100%;color:#fff;
}
@media(max-width:950px){
  .categories-page .genre-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
  .categories-page{padding:28px 0 48px}
  .categories-page .genre-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .categories-heading{margin-bottom:22px}
  .genre-hero,.viewall-hero{padding-top:clamp(88px,16vw,112px)}
  .watch-page .container,.genre-content-section>.container,
  .viewall-page .container{width:calc(100% - 30px)}
  .watch-information,.player-section,.movie-parts-section,
  .episodes-section,.comments-section,.related-section{border-radius:14px}
}
@media(max-width:380px){
  .categories-page .genre-grid{gap:9px}
  .categories-page .genre-card{border-radius:12px}
}


/* =========================================================
   CINEVA — PRESERVE THE ORIGINAL BROWSER FONT BEHAVIOUR
   Keep existing font-family choices and native text rendering.
========================================================= */
:root, body {
  font-family: revert !important;
}
body :where(h1,h2,h3,h4,h5,h6,p,a,span,small,strong,b,em,label,li,dt,dd,th,td,legend,figcaption,blockquote,button,input,select,textarea,optgroup):not(.fa):not([class*="fa-"]):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.material-icons):not(.material-symbols-outlined):not(.icon):not([class^="icon-"]):not([class*=" icon-"]):not(.iconify):not(.emoji):not([data-emoji]) {
  font-family: revert !important;
}
.emoji, [data-emoji] {
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif !important;
}


/* CINEVA+ loading wordmark accent */
.page-loader .loader-logo .loader-plus{
  display:inline-block;
  margin-left:3px;
  color:var(--primary-light,#a855f7);
  font-size:.78em;
  font-weight:900;
  line-height:1;
  vertical-align:top;
  text-shadow:0 0 18px rgba(168,85,247,.42);
}


/* =========================================================
   CINEVA — DESKTOP HEADER LAYOUT REFINEMENT
   Prevents the brand, navigation, search and actions from
   colliding on desktop widths. Mobile/tablet rules untouched.
========================================================= */
@media (min-width: 951px) {
  .main-header {
    height: auto;
    min-height: 82px;
    overflow: visible;
  }

  .main-header .navbar.container {
    box-sizing: border-box;
    width: min(100% - 56px, 1480px);
    max-width: 1480px;
    min-width: 0;
    min-height: 82px;
    height: auto;
    margin-inline: auto;
    padding-block: 12px;
    display: grid;
    grid-template-columns: minmax(170px, 205px) minmax(190px, 1fr) minmax(230px, 310px) auto;
    grid-template-areas: "brand nav search actions";
    align-items: center;
    column-gap: clamp(10px, 1.15vw, 18px);
    row-gap: 12px;
  }

  .main-header .navbar > .logo {
    grid-area: brand;
    min-width: 0;
    width: max-content;
    max-width: 100%;
    flex-shrink: 0;
    gap: 11px;
  }

  .main-header .brand-icon {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
  }

  .main-header .brand-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .main-header .logo-text {
    min-width: 0;
    white-space: nowrap;
  }

  .main-header .logo-text h2 {
    font-size: 22px;
    line-height: 1.05;
  }

  .main-header .logo-text small {
    font-size: 8px;
    letter-spacing: .8px;
  }

  .main-header .nav-menu {
    grid-area: nav;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1px, .3vw, 5px);
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .main-header .nav-link {
    min-width: 0;
    white-space: nowrap;
    gap: 6px;
    padding: 10px clamp(6px, .65vw, 11px);
    font-size: clamp(10px, .82vw, 12px);
    border-radius: 9px;
  }

  .main-header .nav-link i {
    font-size: 11px;
  }

  .main-header .search-box {
    grid-area: search;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 46px;
    margin: 0;
    padding: 0 8px 0 13px;
    gap: 8px;
  }

  .main-header .search-box input {
    min-width: 0;
    font-size: 12px;
  }

  .main-header .search-box input::placeholder {
    font-size: 11px;
  }

  .main-header .search-box button {
    min-width: 62px;
    height: 34px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .main-header .nav-actions {
    grid-area: actions;
    min-width: max-content;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
  }

  .main-header .nav-icon,
  .main-header .sign-in-btn {
    flex: 0 0 auto;
  }

  .main-header .nav-icon {
    width: 39px;
    height: 39px;
  }

  .main-header .sign-in-btn {
    min-height: 39px;
    padding-inline: 12px;
    white-space: nowrap;
    font-size: 12px;
  }

  .main-header .mobile-menu-btn {
    display: none !important;
  }
}

/* Compact desktop and laptop: give navigation its own clean row. */
@media (min-width: 951px) and (max-width: 1359px) {
  .main-header .navbar.container {
    width: calc(100% - 48px);
    grid-template-columns: minmax(170px, 1fr) minmax(230px, 330px) auto;
    grid-template-areas:
      "brand search actions"
      "nav nav nav";
    row-gap: 10px;
    padding-block: 12px 10px;
  }

  .main-header .nav-menu {
    justify-content: center;
    padding-top: 3px;
  }

  .main-header .nav-link {
    padding-inline: clamp(8px, 1vw, 13px);
    font-size: 12px;
  }
}

/* Wide desktop: keep every control on one balanced line. */
@media (min-width: 1360px) {
  .main-header .navbar.container {
    width: min(100% - 64px, 1480px);
  }
}


/* =========================================================
   CINEVA — SHARED RESPONSIVE HEADER (PHONE + TABLET)
   Use the same brand/actions/search/menu arrangement on every
   public page, with one predictable expandable mobile menu.
========================================================= */
@media (max-width: 950px) {
  .main-header {
    position: sticky !important;
    top: 0;
    z-index: 2000;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .main-header .navbar.container {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    align-items: center;
    gap: 10px 12px;
    width: calc(100% - 30px) !important;
    max-width: 1440px;
    min-width: 0;
    min-height: 0;
    height: auto !important;
    margin-inline: auto;
    padding: 11px 0 12px;
  }

  .main-header .navbar > .logo {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    gap: 9px;
  }

  .main-header .brand-icon {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
  }

  .main-header .brand-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .main-header .logo-text {
    min-width: 0;
    white-space: nowrap;
  }

  .main-header .logo-text h2 {
    margin: 0;
    font-size: clamp(18px, 4.5vw, 22px);
    line-height: 1.05;
  }

  .main-header .logo-text small {
    display: block;
    font-size: 8px;
    line-height: 1.3;
  }

  .main-header .nav-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    gap: 6px;
  }

  .main-header .nav-icon,
  .main-header .sign-in-btn,
  .main-header .mobile-menu-btn,
  .main-header .menu-toggle {
    flex: 0 0 auto;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }

  .main-header .sign-in-btn span {
    display: none;
  }

  .main-header .mobile-menu-btn,
  .main-header .menu-toggle {
    display: inline-flex !important;
    cursor: pointer;
  }

  .main-header .search-box {
    grid-area: search;
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0 8px 0 12px;
    gap: 7px;
    box-sizing: border-box;
  }

  .main-header .search-box input {
    min-width: 0;
    width: 100%;
    font-size: 12px;
  }

  .main-header .search-box button {
    flex: 0 0 auto;
    min-width: 56px;
    height: 32px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .main-header .nav-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2001;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 12px 15px 18px;
    background: rgba(10, 10, 21, .985);
    border: 1px solid rgba(255,255,255,.09);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-9px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .main-header .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-header .nav-menu .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 43px;
    box-sizing: border-box;
    padding: 11px 13px;
    border-radius: 9px;
    font-size: 13px;
    white-space: normal;
  }

  .main-header .nav-menu .nav-link.active {
    background: rgba(139,53,245,.15);
  }
}

@media (max-width: 600px) {
  .main-header .navbar.container {
    width: calc(100% - 26px) !important;
    gap: 9px 8px;
    padding-block: 9px 10px;
  }

  .main-header .brand-icon {
    flex-basis: 35px;
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }

  .main-header .nav-actions {
    gap: 4px;
  }

  .main-header .nav-icon,
  .main-header .sign-in-btn,
  .main-header .mobile-menu-btn,
  .main-header .menu-toggle {
    width: 35px;
    min-width: 35px;
    height: 35px;
    min-height: 35px;
    border-radius: 9px;
  }

  .main-header .search-box {
    height: 40px;
    min-height: 40px;
  }
}

@media (min-width: 651px) and (max-width: 950px) {
  .main-header .navbar.container {
    width: calc(100% - 40px) !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px 15px;
    padding-block: 12px;
  }

  .main-header .brand-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
}


/* Compact header variant used by the Categories page. */
@media (max-width: 950px) {
  .main-header .header-container {
    position: relative;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions";
    align-items: center;
    gap: 10px;
    width: calc(100% - 30px);
    max-width: 1440px;
    min-height: 66px;
    margin-inline: auto;
    padding: 10px 0;
  }

  .main-header .header-container > .logo {
    grid-area: brand;
    min-width: 0;
  }

  .main-header .header-container > .menu-toggle {
    grid-area: actions;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }
}


/* Shared CINEVA footer social links across every public page. */
.social-links{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px}
.social-links a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-width:38px;border-radius:50%;text-decoration:none;font-size:16px}
.social-links a:focus-visible{outline:2px solid var(--cineva-primary,#8b35f5);outline-offset:3px}
.info-footer .social-links{justify-content:center;margin:0}
.profile-footer .social-links,.auth-footer .social-links{justify-content:center;margin:0 0 12px}
@media(max-width:480px){.social-links{gap:8px}.social-links a{width:36px;height:36px;min-width:36px}}


/* =========================================================
   CINEVA — NON-HOMEPAGE MEDIUM CARDS + FULL-SIZE SEARCH
   Homepage is explicitly excluded to preserve its layout.
========================================================= */
body:not(.cineva-home-page) .main-header .search-box{min-height:48px;height:48px;padding:0 12px 0 14px;gap:10px;border-radius:13px;box-sizing:border-box}
body:not(.cineva-home-page) .main-header .search-box input{min-width:0;width:100%;font-size:14px;line-height:1.4}
body:not(.cineva-home-page) .main-header .search-box input::placeholder{font-size:13px}
body:not(.cineva-home-page) .main-header .search-box button{min-width:70px;height:36px;padding-inline:13px;font-size:12px;flex:0 0 auto}

/* Consistent medium-size poster cards for View All and Genre pages. */
body:not(.cineva-home-page) .genre-page .genre-grid,
body:not(.cineva-home-page) .viewall-page .viewall-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(175px,1fr))!important;align-items:start;gap:22px 16px;min-width:0}
body:not(.cineva-home-page) .genre-page .genre-grid>.movie-card,
body:not(.cineva-home-page) .viewall-page .viewall-grid>.movie-card{width:100%;min-width:0;max-width:100%}
body:not(.cineva-home-page) .genre-page .genre-grid>.movie-card .movie-poster,
body:not(.cineva-home-page) .viewall-page .viewall-grid>.movie-card .movie-poster{width:100%;aspect-ratio:2/3;height:auto;overflow:hidden}
body:not(.cineva-home-page) .genre-page .genre-grid>.movie-card .movie-poster img,
body:not(.cineva-home-page) .viewall-page .viewall-grid>.movie-card .movie-poster img{width:100%;height:100%;object-fit:cover}
@media(max-width:1100px){body:not(.cineva-home-page) .genre-page .genre-grid,body:not(.cineva-home-page) .viewall-page .viewall-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:19px 14px}}
@media(max-width:850px){body:not(.cineva-home-page) .genre-page .genre-grid,body:not(.cineva-home-page) .viewall-page .viewall-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:17px 12px}}
@media(max-width:600px){
 body:not(.cineva-home-page) .main-header .search-box{min-height:46px;height:46px;padding-inline:12px}
 body:not(.cineva-home-page) .main-header .search-box input{font-size:14px}
 body:not(.cineva-home-page) .main-header .search-box input::placeholder{font-size:12px}
 body:not(.cineva-home-page) .main-header .search-box button{min-width:64px;height:35px;font-size:12px}
 body:not(.cineva-home-page) .genre-page .genre-grid,body:not(.cineva-home-page) .viewall-page .viewall-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:17px 11px}
}


/* Extend the same medium card rhythm to non-home page collections
   such as saved titles and related-content grids. */
body:not(.cineva-home-page) .movie-grid:not(.horizontal-scroll){
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(175px,1fr));
  align-items:start;
  gap:22px 16px;
}
body:not(.cineva-home-page) .movie-grid:not(.horizontal-scroll)>.movie-card{
  width:100%;
  min-width:0;
  max-width:100%;
}
@media(max-width:1100px){
  body:not(.cineva-home-page) .movie-grid:not(.horizontal-scroll){grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:850px){
  body:not(.cineva-home-page) .movie-grid:not(.horizontal-scroll){grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
  body:not(.cineva-home-page) .movie-grid:not(.horizontal-scroll){grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 11px}
}


/* =========================================================
   CINEVA HOMEPAGE — ONE RESPONSIVE CARD SYSTEM
   Every catalogue section (including Trending) shares the
   same grid, poster ratio and card sizing at every viewport.
========================================================= */
body.cineva-home-page main .content-section .movie-grid,
body.cineva-home-page #category-sections .content-section .movie-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: clamp(12px, 1.45vw, 20px) !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    flex-wrap: initial !important;
    scroll-snap-type: none !important;
    scrollbar-width: none;
}

body.cineva-home-page main .content-section .movie-card,
body.cineva-home-page #category-sections .content-section .movie-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

body.cineva-home-page main .content-section .movie-card-link,
body.cineva-home-page #category-sections .content-section .movie-card-link {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.cineva-home-page main .content-section .movie-poster,
body.cineva-home-page #category-sections .content-section .movie-poster {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    overflow: hidden !important;
}

body.cineva-home-page main .content-section .movie-poster > img,
body.cineva-home-page #category-sections .content-section .movie-poster > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.cineva-home-page main .content-section .movie-info,
body.cineva-home-page #category-sections .content-section .movie-info {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 96px;
    padding: 10px !important;
}

body.cineva-home-page main .content-section .movie-info h3,
body.cineva-home-page #category-sections .content-section .movie-info h3 {
    display: -webkit-box;
    min-height: 2.65em;
    max-height: 2.65em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.32 !important;
    overflow-wrap: anywhere;
}

body.cineva-home-page main .content-section .movie-meta,
body.cineva-home-page #category-sections .content-section .movie-meta {
    margin-top: auto !important;
    min-width: 0;
}

body.cineva-home-page #trending .movie-carousel-wrapper {
    width: 100%;
    min-width: 0;
}

body.cineva-home-page #trending .carousel-arrow {
    display: none !important;
}

@media (max-width: 1100px) {
    body.cineva-home-page main .content-section .movie-grid,
    body.cineva-home-page #category-sections .content-section .movie-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 900px) {
    body.cineva-home-page main .content-section .movie-grid,
    body.cineva-home-page #category-sections .content-section .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 700px) {
    body.cineva-home-page main .content-section .movie-grid,
    body.cineva-home-page #category-sections .content-section .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.cineva-home-page main .content-section .movie-info,
    body.cineva-home-page #category-sections .content-section .movie-info {
        min-height: 88px;
        padding: 8px !important;
    }
}

@media (max-width: 480px) {
    body.cineva-home-page main .content-section .movie-grid,
    body.cineva-home-page #category-sections .content-section .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 13px 11px !important;
    }

    body.cineva-home-page main .content-section .movie-info,
    body.cineva-home-page #category-sections .content-section .movie-info {
        min-height: 84px;
        padding: 8px 7px !important;
    }

    body.cineva-home-page main .content-section .movie-info h3,
    body.cineva-home-page #category-sections .content-section .movie-info h3 {
        font-size: 11px !important;
        min-height: 2.65em;
        max-height: 2.65em;
    }
}


/* =========================================================
   CINEVA HOMEPAGE — CATEGORY CARDS MATCH LATEST ADDED
   Mirror the exact phone breakpoints and card measurements.
========================================================= */
@media (max-width: 600px) {
  body.cineva-home-page #category-sections .category-section .movie-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 11px !important;
    width: 100% !important;
  }

  body.cineva-home-page #category-sections .category-section .movie-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.cineva-home-page #category-sections .category-section .movie-poster {
    width: 100% !important;
    aspect-ratio: 2 / 3 !important;
    overflow: hidden !important;
  }

  body.cineva-home-page #category-sections .category-section .movie-poster > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.cineva-home-page #category-sections .category-section .movie-info {
    min-height: 0 !important;
    padding: 8px 7px 9px !important;
  }

  body.cineva-home-page #category-sections .category-section .movie-title,
  body.cineva-home-page #category-sections .category-section .movie-info h3 {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  body.cineva-home-page #category-sections .category-section .movie-meta {
    font-size: 9px !important;
  }
}

/* Same extra-narrow phone breakpoint as Latest Added. */
@media (max-width: 420px) {
  body.cineva-home-page #category-sections .category-section .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 11px !important;
  }

  body.cineva-home-page #category-sections .category-section .movie-info {
    padding: 9px 8px 10px !important;
  }

  body.cineva-home-page #category-sections .category-section .movie-title,
  body.cineva-home-page #category-sections .category-section .movie-info h3 {
    font-size: 11px !important;
  }
}
