*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080b12;
  --surface: #0f1420;
  --card: #141927;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #e8a020;
  --accent2: #ff4e4e;
  --text: #e8eaf0;
  --muted: #6b7280;
  --gold: #f5c518;
  --radius: 10px;
  --nav-h: 62px;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 3px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(12px, 4vw, 48px);
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.logo-icon svg {
  width: 20px;
  height: 20px;
}
.logo-text {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  letter-spacing: 2px;
  color: #fff;
}
.logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-left: 18px;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  width: clamp(140px, 22vw, 280px);
  transition: border-color 0.2s;
}
.search-bar:focus-within {
  border-color: var(--accent);
}
.search-bar svg {
  flex-shrink: 0;
  opacity: 0.5;
}
.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  width: 100%;
}
.search-bar input::placeholder {
  color: var(--muted);
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 8px;
  transition:
    opacity 0.2s,
    transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 11, 18, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  padding: 30px clamp(16px, 5vw, 40px);
  gap: 8px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s;
  cursor: pointer;
}
.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-search {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}
.mobile-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

/* Hero */
.hero {
  margin-top: var(--nav-h);
  position: relative;
  height: clamp(360px, 62vw, 640px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: opacity 1.2s ease;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 11, 18, 0.96) 0%,
      rgba(8, 11, 18, 0.7) 50%,
      rgba(8, 11, 18, 0.1) 100%
    ),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 6vw, 70px) clamp(16px, 5vw, 80px);
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  justify-content: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 160, 32, 0.15);
  border: 1px solid rgba(232, 160, 32, 0.3);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}
.hero-title {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1;
  letter-spacing: 1px;
  color: #fff;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hero-meta .rating {
  color: var(--gold);
  font-weight: 700;
}
.hero-overview {
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  color: rgba(232, 234, 240, 0.7);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-hero {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.btn-hero:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.btn-hero.play {
  background: #e50914;
  color: #fff;
}
.btn-hero.dl {
  background: var(--accent);
  color: #000;
}
.btn-hero.info {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  transition:
    width 0.3s,
    background 0.3s;
  cursor: pointer;
}
.hero-dot.active {
  width: 24px;
  background: var(--accent);
}

/* Main and pages */
main {
  padding: 0 clamp(12px, 4vw, 48px) 60px;
  overflow-x: hidden;
  width: 100%;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.section {
  margin-top: 80px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}
.see-all {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(232, 160, 32, 0.3);
  transition: background 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.see-all:hover {
  background: rgba(232, 160, 32, 0.1);
}

/* Filters */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.filter-bar label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.filter-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 28px 6px 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 120px;
}
.filter-select:focus,
.filter-select:hover {
  border-color: var(--accent);
  background-color: rgba(232, 160, 32, 0.05);
}
.filter-select option {
  background: #141927;
  color: var(--text);
}
.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}
.filter-reset {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-reset:hover {
  color: var(--accent);
  border-color: rgba(232, 160, 32, 0.3);
  background: rgba(232, 160, 32, 0.06);
}
.filter-loading {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}
.filter-loading.show {
  display: flex;
}
.filter-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Genre pills */
.genres-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.genre-pill {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.genre-pill.active,
.genre-pill:hover {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

/* Skeleton loading animation */
@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    rgba(255, 255, 255, 0.05) 50%,
    var(--surface) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* Detail page skeleton */
.detail-skeleton {
  padding: 0;
}
.detail-skeleton-hero {
  height: clamp(320px, 55vw, 560px);
  border-radius: 0;
}
.detail-skeleton-body {
  padding: 36px clamp(16px, 5vw, 80px);
  max-width: 600px;
}

/* Movie cards */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(clamp(120px, 23vw, 160px), 1fr)
  );
  gap: clamp(10px, 2vw, 18px);
}
.movie-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
  cursor: pointer;
  position: relative;
}
.movie-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(232, 160, 32, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.card-poster {
  position: relative;
  aspect-ratio: 2/3;
  background: var(--surface);
  overflow: hidden;
}
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.movie-card:hover .card-poster img {
  transform: scale(1.05);
}
.card-quality {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.card-type {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.3px;
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}
.movie-card:hover .card-overlay {
  opacity: 1;
}
.card-actions {
  display: flex;
  gap: 5px;
  width: 100%;
}
.card-play-btn {
  flex: 1;
  background: #e50914;
  color: #fff;
  font-weight: 800;
  font-size: 0.68rem;
  font-family: inherit;
  padding: 6px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.card-dl-btn {
  flex: 1;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.68rem;
  font-family: inherit;
  padding: 6px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.card-play-btn:hover,
.card-dl-btn:hover {
  opacity: 0.85;
}
.card-info {
  padding: 10px 10px 12px;
}
.card-title {
  font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  margin-bottom: 5px;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--muted);
}
.card-rating {
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}
.no-poster {
  width: 100%;
  height: 100%;
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 10px;
}

/* More like this */
.more-like-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.more-like-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.more-like-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.more-like-title svg {
  color: var(--accent);
}
.more-like-scroll {
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.more-like-scroll::-webkit-scrollbar {
  height: 3px;
}
.more-like-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.more-like-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}
.more-like-row {
  display: flex;
  gap: 12px;
  width: max-content;
}
.more-like-card {
  width: 130px;
  flex-shrink: 0;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    transform 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
}
.more-like-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 160, 32, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.more-like-poster {
  aspect-ratio: 2/3;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.more-like-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.more-like-card:hover .more-like-poster img {
  transform: scale(1.06);
}
.more-like-poster-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
  padding: 8px;
}
.more-like-info {
  padding: 7px 8px 9px;
}
.more-like-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.more-like-meta {
  font-size: 0.62rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.more-like-rating {
  color: var(--gold);
  font-weight: 700;
}
.more-like-skeleton-card {
  width: 130px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

/* Detail page */
#page-detail {
  display: none;
}
#page-detail.active {
  display: block;
}
.detail-hero {
  position: relative;
  height: clamp(320px, 55vw, 560px);
  overflow: hidden;
}
.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}
.detail-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 11, 18, 0.98) 0%,
      rgba(8, 11, 18, 0.75) 55%,
      rgba(8, 11, 18, 0.2) 100%
    ),
    linear-gradient(0deg, var(--bg) 0%, transparent 45%);
}
.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 6vw, 70px) clamp(16px, 5vw, 80px);
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: flex-end;
  padding-bottom: 40px;
}
.detail-back-btn {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  left: clamp(16px, 5vw, 80px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
  cursor: pointer;
}
.detail-back-btn:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
}
.detail-title {
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1;
  letter-spacing: 1px;
  color: #fff;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.detail-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.detail-rating {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}
.detail-overview-short {
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  color: rgba(232, 234, 240, 0.72);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-body {
  padding: 36px clamp(16px, 5vw, 80px) 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  max-width: 1300px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
@media (max-width: 860px) {
  .detail-body {
    grid-template-columns: 1fr;
  }
}
.detail-overview-full {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(232, 234, 240, 0.78);
  margin-bottom: 28px;
}
.detail-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.detail-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.detail-genre-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Player */
.player-activate-screen {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-bottom: none;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.player-activate-screen:hover {
  background: #0a0d18;
}
.player-activate-screen .pa-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.18);
  pointer-events: none;
}
.player-activate-screen .pa-play {
  width: 64px;
  height: 64px;
  background: rgba(229, 9, 20, 0.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  transition:
    transform 0.2s,
    background 0.2s;
}
.player-activate-screen:hover .pa-play {
  transform: scale(1.1);
  background: #e50914;
}
.player-activate-screen .pa-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px;
}
.player-activate-screen .pa-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  position: relative;
  z-index: 1;
}
.detail-player-wrap {
  background: #000;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
  position: relative;
}
.detail-player-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}
.detail-player-hint {
  padding: 10px 14px;
  background: #0a0d14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  margin-bottom: 16px;
}
.detail-player-hint span:first-child {
  font-size: 0.75rem;
  color: var(--muted);
}
.detail-player-hint span:last-child {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}
.detail-ep-section {
  margin-top: 20px;
}
.season-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.season-btn {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}
.season-btn.active,
.season-btn:hover {
  background: rgba(232, 160, 32, 0.15);
  color: var(--accent);
  border-color: rgba(232, 160, 32, 0.3);
}
.ep-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ep-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}
.ep-btn.active,
.ep-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* Sidebar */
.detail-poster-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.detail-poster-wrap img {
  width: 100%;
  display: block;
}
.detail-no-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
}
.download-section h3 {
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.download-section h3 span {
  color: var(--accent);
}
.download-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s;
  gap: 10px;
}
.dl-option:hover {
  border-color: rgba(232, 160, 32, 0.4);
}
.dl-option-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.dl-option-icon {
  width: 36px;
  height: 36px;
  background: rgba(232, 160, 32, 0.1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dl-quality {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}
.dl-size {
  font-size: 0.75rem;
  color: var(--muted);
}
.dl-btn {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: opacity 0.2s;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.dl-btn:hover {
  opacity: 0.85;
}
.dl-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
  padding: 0 2px;
}

/* Top cast */
.cast-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.cast-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cast-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cast-section-title svg {
  color: var(--accent);
}
.cast-count {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.cast-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
  cursor: default;
}
.cast-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 160, 32, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.cast-photo-wrap {
  position: relative;
  aspect-ratio: 2/3;
  background: var(--surface);
  overflow: hidden;
}
.cast-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.cast-card:hover .cast-photo-wrap img {
  transform: scale(1.06);
}
.cast-no-photo {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface), var(--card));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
}
.cast-no-photo .cast-initials {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.cast-info {
  padding: 8px 8px 10px;
}
.cast-real-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.cast-char-name {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}
.cast-skeleton-card {
  flex-shrink: 0;
  width: 110px;
}
.cast-skeleton-photo {
  aspect-ratio: 2/3;
  border-radius: 8px 8px 0 0;
}
.cast-skeleton-name {
  height: 12px;
  margin: 8px 8px 4px;
  border-radius: 4px;
}
.cast-skeleton-char {
  height: 10px;
  margin: 0 8px 8px;
  border-radius: 4px;
  width: 70%;
}
.cast-empty {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 16px 0;
}

/* Social share */
.share-section {
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.share-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.share-label svg {
  color: var(--accent);
}
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    opacity 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.share-btn svg {
  flex-shrink: 0;
}
.share-btn.whatsapp {
  background: #25d366;
  color: #fff;
}
.share-btn.twitter {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}
.share-btn.facebook {
  background: #1877f2;
  color: #fff;
}
.share-btn.telegram {
  background: #0088cc;
  color: #fff;
}
.share-btn.copy-link {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--border);
}
.share-btn.copy-link.copied {
  background: rgba(232, 160, 32, 0.15);
  color: var(--accent);
  border-color: rgba(232, 160, 32, 0.35);
}

/* Modals */
.trailer-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.trailer-modal-backdrop.open {
  display: flex;
}
.trailer-wrap {
  width: 100%;
  max-width: 900px;
  position: relative;
}
.trailer-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}
.trailer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.trailer-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 10px;
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--card);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 0.85rem;
  padding: 12px 22px;
  border-radius: 10px;
  z-index: 500;
  white-space: nowrap;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s;
  opacity: 0;
  pointer-events: none;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Comments */
.comments-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  position: relative;
}
.comments-section .section-label-lg {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comments-section .section-label-lg svg {
  color: var(--accent);
}
.admin-gate {
  display: block;
  text-align: right;
  margin-top: 12px;
  font-size: 0.5rem;
  letter-spacing: 4px;
  color: rgba(82, 82, 82, 0.363);
  user-select: none;
  cursor: default;
  line-height: 1;
  padding: 6px 4px;
  border-radius: 3px;
}
.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 28px;
}
.comment-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.comment-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s;
  outline: none;
}
.comment-input:focus {
  border-color: var(--accent);
}
.comment-input::placeholder {
  color: var(--muted);
}
.comment-name-input {
  width: 180px;
  flex-shrink: 0;
}
.comment-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.captcha-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  user-select: none;
  min-width: 90px;
  text-align: center;
}
.captcha-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  width: 100px;
  outline: none;
  transition: border-color 0.2s;
}
.captcha-input:focus {
  border-color: var(--accent);
}
.captcha-refresh {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.captcha-refresh:hover {
  opacity: 0.7;
}
.btn-submit-comment {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 9px 22px;
  border-radius: 8px;
  transition:
    opacity 0.2s,
    transform 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-submit-comment:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.btn-submit-comment:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.comment-error {
  font-size: 0.78rem;
  color: #ff5f5f;
  margin-top: 6px;
  display: none;
}
.comment-error.show {
  display: block;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comment-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}
.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  text-transform: uppercase;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.comment-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.comment-time {
  font-size: 0.72rem;
  color: var(--muted);
}
.comment-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(232, 234, 240, 0.82);
  word-break: break-word;
}
.comment-delete-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition:
    color 0.2s,
    background 0.2s;
  position: absolute;
  top: 12px;
  right: 12px;
}
.comment-delete-btn:hover {
  color: #ff5f5f;
  background: rgba(255, 95, 95, 0.1);
}
.comments-loading {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 0;
}
.comments-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 32px 0;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

/* Admin modal */
.admin-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-modal-backdrop.open {
  display: flex;
}
.admin-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-modal h3 {
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}
.admin-modal p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.admin-pwd-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.admin-pwd-input:focus {
  border-color: var(--accent);
}
.admin-modal-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.btn-admin-cancel {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
}
.btn-admin-confirm {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #e50914;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}
.btn-admin-confirm:hover {
  opacity: 0.85;
}

/* Footer */
footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 40px clamp(12px, 4vw, 48px) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}
.footer-brand .logo-text {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(232, 234, 240, 0.6);
  transition: color 0.2s;
  cursor: pointer;
}
.footer-col ul li a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}
.footer-bottom span {
  color: var(--accent);
}

/* Scroll-to-top button */
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 50;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s,
    transform 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: all;
}
#scrollTopBtn:hover {
  transform: translateY(-3px) scale(1.05);
}
#scrollTopBtn svg.progress-ring {
  position: absolute;
  inset: 0;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}
#scrollTopBg {
  fill: rgba(8, 11, 18, 0.88);
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1.5;
}
#scrollTrack {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}
#scrollProgress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}
.scroll-arrow-icon {
  position: relative;
  z-index: 1;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Utilities */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fadeUp 0.5s ease forwards;
}
.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.btn-show-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 32px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(232, 160, 32, 0.08);
  border: 1px solid rgba(232, 160, 32, 0.3);
  transition:
    background 0.2s,
    transform 0.15s;
  font-family: inherit;
}
.btn-show-more:hover {
  background: rgba(232, 160, 32, 0.16);
  transform: translateY(-1px);
}
.btn-show-more:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}
.no-results svg {
  margin: 0 auto 14px;
  opacity: 0.35;
}
.no-results strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* Mobile responsive, max 768px */
@media (max-width: 768px) {
  .nav-links,
  .search-bar {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
  .movies-grid {
    grid-template-columns: repeat(
      auto-fill,
      minmax(clamp(100px, 28vw, 140px), 1fr)
    );
    gap: 10px;
  }
  .hero-content {
    padding: 22px 16px;
  }
  .hero-overview {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .detail-body {
    padding: 20px 16px 50px !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .detail-body > div:first-child {
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }
  .detail-sidebar {
    order: -1;
    display: grid !important;
    grid-template-columns: 120px 1fr !important;
    gap: 14px;
    align-items: start;
    width: 100%;
  }
  .detail-poster-wrap {
    margin-bottom: 0 !important;
    width: 120px;
  }
  .download-section h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  .dl-option {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .dl-option-info {
    width: 100%;
  }
  .dl-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 10px;
  }
  .detail-hero {
    height: clamp(260px, 60vw, 380px);
  }
  .detail-hero-content {
    padding: 48px 16px 20px !important;
    max-width: 100%;
  }
  .detail-title {
    font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
    line-height: 1.1 !important;
  }
  .detail-action-row {
    gap: 7px;
    flex-wrap: wrap;
  }
  .btn-hero {
    padding: 9px 14px !important;
    font-size: 0.82rem !important;
  }
  #detailPlayerSection {
    margin-bottom: 20px;
  }
  .detail-player-hint {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 10px 12px;
  }
  .detail-overview-full {
    font-size: 0.88rem;
    line-height: 1.65;
    word-break: break-word;
  }
  .detail-genre-tags {
    gap: 5px;
    flex-wrap: wrap;
  }
  .cast-section {
    margin-top: 24px;
    padding-top: 20px;
    width: 100%;
    overflow: hidden;
  }
  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
  }
  .more-like-section {
    margin-top: 24px;
    padding-top: 20px;
    overflow: hidden;
  }
  .more-like-scroll {
    overflow-x: auto;
    margin: 0;
  }
  .more-like-card {
    width: 108px !important;
  }
  .share-section {
    padding: 14px;
    margin-top: 24px;
  }
  .share-buttons {
    gap: 6px;
    flex-wrap: wrap;
  }
  .share-btn {
    font-size: 0.72rem !important;
    padding: 7px 10px !important;
  }
  .comments-section {
    margin-top: 28px;
    padding-top: 24px;
    overflow: hidden;
  }
  .comment-form {
    padding: 14px;
  }
  .comment-form-row {
    flex-direction: column;
  }
  .comment-name-input {
    width: 100% !important;
  }
  .captcha-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .comment-footer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .btn-submit-comment {
    width: 100%;
    text-align: center;
  }
  .season-selector {
    flex-wrap: wrap;
  }
  .ep-grid {
    gap: 5px;
  }
  .ep-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.75rem !important;
  }
  .filter-bar {
    gap: 6px;
  }
  .filter-select {
    min-width: 100px;
  }
  .detail-skeleton-hero {
    height: clamp(200px, 55vw, 320px);
  }
  .detail-skeleton-body {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .detail-sidebar {
    grid-template-columns: 100px 1fr !important;
    gap: 10px;
  }
  .detail-poster-wrap {
    width: 100px !important;
  }
  .more-like-card {
    width: 98px !important;
  }
  .cast-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 7px !important;
  }
  .detail-title {
    font-size: clamp(1.2rem, 5vw, 1.7rem) !important;
  }
  .btn-hero {
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
  }
  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .card-title {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  :root {
    --nav-h: 56px;
  }
  .movies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .card-title {
    font-size: 0.7rem;
  }
  .cast-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (min-width: 1600px) {
  main {
    max-width: 1500px;
    margin: 0 auto;
  }
}

/* No-JavaScript skeleton fallback */
/* .noscript-shell lives inside <noscript> so it only exists in the DOM
   when JS is disabled — no JS-side hiding needed, just show it. */
.noscript-shell {
  display: block;
}

/* Noscript nav */
.noscript-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(12px, 4vw, 48px);
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.noscript-nav-links {
  display: flex;
  gap: 4px;
  margin-left: 18px;
}
.noscript-nav-links span {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--muted);
}
.noscript-nav-links span:first-child {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.noscript-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.noscript-nav-search {
  width: clamp(140px, 22vw, 280px);
  height: 34px;
  border-radius: 8px;
}
.noscript-nav-btn {
  width: 82px;
  height: 34px;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .noscript-nav-links,
  .noscript-nav-search {
    display: none;
  }
}

.noscript-hero {
  margin-top: var(--nav-h);
  height: clamp(360px, 62vw, 640px);
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.noscript-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 11, 18, 0.96) 0%,
      rgba(8, 11, 18, 0.5) 60%,
      transparent 100%
    ),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%);
}
.noscript-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 6vw, 70px) clamp(16px, 5vw, 80px);
  max-width: 560px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.noscript-hero-badge {
  width: 90px;
  height: 22px;
  border-radius: 20px;
}
.noscript-hero-title {
  height: clamp(52px, 8vw, 80px);
  width: 70%;
  border-radius: 8px;
}
.noscript-hero-title-sub {
  height: clamp(36px, 5vw, 52px);
  width: 45%;
  border-radius: 8px;
}
.noscript-hero-meta {
  display: flex;
  gap: 10px;
}
.noscript-hero-meta span {
  height: 14px;
  border-radius: 6px;
}
.noscript-hero-overview-1 {
  height: 14px;
  width: 100%;
  border-radius: 6px;
}
.noscript-hero-overview-2 {
  height: 14px;
  width: 85%;
  border-radius: 6px;
}
.noscript-hero-overview-3 {
  height: 14px;
  width: 60%;
  border-radius: 6px;
}
.noscript-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.noscript-hero-btn {
  height: 40px;
  border-radius: 8px;
}

.noscript-main {
  padding: 0 clamp(12px, 4vw, 48px) 60px;
}
.noscript-section {
  margin-top: 80px;
}
.noscript-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.noscript-section-title {
  height: 28px;
  width: 200px;
  border-radius: 6px;
}
.noscript-see-all {
  height: 28px;
  width: 64px;
  border-radius: 6px;
}
.noscript-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.noscript-pill {
  height: 32px;
  border-radius: 20px;
}
.noscript-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(clamp(120px, 23vw, 160px), 1fr)
  );
  gap: clamp(10px, 2vw, 18px);
}
.noscript-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.noscript-card-poster {
  aspect-ratio: 2/3;
  border-radius: var(--radius) var(--radius) 0 0;
}
.noscript-card-info {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card);
}
.noscript-card-title {
  height: 13px;
  width: 80%;
  border-radius: 4px;
}
.noscript-card-meta {
  height: 11px;
  width: 50%;
  border-radius: 4px;
}

.noscript-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(232, 160, 32, 0.08);
  border: 1px solid rgba(232, 160, 32, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 32px 0 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}
.noscript-notice svg {
  flex-shrink: 0;
  color: var(--accent);
}
.noscript-notice strong {
  color: var(--accent);
}

@media (max-width: 768px) {
  .noscript-grid {
    grid-template-columns: repeat(
      auto-fill,
      minmax(clamp(100px, 28vw, 140px), 1fr)
    );
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .noscript-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}
@media (min-width: 1200px) {
  .noscript-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
@media (min-width: 1600px) {
  .noscript-main {
    max-width: 1500px;
    margin: 0 auto;
  }
}
