* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  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(15, 23, 42, 0.92);
  color: #fff;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

.main-nav a {
  color: #e2e8f0;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #fbbf24;
}

.nav-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.nav-search input {
  width: 180px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 10px 14px;
}

.nav-search input::placeholder {
  color: #cbd5e1;
}

.nav-search button {
  border: 0;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero-section {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s ease, transform 3s ease;
}

.hero-bg.is-active {
  opacity: 0.34;
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.35), transparent 28%),
    radial-gradient(circle at 15% 25%, rgba(249, 115, 22, 0.25), transparent 26%),
    linear-gradient(115deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.82) 50%, rgba(120, 53, 15, 0.85));
}

.hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 54px;
  align-items: center;
  padding: 80px 0;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.28);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #fde68a, #fed7aa, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 650px;
  color: #e2e8f0;
  font-size: clamp(18px, 2vw, 24px);
  margin: 0 0 28px;
}

.hero-search,
.large-search {
  display: flex;
  width: min(620px, 100%);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

.hero-search input,
.large-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 18px;
  background: transparent;
  color: #0f172a;
}

.hero-search button,
.large-search button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.hero-search button:hover,
.large-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.36);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

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

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-chips a {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 470px;
}

.hero-cards {
  position: relative;
  height: 470px;
}

.hero-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(26px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-card a {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.38);
}

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

.hero-card:hover img {
  transform: scale(1.06);
}

.hero-card-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 90px 28px 28px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.95));
}

.hero-card-text span {
  color: #fde68a;
  font-weight: 700;
}

.hero-card-text h2 {
  margin: 10px 0 10px;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
}

.hero-card-text p {
  color: #cbd5e1;
  margin: 0 0 18px;
}

.hero-card-text strong {
  display: inline-flex;
  border-radius: 999px;
  color: #111827;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.hero-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

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

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 28px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: #fbbf24;
}

.content-section {
  padding: 64px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: #64748b;
}

.section-heading.slim h2 {
  font-size: 28px;
}

.section-more {
  display: inline-flex;
  white-space: nowrap;
  color: #b45309;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card > a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #78350f);
}

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

.movie-card > a:hover .poster-wrap img {
  transform: scale(1.08);
}

.movie-badge,
.movie-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.movie-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.movie-duration {
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 9px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  margin: 0 0 14px;
  min-height: 44px;
  color: #64748b;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.category-strip,
.latest-strip {
  background: linear-gradient(135deg, #fff7ed, #f8fafc 60%, #fffbeb);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  padding: 22px;
  isolation: isolate;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.76));
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.35s ease;
}

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

.category-icon {
  font-size: 38px;
  margin-bottom: 10px;
}

.category-name {
  font-size: 24px;
  font-weight: 900;
}

.category-desc {
  margin-top: 6px;
  color: #e2e8f0;
  font-size: 14px;
}

.home-two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.ranking-panel,
.side-card,
.detail-article {
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.ranking-panel {
  padding: 24px;
}

.ranking-panel h2 {
  margin: 0 0 18px;
  color: #0f172a;
}

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

.ranking-row,
.ranking-wide-row {
  display: grid;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: #f8fafc;
  color: #334155;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row {
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 12px;
}

.ranking-row:hover,
.ranking-wide-row:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.ranking-no {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #f97316);
  font-weight: 800;
}

.ranking-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.ranking-meta {
  grid-column: 2;
  color: #64748b;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 80% 12%, rgba(251, 191, 36, 0.32), transparent 28%),
    linear-gradient(120deg, #0f172a, #1e293b 56%, #78350f);
  padding: 86px 0;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 20px;
}

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

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

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

.category-previews {
  padding-top: 0;
}

.category-preview {
  padding: 32px 0;
  border-top: 1px solid #e2e8f0;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 170px auto;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select,
.filter-panel button {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  outline: 0;
  background: #f8fafc;
  color: #0f172a;
  padding: 12px 13px;
}

.filter-panel button {
  color: #fff;
  border: 0;
  background: #334155;
  cursor: pointer;
  font-weight: 800;
}

.filter-status {
  min-height: 24px;
  margin: 0 0 20px;
  color: #64748b;
  font-weight: 700;
}

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

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

.sticky-rank {
  position: sticky;
  top: 92px;
}

.ranking-wide-row {
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 12px;
}

.ranking-wide-row span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #f97316;
  font-weight: 900;
}

.ranking-wide-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-wide-row em {
  grid-column: 2;
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.large-search {
  margin-top: 28px;
}

.search-summary {
  margin-bottom: 20px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.04);
  opacity: 0.28;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.86) 60%, rgba(120, 53, 15, 0.88));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 68px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.35);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 20px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-tags span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.22);
  font-weight: 700;
}

.player-section {
  padding: 58px 0 24px;
}

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

.player-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 34px;
}

.player-heading p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

.video-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.65));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-mask span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.35);
}

.player-mask strong {
  font-size: 22px;
}

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

.player-error {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: none;
  border-radius: 16px;
  padding: 12px 16px;
  color: #fff;
  background: rgba(220, 38, 38, 0.86);
  text-align: center;
  font-weight: 800;
}

.player-error.is-visible {
  display: block;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding: 34px 0 12px;
}

.detail-article {
  padding: 32px;
}

.detail-article h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 26px;
}

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

.detail-article p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  text-align: justify;
}

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

.info-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-grid span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 4px;
}

.info-grid strong {
  color: #0f172a;
}

.side-card {
  padding: 24px;
  position: sticky;
  top: 92px;
}

.side-tags span {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.primary-button.full {
  width: 100%;
  margin-top: 22px;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 52px 0;
}

.footer-logo {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  font-size: 24px;
  margin: 0 0 14px;
}

.footer-grid p {
  color: #94a3b8;
  margin: 0;
}

.footer-grid h3 {
  color: #fff;
  margin: 0 0 14px;
}

.footer-grid a {
  display: block;
  color: #cbd5e1;
  margin: 9px 0;
  transition: color 0.2s ease;
}

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

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-social span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #1e293b;
  color: #fde68a;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 18px 0;
  color: #94a3b8;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.from-amber { background-color: #92400e; }
.from-rose { background-color: #9f1239; }
.from-blue { background-color: #1d4ed8; }
.from-orange { background-color: #c2410c; }
.from-slate { background-color: #334155; }
.from-pink { background-color: #be185d; }
.from-green { background-color: #047857; }
.from-purple { background-color: #7e22ce; }
.from-yellow { background-color: #a16207; }
.from-stone { background-color: #57534e; }
.from-cyan { background-color: #0e7490; }
.from-fuchsia { background-color: #a21caf; }

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

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

  .hero-carousel {
    max-width: 620px;
  }

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

  .side-card,
  .sticky-rank {
    position: static;
  }

  .featured-grid,
  .latest-grid,
  .all-grid,
  .compact-grid,
  .preview-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .header-inner {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #0f172a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 15px 18px;
    border-bottom: 1px solid #1e293b;
  }

  .hero-section,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    padding: 54px 0;
  }

  .hero-search,
  .large-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search button,
  .large-search button {
    width: 100%;
  }

  .hero-cards,
  .hero-carousel {
    height: auto;
    min-height: 380px;
  }

  .hero-card a {
    min-height: 380px;
  }

  .featured-grid,
  .latest-grid,
  .all-grid,
  .compact-grid,
  .preview-grid,
  .related-grid,
  .category-grid,
  .full-category-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .page-hero {
    padding: 60px 0;
  }

  .detail-hero-inner {
    padding: 44px 0;
  }

  .detail-copy p,
  .page-hero p {
    font-size: 17px;
  }

  .detail-article {
    padding: 22px;
  }

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

  .footer-grid {
    padding: 38px 0;
  }
}
