
:root {
  --bg: #08090d;
  --panel: #11131a;
  --text: #f5f6f8;
  --muted: #8d929f;
  --line: rgba(255,255,255,.09);
  --accent: #b9e6e8;
  --accent2: #80c6ca;
  --font: 'DM Sans', sans-serif;
  --display: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

button, input { font: inherit; }
button { cursor: pointer; }

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(110px);
  opacity: .12;
  z-index: -1;
  border-radius: 50%;
}

.ambient-one {
  width: 400px;
  height: 400px;
  background: #4f9ea4;
  top: 200px;
  right: -220px;
}

.ambient-two {
  width: 350px;
  height: 350px;
  background: #655b94;
  top: 1100px;
  left: -230px;
}

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  padding: 0 6.5%;
  gap: 55px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  position: relative;
  z-index: 5;
  background: rgba(8,9,13,.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font: 800 21px var(--display);
  letter-spacing: -1.2px;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(145deg,#d6f5f3,#6aaeb4);
  display: grid;
  place-items: center;
  color: #102126;
  font: 800 17px var(--display);
}

.brand-dot { color: #9edcde; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.nav-link {
  height: 100%;
  background: none;
  border: 0;
  color: #8f939d;
  font-size: 13px;
  position: relative;
}

.nav-link:hover,
.nav-link.active { color: #fff; }

.nav-link.active:after {
  content: "";
  height: 2px;
  background: var(--accent2);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-box {
  height: 38px;
  width: 190px;
  border: 1px solid var(--line);
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 8px;
  color: #9ea4af;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
}

.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  color: #e8eaf0;
  font-size: 12px;
}

.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,#d1efed,#679fa4);
  color: #102126;
  font-weight: 800;
}

.mobile-menu { display: none; }

.hero {
  height: 570px;
  position: relative;
  overflow: hidden;
  background: #151a21;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 76% 38%,rgba(112,159,166,.3),transparent 26%),
    radial-gradient(ellipse at 70% 70%,rgba(187,129,96,.25),transparent 30%),
    linear-gradient(115deg,#10151d,#192b36 48%,#10131d);
}

.hero-image:before {
  content: "";
  position: absolute;
  right: 12%;
  top: 8%;
  width: 380px;
  height: 480px;
  border-radius: 48% 48% 10% 10%;
  background: linear-gradient(145deg,rgba(207,228,220,.22),rgba(40,57,70,.04));
  transform: rotate(9deg);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#08090d 0%,rgba(8,9,13,.92) 28%,rgba(8,9,13,.35) 68%,rgba(8,9,13,.12)),
    linear-gradient(0deg,#08090d,transparent 25%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 0 0 10%;
  max-width: 650px;
}

.eyebrow,.hero-kicker,.section-overline {
  font-size: 9px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: #a8d8d8;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 35px;
}

.eyebrow-line {
  width: 25px;
  height: 1px;
  background: #9dd5d5;
}

.hero-kicker {
  color: #d5dddd;
  margin: 0 0 14px;
}

.hero h1 {
  font: 800 clamp(46px,6vw,76px)/1.04 var(--display);
  letter-spacing: -4px;
  margin: 0 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: #a8dadd;
}

.hero-description {
  max-width: 390px;
  color: #b5bac2;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-buttons { display: flex; gap: 12px; }

.button {
  height: 46px;
  border-radius: 7px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid transparent;
  transition: .2s;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  background: linear-gradient(120deg,#d0eeee,#8ec9cc);
  color: #112226;
}

.button-glass {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}

.hero-meta {
  margin-top: 56px;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #858c96;
}

.meta-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9ed8d8;
  margin-right: 9px;
}

.hero-index {
  position: absolute;
  right: 7%;
  bottom: 55px;
  color: #858b96;
  font-size: 10px;
}

.hero-index span { color: #d3eeee; }

.content-section {
  padding: 65px 7% 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 25px;
}

.section-overline {
  margin: 0 0 9px;
  font-size: 8px;
}

.section-heading h2,
.membership-banner h2 {
  font: 700 29px var(--display);
  letter-spacing: -1.3px;
  margin: 0;
}

.section-heading h2 span,
.membership-banner h2 span {
  color: #a4d8da;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.result-count {
  font-size: 11px;
  color: var(--muted);
}

.round-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: #c4dfe0;
  border-radius: 50%;
}

.filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: transparent;
  color: #a3a8b2;
  padding: 8px 15px;
  font-size: 11px;
}

.chip.selected,
.chip:hover {
  background: #b5e2e322;
  border-color: #8ecacc66;
  color: #d7f2f1;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 25px 18px;
}

.title-card { min-width: 0; cursor: pointer; }

.poster {
  aspect-ratio: 2/2.7;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  background: var(--poster,linear-gradient(145deg,#334,#111));
  border: 1px solid rgba(255,255,255,.08);
  transition: .3s;
}

.title-card:hover .poster {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px #0008;
}

.poster:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(5,7,10,.9),transparent 60%);
}

.poster-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 clamp(24px,4vw,48px) var(--display);
  color: #ffffff26;
  text-align: center;
  padding: 15px;
  text-transform: uppercase;
}

.poster-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  background: #090d12a8;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 8px;
  text-transform: uppercase;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d1efed;
  color: #142327;
  opacity: 0;
}

.title-card:hover .poster-play { opacity: 1; }

.card-info { padding: 12px 2px 0; }

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-weight: 700;
  font-size: 13px;
}

.card-year,.card-sub {
  font-size: 10px;
  color: #8d939d;
}

.card-sub { margin-top: 6px; }

.empty-state,.loading-state {
  grid-column: 1/-1;
  padding: 50px 15px;
  text-align: center;
  color: #8d939d;
}

.membership-banner {
  margin: 0 7% 80px;
  padding: 36px 42px;
  border: 1px solid #a3d9d925;
  border-radius: 12px;
  background: linear-gradient(110deg,#14232a,#141922 60%,#171725);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.membership-banner p:not(.section-overline) {
  font-size: 12px;
  color: #a0a8b2;
}

footer {
  border-top: 1px solid var(--line);
  padding: 25px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #747b86;
  font-size: 10px;
}

.footer-brand { font-size: 16px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #030508d9;
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.hidden { display: none !important; }

.modal {
  width: min(490px,100%);
  max-height: 90vh;
  overflow: auto;
  background: #12151d;
  border: 1px solid #ffffff16;
  border-radius: 15px;
  padding: 34px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: 0;
  color: #aeb5be;
  font-size: 27px;
}

.modal h2 {
  font: 800 27px var(--display);
  margin: 0 0 7px;
}

.modal-lead {
  color: #969eaa;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.form-field { display: block; margin: 14px 0; }

.form-field span {
  display: block;
  font-size: 10px;
  color: #b6bec8;
  margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #ffffff18;
  border-radius: 7px;
  background: #0c0f15;
  color: #fff;
  padding: 12px 13px;
  outline: none;
  font-size: 12px;
}

.form-submit {
  width: 100%;
  margin-top: 12px;
}

.form-switch {
  text-align: center;
  color: #9098a3;
  font-size: 11px;
  margin-top: 18px;
}

.text-button {
  background: none;
  border: 0;
  color: #b5e5e5;
}

.form-error {
  color: #ff9d9d;
  font-size: 11px;
}

.detail-visual {
  height: 190px;
  border-radius: 9px;
  margin-bottom: 22px;
  background: var(--poster,linear-gradient(145deg,#334,#111));
  display: flex;
  align-items: end;
  padding: 20px;
}

.detail-visual strong {
  font: 800 31px var(--display);
}

.detail-meta {
  color: #9ca5b0;
  font-size: 10px;
  margin: 10px 0;
}

.detail-description {
  font-size: 12px;
  color: #c0c5cc;
  line-height: 1.8;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #0b0e14;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
}

.admin-row button {
  background: none;
  border: 0;
  color: #ff9b9b;
}

.toast {
  position: fixed;
  z-index: 40;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%,15px);
  opacity: 0;
  background: #e0f4f2;
  color: #142629;
  padding: 12px 18px;
  border-radius: 7px;
  font-size: 12px;
  transition: .25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}

@media(max-width:1000px) {
  .topbar { gap: 25px; padding: 0 4%; }
  .main-nav { gap: 16px; }
  .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media(max-width:700px) {
  .topbar { height: 68px; padding: 0 5%; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: #10131a; padding: 15px; }
  .mobile-menu { display: block; background: none; color: white; border: 0; }
  .search-box { width: 38px; }
  .hero { height: 550px; }
  .hero-content { padding: 92px 7% 0; }
  .hero h1 { font-size: 54px; }
  .content-section { padding: 48px 5% 60px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
  .membership-banner { margin: 0 5% 55px; padding: 25px; flex-direction: column; align-items: flex-start; }
  .membership-banner .button { width: 100%; }
  footer { padding: 22px 5%; flex-wrap: wrap; gap: 14px; }
}
