: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);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background: linear-gradient(180deg, var(--sand-light) 0%, var(--mist-gray) 52%, #ffffff 100%);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-name {
  white-space: nowrap;
  font-size: 22px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ocean-deep);
  background: var(--seafoam);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: scale(1.08);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
}

.top-nav > a,
.nav-more > span {
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.2s ease;
}

.top-nav > a:hover,
.top-nav > a.active,
.nav-more:hover > span {
  color: var(--seafoam);
}

.nav-more {
  position: relative;
  padding: 28px 0;
}

.nav-more-panel {
  position: absolute;
  top: 70px;
  right: 0;
  width: 160px;
  display: grid;
  gap: 4px;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(10, 74, 107, 0.96);
  box-shadow: var(--shadow-ocean-lg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-more:hover .nav-more-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-more-panel a {
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-more-panel a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 0;
  outline: 0;
  border-radius: 12px;
  color: var(--text-dark);
  background: #ffffff;
}

.header-search input {
  width: 190px;
  padding: 10px 12px;
}

.header-search button,
.mobile-search button,
.filter-reset,
.primary-btn,
.secondary-btn,
.hero-nav,
.hero-dot,
.player-start,
.back-top {
  border: 0;
}

.header-search button,
.mobile-search button {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ocean-deep);
  background: var(--seafoam);
  font-weight: 700;
}

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

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  color: #ffffff;
  background: rgba(10, 74, 107, 0.98);
}

.mobile-menu a {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-search {
  padding: 10px 0 0;
}

.mobile-search input {
  flex: 1;
  padding: 12px;
}

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

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

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

.hero-image {
  position: absolute;
  inset: 0;
}

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

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.50) 47%, rgba(0, 0, 0, 0.05) 100%);
}

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

.hero-copy {
  max-width: 660px;
  padding-top: 22px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--ocean-deep);
  background: var(--seafoam);
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags {
  margin-bottom: 30px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.hero-tags span:nth-child(1) {
  background: var(--coral-accent);
}

.hero-tags span:nth-child(2) {
  background: var(--ocean-blue);
}

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

.card-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.card-tags a:hover {
  color: var(--ocean-deep);
  background: var(--seafoam);
}

.hero-actions,
.section-head,
.card-meta,
.detail-actions,
.breadcrumbs,
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: var(--coral-accent);
}

.primary-btn:hover {
  background: var(--coral-light);
  transform: translateY(-2px);
}

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

.secondary-btn:hover {
  color: var(--ocean-deep);
  background: var(--seafoam);
  transform: translateY(-2px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.34);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 54px 0;
}

.section.tight {
  padding-top: 32px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 24px;
}

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

.section-subtitle {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--text-gray);
  line-height: 1.8;
}

.more-link {
  color: var(--ocean-blue);
  font-weight: 800;
}

.more-link:hover {
  color: var(--coral-accent);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-ocean);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(10, 74, 107, 0.18);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ocean-deep);
}

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

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

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

.play-dot {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 107, 107, 0.92);
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.rank-badge {
  left: 12px;
  right: auto;
  background: var(--coral-accent);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--ocean-blue);
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  justify-content: space-between;
  color: var(--text-gray);
  font-size: 13px;
}

.card-meta a,
.card-meta span {
  padding: 6px 9px;
  border-radius: 9px;
  background: var(--sand-warm);
}

.card-meta span {
  background: rgba(79, 179, 212, 0.18);
}

.feature-block {
  border-radius: 24px;
  padding: 30px;
  background: #ffffff;
  box-shadow: var(--shadow-ocean);
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-blue) 62%, var(--ocean-light) 100%);
  box-shadow: var(--shadow-ocean);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

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

.mini-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 62px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-ocean);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-ocean-lg);
}

.mini-card img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
}

.mini-card span {
  display: grid;
  gap: 6px;
}

.mini-card strong {
  font-size: 16px;
  line-height: 1.35;
}

.mini-card em {
  color: var(--text-gray);
  font-style: normal;
  font-size: 13px;
}

.mini-rank {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: var(--coral-accent);
  font-weight: 900;
}

.page-hero,
.detail-page-head {
  padding: 56px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-blue) 58%, var(--ocean-light) 100%);
}

.page-hero h1,
.detail-info h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
}

.page-hero p,
.detail-info p {
  max-width: 820px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 12px;
  margin: 24px 0 28px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-ocean);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(10, 74, 107, 0.12);
  background: var(--mist-gray);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--seafoam);
  box-shadow: 0 0 0 3px rgba(136, 212, 171, 0.28);
}

.filter-reset {
  padding: 12px 16px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--ocean-blue);
  font-weight: 800;
}

.filter-reset:hover {
  background: var(--ocean-deep);
}

.breadcrumbs {
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-page-head .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-ocean-lg);
  background: var(--ocean-deep);
}

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

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

.detail-actions {
  flex-wrap: wrap;
  margin-top: 28px;
}

.article-panel,
.player-section,
.related-section {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-ocean);
}

.player-section {
  padding: 26px;
}

.player-section h2,
.article-panel h2,
.related-section h2 {
  margin: 0 0 18px;
  color: var(--ocean-deep);
  font-size: 26px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 107, 107, 0.24), rgba(0, 0, 0, 0.76));
}

.player-start {
  position: relative;
  z-index: 3;
  min-width: 136px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--coral-accent);
  font-weight: 900;
  box-shadow: 0 14px 38px rgba(255, 107, 107, 0.32);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover {
  transform: scale(1.04);
  background: var(--coral-light);
}

.player-wrap.is-playing .player-cover {
  display: none;
}

.article-panel {
  padding: 30px;
}

.article-panel p {
  margin: 0 0 20px;
  color: var(--charcoal);
  font-size: 17px;
  line-height: 2;
}

.related-section {
  padding: 30px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.site-footer {
  margin-top: 60px;
  color: #ffffff;
  background: var(--ocean-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--seafoam);
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  justify-content: center;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}

.back-top {
  padding: 9px 14px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--ocean-blue);
}

.hidden-by-filter {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.nav-open .mobile-menu {
    display: block;
  }

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

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

  .rank-layout {
    grid-template-columns: 1fr;
  }

  .detail-page-head .container {
    grid-template-columns: 220px 1fr;
  }

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

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

  .nav-inner {
    height: 66px;
  }

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

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

  .hero-slider {
    height: 620px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 70px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

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

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

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

  .feature-block {
    padding: 20px;
  }

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

  .detail-page-head .container {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 240px;
  }

  .player-section,
  .article-panel,
  .related-section {
    padding: 18px;
    border-radius: 18px;
  }

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

@media (max-width: 420px) {
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: 1fr;
  }
}
