* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #0f172a;
  --panel: rgba(31, 41, 55, 0.82);
  --panel-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f9fafb;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --blue: #60a5fa;
  --yellow: #facc15;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(220, 38, 38, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 18%, rgba(249, 115, 22, 0.14), transparent 28rem),
    linear-gradient(180deg, #111827 0%, #030712 42%, #111827 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(55, 65, 81, 0.8);
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.96), rgba(17, 24, 39, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.35);
  font-size: 14px;
}

.brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ef4444, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 14px;
  color: #d1d5db;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 15px;
  color: #9ca3af;
  font-weight: 800;
  pointer-events: none;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select,
.search-panel input {
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #ffffff;
  outline: none;
  background: rgba(55, 65, 81, 0.85);
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 260px;
  height: 42px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-panel input:focus {
  border-color: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
  background: rgba(31, 41, 55, 0.95);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(55, 65, 81, 0.86);
  padding: 16px;
  background: rgba(17, 24, 39, 0.98);
}

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

.mobile-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
}

.mobile-nav,
.mobile-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-nav-link,
.mobile-categories a {
  padding: 12px;
  color: #d1d5db;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.9);
  text-align: center;
  font-weight: 700;
}

.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.72);
}

.hero-carousel {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: #050505;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(3, 7, 18, 1) 0%, rgba(3, 7, 18, 0.7) 28%, rgba(3, 7, 18, 0.15) 100%),
    linear-gradient(90deg, rgba(3, 7, 18, 0.86) 0%, rgba(3, 7, 18, 0.36) 48%, rgba(3, 7, 18, 0.86) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 78px;
  width: min(720px, calc(100vw - 48px));
  z-index: 2;
}

.hero-chip,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.25);
}

.eyebrow {
  margin-bottom: 10px;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.26);
  box-shadow: none;
}

.eyebrow.blue {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.28);
}

.eyebrow.orange {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(251, 146, 60, 0.28);
}

.hero-content h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.72;
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #d1d5db;
}

.hero-meta {
  margin-bottom: 26px;
}

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

.primary-button,
.ghost-button,
.search-panel button,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: var(--red);
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.search-panel button:hover,
.filter-panel button:hover {
  background: var(--red-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.36);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 72px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  width: 34px;
  background: var(--red);
}

.section-block,
.quick-categories,
.glass-section {
  padding: 58px 0 0;
}

.glass-section {
  margin-top: 58px;
  padding: 32px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 28px;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0.18), rgba(88, 28, 135, 0.16));
  box-shadow: var(--shadow);
}

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

.section-heading h2,
.page-title h1,
.detail-headline h1 {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-heading a {
  color: #fca5a5;
  font-weight: 800;
}

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

.category-tile {
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.86), rgba(17, 24, 39, 0.86));
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border 0.22s ease, background 0.22s ease;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover,
.rail-card:hover,
.rank-row:hover,
.wide-rank-row:hover,
.side-card:hover {
  transform: translateY(-5px);
}

.category-tile:hover {
  border-color: rgba(248, 113, 113, 0.48);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.68), rgba(31, 41, 55, 0.9));
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 20px;
}

.category-tile span {
  color: #cbd5e1;
  line-height: 1.65;
}

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

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

.movie-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-card {
  display: block;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(31, 41, 55, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(248, 113, 113, 0.38);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.movie-cover img,
.rail-cover img,
.rank-row img,
.wide-rank-row img,
.side-card img,
.category-covers img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .movie-cover img,
.rail-card:hover img,
.rank-row:hover img,
.wide-rank-row:hover img,
.side-card:hover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
}

.cover-category,
.cover-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.cover-category {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: rgba(220, 38, 38, 0.92);
}

.cover-duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.3);
}

.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.88);
  transform: translate(-50%, -50%) scale(0.76);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .cover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  padding: 16px;
}

.movie-info h2,
.rail-card h2,
.rank-row h2,
.wide-rank-row h2,
.side-card h3 {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
}

.movie-info h2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 18px;
}

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

.movie-meta {
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 13px;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
}

.rail-card {
  flex: 0 0 260px;
  transition: transform 0.22s ease;
}

.rail-cover {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
}

.rail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.rail-cover span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.rail-card h2 {
  margin-top: 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 16px;
  line-height: 1.35;
}

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

.rank-row,
.wide-rank-row,
.side-card {
  transition: transform 0.22s ease, background 0.22s ease, border 0.22s ease;
}

.rank-row {
  display: grid;
  grid-template-columns: 50px 126px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-row:hover,
.wide-rank-row:hover,
.side-card:hover {
  background: rgba(31, 41, 55, 0.95);
  border-color: rgba(248, 113, 113, 0.3);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 126px;
  height: 78px;
  border-radius: 12px;
  background: #111827;
}

.rank-row h2 {
  margin-bottom: 7px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 17px;
}

.rank-row p,
.wide-rank-row p {
  margin: 0 0 7px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: #cbd5e1;
  line-height: 1.55;
}

.rank-row span:last-child,
.wide-rank-row small {
  color: #94a3b8;
}

.page-main {
  padding-top: 42px;
  padding-bottom: 70px;
}

.page-title {
  margin-bottom: 34px;
  padding: 34px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.24), rgba(17, 24, 39, 0.82)),
    radial-gradient(circle at 95% 0%, rgba(249, 115, 22, 0.18), transparent 22rem);
  box-shadow: var(--shadow);
}

.page-title h1 {
  margin-top: 8px;
  font-size: clamp(34px, 6vw, 58px);
}

.page-title p {
  max-width: 860px;
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.72;
}

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

.category-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(31, 41, 55, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border 0.22s ease;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 150px;
  overflow: hidden;
  background: #111827;
}

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

.category-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 24px;
}

.category-card p,
.category-card strong {
  color: #cbd5e1;
  line-height: 1.65;
}

.category-card strong {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

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

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

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px 120px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
}

.filter-panel input,
.filter-panel select,
.search-panel input {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

.search-panel {
  display: block;
}

.search-panel form {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 12px;
}

.search-results:empty {
  display: none;
}

.search-title {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 26px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: start;
}

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

.wide-rank-row {
  display: grid;
  grid-template-columns: 42px 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(31, 41, 55, 0.72);
}

.wide-rank-row > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.82);
  font-weight: 900;
}

.wide-rank-row img {
  width: 96px;
  height: 62px;
  border-radius: 12px;
  background: #111827;
}

.wide-rank-row h2 {
  margin-bottom: 5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 16px;
}

.ranking-side h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 28px;
}

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

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  background: #000000;
}

.player-cover.is-hidden {
  display: none;
  pointer-events: none;
}

.player-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(220, 38, 38, 0.24), transparent 20rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.76));
}

.player-start {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 20px 52px rgba(220, 38, 38, 0.4);
  font-size: 28px;
  transition: transform 0.22s ease;
}

.player-cover:hover .player-start {
  transform: scale(1.08);
}

.detail-headline,
.detail-panel,
.side-panel {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.74);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}

.detail-headline h1 {
  margin-top: 16px;
  font-size: clamp(32px, 5vw, 54px);
}

.detail-headline p,
.detail-panel p {
  color: #cbd5e1;
  line-height: 1.82;
  font-size: 17px;
}

.detail-meta {
  margin: 16px 0;
}

.detail-tags span {
  background: rgba(220, 38, 38, 0.16);
  color: #fecaca;
}

.detail-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 24px;
}

.watch-side {
  position: sticky;
  top: 92px;
}

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

.side-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
}

.side-card img {
  height: 72px;
  border-radius: 12px;
  background: #111827;
}

.side-card h3 {
  margin-bottom: 7px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.35;
}

.side-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.glow-panel {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.28), rgba(124, 45, 18, 0.22));
}

.channel-link {
  display: block;
  padding: 12px 14px;
  margin-top: 10px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.related-block {
  padding-top: 38px;
}

.site-footer {
  border-top: 1px solid rgba(55, 65, 81, 0.82);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), #030712);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 42px;
  padding: 42px 0;
}

.footer-brand p {
  max-width: 520px;
  color: #cbd5e1;
  line-height: 1.75;
}

.footer-links h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

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

.footer-grid a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.06);
}

.footer-grid a:hover {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.28);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

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

  .ranking-layout,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .watch-side {
    position: static;
  }
}

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

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

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

  .hero-carousel {
    height: 640px;
    min-height: 640px;
  }

  .hero-content {
    bottom: 96px;
  }

  .hero-dots {
    left: 24px;
    right: auto;
    bottom: 42px;
  }

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

  .movie-grid,
  .movie-grid.full-grid,
  .movie-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

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

@media (max-width: 560px) {
  .wrap,
  .header-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-carousel {
    height: 600px;
    min-height: 600px;
  }

  .hero-content {
    left: 16px;
    bottom: 86px;
    width: calc(100vw - 32px);
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .category-tile-grid,
  .category-card-grid,
  .movie-grid,
  .movie-grid.full-grid,
  .movie-grid.two-col {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 96px 1fr;
    gap: 10px;
  }

  .rank-row img {
    width: 96px;
    height: 62px;
  }

  .page-title,
  .detail-headline,
  .detail-panel,
  .side-panel,
  .glass-section {
    padding: 20px;
    border-radius: 20px;
  }

  .player-shell {
    border-radius: 20px;
  }

  .player-start {
    width: 68px;
    height: 68px;
  }

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