/* ---------- Base ---------- */
:root {
  --bg: #1f201f;
  --bar: #4b4d4c;
  --panel: #262726;
  --panel-2: #2d2e2d;
  --line: rgba(98, 201, 133, 0.22);
  --text: #e9e9e9;
  --muted: rgba(233, 233, 233, 0.55);
  --muted-2: rgba(233, 233, 233, 0.35);
  --accent: #62c985;
  --warn: #f0ef00;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--bar);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.brand__mark {
  width: 28px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
}

.brand__mark svg {
  fill: rgba(255, 255, 255, 0.85);
}

.brand__name {
  font-size: 22px;
  color: rgba(150, 215, 175, 0.95);
}

/* Nav */
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.9px;
  color: rgba(255, 255, 255, 0.85);
}

.nav__link {
  opacity: 0.9;
  padding: 8px 10px;
  border-radius: 6px;
}

.nav__link:hover {
  background: rgba(0, 0, 0, 0.14);
}

.nav__group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__link--active {
  outline: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
}

.nav__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 30px;
  border: 0;
  background: rgba(0, 0, 0, 0.12);
  outline: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  cursor: pointer;
}

.nav__dots span {
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  display: inline-block;
  margin: 0 1px;
}

.mobileNav {
  display: none;
  background: var(--bar);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobileNav__inner {
  padding: 8px 0;
}

.mobileNav__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mobileNav__nav::-webkit-scrollbar {
  height: 4px;
}

.mobileNav__nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.mobileNav__nav .nav__link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.topbar__searchToggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}

.topbar__searchToggle:hover {
  background: rgba(0, 0, 0, 0.35);
}

.topbar__searchToggleIcon svg {
  fill: currentColor;
}

/* ---------- Search row ---------- */
.searchRow {
  padding: 16px 0 4px;
}

.searchRow__inner {
  display: flex;
  justify-content: center;
}

.search {
  width: min(420px, 100%);
}

.search__input {
  width: 100%;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.search__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

/* ---------- Main ---------- */
.main {
  padding: 14px 0 28px;
}

.notice {
  background: var(--warn);
  color: #111;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  text-align: center;
  box-shadow: var(--shadow);
  margin: 10px auto 16px;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
  align-items: start;
}

.layout--single {
  grid-template-columns: minmax(0, 1fr);
}

/* Sticky sidebar (desktop) */
@media (min-width: 921px) {
  .panel--side {
    position: sticky;
    top: 14px;
    align-self: start;
    max-height: calc(100vh - 28px);
  }

  .panel--side .top {
    max-height: calc(100vh - 28px - 46px); /* viewport - margins - header */
    overflow: auto;
  }
}


/* Panels */
.panel {
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel__header--side {
  justify-content: flex-start;
}

.panel__icon svg {
  fill: rgba(255, 255, 255, 0.55);
}

.panel__title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.9px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
}

.panel__body {
  padding: 16px;
}

.panel__empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Search posters */
.posterGrid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 18px 14px;
  justify-items: center;
}

.posterGrid__item {
  width: 100%;
  max-width: 150px;
}

.posterGrid__link {
  display: grid;
  gap: 8px;
  text-align: center;
}

.posterGrid__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.posterGrid__poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.posterGrid__title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  line-height: 1.35;
}

.posterOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 12, 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.posterOverlay svg {
  fill: currentColor;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.carousel__link:hover .posterOverlay,
.carousel__link:focus-visible .posterOverlay,
.posterGrid__link:hover .posterOverlay,
.posterGrid__link:focus-visible .posterOverlay,
.detail__media:hover .posterOverlay,
.detail__media:focus-within .posterOverlay {
  opacity: 1;
}

.detail__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  max-width: 260px;
}

.detail__media img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.posterBadge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: lowercase;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Left list */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list__item {
  border-top: 1px solid var(--line);
}

.list__item:first-child {
  border-top: 0;
}

.list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.10);
}

.list__link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.list__name {
  font-size: 14px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.9);
}

.list__meta {
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
}

/* Right "Top" */
.top {
  margin: 0;
  padding: 0;
  list-style: none;
}

.top__item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.top__item:first-child {
  border-top: 0;
}

.top__link {
  display: block;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.10);
}

.top__link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.top__kicker {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.top__num {
  min-width: 18px;
  color: rgba(255, 255, 255, 0.55);
}

.top__cat {
  color: rgba(255, 255, 255, 0.4);
}

.top__title {
  margin-top: 6px;
  font-weight: 750;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.top__badge {
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  color: var(--accent);
}

.badge svg {
  fill: var(--accent);
}

/* ---------- Bottom text zone (full width in layout) ---------- */
.bottomText {
  padding: 18px 0 22px;
}

.bottomText__panel {
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.bottomText__header {
  margin-bottom: 10px;
}

.bottomText__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.bottomText__subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bottomText__content {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.bottomText__label {
  display: block;
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: rgba(255, 255, 255, 0.7);
}

.bottomText__input {
  width: 100%;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px;
  outline: none;
}

.bottomText__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.bottomText__input:focus {
  outline: 2px solid rgba(98, 201, 133, 0.45);
  outline-offset: 2px;
}

.bottomText__hint {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 12px;
}

/* ---------- Footer ---------- */
.footer {
  color: var(--muted-2);
}

.footer__top {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.footer__mark {
  width: 28px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
}

.footer__mark svg {
  fill: rgba(255, 255, 255, 0.85);
}

.footer__name {
  color: rgba(150, 215, 175, 0.95);
}

.footer__text {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.5;
}

.footer__heading {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list li + li {
  margin-top: 8px;
}

.footer__link {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.72);
  padding: 2px 0;
}

.footer__link:hover {
  color: rgba(98, 201, 133, 0.9);
}

.footer__bottom {
  padding: 14px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.10);
}

.footer__bottomInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__bottomInner--centered {
  justify-content: center;
}

.footer__bottomInner--centered .footer__copyright {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.55);
}

.footer__protection {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0.5rem 0 1rem;
}

.footer__protectionLogo {
  width: auto;
  max-height: 120px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.footer__protectionText {
  margin: 0;
  max-width: 520px;
  color: #b6b6b6;
  line-height: 1.5;
}

.footer__protectionLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8e8e8;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer__protectionLink:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.footer__mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__miniLink {
  color: rgba(255, 255, 255, 0.65);
}

.footer__miniLink:hover {
  color: rgba(98, 201, 133, 0.9);
}

.footer__dot {
  color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 920px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  :root {
    --topbar-height: 64px;
  }
  .nav {
    display: none;
  }
  .mobileNav {
    display: block;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .searchRow {
    scroll-margin-top: calc(var(--topbar-height) + 12px);
  }
  .topbar__searchToggle {
    display: none;
  }
  .is-scrolled .topbar__searchToggle {
    display: inline-flex;
  }
}


/* ---------- Hero / Carousel ---------- */
.hero {
  margin: 8px 0 16px;
}

.hero__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.hero__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.4px;
}

.hero__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.carousel {
  position: relative;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 44px;
}

.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel__viewport:focus {
  outline: 2px solid rgba(98, 201, 133, 0.45);
  outline-offset: 3px;
  border-radius: 10px;
}

.carousel__track {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.carousel__slide {
  flex: 0 0 auto;
  width: 140px;
  scroll-snap-align: start;
}

.carousel__media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.carousel__poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.carousel__caption {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.carousel__btn:hover {
  background: rgba(0, 0, 0, 0.55);
}

.carousel__btn--prev {
  left: 8px;
}

.carousel__btn--next {
  right: 8px;
}

/* ---------- Buttons / Footer panel ---------- */
.panel__footer {
  display: flex;
  justify-content: center;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.10);
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 750;
  letter-spacing: 0.2px;
}

.btn--primary {
  background: rgba(98, 201, 133, 0.18);
  color: rgba(255, 255, 255, 0.9);
  outline: 1px solid rgba(98, 201, 133, 0.35);
}

.btn--primary:hover {
  background: rgba(98, 201, 133, 0.28);
}

.btn__meta {
  display: inline-block;
  margin-left: 10px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

@media (max-width: 520px) {
  .carousel {
    padding: 10px 40px;
  }
  .carousel__slide {
    width: 128px;
  }
  .hero__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Template 3: Neko layout overrides ===== */
:root {
  --bg: #03070d;
  --bar: #070d16;
  --panel: #0b111b;
  --text: #f2f7ff;
  --muted: #b4c8e0;
  --primary: #1bb5ff;
  --primary-2: #38c8ff;
  --line: rgba(15, 163, 255, 0.22);
  --line-soft: rgba(15, 163, 255, 0.1);
}

body {
  background:
    repeating-linear-gradient(90deg, transparent 0 27px, var(--line-soft) 27px 28px),
    linear-gradient(180deg, #03070d 0%, #040a12 35%, #03070d 100%);
  color: var(--text);
}

.siteShell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  column-gap: 18px;
}

.sidebar {
  background: linear-gradient(180deg, #090f1a 0%, #060b12 100%);
  border-right: 1px solid rgba(72, 145, 210, 0.36);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar__brandWrap {
  border-bottom: 1px solid rgba(72, 145, 210, 0.28);
  padding-bottom: 12px;
}

.brand {
  gap: 10px;
}

.brand__name {
  font-size: 26px;
  font-style: italic;
  color: #30bcff;
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
}

.sidebar__tagline {
  margin: 6px 0 0;
  color: #86a8cd;
  font-size: 12px;
  letter-spacing: 0.2px;
  font-style: italic;
}

.sidebarNav {
  display: grid;
  gap: 8px;
}

.sidebarNav__link {
  display: block;
  text-decoration: none;
  color: #deebff;
  border: 1px solid rgba(86, 147, 212, 0.25);
  background: rgba(7, 14, 24, 0.8);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-style: italic;
  transition: all .18s ease;
}

.sidebarNav__link:hover,
.sidebarNav__link--active {
  background: linear-gradient(90deg, #0a5f95, #179ddf);
  border-color: rgba(61, 198, 255, 0.9);
  color: #fff;
}

.sideTop {
  margin-top: 2px;
  border-top: 1px solid rgba(72, 145, 210, 0.28);
  padding-top: 12px;
}

.sideTop__title {
  margin: 0 0 10px;
  color: #2dc1ff;
  font-size: 22px;
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-style: italic;
}

.sideTop__list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.sideTop__list .top__item {
  margin-bottom: 8px;
}

.contentWrap {
  min-width: 0;
  overflow-x: hidden;
}

.contentHeader {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 10, 18, 0.92);
  border-bottom: 1px solid rgba(78, 146, 214, 0.3);
  backdrop-filter: blur(4px);
}

.contentHeader__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.contentHeader .search {
  width: min(420px, 100%);
}

.search__input {
  border-radius: 10px;
  border-color: rgba(85, 151, 220, 0.36);
  background: rgba(9, 18, 30, 0.92);
}

.main {
  padding-top: 22px;
}

.container {
  width: min(1100px, 100%);
}

.hero,
.panel,
.bottomText__panel,
.footer__top,
.footer__bottom {
  background: rgba(8, 14, 24, 0.84);
  border-color: rgba(78, 146, 214, 0.3);
}

.hero__title,
.panel__title,
.bottomText__title,
.footer__heading {
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-style: italic;
}

.panel__title,
.bottomText__title,
.footer__heading {
  color: #2dc1ff;
}

.notice {
  background: linear-gradient(90deg, #1092d5, #35bfff);
  color: #fff;
}

.layout {
  grid-template-columns: minmax(0, 1fr);
}

.mobileToggle {
  display: none;
}

@media (max-width: 980px) {
  .mobileToggle {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(61, 198, 255, 0.8);
    background: rgba(7, 15, 28, 0.95);
    color: #d8ecff;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
  }

  .mobileToggle__icon {
    position: relative;
    width: 16px;
    height: 12px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .mobileToggle__bar {
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }

  .mobileToggle__bar:nth-child(1) {
    top: 0;
  }

  .mobileToggle__bar:nth-child(2) {
    top: 5px;
  }

  .mobileToggle__bar:nth-child(3) {
    top: 10px;
  }

  .mobileToggle__text {
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
  }

  body.sidebar-open .mobileToggle__bar:nth-child(1) {
    top: 5px;
    transform: rotate(45deg);
  }

  body.sidebar-open .mobileToggle__bar:nth-child(2) {
    opacity: 0;
  }

  body.sidebar-open .mobileToggle__bar:nth-child(3) {
    top: 5px;
    transform: rotate(-45deg);
  }

  .siteShell {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(320px, 84vw);
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 60;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sideTop {
    display: none;
  }

  .contentWrap {
    padding-top: 52px;
  }

  .contentHeader__inner {
    min-height: 56px;
    padding-left: 48px;
  }
}

/* ===== Desktop polish pass (ergonomie + rendu) ===== */
@media (min-width: 981px) {
  .siteShell {
    align-items: start;
    column-gap: 24px;
    padding: 16px;
    max-width: 1560px;
    margin-inline: auto;
  }

  .sidebar {
    position: relative;
    border: 1px solid rgba(78, 146, 214, 0.28);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }

  .contentWrap {
    min-width: 0;
    padding-right: 8px;
  }

  .contentHeader {
    top: 12px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .contentHeader__inner {
    min-height: 58px;
    justify-content: stretch;
    padding: 0;
  }

  .contentHeader .search {
    width: 100%;
    position: relative;
  }

  .contentHeader .search::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(120, 190, 255, 0.65);
    border-radius: 50%;
    transform: translateY(-55%);
    pointer-events: none;
  }

  .contentHeader .search::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 31px;
    width: 7px;
    height: 2px;
    background: rgba(120, 190, 255, 0.65);
    transform: rotate(45deg);
    pointer-events: none;
  }

  .contentHeader .search .search__input {
    height: 44px;
    padding: 0 14px 0 40px;
    border-radius: 12px;
    border: 1px solid rgba(83, 162, 234, 0.5);
    background: linear-gradient(180deg, rgba(8, 18, 32, 0.98), rgba(8, 16, 28, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 16px rgba(0, 0, 0, 0.25);
    font-size: 20px;
    color: #eaf6ff;
  }

  .contentHeader .search .search__input::placeholder {
    color: rgba(176, 206, 235, 0.55);
  }

  .contentHeader .search .search__input:focus {
    border-color: rgba(81, 195, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(81, 195, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .main {
    padding-top: 12px;
  }

  .container {
    max-width: 1180px;
    width: 100%;
    margin: 0;
  }

  .hero,
  .notice,
  .panel,
  .bottomText__panel {
    border-radius: 14px;
    overflow: hidden;
  }

  .carousel {
    max-width: 100%;
    overflow: hidden;
  }

  .carousel__viewport {
    max-width: 100%;
  }

  .sideTop__title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .top__item {
    border-radius: 10px;
  }

  .top__link {
    padding: 10px 12px;
  }
}

/* ===== Mobile header + footer cleanup ===== */
.mobileTopbar {
  display: none;
}

@media (max-width: 980px) {
  .mobileTopbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 75;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
    background: rgba(5, 10, 18, 0.96);
    border-bottom: 1px solid rgba(78, 146, 214, 0.35);
    backdrop-filter: blur(4px);
  }

  .mobileTopbar__brand .brand__name {
    font-size: 34px;
    line-height: 1;
  }

  .mobileToggle {
    position: static;
    margin-left: auto;
    gap: 8px;
    padding: 10px 12px;
    min-width: 88px;
    min-height: 38px;
    justify-content: center;
  }

  .mobileToggle__text {
    display: inline;
  }

  .contentWrap {
    padding-top: 72px;
  }

  .contentHeader {
    position: static;
    top: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
  }

  .contentHeader__inner {
    min-height: auto;
    padding: 6px 0 0;
    justify-content: stretch;
  }

  .contentHeader .search {
    width: 100%;
  }

  .contentHeader .search .search__input {
    height: 38px;
    font-size: 18px;
    border-radius: 10px;
  }

  .main {
    padding-top: 10px;
  }

  .footer {
    padding: 0 8px 14px;
  }

  .footer__top,
  .footer__bottom {
    border: 1px solid rgba(78, 146, 214, 0.3);
    border-radius: 12px;
    padding: 14px 12px;
    margin-top: 14px;
  }

  .footer__top {
    padding-bottom: 10px;
  }

  .footer__bottom {
    padding-top: 12px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer__col {
    background: rgba(7, 13, 22, 0.7);
    border: 1px solid rgba(78, 146, 214, 0.22);
    border-radius: 10px;
    padding: 12px;
  }

  .footer__heading {
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.2px;
    text-transform: none;
  }

  .footer__list li + li {
    margin-top: 6px;
  }

  .footer__link {
    font-size: 14px;
    padding: 3px 0;
  }

  .footer__protectionLogo {
    max-height: 82px;
  }

  .footer__protectionText {
    font-size: 13px;
    line-height: 1.45;
  }
}

/* Template 4 overrides */
.hero--spotlight {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  padding: 42px 34px 28px;
  background:
    radial-gradient(circle at 75% 35%, rgba(108, 68, 255, 0.28), transparent 45%),
    linear-gradient(90deg, rgba(2, 5, 12, 0.95) 5%, rgba(2, 5, 12, 0.8) 45%, rgba(2, 5, 12, 0.98) 100%),
    var(--spotlight-image) center / cover no-repeat,
    #070b14;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.08), rgba(4, 8, 18, 0.85));
  pointer-events: none;
}

.hero__header--spotlight {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__meta,
.hero__description {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
}

.hero__meta {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.hero__description {
  color: rgba(255, 255, 255, 0.88);
  max-width: 66ch;
}

.hero__cta {
  margin-top: 16px;
}

.hero--spotlight .carousel {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.posterGrid--ranked .posterGrid__item {
  position: relative;
}

.posterGrid__rank {
  position: absolute;
  left: -8px;
  bottom: 8px;
  z-index: 2;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 0.9;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 10px 28px rgba(3, 7, 16, 0.7);
}

.posterGrid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 16px 14px;
}

.panel {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.95), rgba(7, 12, 22, 0.95));
}

@media (max-width: 980px) {
  .hero--spotlight {
    min-height: 360px;
    border-radius: 18px;
    padding: 26px 16px 18px;
  }

  .posterGrid {
    grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
    gap: 12px;
  }

  .posterGrid__rank {
    left: -3px;
    bottom: 2px;
    font-size: 36px;
  }
}

/* Template 4 color pass: closer to provided Noctaflix-style palette */
:root {
  --bg: #04050a;
  --bar: #090b12;
  --panel: #0d1018;
  --panel-2: #121524;
  --text: #f2f3f7;
  --muted: #a1a6b4;
  --muted-2: #73798b;
  --accent: #7c4dff;
  --line: rgba(126, 89, 255, 0.25);
  --line-soft: rgba(126, 89, 255, 0.08);
}

body {
  background: radial-gradient(circle at top center, rgba(108, 71, 255, 0.12), transparent 35%), #04050a;
  color: var(--text);
}

.siteShell {
  column-gap: 0;
}

.sidebar {
  background: #06070d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand__name {
  color: #f5f6fb;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.sideTop__title,
.panel__title,
.bottomText__title,
.footer__heading {
  color: #f2f3f7;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-style: normal;
}

.sidebarNav__link {
  background: transparent;
  border: 1px solid transparent;
  color: #d4d7e1;
  border-radius: 10px;
}

.sidebarNav__link:hover,
.sidebarNav__link--active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.contentHeader {
  background: rgba(4, 5, 10, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.contentHeader .search {
  width: min(560px, 100%);
}

.search__input,
.contentHeader .search .search__input {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #f2f3f7;
}

.search__input::placeholder,
.contentHeader .search .search__input::placeholder {
  color: rgba(242, 243, 247, 0.45);
  font-style: normal;
}

.hero,
.panel,
.bottomText__panel,
.footer__top,
.footer__bottom {
  background: #090b12;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.hero--spotlight {
  background:
    radial-gradient(circle at 70% 35%, rgba(124, 77, 255, 0.34), transparent 42%),
    linear-gradient(90deg, rgba(4, 5, 10, 0.96) 5%, rgba(4, 5, 10, 0.75) 45%, rgba(4, 5, 10, 0.96) 100%),
    var(--spotlight-image) center / cover no-repeat,
    #090b12;
}

.notice {
  background: linear-gradient(90deg, #5f33f6, #8d5bff);
  color: #fff;
}

.posterBadge {
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn--primary,
.hero__cta {
  background: linear-gradient(90deg, #6d3cf8, #8d5bff);
  border: 1px solid rgba(202, 186, 255, 0.35);
  color: #fff;
}

.btn--primary:hover,
.hero__cta:hover {
  filter: brightness(1.08);
}

.carousel__btn {
  background: rgba(8, 10, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 980px) {
  .sidebar {
    background: #07080f;
  }

  .mobileTopbar {
    background: rgba(6, 7, 13, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
}

/* Template 4 UX fixes (desktop spacing, search alignment, ranking badges) */
.siteShell {
  column-gap: 18px;
}

.contentWrap {
  padding-right: 12px;
}

.contentHeader__inner {
  justify-content: stretch;
}

.contentHeader .search {
  width: 100%;
  max-width: none;
}

.posterGrid--ranked .posterGrid__link {
  position: relative;
}

.posterGrid__rank {
  left: 8px;
  top: 8px;
  bottom: auto;
  font-size: 18px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.26);
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  text-shadow: none;
}

@media (max-width: 980px) {
  .siteShell {
    column-gap: 0;
  }

  .contentWrap {
    padding-right: 0;
  }

  .posterGrid__rank {
    left: 6px;
    top: auto;
    bottom: 6px;
    font-size: 16px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
  }
}

/* Template 4 visual refresh: full-width hero band + original cards */
.hero--spotlight {
  width: 100%;
  min-height: 280px;
  padding: 28px 26px;
}

.hero__header--spotlight {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 8px;
}

.hero__eyebrow,
.hero__title,
.hero__meta,
.hero__description {
  grid-column: 1;
}

.hero__cta {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  justify-self: end;
  min-width: 170px;
  text-align: center;
}

.notice {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  border-radius: 14px;
}

.posterGrid {
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 18px 16px;
}

.posterGrid__item {
  transform: translateZ(0);
}

.posterGrid__media {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(5, 8, 18, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.posterGrid__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 3, 8, 0.82) 100%);
  pointer-events: none;
}

.posterGrid__link:hover .posterGrid__media,
.posterGrid__link:focus-visible .posterGrid__media {
  transform: translateY(-6px) scale(1.025) rotate(-0.4deg);
  border-color: rgba(166, 134, 255, 0.75);
  box-shadow: 0 22px 44px rgba(84, 47, 214, 0.35);
}

.posterGrid__link:hover .posterGrid__title,
.posterGrid__link:focus-visible .posterGrid__title {
  color: #ffffff;
}

.posterGrid__poster {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.posterGrid__title {
  margin-top: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.posterBadge {
  top: 8px;
  left: 8px;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .hero--spotlight {
    padding: 20px 14px;
    min-height: 240px;
  }

  .hero__header--spotlight {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__cta {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    min-width: 0;
  }

  .posterGrid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 14px 12px;
  }

  .posterGrid__media {
    border-radius: 14px;
  }
}

/* Desktop: sticky left menu during page scroll */
@media (min-width: 981px) {
  .sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 108, 255, 0.55) rgba(255, 255, 255, 0.08);
  }

  .sidebar::-webkit-scrollbar {
    width: 8px;
  }

  .sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
  }

  .sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(126, 89, 255, 0.8), rgba(98, 61, 220, 0.8));
    border-radius: 999px;
  }
}

/* Home: ranked block uses fixed columns for consistent rows */
.posterGrid--ranked {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 16px;
}

@media (max-width: 1400px) {
  .posterGrid--ranked {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .posterGrid--ranked {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .posterGrid--ranked {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 12px;
  }
}

/* Home: keep consistent card counts per row in all non-ranked sections */
.homePage .layout--single .posterGrid:not(.posterGrid--ranked) {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

@media (max-width: 1600px) {
  .homePage .layout--single .posterGrid:not(.posterGrid--ranked) {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 1400px) {
  .homePage .layout--single .posterGrid:not(.posterGrid--ranked) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .homePage .layout--single .posterGrid:not(.posterGrid--ranked) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .homePage .layout--single .posterGrid:not(.posterGrid--ranked) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Home tuning: max 6 cards per row + inner grid spacing */
.homePage .layout--single .panel .posterGrid {
  margin-top: 14px;
  padding-inline: 12px;
}

.homePage .layout--single .posterGrid:not(.posterGrid--ranked) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1600px) {
  .homePage .layout--single .posterGrid:not(.posterGrid--ranked) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1400px) {
  .homePage .layout--single .posterGrid:not(.posterGrid--ranked) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .homePage .layout--single .posterGrid:not(.posterGrid--ranked) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .homePage .layout--single .panel .posterGrid {
    margin-top: 10px;
    padding-inline: 8px;
  }

  .homePage .layout--single .posterGrid:not(.posterGrid--ranked) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Template 4 home desktop adjustments */
@media (min-width: 981px) {
  .contentHeader {
    top: 16px;
    margin-top: -6px;
  }

  .contentHeader__inner {
    min-height: 44px;
    align-items: flex-start;
  }

  .contentHeader .search {
    margin: 0;
  }

  .homePage .posterGrid--ranked .posterGrid__rank,
  .posterGrid--ranked .posterGrid__rank {
    top: auto;
    bottom: 8px;
    left: 8px;
  }

  .homePage .layout--single .panel > .posterGrid,
  .layout--single .panel > .posterGrid {
    margin-top: 20px;
  }
}


/* Template 4 non-home spacing adjustments (search area + section headers) */
body:not(.homePage) .main {
  padding-top: 30px;
}

body:not(.homePage) .hero {
  margin-top: 0;
}

body:not(.homePage) .hero__header,
body:not(.homePage) .panel__header {
  padding-inline: 20px;
}

@media (max-width: 980px) {
  body:not(.homePage) .main {
    padding-top: 22px;
  }

  body:not(.homePage) .hero__header,
  body:not(.homePage) .panel__header {
    padding-inline: 14px;
  }
}


/* Template 4 search page: keep extra space under sticky search form */
.hero--search-results {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .hero--search-results {
    margin-top: 10px;
  }
}
