/* ============================================================
   CORTEXANIME - AUTHENTIC CINEMATIC STREAMING LAYOUT
   ============================================================ */
.desktop-hero-sidebar {
  display: none !important;
}
.desktop-hero-stage {
  display: block !important;
  width: 100% !important;
  margin: 0 0 24px !important;
}
.desktop-hero-main {
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
}

@media (min-width: 1024px) {
  html, body {
    background-color: #080C14 !important;
    background-image: radial-gradient(ellipse 90% 40% at 50% -10%, rgba(124, 58, 237, 0.16) 0%, transparent 70%), linear-gradient(180deg, #080C14 0%, #06090F 100%) !important;
    background-attachment: fixed !important;
    font-family: "Outfit", system-ui, -apple-system, sans-serif !important;
  }
  
  /* Hero stage takes majestic full width of the container */
  .desktop-hero-stage {
    display: block !important;
    width: 100% !important;
    margin: 12px 0 32px !important;
  }
  .desktop-hero-main {
    width: 100% !important;
    height: 500px !important;
    min-height: 500px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
  }
  
  /* Clean horizontal streaming shelves on Desktop */
  main .overflow-x-auto.scrollbar-hide.flex {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 6px 4px 20px !important;
    scroll-behavior: smooth !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(168, 85, 247, 0.3) transparent !important;
  }
  
  /* Card hover lift & glowing poster shadow */
  main .overflow-x-auto.scrollbar-hide.flex > a,
  main .overflow-x-auto.scrollbar-hide.flex > div {
    flex-shrink: 0 !important;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease !important;
  }
  main .overflow-x-auto.scrollbar-hide.flex > a:hover,
  main .overflow-x-auto.scrollbar-hide.flex > div:hover {
    transform: translateY(-6px) scale(1.02) !important;
    z-index: 20 !important;
  }
  
  /* Poster dimensions on desktop */
  main .overflow-x-auto.scrollbar-hide.flex > a > div[style*="width: 154"],
  main .overflow-x-auto.scrollbar-hide.flex > a > div[style*="width:154"],
  main .overflow-x-auto.scrollbar-hide.flex > a > div[style*="width: 148"],
  main .overflow-x-auto.scrollbar-hide.flex > a > div[style*="width:148"] {
    width: 175px !important;
  }
}




/* ============================================================
   CortexAnime – Cinematic Desktop Experience (Netflix / Crunchyroll)
   ============================================================ */
@media (min-width: 1024px) {
  html body {
    background: #090a0f !important;
    background-color: #090a0f !important;
    background-image: radial-gradient(circle at 50% -10%, rgba(30, 34, 48, 0.45) 0%, #090a0f 70%) !important;
  }
  main {
    width: 100% !important;
    max-width: 1420px !important;
    margin: 0 auto !important;
    padding: 12px 36px 72px !important;
  }
  #root [class*="62vw"] {
    height: 480px !important;
    min-height: 480px !important;
    max-height: 480px !important;
    border-radius: 20px !important;
    margin: 10px 0 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85) !important;
  }
  main section {
    margin-top: 38px !important;
  }
  
  /* Horizontal Streaming Shelves on Desktop */
  main .overflow-x-auto.scrollbar-hide.flex {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 6px 4px 20px !important;
    scroll-behavior: smooth !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent !important;
  }
  main .overflow-x-auto.scrollbar-hide.flex > a > div[style*="width: 154"],
  main .overflow-x-auto.scrollbar-hide.flex > a > div[style*="width:154"],
  main .overflow-x-auto.scrollbar-hide.flex > a > div[style*="width: 148"],
  main .overflow-x-auto.scrollbar-hide.flex > a > div[style*="width:148"] {
    width: 178px !important;
  }
}

@media (min-width: 1024px) { #root header { display: none !important; } .cx4-num { display: none !important; } }


/* ============================================================
   DESKTOP ANIME DETAIL PAGE (Crunchyroll / Netflix Cinematic)
   ============================================================ */
@media (min-width: 1024px) {
  body {
    padding-top: 64px !important;
  }
  
  /* Konténer lezárása: max 1280px, nem nyúlik el */
  #root > div.min-h-screen,
  #root > div > div.min-h-screen,
  main {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 32px 80px !important;
    background: transparent !important;
  }

  /* 1. Háttér banner (380px magas, lekerekített, mozi stílus) */
  .relative.h-56, .relative.sm\:h-72, [class*="h-56"], [class*="sm:h-72"] {
    height: 380px !important;
    max-height: 380px !important;
    border-radius: 20px !important;
    margin-top: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85) !important;
    overflow: hidden !important;
  }

  /* 2. Poszter és fejléc adatok konténere */
  [class*="absolute bottom-0 left-0 right-0 px-4"] {
    position: relative !important;
    inset: auto !important;
    margin-top: -160px !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: flex-end !important;
    gap: 36px !important;
    z-index: 20 !important;
    background: none !important;
  }

  /* A nagy poszter (220px x 330px, határozott filmes üveg szegély) */
  [class*="absolute bottom-0 left-0 right-0 px-4"] > div[style*="width: 96"],
  [class*="absolute bottom-0 left-0 right-0 px-4"] > div[style*="width:96"] {
    width: 220px !important;
    min-width: 220px !important;
    height: 330px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    background: #0d1117 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  [class*="absolute bottom-0 left-0 right-0 px-4"] > div[style*="width: 96"] img,
  [class*="absolute bottom-0 left-0 right-0 px-4"] > div[style*="width:96"] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Cím és metaadatok */
  [class*="absolute bottom-0 left-0 right-0 px-4"] > div.flex-1 {
    padding-bottom: 16px !important;
  }
  [class*="absolute bottom-0 left-0 right-0 px-4"] h1 {
    font-size: 36px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9) !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    margin-bottom: 6px !important;
  }
  [class*="absolute bottom-0 left-0 right-0 px-4"] p {
    font-size: 15px !important;
    color: #94a3b8 !important;
    margin-bottom: 10px !important;
  }

  /* 3. Alsó tartalom rész (gombok, leírás, epizódok): a poszter mellett fut */
  .min-h-screen > .px-4.pt-4.space-y-4 {
    padding: 24px 24px 60px !important;
    margin-left: 0 !important; width: 100% !important; max-width: 100% !important;
    margin-top: -30px !important;
  }

  /* Lejátszás gomb: NEM nyúlik el, normál 260px-es gomb */
  .min-h-screen > .px-4.pt-4.space-y-4 > div.flex.gap-2 {
    max-width: 340px !important;
    margin: 0 !important;
  }
  .min-h-screen > .px-4.pt-4.space-y-4 button:has(svg.fill-white) {
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    padding: 0 28px !important;
    background: #ffffff !important;
    color: #090a0f !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .min-h-screen > .px-4.pt-4.space-y-4 button:has(svg.fill-white) svg {
    fill: #090a0f !important;
  }
  .min-h-screen > .px-4.pt-4.space-y-4 button:has(svg.fill-white):hover {
    background: #f1f5f9 !important;
    transform: scale(1.02) !important;
  }

  /* Statisztikai dobozok (Episodes, Status, Season) */
  .min-h-screen > .px-4.pt-4.space-y-4 > div.grid.grid-cols-3 {
    max-width: 540px !important;
    gap: 12px !important;
    margin-top: 20px !important;
  }
  .min-h-screen > .px-4.pt-4.space-y-4 > div.grid.grid-cols-3 > div {
    padding: 12px 16px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* Szinopszis leírás: max 820px, kényelmes sorközökkel */
  .min-h-screen > .px-4.pt-4.space-y-4 p.leading-relaxed,
  .min-h-screen > .px-4.pt-4.space-y-4 div:has(> p.leading-relaxed) {
    max-width: 1000px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #cbd5e1 !important;
  }

  /* Epizód gombok: max 780px szélesség, kompakt, rendezett gombok */
  .min-h-screen > .px-4.pt-4.space-y-4 div.grid.grid-cols-8,
  .min-h-screen > .px-4.pt-4.space-y-4 div.sm\:grid-cols-12 {
    max-width: 100% !important;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)) !important;
    gap: 10px !important;
  }
  .min-h-screen > .px-4.pt-4.space-y-4 div.grid.grid-cols-8 button,
  .min-h-screen > .px-4.pt-4.space-y-4 div.sm\:grid-cols-12 button {
    height: 52px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
  }
  .min-h-screen > .px-4.pt-4.space-y-4 div.grid.grid-cols-8 button:hover,
  .min-h-screen > .px-4.pt-4.space-y-4 div.sm\:grid-cols-12 button:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
  }
}


/* ============================================================
   CINEMATIC COUNTDOWN WIDGET (Single, Clean, Live Ticking)
   ============================================================ */
/* Eltüntetjük a duplikált, gagyi statikus cyan dobozt a React-ből */
div[style*="rgba(34,211,238,0.06)"],
div[style*="rgba(34, 211, 238, 0.06)"] {
  display: none !important;
}

/* A visszaszámláló kártya tiszta, modern sötét üveg dizájnja */
.cxc7 {
  position: relative !important;
  border-radius: 14px !important;
  padding: 0 !important;
  margin: 16px 0 !important;
  background: rgba(15, 18, 28, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden !important;
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
}
/* Nincs forgó szivárvány vonal */
.cxc7::before {
  display: none !important;
  content: none !important;
}
.cxc7-in {
  padding: 14px 16px !important;
  background: transparent !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
}
.cxc7-left {
  display: none !important; /* Nem kell a felesleges 0% kör diagram */
}
.cxc7-main {
  width: 100% !important;
}
.cxc7-lbl {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  margin-bottom: 12px !important;
}
.cxc7-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #34d399 !important;
  box-shadow: 0 0 10px #34d399 !important;
  display: inline-block !important;
  margin-right: 6px !important;
}
.cxc7-date {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
}
.cxc7-cells {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  margin-top: 0 !important;
}
.cxc7-cell {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 8px 4px !important;
  text-align: center !important;
}
.cxc7-cell::before {
  display: none !important;
}
.cxc7-num {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  line-height: 1.1 !important;
}
.cxc7-cell i {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  margin-top: 4px !important;
}

@media (min-width: 1024px) {
  .cxc7 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important;
  }
  .cxc7-in {
    padding: 12px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    background: linear-gradient(90deg, rgba(25,18,46,.95) 0%, rgba(15,18,32,.95) 100%) !important;
  }
  .cxc7-main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 !important;
    gap: 24px !important;
  }
  .cxc7-lbl {
    font-size: 14px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #f1f5f9 !important;
  }
  .cxc7-date {
    margin-left: 14px !important;
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    padding: 3px 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .cxc7-cells {
    margin-top: 0 !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
  .cxc7-cell {
    min-width: 62px !important;
    padding: 6px 10px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 10px !important;
  }
  .cxc7-num {
    font-size: 17px !important;
    color: #38bdf8 !important;
  }
  .cxc7-cell i {
    font-size: 8.5px !important;
    color: #94a3b8 !important;
    margin-top: 2px !important;
  }
}
@media (max-width: 767px) {
  .cxc7 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px 0 !important;
  }
}


/* ============================================================
   CINEMATIC STREAMING — ALL PAGES DESKTOP LAYOUT (2026 Trends)
   ============================================================ */
@media (min-width: 1024px) {
  /* Globális asztali keret */
  main {
    max-width: 1420px !important;
    margin: 0 auto !important;
    padding: 16px 36px 80px !important;
  }

  
} /* End of prior media query */

/* Watch Page mozi elrendezés */
.watch-page {
  width: 100% !important;
  max-width: 1560px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

@media (min-width: 1024px) {
  .watch-main-grid {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    height: calc(100vh - 54px) !important;
    gap: 16px !important;
    padding: 0 16px 16px !important;
  }
  .watch-left-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    position: static !important;
    padding-right: 6px !important;
  }
  .watch-right-sidebar {
    width: 380px !important;
    min-width: 380px !important;
    flex-shrink: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    position: static !important;
    border-radius: 16px !important;
    background: rgba(14, 16, 24, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .watch-player-wrap {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85) !important;
  }
}

@media (max-width: 1023px) {
  .watch-main-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .watch-left-col {
    display: contents !important;
  }
  .watch-player-wrap {
    order: 1 !important;
    width: 100% !important;
  }
  .watch-right-sidebar {
    order: 2 !important;
    width: 100% !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    padding: 12px 14px 4px !important;
  }
  .watch-hub-wrap {
    order: 3 !important;
    width: 100% !important;
    padding: 8px 14px 40px !important;
  }
}

@media (min-width: 1024px) {

/* Movies & Search & Manga 6-oszlopos tiszta rács */
  main .grid.grid-cols-2,
  main .grid.grid-cols-3,
  main .grid.sm\:grid-cols-4,
  main .grid.md\:grid-cols-5,
  main .grid.lg\:grid-cols-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  /* Profile / Bejelentkezés üvegkártya */
  .glass.rounded-2xl {
    background: rgba(14, 17, 26, 0.85) !important;
    backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
    padding: 32px !important;
  }
  .glass.rounded-2xl button[type="submit"] {
    background: #ffffff !important;
    color: #090a0f !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    height: 46px !important;
    transition: transform .18s ease, background .18s ease !important;
  }
  .glass.rounded-2xl button[type="submit"]:hover {
    background: #f1f5f9 !important;
    transform: scale(1.02) !important;
  }
}

/* ============================================================
   EXTRA DESKTOP CINEMA ENHANCEMENTS
   ============================================================ */
@media (min-width: 1024px) {
  /* Homepage Hero Desktop Styling */
  .min-h-screen > .relative[class*="overflow-hidden"] {
    height: 560px !important;
    min-height: 560px !important;
    max-height: 580px !important;
    border-radius: 24px !important;
    margin: 12px 32px 32px !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 40px rgba(168, 85, 247, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  
  /* Sections spacing on desktop */
  .min-h-screen > section {
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    margin-top: 36px !important;
  }
  
  /* Card hover lift & glow on desktop */
  [class*="overflow-x-auto"] > * {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease !important;
  }
  [class*="overflow-x-auto"] > *:hover {
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 20px 40px -10px rgba(168, 85, 247, 0.45) !important;
    z-index: 20 !important;
  }

  /* Custom Slim Scrollbar for Episode List */
  .custom-scrollbar::-webkit-scrollbar {
    width: 6px;
  }
  .custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
  }
  .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
  }
  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
  }
}



/* Mobile Language Toggle Always Floating Top Right */
@media (max-width: 1023px) {
  #cortex-i18n-pill {
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 2147483640 !important;
    margin: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.7), 0 0 12px rgba(168,85,247,0.4) !important;
  }
}

/* Hide floating donate button so it never covers the nav bar or UI */
#cx-donate-fab {
  display: none !important;
}



/* Hide floating donate button so it never covers the nav bar or UI */
#cx-donate-fab {
  display: none !important;
}

/* Modern Language Switcher Pill */
@media (min-width: 1024px) {
  #cortex-i18n-pill {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin: 0 8px 0 0 !important;
  }
}
@media (max-width: 1023px) {
  /* On Home page inside header */
  header #cortex-i18n-pill {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin-left: auto !important;
    margin-right: 8px !important;
  }
  /* On Detail/Watch pages */
  body:not([data-cxpage="home"]) #cortex-i18n-pill {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 40 !important;
  }
}
#cortex-i18n-pill {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 3px 5px !important;
  border-radius: 999px !important;
  background: rgba(14, 11, 25, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#cortex-i18n-pill button {
  border: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  transition: all 0.18s ease !important;
  outline: none !important;
}
#cortex-i18n-pill button.on {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}
#cortex-i18n-pill button:not(.on) {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.45) !important;
}
#cortex-i18n-pill button:not(.on):hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Airing Soon modern weekly button */
.cxc-weekbtn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
  border-radius: 999px !important;
  padding: 5px 12px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}
.cxc-weekbtn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}


/* ============================================================
   CORTEXANIME - SIGNATURE BRAND IDENTITY & CYBER HUD SYSTEM
   ============================================================ */

/* Global Cyber Canvas: Deep Obsidian + Subtle Micro-Grid Watermark */
@media (min-width: 1024px) {
  html, body {
    background-color: #07090e !important;
    background-image: 
      radial-gradient(rgba(168, 85, 247, 0.09) 1px, transparent 1px),
      radial-gradient(ellipse 90% 50% at 50% -10%, rgba(139, 92, 246, 0.22) 0%, transparent 65%),
      linear-gradient(180deg, #07090e 0%, #05070a 100%) !important;
    background-size: 36px 36px, 100% 100%, 100% 100% !important;
    background-attachment: fixed !important;
    font-family: "Outfit", system-ui, -apple-system, sans-serif !important;
  }
}

/* Nav Bar Branding Sub-Badge */
.cx-brand-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cx-brand-pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  animation: cxBrandPulse 3s infinite ease-in-out;
  pointer-events: none;
}
@keyframes cxBrandPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); border-color: rgba(34, 211, 238, 0.6); }
}

.cx-brand-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.1;
}
.cx-brand-sub-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 1px 6px;
  border-radius: 999px;
  margin-top: 3px;
  width: fit-content;
}
.cx-brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* Nav Hungarian Hub Special Tab */
.cx-nav-link.cx-hu-special {
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #22d3ee !important;
}
.cx-nav-link.cx-hu-special:hover {
  background: rgba(34, 211, 238, 0.15) !important;
  border-color: rgba(34, 211, 238, 0.5) !important;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.3) !important;
}
.cx-badge-mini {
  font-size: 9px;
  font-weight: 900;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.35);
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 2px;
}
.cx-badge-hu {
  font-size: 9px;
  font-weight: 900;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.4);
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 2px;
}
.cx-hu-flag {
  font-size: 11px;
}

/* CORTEX LIVE TICKER BAR */
.cx-ticker-bar {
  display: block;
  width: 100%;
  height: 34px;
  background: rgba(9, 13, 22, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(12px);
  overflow: hidden;
  position: relative;
  z-index: 99998;
}
.cx-ticker-inner {
  max-width: 1540px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cx-ticker-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.cx-ticker-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: cxPulseDot 1.6s infinite ease-in-out;
}
@keyframes cxPulseDot {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}
.cx-ticker-tag-text {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #e9d5ff;
}
.cx-ticker-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.cx-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
}
.cx-ticker-track b {
  color: #fff;
  font-weight: 700;
}
.cx-ticker-dot {
  color: #a855f7;
  font-size: 10px;
}
.cx-ticker-right {
  flex-shrink: 0;
}
.cx-ticker-badge {
  font-size: 9px;
  font-weight: 800;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}

/* Adjust desktop main offset for topnav + ticker */
@media (min-width: 1024px) {
  #cx-topnav {
    height: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .cx-nav-container {
    height: 66px !important;
    width: 100% !important;
  }
  main, [role="main"], #root > div > main, .min-h-screen > main {
    padding-top: 0 !important;
  }
}

/* CORTEX NEURAL HERO - CYBER HUD CORNER ACCENTS & WATERMARK */
@media (min-width: 1024px) {
  .desktop-hero-stage > div,
  .desktop-hero-main > div {
    position: relative !important;
  }
  
  /* Cyber HUD Corner Brackets on Hero */
  .desktop-hero-stage::before {
    content: "" !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    width: 24px !important;
    height: 24px !important;
    border-top: 3px solid #22d3ee !important;
    border-left: 3px solid #22d3ee !important;
    border-top-left-radius: 12px !important;
    z-index: 30 !important;
    pointer-events: none !important;
    box-shadow: -2px -2px 12px rgba(34, 211, 238, 0.5) !important;
  }
  .desktop-hero-stage::after {
    content: "" !important;
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 24px !important;
    height: 24px !important;
    border-bottom: 3px solid #a855f7 !important;
    border-right: 3px solid #a855f7 !important;
    border-bottom-right-radius: 12px !important;
    z-index: 30 !important;
    pointer-events: none !important;
    box-shadow: 2px 2px 12px rgba(168, 85, 247, 0.5) !important;
  }
}

/* CARDS HOVER - CORTEX HOLOGRAPHIC LIFT & GLOW */
@media (min-width: 1024px) {
  .group\/card, a[href^="/anime/"], a[href^="/watch/"] {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease !important;
  }
  .group\/card:hover, a[href^="/anime/"]:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 16px 36px -10px rgba(168, 85, 247, 0.45), 0 0 20px rgba(34, 211, 238, 0.25) !important;
    border-radius: 16px !important;
  }
}


.cx-flag-badge {
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ef4444 0%, #22c55e 100%);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-right: 2px;
}
.cx-spark {
  color: #22d3ee;
  margin-right: 4px;
}


.cx-tool-tooltip {
  display: none !important;
}
.cx-tool-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  flex-shrink: 0 !important;
}
.cx-tool-btn:hover {
  background: rgba(168, 85, 247, 0.2) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4) !important;
}
.cx-dc-btn {
  background: rgba(88, 101, 242, 0.15) !important;
  border-color: rgba(88, 101, 242, 0.35) !important;
  color: #a5b4fc !important;
}
.cx-dc-btn:hover {
  background: rgba(88, 101, 242, 0.35) !important;
  border-color: #5865F2 !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.6) !important;
}


/* ============================================================
   CORTEXANIME - PREMIUM MOBILE HEADER & DOCK ENHANCEMENTS
   ============================================================ */
@media (max-width: 1023px) {
  header {
    background: rgba(7, 9, 14, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.22) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
    will-change: transform;
    transform: translateZ(0);
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
  }
  
  
  /* Mobile Language Pill */
  #cortex-i18n-pill-mobile, .cx-lang-capsule {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 2px !important;
    border-radius: 999px !important;
  }
  #cortex-i18n-pill-mobile button.on, .cx-lang-capsule button.active {
    background: linear-gradient(135deg, #a855f7, #06b6d4) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5) !important;
  }
}


/* ============================================================
   CORTEXANIME — PURE PREMIUM MOBILE DOCK & HEADER (60FPS GPU)
   ============================================================ */

@media (max-width: 1023px) {
  /* 1. Header: Sleek Cyber-Glass */
  header {
    background: rgba(7, 9, 14, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.22) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
    will-change: transform;
    transform: translateZ(0);
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
  }
  

  /* 2. Bottom Navigation: Ultra-Premium Floating Cyber Pill Dock */
  .cortex-nav-fixed {
    display: block !important;
    padding-bottom: max(env(safe-area-inset-bottom), 12px) !important;
    z-index: 99999 !important;
    pointer-events: none !important;
  }
  .cortex-nav-fixed > div {
    pointer-events: auto !important;
    max-width: 440px !important;
    margin: 0 auto !important;
  }
  .cortex-nav-fixed > div > div {
    background: rgba(9, 13, 24, 0.9) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 12px rgba(168, 85, 247, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    will-change: transform;
    transform: translateZ(0);
    height: 60px !important;
    position: relative !important;
  }
  /* Neon synapse highlight on dock top */
  .cortex-nav-fixed > div > div::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 15% !important;
    right: 15% !important;
    height: 1.5px !important;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.8) 35%, rgba(34, 211, 238, 0.8) 65%, transparent) !important;
    pointer-events: none !important;
  }

  /* Remove ugly clunky grey boxes from tab items */
  .cortex-nav-fixed a div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Tab icons styling */
  .cortex-nav-fixed svg {
    width: 20px !important;
    height: 20px !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }
  /* Active tab icon glowing purple lift */
  .cortex-nav-fixed a[href="/"] svg,
  .cortex-nav-fixed a.active svg {
    stroke: #c084fc !important;
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.9)) !important;
    transform: translateY(-2px) scale(1.1) !important;
  }

  /* Tab labels */
  .cortex-nav-fixed span {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    transition: all 0.2s ease !important;
  }
  .cortex-nav-fixed a[href="/"] span,
  .cortex-nav-fixed a.active span {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.5) !important;
  }

  /* Hide the separate external mobile dock so there are no duplicates */
  
}


/* ============================================================
   CORTEXANIME — MOBILE HERO BANNER & HEADER REPAIR
   ============================================================ */
@media (max-width: 1023px) {
  
  /* Mobile Header */
  header {
    height: 60px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(7, 9, 14, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.22) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
  }
}


.cx-mob-lang-capsule {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  user-select: none !important;
}
.cx-mob-lang-capsule button {
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  line-height: 1.3 !important;
}
.cx-mob-lang-capsule button.active {
  background: linear-gradient(135deg, #a855f7, #06b6d4) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5) !important;
}


/* ============================================================
   CORTEXANIME - PERFECTED STYLING & COMPONENT FIXES
   ============================================================ */

/* 1. COMPLETELY REMOVE ALL UNWANTED TOP STRIPES / TICKER / AMBIENT LINES */
.cx-ticker-bar,
.cx-nav-ambient-line,
header::before,
header::after,
nav::before,
nav::after,
#cx-topnav::before,
#cx-topnav::after {
  display: none !important;
  content: none !important;
  height: 0 !important;
  max-height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  border: none !important;
  background: none !important;
  pointer-events: none !important;
}

/* 2. FIX CONTINUE WATCHING (FOLYTATÁS) CARDS */
div:has(> a[href*="/watch/"]),
section:has(a[href*="/watch/"]) div.flex.gap-3 {
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
section:has(a[href*="/watch/"]) div.flex.gap-3::-webkit-scrollbar {
  display: none !important;
}




/* 3. MOBILE HERO CAROUSEL: TARGET ONLY HERO CONTAINER */
@media (max-width: 1023px) {
  .cortex-hero-banner {
    min-height: 320px !important;
    height: 82vw !important;
    max-height: 420px !important;
    width: 100% !important;
  }
  .cortex-hu-banner {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}


/* ENFORCE MOBILE DOCK VISIBILITY ON MOBILE */
@media (max-width: 1023px) {
  .cmn-dock {
    display: flex !important;
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .cortex-nav-fixed {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}
@media (min-width: 1024px) {
  .cmn-dock {
    display: none !important;
  }
}

/* Cleaned legacy selectors */

/* Continue Watching cards on Home page only */
body[data-cxpage="home"] a[href*="/watch/"],
section:has(div.flex.gap-3) a[href*="/watch/"] {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}
body[data-cxpage="home"] a[href*="/watch/"] > div,
section:has(div.flex.gap-3) a[href*="/watch/"] > div {
  width: 140px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}
body[data-cxpage="home"] a[href*="/watch/"] img,
section:has(div.flex.gap-3) a[href*="/watch/"] img {
  width: 140px !important;
  height: 200px !important;
  max-height: 200px !important;
  aspect-ratio: 2/3 !important;
  object-fit: cover !important;
}

/* Watch page episode selector buttons - clean grid styling */
.grid-cols-5 > a[href*="/watch/"] {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  display: block !important;
  flex-shrink: 1 !important;
}
.grid-cols-5 > a[href*="/watch/"] > div {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 8px !important;
  overflow: visible !important;
  box-shadow: none !important;
}




@media (max-width: 1023px) {
  .cmn-dock {
    display: flex !important;
    position: fixed !important;
    pointer-events: auto !important;
  }
  .cortex-nav-fixed {
    display: none !important;
    visibility: hidden !important;
  }
}
@media (min-width: 1024px) {
  .cmn-dock {
    display: none !important;
  }
}




/* ============================================================
   PERFECT DESKTOP STREAMING POLISH (Watch, Detail, Home)
   ============================================================ */
@media (min-width: 1024px) {
  /* 1. TOP NAVBAR & GLOBAL DESKTOP CLEANUP */
  body {
    padding-top: 64px !important;
    background-color: #070814 !important;
  }
  /* Hide mobile floating Discord button on desktop (already in top nav) */
  button[aria-label="Discord"][style*="fixed"],
  button[title="Discord"][style*="fixed"] {
    display: none !important;
  }

  /* 2. WATCH PAGE DESKTOP PERFECTION */
  .watch-page {
    max-width: 1600px !important;
    margin: 0 auto !important;
  }
  /* Expand title next to back button on PC (no more TONIKAWA: Over The Mo...) */
  .watch-page > div:first-child button span.truncate {
    max-width: 700px !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }
  .watch-main-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    padding: 0 20px 20px !important;
    height: calc(100vh - 60px) !important;
    overflow: hidden !important;
  }
  .watch-left-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
  }
  .watch-player-wrap {
    border-radius: 18px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9) !important;
  }
  .watch-right-sidebar {
    width: 380px !important;
    min-width: 380px !important;
    flex-shrink: 0 !important;
    height: auto !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
    background: rgba(14, 17, 26, 0.9) !important;
    backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    padding: 16px !important;
  }
  /* 3-way language switch buttons in sidebar: perfect fit */
  .watch-right-sidebar div:has(> button[data-mode]) {
    height: 42px !important;
  }
  .watch-right-sidebar button[data-mode] {
    padding: 0 4px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .watch-right-sidebar button[data-mode] span {
    font-size: 7.5px !important;
    padding: 1px 3px !important;
  }

  /* 3. ANIME DETAIL PAGE DESKTOP CINEMATIC BALANCE */
  #root > div.min-h-screen,
  #root > div > div.min-h-screen {
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 0 20px 60px !important;
    background: transparent !important;
  }
  /* Cinematic Banner */
  .relative.h-56, .relative.sm\:h-72, [class*="h-56"], [class*="sm:h-72"] {
    height: 380px !important;
    max-height: 380px !important;
    border-radius: 20px !important;
    margin-top: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
    overflow: hidden !important;
  }
  /* Poster & Title Header */
  [class*="absolute bottom-0 left-0 right-0 px-4"] {
    position: relative !important;
    inset: auto !important;
    margin-top: -140px !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: flex-end !important;
    gap: 28px !important;
    z-index: 20 !important;
    background: none !important;
  }
  /* Poster Glass Card */
  [class*="absolute bottom-0 left-0 right-0 px-4"] > div[style*="width: 96"],
  [class*="absolute bottom-0 left-0 right-0 px-4"] > div[style*="width:96"] {
    width: 210px !important;
    min-width: 210px !important;
    height: 315px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(168, 85, 247, 0.2) !important;
    background: #0d1117 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  [class*="absolute bottom-0 left-0 right-0 px-4"] h1 {
    font-size: 34px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9) !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    margin-bottom: 8px !important;
  }
  /* Lower content full-width grid: Watch Now + Stats side-by-side */
  .min-h-screen > .px-4.pt-4.space-y-4 {
    padding: 24px 0 60px !important;
    margin-left: 0 !important;
    margin-top: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  /* Watch Now button: 300px left block */
  .min-h-screen > .px-4.pt-4.space-y-4 > div:first-child {
    display: inline-flex !important;
    width: 320px !important;
    max-width: 320px !important;
    margin-right: 20px !important;
    vertical-align: top !important;
  }
  .min-h-screen > .px-4.pt-4.space-y-4 button:has(svg.fill-white) {
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
  }
  /* Stats Cards (Episodes, Status, Season): takes remaining width */
  .min-h-screen > .px-4.pt-4.space-y-4 > div.grid.grid-cols-3 {
    display: inline-grid !important;
    width: calc(100% - 340px) !important;
    max-width: none !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    vertical-align: top !important;
    margin-top: 0 !important;
  }
  .min-h-screen > .px-4.pt-4.space-y-4 > div.grid.grid-cols-3 > div {
    padding: 12px 16px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  /* Synopsis: wide, clean reading layout */
  .min-h-screen > .px-4.pt-4.space-y-4 p.leading-relaxed,
  .min-h-screen > .px-4.pt-4.space-y-4 div:has(> p.leading-relaxed) {
    max-width: 100% !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    color: #cbd5e1 !important;
  }
  /* Episodes Grid: full width responsive 6 to 8 columns */
  .min-h-screen > .px-4.pt-4.space-y-4 div.grid.grid-cols-2,
  .min-h-screen > .px-4.pt-4.space-y-4 div.grid.grid-cols-8,
  .min-h-screen > .px-4.pt-4.space-y-4 div.sm\:grid-cols-12,
  .min-h-screen > .px-4.pt-4.space-y-4 div.lg\:grid-cols-6 {
    max-width: 100% !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 14px !important;
  }

  /* 4. HOME PAGE HERO CINEMATIC ENHANCEMENT */
  .min-h-screen > .relative[class*="overflow-hidden"] {
    max-width: 1360px !important;
    margin: 16px auto 28px !important;
    height: 520px !important;
    min-height: 520px !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
  }
}


/* ============================================================
   CortexAnime — Ultra-Premium Cyber-Glass Staff Badge
   ============================================================ */
@keyframes cxStaffPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.45), 0 0 20px rgba(168, 85, 247, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    border-color: rgba(168, 85, 247, 0.7);
  }
  50% {
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.7), 0 0 30px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    border-color: rgba(34, 211, 238, 0.9);
  }
}
@keyframes cxStaffShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cx-staff-badge {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  gap: 4px !important;
  padding: 2.5px 8.5px 2.5px 7px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(99, 102, 241, 0.25) 50%, rgba(34, 211, 238, 0.35) 100%) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(168, 85, 247, 0.65) !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  animation: cxStaffPulse 3s ease-in-out infinite !important;
  user-select: none !important;
  cursor: default !important;
  margin-left: 6px !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}
.cx-staff-icon {
  width: 11px !important;
  height: 11px !important;
  color: #22d3ee !important;
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.85)) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}
.cx-staff-text {
  font-size: 9.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  background: linear-gradient(90deg, #ffffff 0%, #e0e7ff 45%, #c084fc 80%, #38bdf8 100%) !important;
  background-size: 200% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  animation: cxStaffShimmer 4s ease-in-out infinite !important;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4) !important;
  line-height: 1 !important;
}


  /* Mobil adatlap poszter és banner finomhangolás */
  @media (max-width: 1023px) {
    .relative.h-56, [class*="h-56"] {
      height: 250px !important;
      min-height: 250px !important;
      border-radius: 0 0 20px 20px !important;
      overflow: hidden !important;
    }
    [class*="absolute bottom-0 left-0 right-0 px-4"] > div[style*="width: 96"],
    [class*="absolute bottom-0 left-0 right-0 px-4"] > div[style*="width:96"] {
      width: 100px !important;
      min-width: 100px !important;
      height: 150px !important;
      border-radius: 14px !important;
      border: 1.5px solid rgba(168,85,247,0.3) !important;
      box-shadow: 0 10px 30px rgba(0,0,0,0.85) !important;
      background: #0d1117 !important;
      overflow: hidden !important;
      flex-shrink: 0 !important;
    }
    [class*="absolute bottom-0 left-0 right-0 px-4"] > div[style*="width: 96"] img,
    [class*="absolute bottom-0 left-0 right-0 px-4"] > div[style*="width:96"] img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      aspect-ratio: 2/3 !important;
    }
  }
