:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --amber-soft: #fff7ed;
  --cream: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(249, 115, 22, 0.18);
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #fffaf0 38%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(249, 115, 22, 0.14);
  box-shadow: 0 8px 28px rgba(154, 52, 18, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #d97706);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.3);
  font-size: 18px;
}

.brand-icon.small {
  width: 38px;
  height: 38px;
  font-size: 14px;
  background: #fff7ed;
  color: var(--orange-dark);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(90deg, var(--orange-dark), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 700;
}

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

.desktop-nav a:hover {
  color: var(--orange-dark);
  transform: translateY(-1px);
}

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

.nav-search input,
.mobile-nav input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input {
  width: 230px;
  padding-right: 12px;
}

.nav-search input:focus,
.mobile-nav input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.nav-search button,
.mobile-nav button,
.btn,
.panel-link,
.text-link,
.detail-play-link {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button:hover,
.mobile-nav button:hover,
.btn:hover,
.panel-link:hover,
.text-link:hover,
.detail-play-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.32);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--orange-dark);
  box-shadow: 0 8px 18px rgba(154, 52, 18, 0.12);
}

.mobile-nav {
  display: none;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px 18px;
  gap: 14px;
}

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

.mobile-nav a {
  color: #374151;
  font-weight: 700;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 24%), linear-gradient(120deg, #fb923c 0%, #f59e0b 48%, #ea580c 100%);
}

.orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(1px);
  animation: floatOrb 6s ease-in-out infinite;
}

.orb-one {
  width: 210px;
  height: 210px;
  left: 7%;
  top: 18%;
}

.orb-two {
  width: 320px;
  height: 320px;
  right: 5%;
  bottom: 5%;
  animation-delay: 1s;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(12px, -18px, 0) scale(1.06);
  }
}

.hero-inner {
  position: relative;
  max-width: 1220px;
  min-height: 640px;
  margin: 0 auto;
  padding: 72px 20px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: 50px;
  align-items: center;
}

.hero-kicker,
.page-hero span,
.detail-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 7px 14px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, #fef3c7, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p {
  max-width: 640px;
  margin: 24px 0 0;
  color: #fff7ed;
  font-size: clamp(18px, 2vw, 24px);
}

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

.btn-light {
  color: var(--orange-dark);
  background: #ffffff;
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.92);
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

.hero-links a {
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.hero-panel {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  background: #111827;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  box-shadow: 0 30px 70px rgba(124, 45, 18, 0.36);
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 100%);
}

.hero-slide-info {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 26px;
}

.hero-slide-info span {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 900;
}

.hero-slide-info h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
}

.hero-slide-info p {
  margin: 0 0 16px;
  color: #fef3c7;
}

.hero-slide-info a {
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--orange-dark);
  background: #ffffff;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 26px;
  top: 24px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

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

.feature-section,
.section-wrap,
.library-layout,
.player-section,
.detail-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 54px 20px;
}

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

.feature-grid article,
.text-card,
.filter-panel,
.ranking-panel,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.feature-grid span {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
  font-weight: 900;
}

.feature-grid h2,
.text-card h2,
.filter-panel h2,
.ranking-panel h2 {
  margin: 16px 0 6px;
  color: #111827;
}

.feature-grid p,
.text-card p,
.ranking-panel p {
  margin: 0;
  color: var(--muted);
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-head a,
.text-link,
.panel-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.warm-section {
  max-width: none;
  padding-left: max(20px, calc((100vw - 1220px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1220px) / 2 + 20px));
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.72), rgba(255, 237, 213, 0.88));
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(124, 45, 18, 0.24);
}

.category-bg,
.category-shade,
.category-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-bg img {
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.35s ease;
}

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

.category-shade {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.84));
}

.category-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #ffffff;
}

.category-content strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.category-content em {
  display: block;
  color: #fef3c7;
  font-style: normal;
  font-size: 14px;
}

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 45, 18, 0.1);
  transition: transform 0.23s ease, box-shadow 0.23s ease;
}

.movie-card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 24px 48px rgba(124, 45, 18, 0.18);
}

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

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

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

.hot-badge,
.rank-badge,
.rating-pill {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.hot-badge,
.rank-badge {
  top: 10px;
  right: 10px;
  padding: 7px 9px;
  background: #ef4444;
}

.rank-badge {
  background: linear-gradient(135deg, #f97316, #d97706);
}

.rating-pill {
  left: 10px;
  bottom: 10px;
  padding: 7px 9px;
  background: rgba(17, 24, 39, 0.78);
}

.card-body {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.card-desc {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

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

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

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

.rank-item {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 247, 237, 0.82);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.rank-number {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-weight: 900;
}

.rank-item img {
  width: 64px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-item strong,
.rank-item em,
.rank-item small {
  display: block;
}

.rank-item strong {
  color: #111827;
}

.rank-item em,
.rank-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-link {
  justify-content: center;
  margin-top: 18px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #f97316 0%, #f59e0b 52%, #ea580c 100%);
}

.page-hero div {
  max-width: 1220px;
  margin: 0 auto;
  padding: 76px 20px;
}

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

.page-hero p,
.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: #fff7ed;
  font-size: 20px;
}

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

.filter-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.filter-panel h2 {
  margin-top: 0;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.filter-panel select {
  border-radius: 18px;
  appearance: none;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-buttons button,
.filter-buttons a {
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  color: #9a3412;
  background: #fff7ed;
  cursor: pointer;
  font-weight: 800;
}

.filter-buttons button.active,
.filter-buttons button:hover,
.filter-buttons a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
}

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

.empty-state {
  display: none;
  margin: 32px 0;
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

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

.category-cover {
  overflow: hidden;
  border-radius: 20px;
  background: #ffedd5;
}

.category-cover img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.mini-links a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.top-rank-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

.top-rank-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 0.78;
}

.top-rank-card span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #ffffff;
}

.top-rank-card strong,
.top-rank-card b,
.top-rank-card em {
  display: block;
}

.top-rank-card strong {
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #7c2d12;
  background: #ffedd5;
}

.top-rank-card b {
  font-size: 30px;
}

.top-rank-card em {
  color: #fef3c7;
  font-style: normal;
}

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

.detail-hero {
  background: radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(120deg, #f97316, #d97706);
}

.detail-wrap {
  padding-top: 40px;
  padding-bottom: 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: #fff7ed;
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.32);
  border-radius: 30px;
  background: #ffedd5;
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.34);
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 800;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.detail-play-link {
  margin-top: 24px;
}

.player-section {
  padding-top: 46px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76));
  cursor: pointer;
}

.play-cover span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  color: var(--orange-dark);
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.25);
}

.play-cover strong {
  font-size: 22px;
}

.play-cover.hidden {
  display: none;
}

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

.text-card h2 {
  margin-top: 0;
}

.text-card p {
  color: #374151;
  font-size: 17px;
}

.site-footer {
  margin-top: 34px;
  color: #fffbeb;
  background: linear-gradient(135deg, #7c2d12, #9a3412 44%, #78350f);
}

.footer-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  gap: 26px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}

.footer-brand p,
.footer-copy {
  margin: 0;
  color: #fed7aa;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #ffedd5;
  font-weight: 700;
}

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

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

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

  .hero-inner,
  .split-section,
  .library-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .hero-panel {
    min-height: 430px;
  }

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

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

@media (max-width: 760px) {
  .nav-wrap {
    padding: 12px 16px;
  }

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

  .hero-inner,
  .page-hero div,
  .feature-section,
  .section-wrap,
  .library-layout,
  .player-section,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-inner {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-panel {
    min-height: 360px;
  }

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

  .feature-grid,
  .category-grid,
  .movie-grid,
  .compact-grid,
  .latest-grid,
  .library-grid,
  .category-overview-grid,
  .top-rank-grid,
  .full-rank-list,
  .movie-text-section {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

@media (max-width: 480px) {
  .mobile-nav form {
    flex-direction: column;
  }

  .hero-panel {
    min-height: 320px;
  }

  .hero-slide-info h2 {
    font-size: 26px;
  }

  .feature-grid,
  .category-grid,
  .movie-grid,
  .compact-grid,
  .latest-grid,
  .library-grid,
  .category-overview-grid,
  .top-rank-grid,
  .full-rank-list,
  .movie-text-section {
    grid-template-columns: 1fr;
  }

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

  .rank-item img {
    width: 56px;
    height: 72px;
  }
}
