:root {
  color-scheme: light;
  --color-red: #dc2626;
  --color-red-dark: #b91c1c;
  --color-dark: #111827;
  --color-gray: #4b5563;
  --color-soft: #f9fafb;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-md: 14px;
}

body {
  min-height: 100vh;
  background: #f9fafb;
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
}

.brand-icon,
.footer-brand span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.32);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

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

.desktop-nav a,
.nav-dropdown button {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown:hover button {
  color: var(--color-red);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 360px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  transform: translateX(-50%) translateY(10px);
  visibility: hidden;
  opacity: 0;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 14px;
}

.nav-dropdown-menu a:hover {
  background: #fef2f2;
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 300px;
  margin-left: 8px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.filter-row input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  height: 42px;
  padding: 0 78px 0 16px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-row input:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.top-search button,
.mobile-search button,
.hero-search button {
  position: absolute;
  right: 5px;
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--color-red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #111827;
}

.mobile-toggle:hover {
  background: #f3f4f6;
}

.mobile-panel {
  display: none;
  padding: 14px 16px 20px;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
}

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

.mobile-panel > a,
.mobile-channel-grid a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 600;
}

.mobile-panel > a:hover,
.mobile-channel-grid a:hover {
  background: #f9fafb;
  color: var(--color-red);
}

.mobile-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 8px 0 14px;
}

.mobile-search {
  position: relative;
}

.mobile-search input {
  height: 46px;
  padding: 0 88px 0 14px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
  visibility: visible;
  opacity: 1;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 124px;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.95);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 18px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-head a,
.category-panel-link strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  background: var(--color-red);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.34);
}

.primary-btn:hover,
.hero-search button:hover,
.top-search button:hover,
.mobile-search button:hover {
  background: var(--color-red-dark);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.section-head a:hover {
  transform: translateY(-1px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  transform: translateX(-50%);
}

.hero-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.64);
  color: #ffffff;
  text-align: left;
  backdrop-filter: blur(12px);
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-dot.active,
.hero-dot:hover {
  background: rgba(220, 38, 38, 0.9);
  opacity: 1;
}

.hero-dot img {
  width: 44px;
  height: 58px;
  border-radius: 9px;
}

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

.site-section {
  padding: 56px 0;
}

.light-section {
  background: #ffffff;
}

.channel-strip {
  padding-bottom: 34px;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.section-head a {
  flex: none;
  background: #111827;
  color: #ffffff;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chips a {
  padding: 12px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: color 0.2s ease, transform 0.2s ease;
}

.category-chips a:hover {
  color: var(--color-red);
  transform: translateY(-2px);
}

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

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

.movie-card {
  display: block;
  min-width: 0;
  color: #111827;
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: #111827;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.16);
}

.movie-card-wide .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover img,
.result-card:hover img {
  transform: scale(1.08);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 9px;
  background: var(--color-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  right: 10px;
  left: auto;
  background: rgba(17, 24, 39, 0.86);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.34);
  color: #ffffff;
  font-size: 34px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.movie-card strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.35;
}

.movie-card small {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: #6b7280;
  font-size: 13px;
}

.movie-card-wide small {
  -webkit-line-clamp: 2;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 58px 0;
  color: #ffffff;
}

.red-hero {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

.dark-hero {
  background: linear-gradient(135deg, #111827, #374151);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

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

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

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

.category-panel {
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.category-panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.category-panel-link span {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-panel-link strong {
  min-height: 36px;
  padding: 0 14px;
  background: #fef2f2;
  color: var(--color-red);
  font-size: 13px;
}

.category-panel p {
  min-height: 54px;
  margin: 0 0 16px;
  color: #6b7280;
  line-height: 1.7;
}

.mini-links {
  display: grid;
  gap: 8px;
}

.mini-links a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
  font-weight: 700;
}

.mini-links a:hover {
  color: var(--color-red);
}

.filter-box {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-row strong {
  width: 52px;
  color: #111827;
}

.filter-row button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
}

.filter-row button.active,
.filter-row button:hover {
  background: var(--color-red);
  color: #ffffff;
}

.search-row input {
  flex: 1;
  min-width: 220px;
  height: 42px;
  padding: 0 14px;
}

.empty-state {
  display: none;
  padding: 56px 0;
  color: #6b7280;
  text-align: center;
  font-size: 18px;
}

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

.hero-search {
  position: relative;
  width: min(680px, 100%);
  margin-top: 24px;
}

.hero-search input {
  height: 58px;
  padding: 0 110px 0 20px;
  font-size: 17px;
}

.hero-search button {
  height: 44px;
  padding: 0 22px;
}

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

.result-card,
.ranking-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.result-card img,
.ranking-row img {
  width: 86px;
  height: 118px;
  border-radius: 12px;
}

.result-card strong,
.ranking-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.result-card em,
.ranking-row em {
  display: block;
  margin-bottom: 6px;
  color: #6b7280;
  font-style: normal;
  font-size: 14px;
}

.result-card small {
  color: #4b5563;
  line-height: 1.6;
}

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

.ranking-row {
  grid-template-columns: 48px 74px minmax(0, 1.3fr) minmax(0, 1fr) 60px;
}

.ranking-row img {
  width: 74px;
  height: 96px;
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fef2f2;
  color: var(--color-red);
  font-weight: 900;
}

.ranking-row b {
  color: var(--color-red);
  font-size: 20px;
}

.detail-main {
  background: #f9fafb;
}

.detail-top {
  padding: 24px 0 34px;
  background: #050505;
  color: #ffffff;
}

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

.player-panel {
  min-width: 0;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
}

.player-frame video {
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.45));
}

.player-overlay.hidden {
  display: none;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 6px;
  border-radius: 999px;
  background: var(--color-red);
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.42);
}

.player-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84), transparent);
}

.player-controls button {
  color: #ffffff;
  font-weight: 800;
}

.progress-track {
  flex: 1;
  overflow: hidden;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-red);
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
}

.score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.score-card strong {
  color: #fca5a5;
  font-size: 34px;
}

.score-card span {
  color: #e5e7eb;
  font-weight: 700;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-article,
.side-panel {
  padding: 28px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.detail-article h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
}

.detail-article h2,
.side-panel h2 {
  margin: 28px 0 14px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.detail-article p {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.detail-article .one-line {
  padding: 18px;
  border-radius: 16px;
  background: #fef2f2;
  color: #991b1b;
  font-weight: 700;
}

.detail-meta span,
.tag-list span {
  background: #f3f4f6;
  color: #374151;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

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

.side-list a {
  display: block;
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
}

.side-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-weight: 800;
}

.side-list em {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  margin-top: 44px;
  padding: 54px 0 26px;
  background: #111827;
  color: #ffffff;
}

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

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  color: #9ca3af;
  line-height: 1.8;
}

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

.site-footer li + li {
  margin-top: 8px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

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

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

  .mobile-toggle {
    display: block;
  }

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

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

  .wide-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-layout,
  .detail-text-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-wrap {
    min-height: 64px;
  }

  .brand small {
    display: none;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    padding-bottom: 230px;
  }

  .hero-dots {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-dot:nth-child(n + 4) {
    display: none;
  }

  .section-head,
  .category-panel-link {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .wide-grid,
  .category-overview-grid,
  .footer-grid,
  .detail-layout,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: none;
  }

  .filter-row strong {
    width: 100%;
  }

  .ranking-row {
    grid-template-columns: 42px 64px minmax(0, 1fr) 50px;
  }

  .ranking-row em {
    display: none;
  }

  .ranking-row img {
    width: 64px;
    height: 86px;
  }

  .result-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .result-card img {
    width: 70px;
    height: 96px;
  }

  .player-controls {
    gap: 8px;
    padding: 12px;
    font-size: 13px;
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
