:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --blue: #2563eb;
  --orange: #ea580c;
  --ink: #111827;
  --muted: #4b5563;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #f9fafb 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand span:last-child {
  font-size: 21px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.25);
  font-size: 14px;
}

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

.desktop-nav a,
.mobile-panel a {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--teal);
}

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

.header-search input,
.hero-search input,
.filter-bar input,
.filter-bar select,
.mobile-panel input {
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
}

.header-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.mobile-panel input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.header-search button,
.hero-search button,
.mobile-panel button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--teal);
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.mobile-panel button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: var(--ink);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding: 14px 0;
}

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

.mobile-panel input {
  flex: 1;
  min-width: 0;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--blue));
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(90deg, rgba(13, 148, 136, 0.92), rgba(8, 145, 178, 0.82) 48%, rgba(37, 99, 235, 0.78));
}

.hero-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: center;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy .eyebrow,
.gradient-hero .eyebrow {
  color: #ccfbf1;
}

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

.hero-line {
  margin: 0 0 24px;
  color: #f3f4f6;
  font-size: clamp(18px, 2.3vw, 25px);
  line-height: 1.55;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 999px;
  color: var(--teal-dark);
  background: #ecfeff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags .tag {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: var(--teal-dark);
  background: #ffffff;
  padding: 13px 26px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: #f3f4f6;
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 22px;
  backdrop-filter: blur(8px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
  transform: rotate(1.5deg);
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  padding: 10px 16px;
  text-align: center;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-controls button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

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

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

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

.section {
  padding: 64px 0;
}

.soft-section {
  background: linear-gradient(135deg, #f3f4f6, #f9fafb);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.text-link {
  color: var(--teal);
  white-space: nowrap;
}

.text-link:hover {
  color: var(--teal-dark);
  transform: translateX(2px);
}

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

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

.movie-card,
.category-card,
.info-panel {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover,
.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.movie-card.large .card-media {
  aspect-ratio: 16 / 9;
}

.movie-card.mini .card-media {
  aspect-ratio: 4 / 3;
}

.card-media img,
.compact-media img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .card-media img,
.compact-card:hover img,
.rank-card:hover img {
  transform: scale(1.06);
}

.year-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-meta,
.rank-meta,
.info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span,
.rank-meta span,
.info-line span {
  display: inline-flex;
  align-items: center;
}

.card-body h3,
.rank-info h3,
.compact-card h3 {
  margin: 8px 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card.mini .card-body h3 {
  font-size: 16px;
}

.card-body h3:hover,
.rank-info h3:hover,
.compact-card h3:hover {
  color: var(--teal);
}

.card-body p,
.rank-info p,
.compact-card p,
.category-card p,
.info-panel p {
  margin: 0;
  color: var(--muted);
}

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

.rank-strip,
.rank-list {
  display: grid;
  gap: 16px;
}

.rank-card {
  display: grid;
  grid-template-columns: 70px 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--shadow);
}

.rank-number {
  color: var(--teal);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-card.top-rank .rank-number {
  color: var(--orange);
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 14px;
}

.home-category-block {
  margin-bottom: 54px;
}

.compact-heading {
  align-items: center;
  margin-bottom: 20px;
}

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

.tag-section {
  background: linear-gradient(90deg, #ecfeff, #eef2ff);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  padding: 11px 18px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag-cloud a:hover {
  color: var(--teal);
  border-color: rgba(20, 184, 166, 0.45);
  transform: translateY(-2px);
}

.cta-section {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
  padding: 72px 0;
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
}

.cta-inner p {
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: 19px;
}

.page-main,
.detail-main {
  min-height: 72vh;
}

.page-hero {
  padding: 62px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.gradient-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(115deg, var(--teal), var(--cyan), var(--blue));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
}

.gradient-hero p:not(.eyebrow) {
  color: #e5e7eb;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 14px;
}

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

.gradient-hero .breadcrumb,
.gradient-hero .breadcrumb a {
  color: #e5e7eb;
}

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

.category-card {
  padding: 24px;
}

.category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.category-title h2 {
  margin: 0;
  font-size: 26px;
}

.category-title span {
  color: var(--teal);
  font-weight: 800;
}

.category-preview {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.compact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.compact-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 12px;
}

.compact-card h3 {
  font-size: 16px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border-radius: 12px;
}

.empty-state {
  display: none;
  margin-top: 26px;
  padding: 32px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  padding: 36px 0 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 10%, rgba(255, 255, 255, 0.16), transparent 25%),
    linear-gradient(135deg, #111827, #0f766e 55%, #0e7490);
}

.detail-hero .breadcrumb,
.detail-hero .breadcrumb a {
  color: #e5e7eb;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: end;
  padding-bottom: 36px;
}

.player-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.88);
  border-radius: 999px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
  font-size: 34px;
  padding-left: 5px;
}

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

.detail-side {
  display: grid;
  gap: 18px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.detail-content {
  padding-top: 54px;
}

.detail-article {
  max-width: 920px;
}

.detail-article h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-article .lead {
  margin: 0 0 18px;
  color: #374151;
  font-size: 21px;
  line-height: 1.65;
}

.detail-article h2 {
  margin: 36px 0 12px;
  font-size: 26px;
}

.detail-article p {
  color: #374151;
  font-size: 17px;
  line-height: 1.86;
}

.hero-search {
  display: flex;
  max-width: 680px;
  gap: 12px;
  margin-top: 26px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border-radius: 999px;
}

.hero-search button {
  height: 50px;
  padding: 0 28px;
}

.info-panel {
  padding: 30px;
}

.info-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.info-panel p + p {
  margin-top: 12px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
  padding: 48px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer p,
.site-footer li,
.footer-bottom {
  color: #9ca3af;
  font-size: 14px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #5eead4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #1f2937;
}

.is-hidden {
  display: none !important;
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-inner,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

  .brand span:last-child {
    font-size: 18px;
  }

  .hero-carousel {
    height: 620px;
  }

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

  .hero-actions,
  .hero-search,
  .mobile-panel form {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .hero-search button,
  .mobile-panel button {
    width: 100%;
  }

  .section {
    padding: 46px 0;
  }

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

  .video-grid,
  .featured-grid,
  .mini-grid,
  .categories-grid,
  .filter-bar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 46px 92px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-number {
    font-size: 20px;
  }

  .detail-grid {
    gap: 18px;
  }

  .detail-side {
    display: none;
  }

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