:root {
  --bg: #fff7ed;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --orange: #ea580c;
  --amber: #f59e0b;
  --dark: #111827;
  --shadow: 0 18px 42px rgba(124, 45, 18, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(251, 146, 60, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.16), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 44%, #fff7ed 100%);
  line-height: 1.65;
}

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

img {
  display: block;
}

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;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
  font-weight: 900;
}

.logo-text strong {
  display: block;
  overflow: hidden;
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.logo-text span {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: #4b5563;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--orange);
  background: rgba(251, 146, 60, 0.12);
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: #4b5563;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  color: #ffffff;
  background: linear-gradient(135deg, #7c2d12, #ea580c 48%, #f59e0b);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(255, 237, 213, 0.18), transparent 32rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.2));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.32;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.04);
  transition: background-image 0.5s ease;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 650px;
  align-items: center;
  gap: 42px;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.78fr);
  padding: 72px 0;
}

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.hero-title {
  margin: 20px 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #ffffff;
  color: var(--orange);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.2);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

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

.hero-search {
  display: flex;
  max-width: 620px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #ffffff;
  background: transparent;
}

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

.hero-search button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--orange);
  background: #ffffff;
  font-weight: 900;
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.32);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.hero-poster::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.86));
}

.hero-card-body {
  padding: 22px;
}

.hero-mini-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.hero-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

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

main {
  padding-bottom: 70px;
}

.section {
  padding-top: 58px;
}

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

.section-kicker {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section h2,
.page-title {
  margin: 4px 0 0;
  color: var(--dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 88, 12, 0.38);
  box-shadow: 0 24px 48px rgba(124, 45, 18, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fff7ed);
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.badge-row {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 17px;
  line-height: 1.42;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin-top: 10px;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  border-radius: 999px;
  padding: 4px 8px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.category-card {
  display: block;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  background:
    radial-gradient(circle at 90% 20%, rgba(245, 158, 11, 0.22), transparent 5rem),
    #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(124, 45, 18, 0.16);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 22px;
  font-weight: 950;
}

.category-card span {
  color: var(--muted);
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 16px;
  padding: 12px 14px;
  outline: 0;
  background: #ffffff;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
}

.rank-num {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 950;
}

.rank-cover {
  width: 82px;
  height: 112px;
  overflow: hidden;
  border-radius: 16px;
  background: #ffedd5;
}

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

.rank-title {
  display: block;
  color: var(--dark);
  font-size: 17px;
  font-weight: 900;
}

.rank-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  padding: 58px 0 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--orange);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  align-items: start;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.player-card,
.content-card,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.video-box {
  position: relative;
  background: #000000;
}

.video-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0.62));
}

.play-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 46px rgba(234, 88, 12, 0.36);
  font-size: 34px;
  transform: translateZ(0);
}

.player-info {
  padding: 20px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #ffedd5;
  box-shadow: var(--shadow);
}

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

.content-card {
  margin-top: 24px;
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: 26px;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 16px;
  color: #374151;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card h3 {
  margin: 0 0 16px;
  color: var(--dark);
  font-size: 20px;
  font-weight: 950;
}

.side-link {
  display: grid;
  align-items: center;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(251, 146, 60, 0.16);
}

.side-link:first-of-type {
  border-top: 0;
}

.side-link img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.side-link strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--dark);
  font-size: 14px;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-link span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 72px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  padding: 48px 0;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-inner a {
  display: block;
  margin: 7px 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0 24px;
  text-align: center;
  font-size: 13px;
}

.empty-state {
  display: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

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

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

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

  .hero-card {
    max-width: 430px;
  }
}

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

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

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

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0;
  }

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

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

  .rank-item {
    grid-template-columns: 42px 68px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }

  .rank-cover {
    width: 68px;
    height: 92px;
  }

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

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

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

  .hero-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .hero-search input {
    padding: 12px 14px;
  }
}
