:root {
  --bg: #f8fafc;
  --bg-soft: #ecfeff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --cyan: #06b6d4;
  --cyan-dark: #0e7490;
  --teal: #14b8a6;
  --slate: #0f172a;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, #ecfeff 100%);
  min-height: 100vh;
}

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: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(17, 94, 89, 0.98), rgba(22, 78, 99, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.20);
  backdrop-filter: blur(16px);
}

.top-nav {
  max-width: 1440px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22d3ee, #14b8a6);
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.35);
}

.brand__text {
  font-size: 20px;
  background: linear-gradient(90deg, #a5f3fc, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #67e8f9;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 320px;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(8, 145, 178, 0.28);
  border-radius: 14px;
  padding: 11px 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input,
.mobile-search input {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(103, 232, 249, 0.30);
  color: #ffffff;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(207, 250, 254, 0.70);
}

.nav-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.nav-search button,
.mobile-search button,
.quick-search button,
.search-page-form button {
  border: 0;
  border-radius: 14px;
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #14b8a6);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(103, 232, 249, 0.22);
  padding: 16px 24px 22px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-links {
  display: grid;
  gap: 12px;
}

.page {
  width: 100%;
}

.inner-page,
.home-page {
  padding-bottom: 40px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  margin: 28px clamp(16px, 3vw, 48px) 64px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-track,
.hero-slide,
.hero-slide__image,
.hero-slide__shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

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

.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.is-active .hero-slide__image {
  transform: scale(1.10);
}

.hero-slide__shade {
  background:
    radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.26), transparent 28%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.40) 48%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.90) 0%, rgba(2, 6, 23, 0.48) 48%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-slide__content {
  position: absolute;
  left: clamp(28px, 7vw, 100px);
  bottom: clamp(84px, 14vh, 150px);
  width: min(760px, calc(100% - 56px));
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0891b2;
  background: rgba(207, 250, 254, 0.82);
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero .eyebrow,
.detail-info .eyebrow,
.page-hero .eyebrow {
  color: #cffafe;
  background: rgba(6, 182, 212, 0.22);
  border-color: rgba(103, 232, 249, 0.30);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.hero p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.75;
}

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

.hero-tags {
  margin-top: 18px;
}

.hero-tags span,
.detail-tags span,
.movie-card__tags span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 13px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #14b8a6);
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.38);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-control--prev {
  left: 24px;
}

.hero-control--next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: clamp(28px, 7vw, 100px);
  bottom: 38px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 36px;
  background: #67e8f9;
}

.hero-thumbs {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: grid;
  gap: 10px;
  width: min(340px, 28vw);
}

.hero-thumb {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(14px);
  cursor: pointer;
  text-align: left;
}

.hero-thumb.is-active {
  border-color: rgba(103, 232, 249, 0.8);
  background: rgba(8, 145, 178, 0.36);
}

.hero-thumb img {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.quick-search,
.content-section,
.filter-panel,
.page-hero,
.breadcrumbs,
.detail-hero,
.player-section,
.detail-text-grid,
.category-overview-grid,
.top-rank-grid {
  width: min(1440px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  margin-bottom: 64px;
  padding: 32px;
  border: 1px solid rgba(6, 182, 212, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.quick-search h2 {
  margin: 14px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
}

.quick-search p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.content-section {
  margin-top: 64px;
}

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

.section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, #06b6d4, #14b8a6);
}

.section-head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-head a {
  color: var(--cyan-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.90);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.38);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.movie-card.is-hidden {
  display: none;
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-card__poster img {
  transform: scale(1.09);
}

.movie-card__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.10));
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card__poster::after {
  opacity: 1;
}

.movie-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #14b8a6);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.38);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card__type,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-card__type {
  right: 12px;
  top: 12px;
  padding: 6px 9px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  padding: 7px 8px;
  text-align: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: #1e293b;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card__title {
  color: var(--cyan-dark);
}

.movie-card__line {
  display: -webkit-box;
  min-height: 48px;
  margin: 9px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.movie-card__tags span {
  color: #0e7490;
  background: #ecfeff;
}

.ranking-strip {
  padding: 42px 0;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.80), rgba(236, 254, 255, 0.88));
}

.ranking-strip .section-head,
.ranking-strip .rank-grid {
  width: min(1360px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.horizontal-section {
  padding: 48px 0;
  border-radius: 0;
  background: linear-gradient(135deg, #f8fafc, #ecfeff);
}

.scroll-shell {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 14px;
  align-items: center;
}

.scroll-shell > button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: #0f172a;
  cursor: pointer;
  font-size: 28px;
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.mini-card {
  flex: 0 0 168px;
  display: block;
}

.mini-card img {
  width: 168px;
  height: 224px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.mini-card:hover img {
  transform: translateY(-5px) scale(1.02);
}

.mini-card span {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: #1e293b;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.90);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.category-tile {
  padding: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.42);
}

.category-tile__covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.category-tile__covers img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.category-tile h3,
.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-tile p,
.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.category-tile span,
.category-overview-card strong {
  color: var(--cyan-dark);
}

.page-hero {
  margin-top: 36px;
  margin-bottom: 34px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 18%, rgba(34, 211, 238, 0.36), transparent 28%),
    linear-gradient(135deg, #0f766e, #164e63 48%, #0f172a);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 900px;
  margin: 18px 0 12px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
  padding: 18px;
  border: 1px solid rgba(6, 182, 212, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: block;
  margin: 0 0 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  color: #475569;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 18px;
}

.category-cover-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-cover-wall img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-sample-links a {
  border-radius: 999px;
  padding: 7px 10px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 13px;
  font-weight: 700;
}

.top-rank-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px;
  margin-bottom: 36px;
}

.top-rank-card {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.top-rank-card:hover img {
  transform: scale(1.06);
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.90), rgba(2, 6, 23, 0.18));
}

.top-rank-card div {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.top-rank-card span {
  color: #67e8f9;
  font-weight: 900;
}

.top-rank-card h2 {
  margin: 10px 0;
  font-size: clamp(26px, 4vw, 46px);
}

.top-rank-card p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 24px;
  color: #475569;
  font-weight: 700;
}

.breadcrumbs a {
  color: #0e7490;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 42px;
  padding: 32px;
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 24%, rgba(20, 184, 166, 0.34), transparent 28%),
    linear-gradient(135deg, #0f766e, #164e63 46%, #0f172a);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.30);
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 900px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.85;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.detail-meta-grid div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.detail-meta-grid strong,
.detail-meta-grid span {
  display: block;
}

.detail-meta-grid strong {
  color: #a5f3fc;
  font-size: 12px;
  margin-bottom: 7px;
}

.detail-meta-grid span {
  color: #ffffff;
  font-weight: 800;
}

.player-section {
  margin-bottom: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.28), transparent 34%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.32));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay__icon {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #14b8a6);
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.40);
  font-size: 34px;
}

.player-overlay__title {
  max-width: min(760px, calc(100% - 40px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
}

.player-overlay__hint {
  color: #a5f3fc;
  font-weight: 800;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.detail-text-grid article {
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-text-grid h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-text-grid p {
  margin: 0;
  color: #334155;
  line-height: 1.95;
  white-space: pre-line;
}

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

.search-page-form {
  max-width: 720px;
  margin-top: 28px;
}

.site-footer {
  margin-top: 70px;
  padding: 54px 24px 30px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  width: min(1240px, 100%);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.75;
}

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 16px;
}

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

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

.copyright {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.20);
  font-size: 14px;
}

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

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

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

  .hero-thumbs {
    display: none;
  }

  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .top-nav {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 620px;
    height: auto;
    margin: 18px 14px 42px;
  }

  .hero-slide__content {
    left: 24px;
    bottom: 90px;
    width: calc(100% - 48px);
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero-control {
    display: none;
  }

  .quick-search,
  .filter-panel,
  .detail-hero,
  .detail-text-grid,
  .category-overview-card,
  .top-rank-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .movie-grid--featured,
  .rank-grid,
  .category-grid,
  .related-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    padding: 22px;
  }

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

@media (max-width: 560px) {
  .brand__text {
    font-size: 17px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .quick-search,
  .content-section,
  .filter-panel,
  .page-hero,
  .breadcrumbs,
  .detail-hero,
  .player-section,
  .detail-text-grid,
  .category-overview-grid,
  .top-rank-grid {
    width: min(100% - 24px, 1440px);
  }

  .quick-search,
  .page-hero,
  .detail-text-grid article {
    padding: 22px;
    border-radius: 22px;
  }

  .quick-search form,
  .search-page-form,
  .mobile-search {
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid--featured,
  .rank-grid,
  .category-grid,
  .related-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 130px 1fr;
  }

  .movie-card__poster {
    aspect-ratio: 3 / 4;
  }

  .movie-card__title {
    min-height: auto;
    font-size: 16px;
  }

  .movie-card__line {
    min-height: auto;
    -webkit-line-clamp: 3;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .player-overlay__icon {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
