:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --accent: #f59e0b;
  --rose: #f43f5e;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  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(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark,
.footer-logo span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.logo-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

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

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

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--primary-dark);
}

.top-search {
  width: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.top-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 4px 10px 16px;
  background: transparent;
}

.top-search button,
.search-panel button,
.filter-panel button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 10px 16px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 22px;
}

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

.mobile-nav a {
  display: block;
  padding: 10px 0;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.62) 44%, rgba(17, 24, 39, 0.22) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 24%, rgba(249, 115, 22, 0.38), transparent 26rem),
    linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.78));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  align-items: center;
  gap: 56px;
  padding-top: 36px;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(253, 186, 116, 0.35);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-copy h1 {
  max-width: 800px;
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.35);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 270px;
  background: linear-gradient(135deg, #431407, #f97316);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

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

.hero-poster span,
.poster-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.4);
}

.hero-thumbs {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 28px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-align: left;
}

.hero-thumb.is-active {
  border-color: #fed7aa;
  background: rgba(249, 115, 22, 0.36);
}

.hero-thumb img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #431407, #f97316);
}

.hero-thumb span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 800;
}

.search-panel {
  position: relative;
  z-index: 6;
  margin-top: -30px;
  padding: 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px 24px;
  align-items: center;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-panel h2,
.search-panel p {
  margin: 0;
}

.search-panel form {
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 15px 18px;
}

.category-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chips a {
  border-radius: 999px;
  padding: 8px 14px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.page-section {
  margin-top: 54px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.section-more {
  color: var(--primary-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #431407, #f97316 52%, #f59e0b);
}

.movie-card-large .poster-frame {
  aspect-ratio: 21 / 9;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-frame img.is-broken,
.hero-poster img.is-broken,
.compact-cover img.is-broken,
.ranking-cover img.is-broken,
.cover-side img.is-broken,
.hero-thumb img.is-broken {
  opacity: 0;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.68));
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  z-index: 3;
  width: 52px;
  height: 52px;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--primary-dark);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  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;
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 13px;
}

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

.compact-grid .movie-card:nth-child(n+9) {
  display: none;
}

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

.rank-panel,
.side-card,
.content-card,
.category-overview-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

.rank-panel {
  position: sticky;
  top: 98px;
  padding: 20px;
}

.rank-panel h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 38px 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.ranking-item:hover {
  background: #fff7ed;
}

.rank-number {
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 18px;
}

.ranking-cover {
  height: 48px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #431407, #f97316);
}

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

.ranking-text {
  min-width: 0;
}

.ranking-text strong,
.compact-info strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-text small,
.compact-info small {
  display: block;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.category-card {
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.category-card > a {
  display: block;
  padding: 22px;
}

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

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

.category-card span {
  color: var(--primary-dark);
  font-weight: 900;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}

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

.page-main {
  padding: 34px 0 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 46px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.22), transparent 20rem),
    linear-gradient(135deg, #9a3412, #f97316 48%, #f59e0b);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.page-hero.small-hero {
  min-height: 240px;
}

.page-hero.channel-hero {
  min-height: 260px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

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

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
}

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

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: 18px;
}

.category-overview-card {
  padding: 24px;
  transition: transform 0.22s ease;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f9fafb;
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: #fff7ed;
}

.compact-cover {
  height: 54px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #431407, #f97316);
}

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

.ranking-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
}

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

.detail-content {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.3);
  margin-bottom: 24px;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
  z-index: 2;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
}

.play-overlay strong {
  font-size: 20px;
}

.movie-detail-card {
  padding: 28px;
}

.movie-detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.movie-detail-card h2,
.prose-card h2 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.movie-detail-card p,
.prose-card p {
  color: #374151;
  margin: 0 0 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 700;
  font-size: 13px;
}

.one-line {
  padding: 18px;
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  background: #fff7ed;
  font-weight: 800;
}

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

.detail-fields div {
  border-radius: 16px;
  padding: 12px;
  background: #f9fafb;
}

.detail-fields strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-fields a,
.detail-fields span {
  color: var(--text);
  font-weight: 800;
}

.detail-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 18px;
}

.cover-side img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #431407, #f97316);
  margin-bottom: 14px;
}

.cover-side h2 {
  margin-bottom: 8px;
}

.cover-side p {
  color: var(--muted);
  margin: 0 0 14px;
}

.block-btn {
  width: 100%;
}

.prose-card {
  padding: 32px;
  max-width: 860px;
}

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

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

.footer-logo {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  color: #9ca3af;
  margin: 0;
}

.site-footer h3 {
  color: #fdba74;
  margin: 0 0 12px;
}

.site-footer a {
  display: block;
  color: #d1d5db;
  margin: 8px 0;
}

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

.footer-bottom {
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 14px;
}

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

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

  .hero-content {
    grid-template-columns: 1fr 300px;
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-slider {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 34px;
  }

  .hero-poster {
    max-width: 420px;
  }

  .hero-poster img {
    height: 260px;
  }

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

  .search-panel,
  .split-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-sidebar {
    position: static;
  }

  .large-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-board {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .logo-text strong {
    font-size: 20px;
  }

  .hero-slider {
    min-height: 760px;
  }

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

  .hero-copy p {
    font-size: 16px;
  }

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

  .search-panel,
  .page-hero,
  .movie-detail-card,
  .prose-card {
    padding: 20px;
    border-radius: 20px;
  }

  .search-panel form {
    flex-direction: column;
    border-radius: 18px;
  }

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

  .ranking-item {
    grid-template-columns: 30px 64px minmax(0, 1fr);
  }

  .detail-fields {
    grid-template-columns: 1fr;
  }
}
