:root {
  --emerald: #10b981;
  --emerald-dark: #059669;
  --teal: #0d9488;
  --cyan: #0891b2;
  --rose: #e11d48;
  --orange: #f97316;
  --amber: #f59e0b;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 50%, #f0fdfa 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, var(--emerald-dark), var(--teal), var(--cyan));
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.28);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark,
.footer-logo span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1;
}

.brand-text em {
  font-size: 12px;
  font-style: normal;
  color: #d1fae5;
}

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

.nav-link {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 190px;
  padding: 10px;
  display: grid;
  gap: 4px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
}

.dropdown-panel a:hover {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

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

.header-search {
  width: 260px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 18px 0 42px;
  color: #ffffff;
  outline: none;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-icon,
.search-panel-inner > span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.72);
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 90;
  display: none;
  max-height: 420px;
  overflow: auto;
  padding: 10px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: grid;
  gap: 6px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
}

.search-result-item:hover {
  background: #ecfdf5;
}

.search-result-item img {
  width: 52px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #d1fae5, #ccfbf1);
}

.search-result-item strong {
  display: block;
  font-size: 14px;
}

.search-result-item em {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-menu a {
  display: block;
  padding: 10px 4px;
  color: #ecfdf5;
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: brightness(0.42);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 32%, rgba(16, 185, 129, 0.24), transparent 34%), linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.28) 52%, rgba(2, 6, 23, 0.82));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: center;
}

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

.eyebrow,
.eyebrow-light,
.eyebrow-dark {
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.eyebrow-light {
  color: #fde68a;
}

.eyebrow-dark {
  color: var(--emerald-dark);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-desc,
.detail-copy p,
.page-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
}

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

.primary-btn,
.ghost-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  box-shadow: 0 16px 35px rgba(16, 185, 129, 0.34);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, var(--emerald-dark), #0f766e);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.secondary-btn {
  color: var(--emerald-dark);
  background: #ecfdf5;
}

.secondary-btn:hover {
  color: #ffffff;
  background: var(--emerald-dark);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 455px;
  object-fit: cover;
  background: linear-gradient(135deg, #064e3b, #0f766e);
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: rgba(255, 255, 255, 0.88);
  transform: translate(-50%, -50%);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  width: min(1280px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots button {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.is-active {
  background: #ffffff;
}

.hero-search-panel {
  position: relative;
  z-index: 12;
  width: min(920px, calc(100% - 32px));
  margin: -34px auto 0;
}

.search-panel-inner {
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.96), rgba(13, 148, 136, 0.96));
  box-shadow: var(--shadow);
}

.search-panel-inner input {
  height: 68px;
  padding-left: 58px;
  font-size: 18px;
  background: transparent;
}

.search-panel-inner > span {
  left: 24px;
  font-size: 24px;
}

.section-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-head h2,
.story-card h2,
.info-card h2,
.footer-links h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.section-head a {
  font-weight: 800;
  color: var(--emerald-dark);
}

.section-head.light h2,
.section-head.light a {
  color: #ffffff;
}

.eyebrow-light {
  color: #d1fae5;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #99f6e4);
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
}

.play-pill {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-body strong {
  font-size: 20px;
  line-height: 1.25;
}

.card-desc {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #475569;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.latest-section,
.recommend-wall {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-dark), var(--teal), var(--cyan));
}

.latest-section .movie-card {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.latest-section .card-desc,
.latest-section .meta-line {
  color: rgba(255, 255, 255, 0.78);
}

.category-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.category-strip-card {
  position: relative;
  min-width: 320px;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #a7f3d0, #99f6e4);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

.category-strip-cover,
.category-strip-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-strip-cover img {
  object-fit: cover;
  filter: brightness(0.56);
}

.category-strip-card > span:last-child {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
}

.category-strip-card strong {
  font-size: 24px;
}

.category-strip-card em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.editor-section {
  background: linear-gradient(135deg, #fff7ed, #fef3c7, #fffbeb);
}

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

.editor-card {
  display: grid;
  grid-template-columns: 34% 1fr;
  overflow: hidden;
  min-height: 235px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
  transition: box-shadow 0.25s ease;
}

.editor-card:hover {
  box-shadow: var(--shadow);
}

.editor-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fde68a, #ccfbf1);
}

.editor-info {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
}

.editor-info em,
.editor-info b {
  font-style: normal;
  color: var(--emerald-dark);
}

.editor-info strong {
  font-size: 24px;
}

.editor-info span {
  color: #475569;
  line-height: 1.7;
}

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

.rank-card {
  position: relative;
  display: block;
}

.rank-number {
  position: absolute;
  left: -10px;
  top: -10px;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), #ec4899);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

.rank-cover {
  display: block;
  height: 300px;
  overflow: hidden;
  border-radius: 22px;
  background: #f1f5f9;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

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

.rank-copy {
  display: grid;
  gap: 6px;
  padding: 14px 4px 0;
}

.rank-copy em {
  font-style: normal;
  color: var(--muted);
}

.masonry-grid {
  columns: 4 220px;
  column-gap: 22px;
}

.masonry-card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.masonry-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: linear-gradient(135deg, #134e4a, #065f46);
}

.masonry-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 8px;
  padding: 70px 18px 18px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.masonry-card em {
  display: -webkit-box;
  overflow: hidden;
  font-style: normal;
  color: rgba(255, 255, 255, 0.76);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 20px;
}

.page-hero > div {
  padding: 44px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 245, 0.92));
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
}

.page-hero h1 {
  color: #0f172a;
}

.page-hero p {
  color: #475569;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  font-weight: 700;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--emerald-dark);
}

.breadcrumb.dark {
  color: rgba(255, 255, 255, 0.74);
}

.breadcrumb.dark a {
  color: #d1fae5;
}

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

.category-overview-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.overview-bg,
.overview-bg img,
.overview-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.overview-bg img {
  object-fit: cover;
  filter: brightness(0.58);
}

.overview-layer {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.12));
}

.overview-content {
  position: absolute;
  inset: auto 22px 22px;
  display: grid;
  gap: 10px;
}

.overview-content em {
  font-style: normal;
  color: #d1fae5;
}

.overview-content strong {
  font-size: 28px;
}

.overview-content > span:not(.overview-samples) {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.overview-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview-samples span {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 210px 210px;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
}

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

.empty-message {
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: #ffffff;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 62px 78px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ranking-index {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.ranking-poster img {
  width: 78px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
  background: #f1f5f9;
}

.ranking-main {
  display: grid;
  gap: 8px;
}

.ranking-main strong {
  font-size: 20px;
}

.ranking-main em,
.ranking-meta {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.36));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 66px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
  margin-top: 34px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  background: linear-gradient(135deg, #134e4a, #065f46);
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.82);
}

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

.player-shell {
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.20);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-frame video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-frame video {
  z-index: 1;
  object-fit: contain;
}

.player-cover {
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  object-fit: cover;
  filter: brightness(0.44);
}

.player-start {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

.player-start span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--emerald-dark);
  background: #ffffff;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 32px;
}

.story-card,
.info-card {
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.story-card h2 + p {
  margin-top: 14px;
}

.story-card h2:not(:first-child) {
  margin-top: 30px;
}

.story-card p {
  color: #334155;
  line-height: 1.9;
  font-size: 17px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px 16px;
  margin: 22px 0 26px;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: #0f172a;
}

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

.site-footer {
  margin-top: 78px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b, #111827);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.3fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 480px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-logo strong {
  color: #ffffff;
  font-size: 22px;
}

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

.footer-links h2 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links a {
  color: #94a3b8;
}

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

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

.footer-category-links h2 {
  grid-column: 1 / -1;
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 1100px) {
  .card-grid,
  .category-grid,
  .category-overview-grid,
  .rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .hero-poster {
    display: none;
  }

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .mobile-menu.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 18px;
  }

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

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

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

  .card-grid,
  .category-grid,
  .category-overview-grid,
  .hot-grid,
  .latest-grid,
  .related-grid,
  .rank-grid,
  .editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ranking-row {
    grid-template-columns: 44px 66px 1fr;
  }

  .ranking-meta {
    grid-column: 3;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-text em {
    display: none;
  }

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

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

  .hero-search-panel {
    margin-top: -24px;
  }

  .search-panel-inner input {
    height: 58px;
    font-size: 15px;
  }

  .section-wrap {
    padding: 48px 0;
  }

  .card-grid,
  .category-grid,
  .category-overview-grid,
  .hot-grid,
  .latest-grid,
  .related-grid,
  .rank-grid,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-card {
    grid-template-columns: 1fr;
  }

  .editor-cover img {
    height: 220px;
  }

  .page-hero > div,
  .story-card,
  .info-card {
    padding: 24px;
  }

  .detail-poster img {
    height: 360px;
  }
}
