/* PutZX TV - Shared Theme (Dark default + Light toggle) */

:root {
  --orange: #FF6B00;
  --orange-soft: #FF8A33;
  --bg: #0b0d12;
  --surface: #141820;
  --ink: #f3f4f6;
  --muted: #9ca3af;
  --line: rgba(255,255,255,0.08);
  --soft: #1a1f2a;
  --header-bg: rgba(11, 13, 18, 0.92);
  --card-border: rgba(255,255,255,0.06);
  --nav-bg: rgba(20, 24, 32, 0.96);
  --nav-border: rgba(255,255,255,0.08);
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.35);
  --grid-line: rgba(148, 163, 184, 0.07);
  --icon: #d1d5db;
  --search-bg: #10141c;
  --search-panel: rgba(20, 24, 32, 0.98);
  --result-bg: #10141c;
  --result-hover: rgba(255,107,0,0.10);
  --badge-drama-bg: rgba(255,255,255,0.08);
  --badge-drama-color: #d1d5db;
  --slider-btn-bg: rgba(20,24,32,0.95);
  --accent: #FF6B00;
}

html[data-theme="light"] {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f3f4f8;
  --header-bg: rgba(247, 248, 252, 0.96);
  --card-border: rgba(255,255,255,0.7);
  --nav-bg: rgba(255,255,255,0.95);
  --nav-border: rgba(229,231,235,0.95);
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.08);
  --grid-line: rgba(148, 163, 184, 0.08);
  --icon: #374151;
  --search-bg: #f9fafb;
  --search-panel: rgba(255,255,255,0.96);
  --result-bg: #f9fafb;
  --result-hover: #fff7ed;
  --badge-drama-bg: #e5e7eb;
  --badge-drama-color: #4b5563;
  --slider-btn-bg: rgba(255,255,255,0.95);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, textarea { user-select: text; }
* { user-select: none; }
input, textarea, [contenteditable] { user-select: text; }

/* Soft grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Thin short orange lightning cross (+) */
.grid-cross {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.grid-cross .cross-h,
.grid-cross .cross-v {
  position: absolute;
  opacity: 0;
  will-change: opacity, transform;
}
.grid-cross .cross-h {
  left: 50%;
  top: 40%;
  width: min(220px, 42vw);
  height: 1px;
  margin-left: calc(min(220px, 42vw) / -2);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 107, 0, 0.0) 15%,
    rgba(255, 107, 0, 0.22) 45%,
    rgba(255, 138, 51, 0.38) 50%,
    rgba(255, 107, 0, 0.22) 55%,
    rgba(255, 107, 0, 0.0) 85%,
    transparent 100%
  );
  animation: crossFlashH 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.grid-cross .cross-v {
  top: 50%;
  left: 56%;
  height: min(180px, 34vh);
  width: 1px;
  margin-top: calc(min(180px, 34vh) / -2);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 107, 0, 0.0) 15%,
    rgba(255, 107, 0, 0.22) 45%,
    rgba(255, 138, 51, 0.38) 50%,
    rgba(255, 107, 0, 0.22) 55%,
    rgba(255, 107, 0, 0.0) 85%,
    transparent 100%
  );
  animation: crossFlashV 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 0.12s;
}
.grid-cross .cross-h.delay { top: 72%; left: 38%; animation-delay: 4.5s; }
.grid-cross .cross-v.delay { left: 30%; top: 58%; animation-delay: 4.62s; }

@keyframes crossFlashH {
  0%, 12%, 100% { opacity: 0; transform: scaleX(0.2); }
  16% { opacity: 0.55; transform: scaleX(1); }
  22% { opacity: 0.18; transform: scaleX(1); }
  28%, 100% { opacity: 0; transform: scaleX(1); }
}
@keyframes crossFlashV {
  0%, 12%, 100% { opacity: 0; transform: scaleY(0.2); }
  16% { opacity: 0.55; transform: scaleY(1); }
  22% { opacity: 0.18; transform: scaleY(1); }
  28%, 100% { opacity: 0; transform: scaleY(1); }
}

/* Page shell */
.page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 100px;
}
@media (min-width: 768px) {
  .page { max-width: 980px; padding-bottom: 24px; }
}
@media (min-width: 1100px) {
  .page { max-width: 1200px; }
}
@media (min-width: 1440px) {
  .page { max-width: 1320px; }
}


/* Header - full viewport width, flush left/right */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 10px 14px;
  background: var(--header-bg);
  border-bottom: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  margin: 0;
  padding: 0;
}
.brand img {
  height: auto;
  width: 100px;
  max-width: none;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s ease;
  margin: 0;
  padding: 0;
}
.icon-btn:hover { background: rgba(255,107,0,0.10); color: var(--orange); }
.icon-btn .material-symbols-outlined { font-size: 22px; }
html[data-theme="light"] .icon-btn:hover { background: rgba(17,24,39,0.05); color: var(--ink); }

/* Tabs - desktop only (mobile uses bottom nav) */
.tab-wrap {
  display: none;
  padding: 10px 16px 12px;
}
.tab-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-link {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  transition: 0.15s ease;
}
.tab-link:hover {
  color: var(--ink);
  background: rgba(255,107,0,0.08);
}
.tab-link.active {
  color: #fff;
  background: var(--orange);
}
@media (min-width: 768px) {
  .tab-wrap { display: block; }
  .site-header { padding: 14px 20px; }
  .brand img { height: 38px; max-width: 180px; }
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn .material-symbols-outlined { font-size: 24px; }
  .tab-wrap { padding: 12px 20px 14px; }
  .tab-link { font-size: 14px; padding: 9px 16px; }
}


/* Hero - full width banner, no bubble */
.hero {
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  min-height: 340px;
  background: #111;
  box-shadow: none;
}
.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Soft top + bottom fade so hero blends into page bg */
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      var(--bg) 0%,
      rgba(11, 13, 18, 0.55) 6%,
      rgba(11, 13, 18, 0.12) 18%,
      rgba(11, 13, 18, 0.04) 38%,
      rgba(11, 13, 18, 0.18) 62%,
      rgba(11, 13, 18, 0.62) 84%,
      var(--bg) 100%
    ),
    linear-gradient(
      90deg,
      rgba(11, 13, 18, 0.42) 0%,
      rgba(11, 13, 18, 0.06) 28%,
      rgba(11, 13, 18, 0.0) 55%,
      rgba(11, 13, 18, 0.12) 100%
    );
}
/* Light mode: much softer fade so image stays visible */
html[data-theme="light"] .hero-shade {
  background:
    linear-gradient(
      180deg,
      rgba(247, 248, 252, 0.55) 0%,
      rgba(247, 248, 252, 0.22) 10%,
      rgba(247, 248, 252, 0.06) 24%,
      rgba(15, 23, 42, 0.04) 48%,
      rgba(15, 23, 42, 0.16) 72%,
      rgba(247, 248, 252, 0.42) 90%,
      rgba(247, 248, 252, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.14) 0%,
      rgba(15, 23, 42, 0.03) 30%,
      rgba(15, 23, 42, 0.0) 55%,
      rgba(15, 23, 42, 0.05) 100%
    );
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 16px 30px;
  max-width: 1120px;
  margin: 0 auto;
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #7c2d12;
  background: rgba(255,255,255,0.92);
}
.hero-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-desc {
  margin: 0 0 16px;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  line-height: 1.5;
  max-width: 420px;
}
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: var(--orange);
  transition: 0.15s ease;
}
.btn-play:hover { background: #e85f00; }
.btn-play .material-symbols-outlined { font-size: 20px; }

/* Content */
.content { padding: 20px 16px 0; }
.section { margin-top: 24px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-head a {
  color: var(--orange);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.section-head a:hover { text-decoration: underline; }

/* Slider */
.slider-section { position: relative; }
.slider-container { position: relative; }
.grid-cards-slider,
.scroll-x-sm {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.grid-cards-slider::-webkit-scrollbar,
.scroll-x-sm::-webkit-scrollbar { display: none; }

.grid-cards-slider > .card-item {
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: calc((100% - 24px) / 3);
  max-width: calc((100% - 24px) / 3);
  scroll-snap-align: start;
}
.scroll-x-sm > .card-item {
  flex: 0 0 118px;
  min-width: 118px;
  scroll-snap-align: start;
}

.slider-btn {
  display: none;
  position: absolute;
  top: 36%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--slider-btn-bg);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}
.slider-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.slider-btn.prev { left: -4px; }
.slider-btn.next { right: -4px; }

/* Cards */
.card-item {
  display: block;
  text-decoration: none;
  color: inherit;
  /* no hover lift/zoom – keep natural feel */
  transition: opacity 0.15s ease;
}
.card-item:hover,
.card-item:focus,
.card-item:active {
  transform: none;
  opacity: 0.92;
}
.card-thumb-uniform {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
}
.card-thumb-uniform img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* no zoom on hover/click */
  transform: none !important;
  transition: none;
}
.card-item:hover .card-thumb-uniform img,
.card-item:focus .card-thumb-uniform img,
.card-item:active .card-thumb-uniform img {
  transform: none !important;
}
/* Rating badge – top right */
.ep-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  left: auto;
  bottom: auto;
  z-index: 3;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: var(--orange);
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
/* Year badge – bottom left (avoids clash with rating) */
.mv-year-badge {
  position: absolute;
  top: auto;
  left: 6px;
  right: auto;
  bottom: 6px;
  z-index: 3;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: rgba(0,0,0,0.72);
  white-space: nowrap;
  pointer-events: none;
}

.card-title-uniform {
  margin: 8px 2px 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Small cards (continue watching) */
.card-sm { display: block; text-decoration: none; color: inherit; transition: opacity 0.15s; }
.card-sm:hover { opacity: 0.85; }
.card-thumb-sm {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft);
  position: relative;
  border: 1px solid var(--card-border);
}
.card-thumb-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-title-sm {
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
}

/* Lainnya */
.lainnya-btn {
  display: block;
  width: min(280px, 100%);
  margin: 28px auto 0;
  padding: 12px 0;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  background: var(--orange);
  transition: 0.15s ease;
}
.lainnya-btn:hover { background: #e85f00; }

/* Footer */
.site-footer {
  margin-top: 28px;
  padding: 18px 8px 8px;
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Bottom nav - floating bubble (mobile only) */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 80;
  width: min(360px, calc(100% - 28px));
  display: flex;
  gap: 4px;
  padding: 8px;
  border-radius: 22px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  transition: 0.15s ease;
}
.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.bottom-nav-item.active {
  color: var(--orange);
  background: rgba(255,107,0,0.12);
}
.bottom-nav-item:hover { color: var(--ink); }

@media (min-width: 768px) {
  .bottom-nav { display: none !important; }
  .page { padding-bottom: 24px; }
}

/* Search modal */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 16px;
  overflow-y: auto;
}
html[data-theme="light"] .search-modal {
  background: rgba(15, 23, 42, 0.28);
}
.search-panel {
  max-width: 520px;
  margin: 36px auto 0;
  border-radius: 22px;
  padding: 16px;
  background: var(--search-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.search-field {
  flex: 1;
  position: relative;
}
.search-field input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--search-bg);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: 0.2s ease;
}
.search-field input:focus {
  border-color: rgba(255,107,0,0.55);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
  background: var(--surface);
}
.search-field .search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
  pointer-events: none;
}
.search-close {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.search-close:hover { color: var(--ink); }
#search-results { display: flex; flex-direction: column; gap: 8px; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--result-bg);
  border: 1px solid transparent;
  transition: 0.2s ease;
}
.search-result-item:hover {
  background: var(--result-hover);
  border-color: rgba(255,107,0,0.18);
}
.search-result-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.badge-type {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}
.badge-movie { background: var(--orange); color: #fff; }
.badge-drama { background: var(--badge-drama-bg); color: var(--badge-drama-color); }

/* Sport match cards (shared) */
.sport-slider-wrap { position: relative; }
.sport-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 14px;
  padding: 0 0 12px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.sport-scroll::-webkit-scrollbar { display: none; }
.sport-card {
  flex: 0 0 260px;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px 12px;
  scroll-snap-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .15s;
}
.sport-card:hover { border-color: var(--orange); }
.sport-card .sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sport-card .sc-status {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .3px;
}
.sport-card .sc-status.live {
  background: var(--orange);
  color: #fff;
  animation: pulse-live 1.5s infinite;
}
.sport-card .sc-status.upcoming { background: var(--soft); color: var(--muted); }
.sport-card .sc-status.ended { background: var(--soft); color: var(--muted); }
.sport-card .sc-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sport-card .sc-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.sport-card .sc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.sport-card .sc-name {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  max-width: 90px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sport-card .sc-vs {
  font-size: 18px;
  font-weight: 800;
  color: var(--muted);
  padding: 0 6px;
}
.sport-card .sc-time {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 2px;
}
@keyframes pulse-live { 0%,100%{opacity:1} 50%{opacity:.6} }

.sport-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--slider-btn-bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.sport-btn:hover { color: #fff; border-color: var(--orange); background: var(--orange); }
.sport-btn.prev { left: 4px; }
.sport-btn.next { right: 4px; }

/* Sports page specific */
.sport-pills {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sport-pills::-webkit-scrollbar { display: none; }
.sport-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.sport-pill.active {
  background: rgba(255,107,0,0.15);
  color: var(--orange);
  border-color: rgba(255,107,0,0.3);
}
.sport-pill:hover { color: var(--ink); }

.sports-hero {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,107,0,0.10) 0%, transparent 100%);
}
.sports-hero h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.sports-hero p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.sports-hero .hero-stats { display: flex; gap: 24px; margin-top: 8px; }
.sports-hero .hero-stat { text-align: center; }
.sports-hero .hero-stat-num { font-size: 22px; font-weight: 800; color: var(--orange); }
.sports-hero .hero-stat-label { font-size: 11px; color: var(--muted); }

.match-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 16px;
}
.match-card {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.match-card:hover { border-color: rgba(255,107,0,0.35); transform: translateY(-1px); }
.match-card.live { border-left: 3px solid var(--orange); }
.match-card .mc-left,
.match-card .mc-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 80px;
  min-width: 80px;
}
.match-card .mc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  border: 2px solid var(--line);
}
.match-card .mc-team-name {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  max-width: 70px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.match-card .mc-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.match-card .mc-league {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.match-card .mc-score { display: flex; align-items: center; gap: 8px; }
.match-card .mc-score-num { font-size: 24px; font-weight: 800; color: var(--ink); }
.match-card .mc-vs { font-size: 14px; font-weight: 700; color: var(--muted); }
.match-card .mc-time { font-size: 11px; color: var(--muted); }
.match-card .mc-status {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.match-card .mc-status.live {
  background: var(--orange);
  color: #fff;
  animation: pulse-live 1.5s infinite;
}
.match-card .mc-status.upcoming { background: var(--soft); color: var(--muted); }
.match-card .mc-status.ended { background: var(--soft); color: var(--muted); }

.match-slider-wrap { position: relative; }
.match-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding: 0 0 14px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.match-scroll::-webkit-scrollbar { display: none; }
.match-scroll-card {
  flex: 0 0 260px;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px 12px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.match-scroll-card:hover { border-color: rgba(255,107,0,0.35); }
.match-scroll-card .msc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.match-scroll-card .msc-league {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-scroll-card .msc-status {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .3px;
}
.match-scroll-card .msc-status.live {
  background: var(--orange);
  color: #fff;
  animation: pulse-live 1.5s infinite;
}
.match-scroll-card .msc-status.upcoming { background: var(--soft); color: var(--muted); }
.match-scroll-card .msc-status.ended { background: var(--soft); color: var(--muted); }
.match-scroll-card .msc-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.match-scroll-card .msc-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.match-scroll-card .msc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.match-scroll-card .msc-name {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  max-width: 90px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.match-scroll-card .msc-vs {
  font-size: 18px;
  font-weight: 800;
  color: var(--muted);
  padding: 0 6px;
}
.match-scroll-card .msc-time {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
}
.empty-state p { font-size: 14px; color: var(--muted); margin: 0; }

/* Category pages */
.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 0 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.filter-tab:hover { color: var(--ink); border-color: rgba(255,107,0,0.3); }
.filter-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.grid-movies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .grid-movies { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 768px) { .grid-movies { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .grid-movies { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
@media (min-width: 1280px) { .grid-movies { grid-template-columns: repeat(6, 1fr); gap: 22px; } }
.page-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-meta {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.subcategory-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.subcategory-info strong { color: var(--ink); }
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px 0 8px;
}
.pagination a {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination span { color: var(--muted); font-size: 14px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--ink); }
.search-bar {
  display: flex;
  gap: 8px;
  padding: 0 0 16px;
}
.search-bar input {
  flex: 1;
  padding: 12px 16px;
  background: var(--search-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.search-bar input:focus {
  border-color: rgba(255,107,0,0.55);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}
.search-bar button {
  padding: 12px 20px;
  background: var(--orange);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.search-bar button:hover { background: #e85f00; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 0; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--soft); border-radius: 2px; }


/* Responsive */
@media (min-width: 640px) {
  .hero-card, .hero-content { min-height: min(52vh, 480px); }
  /* ~4 cards visible – larger than before */
  .grid-cards-slider > .card-item {
    flex: 0 0 calc((100% - 36px) / 4);
    min-width: calc((100% - 36px) / 4);
    max-width: calc((100% - 36px) / 4);
  }
  .scroll-x-sm > .card-item {
    flex: 0 0 148px;
    min-width: 148px;
  }
  .card-title-uniform { font-size: 13px; }
  .ep-badge, .mv-year-badge { font-size: 11px; padding: 4px 7px; }
}
@media (min-width: 768px) {
  .sport-btn { display: flex; }
  .sport-slider-wrap { padding: 0 44px; }
  .match-slider-wrap { padding: 0 44px; }
  .match-slider-wrap .slider-btn { display: flex; }
  /* Desktop banner taller so image fills like mobile */
  .hero-card, .hero-content {
    min-height: min(62vh, 620px);
  }
  .hero-content { padding: 40px 24px 44px; }
  .hero-title {
    font-size: clamp(28px, 3.4vw, 42px);
    text-shadow: 0 2px 18px rgba(0,0,0,0.45);
  }
  .hero-desc {
    font-size: 15px;
    max-width: 540px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.35);
  }
  /* ~5 cards – bigger posters on tablet/desktop */
  .grid-cards-slider > .card-item {
    flex: 0 0 calc((100% - 48px) / 5);
    min-width: calc((100% - 48px) / 5);
    max-width: calc((100% - 48px) / 5);
  }
  .scroll-x-sm > .card-item {
    flex: 0 0 160px;
    min-width: 160px;
  }
}
@media (min-width: 1024px) {
  .site-header { padding: 16px 24px; }
  .brand img { height: 44px; width: auto; max-width: 220px; }
  .icon-btn { width: 42px; height: 42px; }
  .icon-btn .material-symbols-outlined { font-size: 26px; }
  .tab-wrap { padding: 14px 24px 16px; }
  .tab-link { font-size: 15px; padding: 10px 18px; }
  .hero-card, .hero-content {
    min-height: min(68vh, 720px);
  }
  .hero-content { padding: 48px 28px 52px; }
  .hero-title { font-size: clamp(32px, 3.6vw, 46px); }
  .hero-desc { font-size: 16px; max-width: 560px; }
  .content { padding: 24px 20px 0; }
  .slider-btn { display: flex; }
  .slider-container { padding: 0 42px; }
  .grid-cards-slider {
    overflow-x: hidden;
    scroll-snap-type: none;
    gap: 18px;
  }
  /* 6 cards per row – larger than previous 10 */
  .grid-cards-slider > .card-item {
    flex: 0 0 calc((100% - 90px) / 6);
    min-width: calc((100% - 90px) / 6);
    max-width: calc((100% - 90px) / 6);
  }
  .scroll-x-sm > .card-item {
    flex: 0 0 168px;
    min-width: 168px;
  }
  .card-title-uniform { font-size: 13px; }
  .ep-badge {
    top: 8px;
    right: 8px;
    left: auto;
    bottom: auto;
    font-size: 11px;
    padding: 4px 8px;
  }
  .mv-year-badge {
    top: auto;
    right: auto;
    left: 8px;
    bottom: 8px;
    font-size: 11px;
    padding: 4px 8px;
  }
}
@media (min-width: 1280px) {
  /* 6 cards still – keep posters large on wide screens */
  .grid-cards-slider > .card-item {
    flex: 0 0 calc((100% - 90px) / 6);
    min-width: calc((100% - 90px) / 6);
    max-width: calc((100% - 90px) / 6);
  }
}
@media (min-width: 1440px) {
  .hero-card, .hero-content {
    min-height: min(72vh, 780px);
  }
  /* 7 cards max on ultra-wide – still larger than old 10-up */
  .grid-cards-slider > .card-item {
    flex: 0 0 calc((100% - 108px) / 7);
    min-width: calc((100% - 108px) / 7);
    max-width: calc((100% - 108px) / 7);
  }
}




@media (max-width: 767px) {
  .sport-card { flex: 0 0 210px; min-width: 210px; padding: 10px 8px; }
  .sport-card .sc-avatar { width: 28px; height: 28px; }
  .sport-card .sc-vs { font-size: 15px; }
  .sport-card .sc-name { font-size: 10px; max-width: 72px; }
  .match-scroll-card { flex: 0 0 210px; min-width: 210px; padding: 10px 8px; }
  .match-scroll-card .msc-avatar { width: 28px; height: 28px; }
  .match-scroll-card .msc-vs { font-size: 15px; }
  .match-scroll-card .msc-name { font-size: 10px; max-width: 72px; }
  .match-card { padding: 12px; }
  .match-card .mc-avatar { width: 32px; height: 32px; }
  .match-card .mc-score-num { font-size: 20px; }
  .sports-hero { height: 170px; }
  .sports-hero h1 { font-size: 22px; }
}
@media (max-width: 380px) {
  .grid-cards-slider > .card-item {
    flex: 0 0 calc((100% - 12px) / 2.15);
    min-width: calc((100% - 12px) / 2.15);
    max-width: calc((100% - 12px) / 2.15);
  }
}
