:root {
  --bg: #080D1A;
  --surface: #0a1020;
  --panel: #0e162c;
  --panel-2: #121d36;
  --panel-3: #17233f;
  --line: rgba(122, 160, 214, 0.14);
  --line-strong: rgba(122, 160, 214, 0.28);
  --text: #eef4ff;
  --muted: #8fa1bb;
  --muted-2: #6f819c;
  --accent: #0066ff;
  --accent-2: #38bdf8;
  --accent-soft: rgba(0, 102, 255, 0.14);
  --gold: #f4c76b;
  --danger: #ff7676;
  --ok: #6fe3b0;
  --radius: 16px;
  --radius-sm: 11px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(0, 102, 255, 0.14), transparent 62%),
    radial-gradient(800px 420px at 4% 20%, rgba(56, 189, 248, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
[hidden] { display: none !important; }

.app-shell { display: flex; min-height: 100vh; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  width: 100%;
  padding: 12px clamp(18px, 3vw, 44px);
  background: rgba(8, 13, 26, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { height: 50px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.nav-link.active { color: #dceeff; background: var(--accent-soft); border-color: rgba(0, 102, 255, 0.38); }
.search {
  position: relative;
  flex: 1 1 220px;
  max-width: 360px;
  margin-left: auto;
}
.search-glyph { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 19px; pointer-events: none; }
.search input {
  width: 100%;
  padding: 11px 40px 11px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { border-color: rgba(56, 189, 248, 0.55); background: rgba(255, 255, 255, 0.065); }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 18px; display: none; }
.search.has-value .search-clear { display: block; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.club-status {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: 13px;
  border-right: 1px solid var(--line);
}
.club-status-rank { color: var(--accent-2); font-size: 11px; font-weight: 800; white-space: nowrap; }
.club-status-meta { color: var(--muted-2); font-size: 10px; font-weight: 600; white-space: nowrap; }
.dot-sep { margin: 0 4px; }
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ghost-btn:hover { color: var(--text); border-color: var(--line-strong); }
.profile-btn { display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); color: var(--text); }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(140deg, var(--accent), #1450b8); color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 800; }
.profile-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--muted); }

.content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 26px clamp(18px, 3vw, 44px) 44px; flex: 1; }
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(460px, 46vw, 680px);
  padding: clamp(26px, 4vw, 58px);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #0a1122;
  isolation: isolate;
}
.hero-poster-wrap.hero-backdrop { position: absolute; inset: 0; z-index: 0; border: 0; border-radius: 0; background: #0a1122; box-shadow: none; overflow: hidden; }
.hero-backdrop-img { width: 100%; height: 100%; object-fit: cover; object-position: center 26%; display: block; filter: saturate(1.12) contrast(1.04) brightness(1.03); }
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 13, 26, 0.94) 0%, rgba(8, 13, 26, 0.68) 24%, rgba(8, 13, 26, 0.16) 54%, rgba(8, 13, 26, 0) 76%),
    linear-gradient(0deg, rgba(8, 13, 26, 0.82) 0%, rgba(8, 13, 26, 0.12) 24%, transparent 46%);
}
.hero-skeleton { position: absolute; inset: 0; z-index: 2; background: linear-gradient(100deg, #0c1426 30%, #14213d 50%, #0c1426 70%); background-size: 300% 100%; animation: shimmer 1.6s infinite; }
.hero-inner { position: relative; z-index: 3; min-width: 0; max-width: 760px; padding-bottom: clamp(4px, 1vw, 12px); }
.eyebrow { color: var(--accent-2); font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.hero h1 { margin: 10px 0 12px; font-family: var(--font-display); font-size: clamp(38px, 5vw, 68px); line-height: 0.98; font-weight: 900; letter-spacing: -0.03em; text-wrap: balance; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: #c2cee0; font-size: 12px; font-weight: 700; }
.hero-meta .score { color: var(--gold); }
.hero p.hero-desc { margin: 14px 0 22px; max-width: 600px; color: #c5d1e2; font-size: 13.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-play { padding: 13px 24px; font-size: 13.5px; }
.hero-arrows { position: absolute; right: 22px; bottom: 22px; z-index: 4; display: flex; gap: 7px; }
.hero-arrows button { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 9px; background: rgba(8, 13, 26, 0.62); color: var(--text); font-size: 19px; line-height: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-arrows button:hover { border-color: var(--accent-2); background: rgba(8, 13, 26, 0.85); }
.hero-dots { position: absolute; right: 24px; top: 50%; z-index: 4; display: flex; flex-direction: column; gap: 9px; transform: translateY(-50%); }
.hero-dot { width: 9px; height: 9px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.48); border-radius: 50%; background: transparent; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.hero-dot:hover { border-color: #fff; transform: scale(1.15); }
.hero-dot.active { border-color: var(--accent-2); background: var(--accent-2); box-shadow: 0 0 10px rgba(56, 189, 248, 0.7); }
.browse-bar { display: flex; align-items: center; gap: 16px; margin: 26px 0 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; flex: 1; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.16s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { color: #cfe4ff; background: var(--accent-soft); border-color: rgba(47, 125, 255, 0.5); }
.sort-wrap { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.sort-wrap select { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); padding: 7px 9px; font-size: 11.5px; }

.shelf { margin-top: 26px; scroll-margin-top: 90px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.shelf-head h2 { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.mark { width: 4px; height: 17px; border-radius: 2px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.link-btn { border: 0; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 800; }
.link-btn:hover { color: var(--accent-2); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--panel);
  color: inherit;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 13, 26, 0) 38%, rgba(8, 13, 26, 0.72) 78%, rgba(8, 13, 26, 0.92) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.58);
  background: var(--panel-2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.16), 0 0 32px rgba(0, 102, 255, 0.28);
  z-index: 3;
}
.card:hover::after,
.card:focus-within::after { opacity: 1; }
.card-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.card-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #0c1426; transition: filter 0.28s ease; }
.card:hover .card-poster { filter: brightness(1.08) saturate(1.06); }
.card-poster.placeholder { display: grid; place-items: center; font-family: var(--font-display); font-size: 30px; color: var(--muted-2); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px 15px; }
.card-play {
  position: absolute;
  right: 10px;
  bottom: 11px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, #1c7cff, #0a4fd6);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(0, 72, 190, 0.5);
  opacity: 0;
  transform: translateY(9px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.2s ease;
}
.card-play:hover { filter: brightness(1.12); }
.card-play-icon { font-size: 9px; line-height: 1; }
.card:hover .card-play,
.card:focus-within .card-play { opacity: 1; transform: translateY(0) scale(1); }
.card-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 37px;
}
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: 0; color: var(--muted-2); font-size: 10.5px; font-weight: 700; }
.card-year {
  padding: 2px 7px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.card-score { color: var(--gold); font-size: 11px; }
.card-desc {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}
.card-badge { position: absolute; top: 8px; left: 8px; padding: 4px 7px; border-radius: 6px; background: rgba(8, 13, 26, 0.84); border: 1px solid var(--line); color: var(--accent-2); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.western-shelf {
  padding: 18px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(0, 102, 255, 0.035) 45%, transparent 80%);
}
.western-shelf .shelf-head h2 { font-size: 21px; }
.empty { padding: 32px 0; color: var(--muted); font-size: 13px; }

.club-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(47, 125, 255, 0.12), transparent 56%),
    var(--surface);
}
.club-banner h2 { margin: 6px 0 6px; font-family: var(--font-display); font-size: 22px; }
.club-banner p:last-child { color: var(--muted); font-size: 12.5px; max-width: 620px; line-height: 1.55; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 34px 28px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 11px; }
.foot strong { color: var(--muted); }
.foot-links { display: flex; gap: 14px; }
.foot-links a:hover { color: var(--text); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  z-index: 500;
  max-width: min(440px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #101a30;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 7, 16, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade 0.18s ease;
}
.modal-panel {
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.modal-close { position: sticky; top: 10px; margin-left: auto; margin-right: 10px; margin-top: 10px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(6, 9, 19, 0.8); color: var(--text); font-size: 18px; }
.modal-close:hover { border-color: var(--accent); }
.primary-btn,
.secondary-btn,
.quiet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.primary-btn { border: 1px solid rgba(56, 189, 248, 0.45); background: linear-gradient(135deg, #147bff, #0a4fd6); color: #fff; box-shadow: 0 10px 25px rgba(0, 72, 190, 0.32); }
.primary-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.secondary-btn { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.055); color: var(--text); }
.secondary-btn:hover { border-color: rgba(56, 189, 248, 0.55); background: rgba(56, 189, 248, 0.1); }
.quiet-btn { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.quiet-btn:hover { color: var(--text); border-color: var(--line-strong); }

.modal.detail-modal {
  background:
    radial-gradient(ellipse at center, rgba(4, 7, 16, 0) 32%, rgba(4, 7, 16, 0.5) 100%),
    linear-gradient(180deg, rgba(4, 7, 16, 0.06), rgba(4, 7, 16, 0.3)),
    var(--modal-backdrop, none) center / cover no-repeat,
    #040710;
}
.detail-modal .modal-panel { max-width: 1340px; }
.detail-panel { position: relative; background: var(--surface); }
.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(8, 13, 26, 0.96), rgba(8, 13, 26, 0.7) 74%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.detail-brand { display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; }
.detail-brand img { height: 34px; width: auto; }
.detail-brand:hover { filter: brightness(1.18); }
.detail-topbar .modal-close { position: static; margin: 0; }
.detail-hero {
  position: relative;
  padding: clamp(20px, 2.6vw, 36px);
  background:
    linear-gradient(100deg, rgba(6, 10, 20, 0.88) 0%, rgba(8, 13, 26, 0.58) 46%, rgba(8, 13, 26, 0.18) 100%),
    var(--detail-image, none) center 28% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 13, 26, 0.84), transparent 56%, rgba(8, 13, 26, 0.08)); pointer-events: none; }
.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
}
.detail-aside { display: flex; flex-direction: column; gap: 12px; }
.detail-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--panel-2); box-shadow: 0 30px 62px rgba(0, 0, 0, 0.62); }
.detail-aside .detail-trailer { width: 100%; padding: 12px 16px; }
.detail-aside-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.score-tag { color: var(--gold); border-color: rgba(244, 199, 107, 0.38); background: rgba(244, 199, 107, 0.08); }
.detail-main-panel {
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(12, 21, 41, 0.92), rgba(9, 15, 30, 0.8));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.detail-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--preview-image, none) center 28% / cover no-repeat, #060a14;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.detail-preview-shade { position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, rgba(3, 7, 16, 0) 20%, rgba(3, 7, 16, 0.28) 100%), linear-gradient(0deg, rgba(4, 8, 17, 0.7), transparent 38%); }
.detail-preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(8, 13, 26, 0.58);
  color: #fff;
  font-size: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.detail-preview-play:hover { transform: translate(-50%, -50%) scale(1.07); background: var(--accent); border-color: var(--accent-2); }
.detail-preview-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 13, 26, 0.68);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.detail-preview-badge:hover { border-color: var(--accent-2); background: rgba(8, 13, 26, 0.88); }
.detail-preview-caption { position: absolute; left: 16px; bottom: 13px; display: flex; gap: 9px; color: #dbe8fa; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.detail-preview-caption span + span { color: var(--accent-2); }
.detail-episode-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.ep-nav-btn { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.035); color: var(--text); font-size: 22px; line-height: 1; }
.ep-nav-btn:hover { border-color: var(--accent-2); background: var(--accent-soft); }
.ep-nav-current { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.ep-nav-code { color: var(--accent-2); font-size: 11px; font-weight: 900; letter-spacing: 0.04em; }
.ep-nav-title { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10.5px; font-weight: 700; }
.detail-info { padding: 20px 4px 2px; }
.detail-main-panel h2 { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 46px); line-height: 1.02; font-weight: 900; letter-spacing: -0.025em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 10px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.detail-desc { margin: 16px 0 18px; color: #b8c6db; font-size: 13px; line-height: 1.7; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-play { padding: 13px 24px; font-size: 13.5px; }
.detail-trailer { padding: 13px 20px; font-size: 13px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.detail-body { position: relative; z-index: 2; padding: 4px clamp(22px, 3vw, 40px) 34px; }
.detail-lower { background: var(--surface); }
.detail-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail-section h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.episode-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.episode-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.episode-head h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.season-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 3px; scrollbar-width: none; }
.season-tabs::-webkit-scrollbar { display: none; }
.season-tab { flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.025); color: var(--muted); font-size: 10.5px; font-weight: 800; }
.season-tab:hover { color: var(--text); border-color: var(--line-strong); }
.season-tab.active { color: #cfe4ff; border-color: rgba(47, 125, 255, 0.55); background: var(--accent-soft); }
.episode-rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: rgba(56, 189, 248, 0.35) transparent; }
.episode-btn {
  flex: 0 0 auto;
  min-width: 92px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.episode-btn:hover { color: var(--text); border-color: rgba(56, 189, 248, 0.42); background: rgba(56, 189, 248, 0.07); }
.episode-btn.active { color: #cfe4ff; border-color: rgba(47, 125, 255, 0.55); background: var(--accent-soft); }
.episode-code { font-size: 12px; font-weight: 900; letter-spacing: 0.02em; }
.episode-label { color: var(--muted-2); font-size: 9.5px; font-weight: 700; }
.episode-btn.active .episode-label { color: var(--muted); }
.episode-btn.locked::after { content: ' · lock'; color: var(--gold); font-size: 9px; }
.cast-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.cast-rail { display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; scrollbar-color: rgba(56, 189, 248, 0.35) transparent; }
.cast-card { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.cast-photo {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, var(--panel-3), var(--panel));
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}
.cast-name { max-width: 100%; color: var(--text); font-size: 11px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cast-role { max-width: 100%; color: var(--muted-2); font-size: 9.5px; font-weight: 600; line-height: 1.3; }
.cast-empty { margin-top: 6px; color: var(--muted-2); font-size: 11.5px; }
.review-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.review-average { font-family: var(--font-display); font-size: 34px; font-weight: 900; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.review-count { color: var(--muted-2); font-size: 11px; font-weight: 700; }
.review-form { display: grid; gap: 9px; margin-bottom: 18px; }
.review-form .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.star-picker { display: inline-flex; gap: 2px; }
.star-picker button { border: 0; background: transparent; color: var(--muted-2); font-size: 20px; padding: 0 2px; }
.star-picker button.on { color: var(--gold); }
.review-form textarea { width: 100%; min-height: 74px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.035); color: var(--text); padding: 10px 11px; font-size: 12px; }
.review-form input { border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.035); color: var(--text); padding: 9px 11px; font-size: 12px; }
.review-list { display: grid; gap: 10px; }
.review-item { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.review-item .who { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; }
.review-item .who span:last-child { color: var(--muted-2); font-size: 10px; font-weight: 600; }
.review-item p { margin-top: 5px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }

.player-modal { padding: 0; background: #03050a; }
.player-panel { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; border-radius: 0; background: #03050a; display: flex; flex-direction: column; }
.player-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.player-bar h3 { font-family: var(--font-display); font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .sub { color: var(--muted-2); font-size: 10.5px; font-weight: 700; }
.player-bar .modal-close { position: static; margin: 0 0 0 auto; }
.player-frame { flex: 1; min-height: 0; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; background: #000; }
.trailer-external { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.trailer-external:hover { color: var(--accent-2); }

.club-modal .modal-panel { max-width: 860px; }
.club-body { padding: 8px 26px 26px; }
.club-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(120deg, rgba(47, 125, 255, 0.12), transparent 70%); }
.club-avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(140deg, var(--accent), #123f91); font-family: var(--font-display); font-size: 24px; font-weight: 900; }
.club-name { font-family: var(--font-display); font-size: 21px; font-weight: 900; }
.club-rank { color: var(--gold); font-size: 12px; font-weight: 800; margin-top: 2px; }
.club-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.stat { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.02); }
.stat b { display: block; font-family: var(--font-display); font-size: 21px; }
.stat span { color: var(--muted-2); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.progress { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.progress-label { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted-2); font-size: 10.5px; font-weight: 700; }
.club-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.club-note { color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.club-form { display: flex; gap: 8px; margin-top: 16px; }
.club-form input { flex: 1; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.035); color: var(--text); padding: 10px 11px; font-size: 12px; }

.noscript { padding: 20px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -80% 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
.modal-panel { animation: pop 0.2s ease; }

@media (max-width: 1600px) {
  .club-status { display: none; }
  .search { max-width: 330px; }
}

@media (max-width: 1280px) {
  .brand img { height: 44px; }
  .nav-link { padding: 8px 9px; font-size: 11.5px; }
  .search { max-width: 270px; }
  .ghost-btn { padding: 9px 11px; font-size: 11.5px; }
  .profile-name { max-width: 85px; }
}

@media (max-width: 1080px) {
  .brand img { height: 42px; }
  .search { max-width: 220px; }
  .ghost-btn { padding: 9px 10px; font-size: 11px; }
  .profile-name { display: none; }
}

@media (max-width: 1240px) {
  .topbar { flex-wrap: wrap; padding: 11px 18px; gap: 10px; }
  .brand { order: 1; }
  .search { order: 2; flex: 1 1 220px; max-width: none; margin-left: 0; }
  .topbar-actions { order: 3; }
  .top-nav { order: 4; width: 100%; overflow-x: auto; padding-top: 2px; scrollbar-width: none; }
  .top-nav::-webkit-scrollbar { display: none; }
  .content { padding: 18px 18px 32px; }
  .shelf { scroll-margin-top: 132px; }
  .foot { padding: 18px; }
  .hero { min-height: clamp(420px, 52vw, 600px); }
}

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; gap: 18px; }
  .detail-aside { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 12px; align-items: end; }
  .detail-poster { width: 150px; grid-row: span 2; }
  .detail-aside .detail-trailer { width: auto; align-self: end; }
  .detail-aside-meta { align-self: start; }
  .detail-main-panel { padding: 18px; }
  .detail-main-panel h2 { font-size: clamp(24px, 5vw, 34px); }
  .detail-preview-play { width: 64px; height: 64px; font-size: 21px; }
}

@media (max-width: 640px) {
  .brand img { height: 38px; }
  .profile-name { display: none; }
  .hero { min-height: 460px; padding: 22px 18px 64px; border-radius: 18px; }
  .hero-inner { width: 100%; }
  .hero h1 { font-size: clamp(32px, 10vw, 44px); }
  .hero p.hero-desc { -webkit-line-clamp: 3; font-size: 12.5px; }
  .hero-dots { right: 14px; gap: 7px; }
  .hero-arrows { right: 14px; bottom: 14px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); gap: 12px; }
  .card-title { font-size: 13.5px; }
  .browse-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .sort-wrap { justify-content: flex-end; }
  .western-shelf { padding: 12px; }
  .club-banner { flex-direction: column; align-items: flex-start; }
  .modal { padding: 0; }
  .modal-panel { max-height: 100vh; border-radius: 0; }
  .detail-hero { padding: 18px 14px 20px; }
  .detail-layout { grid-template-columns: 1fr; gap: 14px; }
  .detail-aside { grid-template-columns: 118px minmax(0, 1fr); gap: 8px 10px; }
  .detail-poster { width: 118px; border-radius: 12px; }
  .detail-aside-meta { padding-bottom: 2px; }
  .detail-main-panel { padding: 14px; border-radius: 16px; }
  .detail-main-panel h2 { font-size: 27px; }
  .detail-preview-play { width: 56px; height: 56px; font-size: 19px; }
  .detail-preview-badge { top: 9px; right: 9px; padding: 6px 9px; font-size: 10px; }
  .detail-preview-caption { left: 11px; bottom: 9px; font-size: 9.5px; }
  .detail-info { padding: 16px 2px 0; }
  .detail-desc { font-size: 12px; margin: 13px 0 15px; }
  .detail-actions { gap: 7px; }
  .detail-play, .detail-trailer { flex: 1 1 auto; padding: 11px 14px; font-size: 12px; }
  .detail-body { padding: 4px 18px 24px; }
  .detail-section { margin-top: 20px; padding-top: 16px; }
  .club-stats { grid-template-columns: 1fr 1fr; }
  .player-bar { padding: 10px 12px; }
  .trailer-external { display: none; }
}

@media (hover: none) {
  .card-play { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.doc-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 20px 60px;
}
.doc-brand { display: inline-block; margin-bottom: 26px; }
.doc-brand img { height: 42px; width: auto; }
.doc-card {
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(18, 29, 54, 0.72), rgba(10, 16, 32, 0.92));
}
.doc-title { margin: 8px 0 10px; font-family: var(--font-display); font-size: clamp(28px, 5vw, 42px); line-height: 1.06; font-weight: 900; letter-spacing: -0.02em; }
.doc-lead { margin-bottom: 22px; color: #b8c6db; font-size: 14px; line-height: 1.7; }
.doc-card h2 { margin: 24px 0 7px; font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.doc-card p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.doc-card a:not(.primary-btn):not(.secondary-btn) { color: var(--accent-2); }
.doc-list { margin: 10px 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.doc-note { margin-top: 24px !important; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-2) !important; font-size: 11.5px !important; }
.doc-back { margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.doc-back a:hover { color: var(--text); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.plan { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.plan-featured { border-color: rgba(47, 125, 255, 0.5); background: linear-gradient(160deg, rgba(47, 125, 255, 0.12), rgba(14, 22, 44, 0.4)); }
.plan-tag { position: absolute; top: 14px; right: 14px; padding: 3px 7px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.plan h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 19px; }
.plan-price { color: var(--text) !important; font-family: var(--font-display); font-size: 30px; font-weight: 900; }
.plan-price span { color: var(--muted-2) !important; font-family: var(--font-body); font-size: 11px; font-weight: 600; }
.plan ul { display: grid; gap: 7px; margin: 16px 0 20px; padding: 0; list-style: none; }
.plan li { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.plan li::before { content: '✓'; margin-right: 7px; color: var(--accent-2); font-weight: 800; }
.plan .primary-btn, .plan .secondary-btn { width: 100%; }
@media (max-width: 820px) {
  .plan-grid { grid-template-columns: 1fr; }
  .doc-card { padding: 22px 18px; }
}

.stat b.rank-label { font-size: 15px; line-height: 1.3; }
.join-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(120deg, rgba(47, 125, 255, 0.1), rgba(255, 255, 255, 0.02));
}
.join-cta strong { font-family: var(--font-display); font-size: 14px; font-weight: 800; }
.join-cta p { margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
