:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --orange: #f97316;
  --red: #dc2626;
  --gold: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(220, 38, 38, 0.16), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.28);
}

.brand-name {
  display: block;
  font-weight: 900;
  font-size: 1.24rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fb923c, #ef4444);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-tagline {
  display: block;
  color: var(--subtle);
  font-size: 0.75rem;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #e2e8f0;
  font-weight: 650;
}

.main-nav a {
  position: relative;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fb923c;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-toggle,
.menu-toggle,
.round-btn {
  border: 1px solid rgba(251, 146, 60, 0.28);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.search-toggle:hover,
.menu-toggle:hover,
.round-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 146, 60, 0.65);
  background: rgba(249, 115, 22, 0.16);
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-nav a,
.mobile-nav button {
  padding: 10px 12px;
  border-radius: 12px;
  color: #e2e8f0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.mobile-nav a:hover,
.mobile-nav button:hover {
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
}

.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
  opacity: 0.5;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.26) 100%),
    linear-gradient(0deg, #020617 0%, transparent 36%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 54px;
  padding: 86px 0 84px;
}

.hero-copy {
  max-width: 720px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.45);
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1,
.hero-title {
  margin: 22px 0 16px;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4.65rem);
}

.hero h1 span,
.hero-title span {
  background: linear-gradient(90deg, #ffffff, #fed7aa 46%, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 680px;
  color: #d1d5db;
  font-size: 1.08rem;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta {
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  font-size: 0.86rem;
}

.pill-hot {
  color: #ffedd5;
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(251, 146, 60, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.28);
}

.secondary-btn {
  color: #f8fafc;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: rgba(15, 23, 42, 0.62);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.25);
}

.hero-card {
  position: relative;
  justify-self: end;
  width: min(100%, 390px);
  border-radius: 32px;
  padding: 14px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.58));
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.16);
  inset: 28px;
  z-index: -1;
  transform: translate(-34px, 28px) rotate(-7deg);
}

.hero-card::after {
  transform: translate(30px, -26px) rotate(7deg);
  background: rgba(249, 115, 22, 0.12);
}

.hero-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
}

.hero-card-caption strong {
  display: block;
  font-size: 1.1rem;
}

.hero-card-caption span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  background: rgba(226, 232, 240, 0.34);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.is-active {
  width: 58px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.section {
  padding: 62px 0;
}

.section-compact {
  padding: 36px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.eyebrow {
  color: #fb923c;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.section-desc {
  color: var(--muted);
  max-width: 760px;
  margin: 10px 0 0;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.channel-card,
.stat-card,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.48));
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

.channel-card {
  min-height: 138px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.channel-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -42px;
  bottom: -42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.24), transparent 68%);
}

.channel-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 1.18rem;
}

.channel-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.92rem;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 26px 74px rgba(0, 0, 0, 0.34);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.06);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(2, 6, 23, 0.86));
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 0.8rem;
  font-weight: 850;
}

.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card-title a:hover {
  color: #fb923c;
}

.card-summary {
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  gap: 8px;
  font-size: 0.82rem;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
  transition: transform 180ms ease, border-color 180ms ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 146, 60, 0.4);
}

.rank-num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 950;
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
}

.rank-poster {
  width: 78px;
  height: 104px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.rank-title a:hover {
  color: #fb923c;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 160px 160px 160px;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.7);
  margin-bottom: 26px;
}

.filter-panel input,
.filter-panel select,
.search-box input {
  width: 100%;
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.64);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus {
  border-color: rgba(251, 146, 60, 0.58);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.category-hero,
.detail-hero {
  padding: 58px 0 32px;
}

.breadcrumb {
  color: var(--subtle);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #fb923c;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  background: #111827;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-lead {
  color: #e2e8f0;
  font-size: 1.08rem;
  max-width: 820px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.player-section {
  padding: 32px 0 56px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(251, 146, 60, 0.24);
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.2), rgba(2, 6, 23, 0.82));
  transition: opacity 200ms ease, visibility 200ms ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 22px 60px rgba(249, 115, 22, 0.38);
  transform: scale(1);
  transition: transform 180ms ease;
}

.play-overlay:hover .play-button {
  transform: scale(1.08);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.article-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.68);
  padding: 24px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.article-panel p {
  margin: 0 0 18px;
  color: #dbe4ef;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 180ms ease;
}

.related-item:hover {
  background: rgba(249, 115, 22, 0.12);
}

.related-item img {
  width: 60px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.related-item strong {
  display: block;
  line-height: 1.35;
}

.related-item span {
  display: block;
  color: var(--subtle);
  font-size: 0.86rem;
  margin-top: 4px;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: 24px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
}

.search-modal.is-open {
  display: grid;
  place-items: start center;
}

.search-dialog {
  width: min(760px, 100%);
  margin-top: 8vh;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  padding: 20px;
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.search-head strong {
  font-size: 1.25rem;
}

.close-search {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  cursor: pointer;
}

.search-results {
  max-height: 56vh;
  overflow: auto;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-right: 4px;
}

.search-result {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.46);
}

.search-result:hover {
  background: rgba(249, 115, 22, 0.13);
}

.search-result img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 18px;
}

.footer {
  margin-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(2, 6, 23, 0.92));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  color: var(--muted);
}

.footer h2,
.footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #fb923c;
}

@media (max-width: 1060px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 64px;
  }

  .hero-card {
    justify-self: start;
    max-width: 320px;
  }

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

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

  .content-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 66px;
  }

  .brand-tagline {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .hero-card {
    display: none;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .channel-grid,
  .movie-grid,
  .rank-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

  .rank-num {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .search-toggle {
    display: none;
  }

  .page-wrap,
  .nav-shell,
  .hero-inner,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}
