:root {
  --bg: #0b1220;
  --bg2: #111a2e;
  --card: rgba(15, 23, 42, 0.86);
  --card-2: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e5eefb;
  --muted: #94a3b8;
  --brand: #f97316;
  --brand-2: #fb923c;
  --success: #22c55e;
  --shadow: 0 18px 40px rgba(2, 6, 23, .45);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(249, 115, 22, .16), transparent 60%),
    radial-gradient(1000px 500px at 90% 10%, rgba(59, 130, 246, .18), transparent 50%),
    linear-gradient(180deg, #09101b 0%, #0b1220 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none !important; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .38rem .7rem; border-radius: 999px; border: 1px solid rgba(249, 115, 22, .25);
  color: #ffd9c0; background: rgba(249, 115, 22, .08); font-size: .78rem;
}
.site-header {
  position: sticky; top: 0; z-index: 60; backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(8,15,28,.96), rgba(8,15,28,.80));
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.header-inner { display:flex; align-items:center; gap: 18px; min-height: 74px; }
.logo {
  display:flex; align-items:center; gap: 10px; font-weight: 800; letter-spacing:.03em; white-space: nowrap;
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 14px; display:grid; place-items:center;
  background: linear-gradient(135deg, var(--brand), #fb7185 50%, #a855f7);
  box-shadow: 0 12px 28px rgba(249,115,22,.35);
}
.logo-text { font-size: 1.08rem; }
.nav { display:flex; align-items:center; gap: 18px; margin-left: 8px; flex: 1; }
.nav a {
  color: #c8d4e7; font-weight: 600; font-size: .95rem; padding: .45rem .15rem; position: relative;
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active::after, .nav a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.header-tools { display:flex; align-items:center; gap: 10px; }
.search-form { position: relative; }
.search-input {
  width: min(280px, 42vw); padding: .88rem 3rem .88rem 1rem; border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18); color: #fff; background: rgba(15, 23, 42, .8);
  outline: none; transition: .2s ease;
}
.search-input:focus { border-color: rgba(249,115,22,.65); box-shadow: 0 0 0 4px rgba(249,115,22,.12); }
.search-btn, .icon-btn, .ghost-btn {
  border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; border-radius: 999px; transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.search-btn {
  position:absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; background: linear-gradient(135deg, var(--brand), #fb7185);
  color: #fff;
}
.icon-btn, .ghost-btn {
  min-height: 42px; padding: 0 14px; border: 1px solid rgba(148,163,184,.18);
  color: #dce7f7; background: rgba(15,23,42,.68);
}
.icon-btn:hover, .ghost-btn:hover, .search-btn:hover { transform: translateY(-1px); }
.mobile-toggle { display:none; }
.hero {
  padding: 30px 0 12px;
}
.hero-shell {
  position: relative; overflow:hidden; border-radius: 30px; border: 1px solid rgba(148,163,184,.12);
  background:
    linear-gradient(135deg, rgba(8,15,28,.74) 0%, rgba(15,23,42,.65) 38%, rgba(17,24,39,.82) 100%),
    radial-gradient(900px 420px at 20% 30%, rgba(249,115,22,.22), transparent 60%),
    radial-gradient(700px 420px at 95% 5%, rgba(59,130,246,.20), transparent 55%);
  box-shadow: var(--shadow);
}
.hero-grid {
  display:grid; grid-template-columns: 1.2fr .8fr; gap: 22px; padding: 26px;
}
.hero-copy h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 4.3rem); line-height: .98; letter-spacing: -.03em; }
.hero-copy .highlight { display:block; margin-top: .45rem; color: #ffb17a; }
.hero-copy p { margin: 16px 0 0; max-width: 62ch; color: #c8d4e7; line-height: 1.8; }
.hero-actions { display:flex; flex-wrap:wrap; gap: 12px; margin-top: 22px; }
.primary-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  padding: .92rem 1.2rem; border-radius: 999px; border: 0; cursor:pointer;
  background: linear-gradient(135deg, var(--brand), #fb7185);
  color:#fff; font-weight:700; box-shadow: 0 16px 30px rgba(249,115,22,.26);
}
.secondary-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem; padding: .92rem 1.15rem;
  border-radius: 999px; border: 1px solid rgba(148,163,184,.18); background: rgba(15,23,42,.68); color:#edf4ff;
}
.hero-search {
  display:flex; gap: 10px; margin-top: 22px; align-items: center;
}
.hero-search input {
  flex:1; min-width: 0; padding: 1rem 1.1rem; border-radius: 16px; border:1px solid rgba(148,163,184,.16);
  background: rgba(2, 6, 23, .32); color: #fff; outline: none;
}
.hero-search input:focus { border-color: rgba(249,115,22,.65); }
.hero-panel {
  display:flex; flex-direction:column; gap: 14px;
}
.hero-feature {
  position: relative; border-radius: 24px; overflow:hidden; min-height: 180px; border:1px solid rgba(148,163,184,.12);
  background: linear-gradient(180deg, rgba(15,23,42,.2), rgba(15,23,42,.82));
  box-shadow: 0 14px 32px rgba(2,6,23,.26);
}
.hero-feature img, .card-poster img, .detail-poster img {
  width:100%; height:100%; object-fit: cover;
}
.hero-feature .fallback, .card-poster .fallback, .detail-poster .fallback {
  position:absolute; inset:0; display:none; align-items:center; justify-content:center; flex-direction:column;
  background: linear-gradient(135deg, rgba(249,115,22,.28), rgba(17,24,39,.92));
  color: #fff; text-align:center; padding: 16px;
}
.hero-feature .overlay {
  position:absolute; inset:0; display:flex; align-items:flex-end; padding: 16px; background: linear-gradient(180deg, transparent 0%, rgba(2,6,23,.16) 25%, rgba(2,6,23,.92) 100%);
}
.hero-feature .meta { width: 100%; }
.hero-feature h3 { margin:0 0 6px; font-size: 1.1rem; }
.hero-feature p { margin:0; color:#cbd5e1; font-size:.92rem; line-height:1.55; }
.hero-strip {
  display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.hero-strip[data-hero-track] { overflow-x: auto; scroll-snap-type: x mandatory; }
.hero-strip[data-hero-track] > a { scroll-snap-align: start; }
.hero-mini {
  position: relative; border-radius: 18px; min-height: 102px; overflow:hidden; border: 1px solid rgba(148,163,184,.12);
  background: rgba(15,23,42,.7);
}
.hero-mini .fallback { font-size: .82rem; }
.hero-mini .overlay {
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; padding: 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(2,6,23,.86) 100%);
}
.hero-mini strong { font-size: .88rem; line-height: 1.25; }
.hero-mini span { color:#cbd5e1; font-size: .76rem; margin-top: 4px; }
.section { padding: 24px 0; }
.section-head {
  display:flex; align-items:end; justify-content:space-between; gap: 18px; margin-bottom: 16px;
}
.section-head h2 { margin:0; font-size: 1.52rem; }
.section-head p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.section-head .more { color: #ffd9c0; font-weight: 700; }
.section-sub { color: var(--muted); max-width: 64ch; }
.grid-cards {
  display:grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px;
}
.card, .category-card, .info-card, .stat-card {
  border: 1px solid rgba(148,163,184,.12); background: linear-gradient(180deg, rgba(15,23,42,.90), rgba(15,23,42,.72));
  border-radius: var(--radius); box-shadow: 0 12px 28px rgba(2,6,23,.20);
}
.card { overflow:hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(2,6,23,.36); border-color: rgba(249,115,22,.26); }
.card-poster { position:relative; aspect-ratio: 2 / 3; overflow:hidden; background: linear-gradient(135deg, rgba(249,115,22,.2), rgba(59,130,246,.18)); }
.card-body { padding: 12px 12px 14px; }
.card-title { margin:0; font-size: 1rem; line-height: 1.35; min-height: 2.7em; }
.card-meta { margin-top: 7px; display:flex; flex-wrap:wrap; gap: 6px; color: var(--muted); font-size: .78rem; }
.tag { display:inline-flex; align-items:center; padding: .25rem .55rem; border-radius: 999px; background: rgba(148,163,184,.10); color:#dce6f8; }
.card-desc { margin-top: 8px; color: #cbd5e1; font-size: .82rem; line-height: 1.55; min-height: 3.1em; }
.card-actions { margin-top: 12px; display:flex; gap: 10px; }
.card-actions a { flex:1; text-align:center; padding: .72rem .8rem; border-radius: 14px; font-weight: 700; }
.card-actions .watch { background: linear-gradient(135deg, var(--brand), #fb7185); color: #fff; }
.card-actions .detail { background: rgba(148,163,184,.10); color: #edf4ff; }
.category-grid {
  display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.category-card { padding: 18px; }
.category-card h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.category-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.category-card .count { margin-top: 14px; color: #ffcc9f; font-weight: 700; }
.toolbar {
  display:flex; flex-wrap:wrap; align-items:center; gap: 10px; padding: 14px; border-radius: 20px;
  background: rgba(15,23,42,.78); border: 1px solid rgba(148,163,184,.12); margin-bottom: 18px;
}
.toolbar .chip { border:0; cursor:pointer; padding: .65rem .9rem; border-radius: 999px; background: rgba(148,163,184,.10); color: #dbe6f8; }
.toolbar .chip.active, .toolbar .chip:hover { background: linear-gradient(135deg, rgba(249,115,22,.22), rgba(251,146,60,.25)); color: #fff; }
.toolbar .count { margin-left:auto; color: var(--muted); }
.breadcrumbs { display:flex; flex-wrap:wrap; gap: 8px; color: var(--muted); font-size: .92rem; }
.breadcrumbs a { color: #dce7f7; }
.breadcrumbs span { color: var(--muted); }
.page-hero {
  padding: 20px 0 6px;
}
.page-banner {
  padding: 24px; border-radius: 28px; border:1px solid rgba(148,163,184,.12);
  background: linear-gradient(135deg, rgba(15,23,42,.86), rgba(15,23,42,.68)); box-shadow: var(--shadow);
}
.detail-layout {
  display:grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items:start;
}
.detail-poster { position:relative; aspect-ratio: 2 / 3; border-radius: 24px; overflow:hidden; border:1px solid rgba(148,163,184,.12); }
.detail-panel { padding: 22px; border-radius: 24px; border:1px solid rgba(148,163,184,.12); background: linear-gradient(180deg, rgba(15,23,42,.88), rgba(15,23,42,.68)); }
.detail-title { margin:0; font-size: clamp(1.6rem, 2.8vw, 2.8rem); line-height: 1.1; }
.detail-title small { display:block; margin-top: .5rem; color:#ffcfaa; font-size:.92rem; font-weight:700; }
.detail-meta { display:flex; flex-wrap:wrap; gap: 10px; margin-top: 14px; }
.detail-meta .chip { background: rgba(148,163,184,.10); color: #e8f0ff; border-radius: 999px; padding: .42rem .7rem; font-size: .84rem; }
.detail-summary { margin-top: 18px; color:#d7e3f5; line-height: 1.85; white-space: pre-line; }
.detail-box { margin-top: 18px; padding: 18px; border-radius: 20px; background: rgba(2,6,23,.26); border:1px solid rgba(148,163,184,.10); }
.player-shell {
  margin-top: 18px; border-radius: 24px; overflow:hidden; border:1px solid rgba(148,163,184,.12); background:#000; box-shadow: var(--shadow);
}
.player-top {
  display:flex; align-items:center; justify-content:space-between; gap: 12px; padding: 14px 16px; background: rgba(15,23,42,.92);
  border-bottom: 1px solid rgba(148,163,184,.10);
}
.player-top strong { font-size: 1rem; }
.player-stage { position:relative; aspect-ratio: 16 / 9; background:#000; }
.player-stage video { width:100%; height:100%; }
.player-overlay {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column;
  background: linear-gradient(180deg, rgba(2,6,23,.28), rgba(2,6,23,.82));
}
.player-overlay .play-btn {
  width: 86px; height: 86px; border-radius: 999px; border: 0; cursor:pointer;
  background: linear-gradient(135deg, var(--brand), #fb7185); color:#fff; box-shadow: 0 18px 34px rgba(249,115,22,.3);
}
.player-overlay p { margin: 12px 0 0; color:#dbe6f8; }
.related-grid { display:grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.footer {
  margin-top: 28px; padding: 28px 0 34px; border-top: 1px solid rgba(148,163,184,.12); color: #b5c3d9;
  background: linear-gradient(180deg, rgba(8,15,28,.2), rgba(8,15,28,.65));
}
.footer-grid { display:grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 18px; }
.footer h4 { margin: 0 0 12px; color:#fff; }
.footer p, .footer li { line-height: 1.8; }
.footer ul { margin:0; padding:0; list-style:none; }
.footer a:hover { color: #fff; }
.float-top {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 999px;
  display:grid; place-items:center; background: linear-gradient(135deg, var(--brand), #fb7185); color:#fff;
  box-shadow: 0 16px 24px rgba(249,115,22,.28); z-index: 50; opacity:0; pointer-events:none; transition: .2s ease;
}
.float-top.show { opacity:1; pointer-events:auto; }
.mobile-panel { display:none; }
@media (max-width: 1180px) {
  .grid-cards, .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .detail-layout, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav, .header-tools { display:none; }
  .mobile-toggle { display:inline-flex; margin-left:auto; }
  .mobile-panel { display:none; padding: 0 0 14px; }
  .mobile-panel.open { display:block; }
  .mobile-nav { display:grid; gap: 10px; padding: 0 0 10px; }
  .mobile-nav a { padding: .9rem 1rem; border-radius: 14px; border:1px solid rgba(148,163,184,.12); background: rgba(15,23,42,.64); }
  .hero { padding-top: 18px; }
  .hero-grid { padding: 18px; }
  .hero-strip { grid-template-columns: 1fr; }
  .grid-cards, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: 1fr; }
  .section-head { align-items:start; flex-direction:column; }
  .toolbar { gap: 8px; }
  .toolbar .count { margin-left: 0; width: 100%; }
  .search-input { width: 100%; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 20px, 1240px); }
  .grid-cards, .related-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 2.2rem; }
  .detail-panel, .page-banner, .hero-shell { border-radius: 22px; }
}
