:root {
  --night-950: #0f1115;
  --night-900: #1a1c23;
  --night-850: #20232c;
  --night-800: #3b3d44;
  --maple-700: #7f281d;
  --maple-600: #b92f1c;
  --maple-500: #ef5844;
  --maple-400: #f88171;
  --warm-50: #faf8f3;
  --warm-100: #f3eee0;
  --warm-200: #e7dbc0;
  --warm-300: #d8c299;
  --warm-400: #c8a670;
  --warm-500: #bd9053;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.25);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(239, 88, 68, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(200, 166, 112, 0.08), transparent 32rem),
    var(--night-950);
  color: var(--warm-50);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 28, 35, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 1480px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--maple-500), var(--maple-700));
  color: white;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(239, 88, 68, 0.35);
}

.brand-text {
  color: var(--warm-50);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.nav-dropdown-panel a,
.mobile-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--warm-300);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown-panel a:hover,
.mobile-panel a:hover {
  color: var(--maple-400);
  background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-button {
  border: 0;
  background: transparent;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 180px;
  padding: 10px;
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  background: rgba(26, 28, 35, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  justify-content: flex-start;
}

.header-search {
  margin-left: auto;
  width: min(360px, 32vw);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.quick-search-band input,
.search-filters input,
.search-filters select {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(15, 17, 21, 0.7);
  color: var(--warm-50);
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.quick-search-band input:focus,
.search-filters input:focus,
.search-filters select:focus {
  border-color: var(--maple-500);
  box-shadow: 0 0 0 4px rgba(239, 88, 68, 0.14);
}

.header-search button,
.quick-search-band button,
.search-filters button {
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--maple-500);
  color: white;
  padding: 0 18px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.quick-search-band button:hover,
.search-filters button:hover {
  background: var(--maple-400);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--warm-50);
}

.mobile-panel {
  display: none;
  padding: 16px 24px 24px;
  background: rgba(26, 28, 35, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--night-950);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.68);
}

.hero-shade,
.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.94), rgba(15, 17, 21, 0.62), rgba(15, 17, 21, 0.86)),
    linear-gradient(0deg, var(--night-950), rgba(15, 17, 21, 0.06) 45%, var(--night-950));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1480px;
  min-height: 72vh;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 56px;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(239, 88, 68, 0.35);
  border-radius: 999px;
  color: var(--maple-400);
  background: rgba(239, 88, 68, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-heading h1 {
  margin: 0;
  max-width: 900px;
  color: var(--warm-50);
  font-size: clamp(38px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-heading p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--warm-200);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags,
.detail-tags {
  margin-top: 22px;
}

.hero-tag,
.tag,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(59, 61, 68, 0.82);
  color: var(--warm-200);
  font-size: 13px;
  font-weight: 600;
}

.tag:hover {
  color: white;
  background: var(--maple-700);
}

.hero-actions,
.detail-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary,
.btn-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--maple-500), var(--maple-600));
  color: white;
  box-shadow: 0 14px 34px rgba(239, 88, 68, 0.3);
}

.btn-primary:hover,
.btn-ghost:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.btn-ghost,
.section-more {
  color: var(--warm-50);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover,
.section-more:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-primary.wide {
  width: 100%;
  margin-top: 18px;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(239, 88, 68, 0.92);
  color: white;
  font-size: 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 64px;
  border: 0;
  border-radius: 18px;
  background: rgba(26, 28, 35, 0.58);
  color: var(--warm-50);
  font-size: 44px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.active {
  background: var(--maple-500);
}

.quick-search-band,
.content-section,
.detail-main,
.category-overview-list,
.search-panel {
  max-width: 1480px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search-band {
  margin-top: -36px;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: 24px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  border-radius: var(--radius-lg);
  background: rgba(26, 28, 35, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.quick-search-band h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.quick-search-band p {
  margin: 0;
  color: var(--warm-300);
  line-height: 1.7;
}

.quick-search-band form {
  display: flex;
  gap: 10px;
}

.content-section {
  padding-top: 72px;
}

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

.section-heading.compact {
  align-items: center;
}

.section-title {
  margin: 0;
  color: var(--warm-50);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--warm-300);
  font-size: 16px;
  line-height: 1.6;
}

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

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--night-900);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

.video-card-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--night-800);
}

.video-card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.video-card:hover .video-card-cover {
  transform: scale(1.08);
  filter: brightness(0.82);
}

.video-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  opacity: 0;
  background: var(--maple-500);
  color: white;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-card:hover .video-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-card-type {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.76);
  color: var(--warm-100);
  font-size: 12px;
  font-weight: 700;
}

.video-card-content {
  padding: 16px;
}

.video-card-title {
  display: -webkit-box;
  min-height: 48px;
  margin-bottom: 10px;
  overflow: hidden;
  color: var(--warm-50);
  font-size: 17px;
  line-height: 1.42;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-card-title:hover {
  color: var(--maple-400);
}

.video-card-description {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--warm-300);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--warm-400);
  font-size: 12px;
}

.video-card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: rgba(216, 194, 153, 0.5);
}

.card-tags {
  margin-top: 12px;
}

.card-tags span {
  min-height: 24px;
  padding: 0 9px;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--night-900);
  box-shadow: var(--shadow-card);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.05), rgba(15, 17, 21, 0.92));
}

.category-tile:hover img {
  opacity: 0.48;
  transform: scale(1.08);
}

.category-tile-icon,
.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile-icon,
.category-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--maple-500), var(--maple-700));
  color: white;
  font-weight: 900;
}

.category-tile strong {
  color: var(--warm-50);
  font-size: 22px;
}

.category-tile em {
  margin-top: 8px;
  color: var(--warm-300);
  font-style: normal;
  line-height: 1.6;
}

.split-section,
.ranking-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.feature-panel,
.wide-panel,
.ranking-aside,
.info-card,
.player-card,
.detail-section,
.category-overview-card,
.search-panel {
  border-radius: var(--radius-lg);
  background: rgba(26, 28, 35, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
}

.feature-panel,
.wide-panel,
.ranking-aside,
.info-card,
.detail-section,
.category-overview-card,
.search-panel {
  padding: 24px;
}

.rank-list,
.ranking-aside {
  display: grid;
  gap: 12px;
}

.rank-item,
.rank-row,
.related-mini a {
  display: grid;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item {
  grid-template-columns: 34px 58px minmax(0, 1fr);
  padding: 8px;
}

.rank-item:hover,
.rank-row:hover,
.related-mini a:hover {
  background: rgba(239, 88, 68, 0.12);
  transform: translateX(3px);
}

.rank-item span,
.rank-row span {
  color: var(--maple-400);
  font-weight: 900;
  text-align: center;
}

.rank-item img,
.related-mini img {
  width: 58px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-item strong,
.rank-row strong {
  display: block;
  overflow: hidden;
  color: var(--warm-50);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item em,
.rank-row em {
  display: block;
  margin-top: 2px;
  color: var(--warm-400);
  font-size: 12px;
  font-style: normal;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.scroll-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.scroll-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.scroll-card span {
  display: block;
  padding: 12px;
  overflow: hidden;
  color: var(--warm-50);
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scroll-buttons {
  display: flex;
  gap: 10px;
}

.scroll-buttons button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--warm-50);
  font-size: 24px;
}

.page-hero {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 86px 24px 40px;
}

.compact-hero > div,
.category-hero > div {
  overflow: hidden;
  border-radius: 30px;
  padding: 54px;
  background:
    linear-gradient(135deg, rgba(239, 88, 68, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(26, 28, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(34px, 5vw, 64px);
}

.category-overview-list {
  display: grid;
  gap: 22px;
  padding-top: 24px;
}

.category-overview-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.category-overview-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.category-overview-head p {
  margin: 0;
  color: var(--warm-300);
  line-height: 1.6;
}

.category-overview-head a {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(239, 88, 68, 0.12);
  color: var(--maple-400);
  font-weight: 800;
}

.small-scroll {
  grid-auto-columns: 160px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination strong,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--warm-100);
  font-weight: 800;
}

.pagination strong {
  background: var(--maple-500);
  color: white;
}

.search-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px 120px;
  gap: 12px;
  margin-bottom: 18px;
}

.search-status {
  margin-bottom: 20px;
  color: var(--warm-300);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.58);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1480px;
  min-height: 560px;
  margin: 0 auto;
  padding: 74px 24px 64px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--warm-300);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--maple-400);
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding-top: 48px;
}

.detail-content {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(239, 88, 68, 0.94);
  color: white;
  font-size: 30px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-shell.playing .player-center {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

.player-topline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--warm-50);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
}

.player-topline em {
  color: var(--maple-400);
  font-style: normal;
  font-weight: 800;
}

.player-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-shell:hover .player-controls,
.player-shell:focus-within .player-controls {
  opacity: 1;
  transform: translateY(0);
}

.player-controls button {
  border: 0;
  border-radius: 12px;
  background: rgba(26, 28, 35, 0.78);
  color: var(--warm-50);
  padding: 9px 14px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.player-controls button:hover {
  background: var(--maple-500);
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 74px;
  z-index: 6;
  max-width: min(90%, 520px);
  padding: 10px 14px;
  border-radius: 12px;
  display: none;
  background: rgba(15, 17, 21, 0.86);
  color: var(--warm-100);
  text-align: center;
}

.player-message.show {
  display: block;
}

.detail-section h2,
.info-card h2,
.ranking-aside h2,
.footer-block h2 {
  margin: 0 0 16px;
  color: var(--warm-50);
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: var(--warm-200);
  font-size: 17px;
  line-height: 1.95;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 24px;
}

.info-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.info-card div:last-child {
  border-bottom: 0;
}

.info-card span {
  color: var(--warm-400);
}

.info-card strong {
  color: var(--warm-50);
  text-align: right;
}

.related-mini {
  display: grid;
  gap: 10px;
}

.related-mini a {
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 8px;
}

.related-mini span {
  overflow: hidden;
  color: var(--warm-50);
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.next-prev a {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--warm-200);
  font-weight: 800;
}

.next-prev a:hover {
  color: white;
  background: rgba(239, 88, 68, 0.18);
}

.rank-row {
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 12px;
}

.site-footer {
  margin-top: 84px;
  background: rgba(26, 28, 35, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
  gap: 34px;
}

.footer-brand p {
  max-width: 660px;
  color: var(--warm-300);
  line-height: 1.8;
}

.footer-logo {
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--warm-300);
}

.footer-links a:hover {
  color: var(--maple-400);
}

.footer-bottom {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--warm-500);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

@media (max-width: 1024px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-content,
  .quick-search-band,
  .split-section,
  .ranking-layout,
  .detail-main,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
    transform: none;
  }

  .detail-hero-inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .detail-main {
    padding-top: 32px;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .quick-search-band,
  .content-section,
  .detail-main,
  .category-overview-list,
  .search-panel,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 48px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy h1,
  .detail-heading h1 {
    font-size: 40px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-band {
    margin-top: 0;
    border-radius: 0;
  }

  .quick-search-band form,
  .search-filters {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-head {
    grid-template-columns: 1fr;
  }

  .category-overview-head a {
    justify-self: start;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

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

  .player-center {
    width: 68px;
    height: 68px;
  }

  .next-prev {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .page-hero h1,
  .hero-copy h1,
  .detail-heading h1 {
    font-size: 34px;
  }

  .compact-hero > div,
  .category-hero > div,
  .feature-panel,
  .wide-panel,
  .ranking-aside,
  .info-card,
  .detail-section,
  .category-overview-card,
  .search-panel {
    padding: 18px;
  }
}
