:root {
  --bg: #0c0d10;
  --surface: #14161b;
  --surface-2: #1c1f26;
  --bg-card: #1c1f26;
  --line: #262a33;
  --border: #262a33;

  --text: #eceef2;
  --text-secondary: #aab0bb;
  --text-muted: #737a87;

  --primary: #e50914;
  --color-primary: #e50914;
  --primary-dark: #b80710;
  --gold: #f5b50a;
  --blue: #2f6fe4;
  --green: #1fa65a;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --control-size: 44px;
  --nav-h: 60px;
  --bottom-nav-h: 58px;
  --maxw: 1280px;
  --gutter: 24px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

::selection {
  background: var(--primary);
  color: #fff;
}

.content-container,
.content-section {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.content-section {
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}
.btn-ghost,
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn-ghost:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text-secondary);
}
.btn-warning {
  background: var(--gold);
  color: #1a1400;
}
.btn-dark {
  background: var(--surface-2);
  color: var(--text-secondary);
}
.btn-dark.border-secondary {
  border-color: var(--line);
}
.btn-dark:hover {
  color: #fff;
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}
.badge-quality {
  background: var(--primary);
  color: #fff;
}
.badge-genre {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.badge.bg-primary {
  background: var(--blue);
  color: #fff;
}
.badge.bg-info {
  background: #0e8ea8;
  color: #fff;
}
.badge.bg-success {
  background: var(--green);
  color: #fff;
}

input[type="text"],
input[type="search"],
.form-control {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
input[type="text"]:focus,
input[type="search"]:focus,
.form-control:focus {
  border-color: #4a505d;
}
input::placeholder {
  color: var(--text-muted);
}

/* 3. Navbar — IDLIX style ------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 10, 13, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.navbar-container {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.navbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 28px;
}
.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.navbar-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  color: #b3b8c3;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  line-height: var(--nav-h);
  height: var(--nav-h);
  border-radius: 0;
  box-shadow: none !important;
}
.nav-link:hover {
  color: #fff;
}
.nav-link.active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--primary);
}

.nav-more-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-more-btn {
  font-family: var(--font);
  font-size: 14px;
  gap: 2px;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  padding: 6px;
  background: #16181e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 200;
  list-style: none;
  animation: dropFade 0.15s ease;
}
.nav-dropdown.open {
  display: block;
}
@keyframes dropFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-dropdown-item {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #b3b8c3;
  font-size: 13.5px;
  font-weight: 500;
  transition:
    background 0.12s,
    color 0.12s;
}
.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 6px;
}

.navbar-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}
.navbar-search {
  width: 250px;
  position: relative;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar-search:focus-within {
  width: 320px;
}
.search-wrapper {
  position: relative;
  width: 100%;
}
.search-wrapper input {
  width: 100%;
  height: 36px;
  padding: 0 38px 0 16px;
  font-size: 13.5px;
  font-family: inherit;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}
.search-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.search-wrapper input:focus {
  background: rgba(20, 24, 33, 0.95);
  border-color: rgba(229, 9, 20, 0.65);
  box-shadow:
    0 0 0 3px rgba(229, 9, 20, 0.18),
    inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.search-btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}
.search-btn:hover {
  color: #fff;
  transform: scale(1.08);
}

.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: 92vw;
  background: #13161f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow:
    0 20px 48px -6px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 99999;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: searchDropIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes searchDropIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.suggestion-header {
  padding: 10px 16px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.suggestion-list {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.suggestion-list::-webkit-scrollbar {
  width: 5px;
}
.suggestion-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  text-decoration: none;
  color: #f1f5f9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.suggestion-poster-box {
  position: relative;
  width: 44px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e2230;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}
.suggestion-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.suggestion-quality {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.75);
  color: #f59e0b;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.suggestion-body {
  flex: 1;
  min-width: 0;
}
.suggestion-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.35;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-item:hover .suggestion-title {
  color: #fff;
}
.suggestion-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #94a3b8;
}

.suggestion-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-film {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.badge-serial {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.suggestion-year {
  color: #cbd5e1;
}
.suggestion-rating {
  color: #fbbf24;
  font-weight: 600;
  font-size: 11px;
}

/* ── Suggestion Footer & States ── */
.suggestion-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #60a5fa;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.suggestion-footer:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #93c5fd;
}
.suggestion-footer svg {
  transition: transform 0.15s ease;
}
.suggestion-footer:hover svg {
  transform: translateX(3px);
}

.suggestion-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  font-size: 13px;
  color: #94a3b8;
}
.suggestion-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #e50914;
  border-radius: 50%;
  animation: searchSpin 0.7s linear infinite;
}
@keyframes searchSpin {
  to {
    transform: rotate(360deg);
  }
}

.suggestion-empty {
  padding: 24px 16px;
  text-align: center;
}
.suggestion-empty-icon {
  color: #475569;
  margin-bottom: 8px;
}
.suggestion-empty-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 3px;
}
.suggestion-empty-desc {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 768px) {
  .mobile-search-li .search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 9px;
  background: none;
  border: 0;
  margin-left: auto;
}
.navbar-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.navbar-toggle.active span:nth-child(1),
.navbar-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggle.active span:nth-child(2),
.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.active span:nth-child(3),
.navbar-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* titik merah penanda siaran langsung */
.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3347;
  flex-shrink: 0;
  display: inline-block;
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 51, 71, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(255, 51, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 51, 71, 0);
  }
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 66vh, 620px);
  background-color: var(--surface);
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center 20%;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(12, 13, 16, 0.92) 0%,
      rgba(12, 13, 16, 0.55) 45%,
      rgba(12, 13, 16, 0.1) 100%
    ),
    linear-gradient(0deg, var(--bg) 0%, rgba(12, 13, 16, 0) 38%);
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
}
.hero-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.hero-title {
  max-width: 640px;
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.hero-meta span:last-child:not(:first-child) {
  color: var(--gold);
  font-weight: 600;
}
.hero-synopsis {
  max-width: 540px;
  margin-top: 14px;
  color: #cfd3da;
  font-size: 14.5px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-indicators {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  display: flex;
  gap: 6px;
}
.hero-dot {
  width: 20px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition:
    width 0.25s,
    background-color 0.25s;
}
.hero-dot.active {
  width: 36px;
  background: var(--primary);
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.cat-pill:hover {
  color: #fff;
  border-color: #3a404c;
}
.cat-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.cat-icon,
.category-label {
  display: none;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.category-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}
.section-link:hover {
  color: #fff;
}
.section-divider {
  height: 1px;
  margin-top: 36px;
  background: var(--line);
}

.card-grid,
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 22px 14px;
}

.card,
.movie-card {
  display: block;
  min-width: 0;
}
.card-link {
  display: block;
}
.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
}
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-poster-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  background: var(--surface-2);
}
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.18s;
}
.card-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding-left: 3px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
}
.card:hover .card-overlay,
.card-link:focus-visible .card-overlay {
  opacity: 1;
}
.card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}
.card-badge-series {
  background: var(--blue);
}
.card-rating {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
}
.card-info {
  padding-top: 8px;
}
.card-title {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card:hover .card-title,
.movie-card:hover .card-title {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--primary);
}
.card-meta {
  margin-top: 2px;
  display: flex;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.card-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.catalog-slider-wrap {
  position: relative;
  width: 100%;
}
.catalog-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.catalog-slider::-webkit-scrollbar {
  display: none;
}
.catalog-slider .card {
  flex: 0 0 160px;
  width: 160px;
  min-width: 160px;
  max-width: 160px;
  scroll-snap-align: start;
  margin-bottom: 0;
}
button.slider-arrow,
.slider-arrow {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 8;
  width: 38px;
  height: 64px;
  background: rgba(12, 14, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  padding: 0;
}
.catalog-slider-wrap:hover button.slider-arrow,
.catalog-slider-wrap:hover .slider-arrow {
  opacity: 1;
}
button.slider-arrow:hover,
.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}
.slider-arrow-left {
  left: -12px;
}
.slider-arrow-right {
  right: -12px;
}
@media (max-width: 768px) {
  .catalog-slider {
    gap: 10px;
    padding-bottom: 10px;
  }
  .catalog-slider .card {
    flex: 0 0 132px;
    width: 132px;
    min-width: 132px;
    max-width: 132px;
  }
  .slider-arrow {
    display: none;
  }
}
.card-rank-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding-left: 34px;
}
.card-rank-wrapper .card {
  width: 148px;
  position: relative;
  z-index: 1;
}
.rank-number {
  position: absolute;
  left: 0;
  bottom: 36px;
  z-index: 0;
  font-size: 88px;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px #4a505d;
}

.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.genre-pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.genre-pill:hover {
  color: #fff;
  border-color: var(--primary);
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ad-placement {
  overflow: hidden;
}

.live-hero-header {
  margin-bottom: 24px;
}
.live-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #ff5566;
  font-size: 13px;
  font-weight: 600;
}
.live-hero-title {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.live-hero-desc {
  max-width: 560px;
  margin-top: 8px;
  color: var(--text-secondary);
}

.live-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.live-filter-tabs::-webkit-scrollbar {
  display: none;
}
.live-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.live-tab-btn:hover {
  color: #fff;
}
.live-tab-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.live-tab-btn.active .live-dot-pulse {
  animation: none;
}

.live-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.live-match-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.live-match-card.is-live {
  border-left: 3px solid var(--primary);
}
.live-match-card.is-finished {
  opacity: 0.8;
}
.live-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.live-comp-badge {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}
.pill-live {
  background: rgba(255, 51, 71, 0.14);
  color: #ff5566;
}
.pill-live-mini {
  padding: 1px 6px;
  font-size: 11px;
}
.pill-upcoming {
  background: rgba(47, 111, 228, 0.16);
  color: #7aa5f5;
}
.pill-finished {
  color: var(--text-muted);
}

.live-teams-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.live-team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}
.live-team-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}
.live-team-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.live-team-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 20px;
}
.live-team-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.live-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 78px;
}
.live-score-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.live-score-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.live-score-sep {
  color: var(--text-muted);
}
.live-vs-text {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.live-match-time-label {
  color: var(--text-muted);
  font-size: 11.5px;
  text-align: center;
}
.live-card-footer {
  margin-top: auto;
}

.live-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.live-channel-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.live-channel-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
}
.live-channel-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.live-channel-name {
  font-size: 14px;
  font-weight: 600;
}
.live-channel-type,
.live-channel-desc {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12.5px;
}
.live-empty-state {
  max-width: 460px;
  margin: 60px auto;
  text-align: center;
}
.live-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.live-empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.live-empty-state p {
  color: var(--text-secondary);
}

/* halaman siaran */
.live-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 13px;
}
.live-breadcrumb a:hover {
  color: #fff;
}
.bc-current {
  color: var(--text-secondary);
}
.live-player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}
.live-player-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.live-iframe-player,
.live-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.live-stream-offline {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: var(--surface);
}
.offline-icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.6;
}
.live-stream-offline h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.live-stream-offline p {
  color: var(--text-secondary);
  font-size: 14px;
}
.live-match-banner {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.banner-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 0 6px;
}
.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.team-logo-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 30px;
}
.team-logo-lg img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.team-name-lg {
  font-size: 15px;
  font-weight: 700;
}
.score-block-lg {
  text-align: center;
}
.score-display {
  display: flex;
  align-items: center;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.score-val {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}
.score-divider {
  color: var(--text-muted);
  font-size: 28px;
}
.vs-display {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
}
.kickoff-label {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}
.banner-channel-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 13px;
}
.meta-format {
  color: var(--text-muted);
}
.live-player-sidebar {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.sidebar-heading {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}
.sidebar-matches-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-match-item {
  display: block;
  padding: 10px;
  border-radius: 6px;
  background: var(--surface-2);
}
.sidebar-match-item:hover {
  background: #232731;
}
.sidebar-match-item.item-live {
  box-shadow: inset 3px 0 0 var(--primary);
}
.sidebar-item-header,
.sidebar-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-item-header {
  margin-bottom: 6px;
}
.sidebar-comp,
.sidebar-time,
.sidebar-vs {
  color: var(--text-muted);
  font-size: 12px;
}
.sidebar-team-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sidebar-team-name:last-child {
  text-align: right;
}
.sidebar-score {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sidebar-empty {
  color: var(--text-muted);
  font-size: 13px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #090a0d;
}
.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center 28%;
  opacity: 0.34;
  filter: saturate(0.8);
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.82) 46%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.82) 46%,
    transparent 100%
  );
}
.detail-container {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  max-width: var(--maxw);
  min-width: 0;
  margin: 0 auto;
  padding: 28px var(--gutter) 30px;
}
.detail-poster {
  grid-row: 1 / span 2;
  align-self: start;
  min-width: 0;
}
.detail-poster img,
.detail-poster .card-poster-placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
}
.detail-info {
  display: contents;
  min-width: 0;
}
.detail-info h1 {
  grid-column: 2;
  align-self: end;
  min-width: 0;
  max-width: 26ch;
  font-size: clamp(20px, 6vw, 28px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.detail-meta {
  grid-column: 2;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  min-width: 0;
  margin: 2px 0 0;
  color: #c1c4ca;
  font-size: 11px;
}
.detail-rating {
  color: var(--gold);
  font-weight: 700;
}
.detail-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 2px 0 0 !important;
}
.detail-synopsis-wrapper {
  grid-column: 1 / -1;
  max-width: 68ch;
  min-width: 0;
  margin-top: 6px;
}
.detail-synopsis {
  grid-column: 1 / -1;
  max-width: 68ch;
  min-width: 0;
  color: #d1d3d8;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  margin: 0;
}
.detail-synopsis.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.btn-synopsis-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--primary, #e50914);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
  transition:
    opacity 0.2s,
    color 0.2s;
}
.btn-synopsis-toggle:hover {
  text-decoration: underline;
  opacity: 0.9;
}
.detail-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-top: 4px;
}
.detail-actions .btn {
  display: inline-flex;
  flex: 1 1 150px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 12px;
  white-space: normal;
  text-align: center;
}
.detail-info > p {
  grid-column: 1 / -1;
  min-width: 0;
}
.detail-info .badge-quality {
  letter-spacing: 0.04em;
}
.movie-trailer-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  margin: 16px auto 28px;
  padding: 12px var(--gutter);
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: #111216;
}
.movie-trailer-card[hidden] {
  display: none !important;
}
.movie-trailer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 10px;
}
.movie-trailer-heading h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.movie-trailer-kicker {
  color: #a1a1aa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.movie-trailer-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #050506;
}
.movie-trailer-stage iframe,
.movie-trailer-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.movie-trailer-prompt {
  padding: 20px;
  color: #9b9ca2;
  font-size: 14px;
  text-align: center;
}
.movie-trailer-fallback-link {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.movie-trailer-fallback-link:hover {
  color: #fff;
  background: #e50914;
}
.movie-trailer-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 10px;
  padding: 9px 14px;
  border: 0;
  border-radius: 4px;
  background: #e50914;
  color: #fff;
  font-weight: 650;
}
.movie-trailer-play:hover {
  background: #b80710;
}
.detail-tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  position: relative;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.tab-btn:hover,
.tab-btn.active {
  color: #fff;
}
.tab-btn.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--primary);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.series-player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 12px;
}
.series-player-heading h3 {
  min-width: 0;
  color: #fff;
  font-size: clamp(15px, 2.5vw, 20px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.series-player-heading h3 span {
  color: var(--primary);
}
.series-player-navigation {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.series-player-navigation .btn {
  min-height: 44px;
}

@media (min-width: 400px) {
  .detail-container {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding-block: 32px;
  }
  .detail-info h1 {
    font-size: clamp(23px, 6vw, 32px);
  }
  .detail-meta {
    gap: 6px 11px;
    font-size: 12px;
  }
  .detail-synopsis {
    font-size: 14px;
  }
}
@media (min-width: 600px) {
  .detail-container {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 22px;
    padding-block: 42px;
  }
  .detail-info h1 {
    font-size: clamp(28px, 5vw, 40px);
  }
  .detail-meta {
    gap: 7px 14px;
    font-size: 12px;
  }
  .detail-synopsis {
    font-size: 14px;
    line-height: 1.7;
  }
  .detail-actions {
    grid-column: 2;
  }
  .movie-trailer-card {
    width: calc(100% - 2 * var(--gutter));
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
  }
}
@media (min-width: 768px) {
  .detail-container {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 48px);
    padding-block: 58px 44px;
  }
  .detail-info {
    display: block;
  }
  .detail-info h1 {
    max-width: 24ch;
    font-size: clamp(34px, 4vw, 48px);
  }
  .detail-meta {
    gap: 8px 16px;
    margin: 14px 0;
    font-size: 13px;
  }
  .detail-tags {
    margin-bottom: 14px !important;
  }
  .detail-synopsis {
    font-size: 15px;
  }
  .detail-actions {
    margin-top: 20px;
  }
  .detail-actions .btn {
    flex: 0 0 auto;
    min-width: 150px;
  }
  .detail-info > p {
    margin-top: 14px;
  }
}
@media (max-width: 767px) {
  .series-player-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .series-player-navigation {
    justify-content: flex-start;
  }
}
@media (min-width: 1024px) {
  .detail-container {
    grid-template-columns: 220px minmax(0, 1fr);
    padding-block: 72px 50px;
  }
}
@media (max-width: 360px) {
  .detail-container {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding-block: 22px 26px;
  }
  .detail-info h1 {
    font-size: 20px;
  }
  .detail-meta {
    font-size: 10px;
    gap: 4px 7px;
  }
  .detail-actions .btn {
    flex-basis: 100%;
  }
  .movie-trailer-heading {
    align-items: flex-start;
  }
  .movie-trailer-heading .btn {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 11px;
    white-space: normal;
  }
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 18px 12px;
}
.cast-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info-table {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.info-table th,
.info-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 140px;
  color: var(--text-muted);
  font-weight: 500;
}

.season-tabs {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.season-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.season-tab:hover {
  color: #fff;
}
.season-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.episode-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 8px;
  border-radius: 6px;
  background: var(--surface);
}
.episode-item:hover {
  background: var(--surface-2);
}
.episode-item.active {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--primary);
}
.episode-thumb {
  flex-shrink: 0;
  width: 128px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
}
.episode-num {
  flex-shrink: 0;
  min-width: 24px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.episode-info {
  min-width: 0;
}
.episode-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.episode-meta {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--gutter);
}
.footer-logo {
  font-size: 18px;
  font-weight: 800;
}
.footer-desc {
  max-width: 340px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}
.footer-col li + li {
  margin-top: 8px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 13px;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  padding: 16px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: center;
}

.mobile-bottom-nav {
  display: none;
}

.d-flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.align-items-center {
  align-items: center;
}
.gap-2 {
  gap: 8px;
}
.mb-3 {
  margin-bottom: 12px;
}
.me-1 {
  margin-right: 4px;
}
.my-4 {
  margin-top: 24px;
  margin-bottom: 24px;
}
/* 10. Responsif ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .navbar-search {
    width: 200px;
  }
  .live-player-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 14px;
    --nav-h: 54px;
  }
  body {
    padding-bottom: calc(
      var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)
    );
  }

  .navbar-right {
    gap: 0;
  }
  .navbar-search {
    display: none;
  }
  .navbar-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    padding-inline: 11px;
  }
  .navbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--nav-h) - var(--bottom-nav-h));
    padding: 8px var(--gutter) 12px;
    overflow-y: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #12141a;
  }
  .navbar-nav.open,
  .navbar-nav.active,
  .navbar-nav.show {
    display: flex;
  }
  .mobile-search-li {
    display: block !important;
  }
  .nav-link {
    padding: 11px 4px;
    height: auto;
    line-height: 1.5;
    border-bottom: none;
    border-radius: 4px;
  }
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
  }
  .nav-link.active {
    border-bottom: none;
    color: var(--primary);
  }
  .nav-more-wrap {
    width: 100%;
  }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    margin-top: 4px;
    animation: none;
  }

  .hero {
    min-height: 400px;
    background-position: center top;
  }
  .hero-overlay {
    background: linear-gradient(
      0deg,
      var(--bg) 4%,
      rgba(12, 13, 16, 0.6) 55%,
      rgba(12, 13, 16, 0.2) 100%
    );
  }
  .hero-content {
    padding-bottom: 40px;
  }
  .hero-synopsis {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-indicators {
    left: var(--gutter);
    right: auto;
    bottom: 16px;
  }

  .content-section {
    margin-top: 28px;
  }
  .section-title {
    font-size: 17px;
  }
  .card-grid,
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
  }
  .card-title {
    font-size: 12.5px;
  }
  .card-overlay {
    display: none;
  }
  .card-rank-wrapper .card {
    width: 112px;
  }
  .card-rank-wrapper {
    padding-left: 26px;
  }
  .rank-number {
    font-size: 68px;
    bottom: 30px;
  }

  .live-match-grid,
  .live-channel-grid {
    grid-template-columns: 1fr;
  }
  .score-val {
    font-size: 32px;
  }

  .footer {
    margin-top: 40px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--line);
    background: rgba(20, 22, 27, 0.97);
  }
  .bottom-nav-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 11px;
  }
  .bottom-nav-item.active {
    color: #fff;
  }
  .bottom-nav-item.active svg {
    color: var(--primary);
  }
}

@media (max-width: 360px) {
  .card-grid,
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.yx-embed-loading-state {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: radial-gradient(circle at center, #11141c 0%, #07090e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.yx-embed-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}
.yx-embed-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #e50914;
  border-radius: 50%;
  animation: yxSpin 0.85s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
  margin-bottom: 14px;
}
.yx-embed-loader-title {
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
}
.yx-embed-loader-desc {
  color: #8c93a0;
  font-size: 12px;
}
@keyframes yxSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
