:root {
  --ocean-deep: #0a4a6b;
  --ocean-blue: #1a7fa0;
  --ocean-light: #4fb3d4;
  --sand-light: #f5ebe0;
  --sand-warm: #e3d5ca;
  --coral-accent: #ff6b6b;
  --coral-light: #ff9999;
  --seafoam: #88d4ab;
  --sunset-orange: #ff9f1c;
  --cloud-white: #ffffff;
  --mist-gray: #f8f9fa;
  --charcoal: #2c3e50;
  --text-dark: #1a1a1a;
  --text-gray: #6c757d;
  --shadow-ocean: 0 4px 20px rgba(10, 74, 107, 0.15);
  --shadow-ocean-lg: 0 10px 40px rgba(10, 74, 107, 0.20);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sand-light);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-blue) 52%, var(--ocean-light));
  box-shadow: var(--shadow-ocean-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ocean-deep);
  background: var(--seafoam);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 650;
}

.desktop-nav a {
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--seafoam);
  opacity: 1;
}

.header-search {
  display: flex;
  align-items: center;
  width: min(360px, 32vw);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.header-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px 11px 18px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.header-search button {
  padding: 10px 17px;
  color: #fff;
  cursor: pointer;
  background: var(--coral-accent);
  border: 0;
}

.mobile-menu-button {
  display: none;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.mobile-nav a,
.mobile-nav form {
  display: block;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 12px;
}

.mobile-nav form {
  display: flex;
  gap: 10px;
}

.mobile-nav input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  color: var(--text-dark);
  border: 0;
  border-radius: 10px;
}

.mobile-nav button {
  color: #fff;
  cursor: pointer;
  background: var(--coral-accent);
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--ocean-deep);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.01);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(660px, 90vw);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--seafoam);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.compact-hero h1,
.ranking-hero h1,
.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.compact-hero p,
.ranking-hero p,
.detail-one-line {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta,
.tag-list,
.card-meta,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-tags span:nth-child(1),
.detail-meta span:nth-child(1) {
  background: var(--coral-accent);
  color: #fff;
}

.hero-tags span:nth-child(2),
.detail-meta span:nth-child(2) {
  background: var(--ocean-blue);
  color: #fff;
}

.hero-tags span:nth-child(3),
.detail-meta span:nth-child(3) {
  background: var(--seafoam);
  color: var(--ocean-deep);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.button.primary {
  color: #fff;
  background: var(--coral-accent);
}

.button.primary:hover {
  background: var(--coral-light);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #fff;
}

.home-layout,
.page-content {
  padding: 52px 0;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 58px;
}

.quick-panel a {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-blue));
  border-radius: 22px;
  box-shadow: var(--shadow-ocean);
}

.quick-panel strong {
  font-size: 22px;
}

.quick-panel span {
  color: rgba(255, 255, 255, 0.78);
}

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

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

.section-heading h2 {
  margin: 0;
  color: var(--ocean-deep);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--text-gray);
}

.section-heading a {
  color: var(--ocean-blue);
  font-weight: 800;
  white-space: nowrap;
}

.panel-card,
.article-card {
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-ocean);
}

.gradient-panel {
  padding: clamp(22px, 4vw, 34px);
  color: #fff;
  background: linear-gradient(135deg, var(--sunset-orange), var(--coral-accent));
  border-radius: 24px;
  box-shadow: var(--shadow-ocean-lg);
}

.gradient-panel .section-heading h2,
.gradient-panel .section-heading p,
.gradient-panel .section-heading a {
  color: #fff;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
}

.movie-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-ocean);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-ocean-lg);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ocean-deep);
}

.movie-card-large .poster-frame {
  aspect-ratio: 16 / 10;
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.play-dot {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: rgba(255, 107, 107, 0.94);
  border-radius: 999px;
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 9px;
  color: #fff;
  background: rgba(26, 127, 160, 0.92);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: rgba(255, 107, 107, 0.95);
}

.movie-card-body {
  padding: 14px;
}

.movie-card h3,
.list-card h3 {
  margin: 0 0 8px;
  color: var(--text-dark);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p,
.list-card p {
  margin: 0 0 12px;
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta span,
.mini-meta span {
  padding: 5px 9px;
  color: var(--text-gray);
  background: var(--sand-warm);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.card-meta span:nth-child(2),
.mini-meta span:nth-child(2) {
  background: rgba(79, 179, 212, 0.28);
}

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

.list-card {
  display: grid;
  grid-template-columns: 48px 96px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  box-shadow: var(--shadow-ocean);
  transition: transform 0.2s ease;
}

.list-card:hover {
  transform: translateX(4px);
}

.list-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.list-rank {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--coral-accent);
  border-radius: 999px;
  font-weight: 900;
}

.list-rank.subtle {
  color: var(--ocean-blue);
  background: rgba(79, 179, 212, 0.18);
}

.page-hero {
  position: relative;
  padding: 88px 0;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-blue) 58%, var(--ocean-light));
}

.compact-hero::after,
.ranking-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -110px;
  top: -150px;
  background: radial-gradient(circle, rgba(136, 212, 171, 0.44), rgba(136, 212, 171, 0));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 16px;
}

.page-hero p {
  width: min(760px, 100%);
}

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

.category-tile {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-ocean);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-ocean-lg);
}

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

.category-covers img {
  height: 120px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.category-tile h2 {
  margin: 0 0 8px;
  color: var(--ocean-deep);
}

.category-tile p {
  margin: 0 0 14px;
  color: var(--text-gray);
}

.category-tile span {
  color: var(--ocean-blue);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-ocean);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 14px;
  color: var(--text-dark);
  background: var(--mist-gray);
  border: 1px solid rgba(10, 74, 107, 0.10);
  border-radius: 13px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--ocean-light);
  box-shadow: 0 0 0 3px rgba(79, 179, 212, 0.18);
}

.filter-item.is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  color: #fff;
  overflow: hidden;
  background: var(--ocean-deep);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.14));
  backdrop-filter: blur(1px);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-one-line {
  max-width: 820px;
}

.detail-meta {
  margin-bottom: 18px;
}

.tag-list span {
  color: var(--ocean-deep);
  background: rgba(136, 212, 171, 0.92);
}

.detail-info .button {
  margin-top: 28px;
}

.detail-content {
  margin-top: -54px;
  position: relative;
  z-index: 4;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #05080b;
  border-radius: 22px;
}

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

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.12));
  border: 0;
}

.video-cover span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: #fff;
  background: rgba(255, 107, 107, 0.96);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.video-cover.is-hidden {
  display: none;
}

.story-section {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.article-card h2 {
  margin: 0 0 14px;
  color: var(--ocean-deep);
}

.article-card p {
  margin: 0;
  color: var(--charcoal);
  white-space: pre-line;
}

.site-footer {
  padding: 38px 0;
  color: #fff;
  background: var(--ocean-deep);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-grid p {
  max-width: 640px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 14px 20px;
  font-weight: 700;
}

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

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

  .filter-search-box {
    grid-column: 1 / -1;
  }

  .detail-layout {
    grid-template-columns: 230px 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-copy h1,
  .compact-hero h1,
  .ranking-hero h1 {
    font-size: 38px;
  }

  .quick-panel,
  .category-grid,
  .grid-5,
  .grid-4,
  .grid-3,
  .story-section {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    display: grid;
  }

  .list-card {
    grid-template-columns: 38px 76px 1fr;
    gap: 12px;
  }

  .list-card img {
    width: 76px;
    height: 76px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .detail-poster {
    width: min(240px, 70vw);
  }

  .detail-info h1 {
    font-size: 34px;
  }

  .footer-grid {
    display: grid;
  }
}
