:root {
  --site-dark: #0f172a;
  --site-blue: #2563eb;
  --site-cyan: #06b6d4;
  --site-purple: #7c3aed;
  --site-light: #f8fafc;
  --site-muted: #64748b;
  --site-border: rgba(148, 163, 184, 0.26);
  --site-shadow: 0 22px 70px rgba(15, 23, 42, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #eef6ff 100%);
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  color: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.28);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.35);
  transition: transform 0.28s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-2deg);
}

.logo-title {
  display: block;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a,
.mobile-menu a {
  color: #e2e8f0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: #22d3ee;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search,
.local-search {
  position: relative;
}

.header-search input,
.local-search input,
.filter-select {
  width: 250px;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  padding: 0 48px 0 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.local-search input,
.filter-select {
  width: 100%;
  background: #ffffff;
  color: #0f172a;
}

.header-search input:focus,
.local-search input:focus,
.filter-select:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.header-search button,
.search-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #94a3b8;
  transition: color 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.search-submit:hover {
  color: #22d3ee;
  background: rgba(255, 255, 255, 0.08);
}

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

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

.mobile-menu nav {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.page-shell {
  min-height: 62vh;
}

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

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #172554 55%, #111827);
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.28) 2px, transparent 0);
  background-size: 56px 56px;
}

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

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

.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.42) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 92px 0 72px;
  color: #ffffff;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.22);
  color: #a5f3fc;
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.hero-title span {
  display: block;
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  background: linear-gradient(90deg, #22d3ee, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 26px 0 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 22px 56px rgba(37, 99, 235, 0.42);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dot.is-active {
  background: #22d3ee;
}

.section {
  padding: 68px 0;
}

.section-dark {
  background: linear-gradient(135deg, #0f172a, #172554);
  color: #ffffff;
}

.section-warm {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 16px;
}

.section-dark .section-note {
  color: #cbd5e1;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--site-shadow);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.74));
}

.card-badge,
.rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  font-size: 12px;
  font-weight: 850;
}

.card-duration {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 9px;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  font-weight: 750;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-text {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 10px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  color: #64748b;
  font-size: 13px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 68px rgba(15, 23, 42, 0.22);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.35s ease;
}

.category-tile:hover::after {
  transform: scale(1.28);
}

.category-tile h3,
.category-tile p,
.category-tile span {
  position: relative;
  z-index: 2;
}

.category-tile h3 {
  font-size: 22px;
  font-weight: 950;
}

.category-tile p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.category-tile span {
  display: inline-flex;
  margin-top: 20px;
  font-weight: 850;
}

.gradient-cyan-blue { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.gradient-orange-red { background: linear-gradient(135deg, #f97316, #dc2626); }
.gradient-pink-rose { background: linear-gradient(135deg, #ec4899, #e11d48); }
.gradient-purple-indigo { background: linear-gradient(135deg, #8b5cf6, #4f46e5); }
.gradient-blue-indigo { background: linear-gradient(135deg, #3b82f6, #3730a3); }
.gradient-yellow-orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.gradient-teal-cyan { background: linear-gradient(135deg, #14b8a6, #0891b2); }
.gradient-green-teal { background: linear-gradient(135deg, #22c55e, #0d9488); }
.gradient-slate-blue { background: linear-gradient(135deg, #334155, #1d4ed8); }
.gradient-red-pink { background: linear-gradient(135deg, #ef4444, #db2777); }

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

.rank-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(34, 211, 238, 0.46);
}

.rank-poster {
  position: relative;
  overflow: hidden;
  width: 128px;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
}

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

.rank-badge {
  top: 8px;
  left: 8px;
  min-width: 30px;
  text-align: center;
}

.rank-title {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.42;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
  color: #cbd5e1;
  font-size: 13px;
}

.weight {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.18);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 850;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 54%, #083344);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.34), transparent 34%), radial-gradient(circle at 82% 12%, rgba(168, 85, 247, 0.28), transparent 28%);
}

.page-hero .container-main {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.page-title {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.page-desc {
  max-width: 760px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.75;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr 0.8fr;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.no-results {
  display: none;
  padding: 48px 20px;
  border-radius: 24px;
  background: #ffffff;
  color: #64748b;
  text-align: center;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.no-results.is-visible {
  display: block;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
  padding: 48px 0 70px;
}

.player-panel,
.detail-panel,
.side-panel {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}

.player-panel {
  margin-bottom: 24px;
  background: #020617;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020617;
  opacity: 1;
  transition: opacity 0.24s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.76));
}

.play-orb {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 22px 54px rgba(37, 99, 235, 0.48);
  font-size: 34px;
  transform: translateZ(0);
  transition: transform 0.22s ease;
}

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

.detail-panel {
  padding: 30px;
}

.detail-title {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
}

.info-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 10px;
  background: #f1f5f9;
}

.detail-lead {
  margin-top: 18px;
  color: #334155;
  font-size: 18px;
  line-height: 1.74;
}

.article-block {
  margin-top: 28px;
}

.article-block h2 {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.article-block p {
  color: #475569;
  line-height: 1.9;
}

.side-panel {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.side-title {
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 950;
}

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

.related-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.22s ease;
}

.related-card:hover {
  background: #f8fafc;
}

.related-card figure {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

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

.related-card h3 {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card p {
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
}

.cta-panel {
  padding: 58px 28px;
  border-radius: 34px;
  background: linear-gradient(90deg, #06b6d4, #2563eb, #7c3aed);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 26px 70px rgba(37, 99, 235, 0.26);
}

.cta-panel h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.cta-panel p {
  margin: 12px auto 0;
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.7;
}

.site-footer {
  padding: 46px 0;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #94a3b8;
}

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

.footer-title {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer-link-list {
  display: grid;
  gap: 9px;
  font-size: 14px;
}

.footer-link-list a:hover {
  color: #22d3ee;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 13px;
}

.hide-card {
  display: none !important;
}

@media (max-width: 1120px) {
  .grid-cards,
  .grid-cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .hero-content {
    align-items: end;
    padding-bottom: 88px;
  }

  .grid-cards,
  .grid-cards.three,
  .rank-list,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .side-panel {
    position: static;
  }
}

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

  .logo-title {
    font-size: 17px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero-slider,
  .hero-content {
    min-height: 76vh;
  }

  .hero-title {
    font-size: 42px;
  }

  .section {
    padding: 48px 0;
  }

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

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

  .rank-card,
  .related-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .rank-poster {
    width: 108px;
  }

  .detail-panel {
    padding: 22px;
  }
}
