@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #05080f;
  --bg2: #0a0e17;
  --bg3: #121826;
  --bg4: #1a2233;
  --accent: #e50914;
  --accent2: #ff2b37;
  --gold: #f5c518;
  --text: #ffffff;
  --text2: #b0b3b8;
  --text3: #7b7f87;
  --border: rgba(255, 255, 255, 0.08);
  --card-radius: 12px;
  --nav-h: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg2);
}

::-webkit-scrollbar-thumb {
  background: var(--bg4);
  border-radius: 2px;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: linear-gradient(to bottom, rgba(5, 8, 15, 0.95) 0%, transparent 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  background: rgba(5, 8, 15, 0.8);
  backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 64px;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  color: var(--accent);
}

.nav-logo span {
  color: #fff;
  margin-left: 8px;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a svg {
  opacity: 0.6;
  transition: opacity 0.3s;
}

.nav-links a:hover svg,
.nav-links a.active svg {
  opacity: 1;
  color: var(--accent);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-badge {
  position: absolute;
  top: -12px;
  right: -15px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  animation: pulse 1s infinite;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-search-btn {
  background: none;
  border: none;
  color: var(--text2);
  padding: 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-search-btn:hover {
  color: var(--text);
  background: var(--bg3);
}

@media (max-width: 480px) {
  .nav-surprise-btn {
    display: none;
  }
}

.nav-search-btn svg {
  width: 18px;
  height: 18px;
}

/* ── NAV TOGGLE ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text2);
  padding: 8px;
  transition: 0.3s;
}

.nav-toggle:hover {
  color: var(--text);
}

.hamburger {
  width: 24px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 4px;
  transition: 0.3s;
}

.nav.nav-open .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav {
    padding: 0 30px;
  }

  .nav-links {
    display: none;
  }

  .nav.nav-open .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 1000;
    animation: fadeIn 0.3s forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav.nav-open .nav-links a {
    font-size: 24px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .nav-right {
    gap: 8px;
  }
}

.nav-vip {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.nav-vip:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

/* ── SEARCH OVERLAY ── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(20px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  width: 100%;
  max-width: 680px;
  padding: 0 20px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
}

.search-input-wrap svg {
  width: 20px;
  height: 20px;
  color: var(--text3);
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 18px;
  color: var(--text);
}

.search-input-wrap input::placeholder {
  color: var(--text3);
}

.search-close {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s;
  white-space: nowrap;
}

.search-close:hover {
  color: var(--text);
}

.search-results {
  margin-top: 20px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.search-hint {
  text-align: center;
  color: var(--text3);
  font-size: 14px;
  padding: 40px 0;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transition: opacity 1s, transform 2s;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(5, 8, 15, 0.6) 40%, transparent 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 50%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  transform: translateY(20px);
  animation: slideUp 0.8s forwards 0.2s;
  opacity: 0;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: var(--accent);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 90px;
  line-height: 0.9;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 52px;
  }

  .hero {
    height: 70vh;
    padding: 0 20px;
  }

  .hero::after {
    background: linear-gradient(to top, var(--bg) 10%, rgba(5, 8, 15, 0.7) 100%);
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.hero-rating {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-genre {
  color: var(--text3);
  font-weight: 400;
}

.hero-desc {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(229, 9, 20, 0.4);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-primary svg,
.btn-secondary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── SECTIONS ── */
.section {
  padding: 60px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
  .section {
    padding: 40px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .section-title {
    font-size: 28px;
  }
}

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

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title span {
  color: var(--accent);
}

.section-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.section-more:hover {
  color: var(--accent);
}

/* ── CARDS GRID (horizontal scroll) ── */
.cards-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .cards-scroll {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

/* ── CARD ── */
.card {
  background: var(--bg2);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border);
}

.card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.25);
  border-color: rgba(229, 9, 20, 0.5);
  z-index: 50;
}

.card-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg3);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.card:hover .card-poster img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.card-play:hover {
  transform: scale(1.1);
}

.card-play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.card-info {
  padding: 10px 10px 12px;
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-year {
  font-size: 11px;
  color: var(--text3);
}

.card-rating {
  font-size: 11px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 2px;
}

.card-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
}

.badge-movie {
  background: var(--accent);
  color: #fff;
}

.badge-tv {
  background: #1a6ef5;
  color: #fff;
}

.badge-sport {
  background: #16a34a;
  color: #fff;
}

.badge-live {
  background: var(--accent);
  color: #fff;
  animation: pulse 1.5s infinite;
}

/* ── PREMIUM BADGES ── */
.badge-quality {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 5;
}

.badge-trending {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--gold);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.4);
  z-index: 5;
}

/* ── SPORT CARDS (wide format) ── */
.sport-card {
  flex-shrink: 0;
  width: 300px;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.sport-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.sport-league {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sport-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sport-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.sport-team-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.sport-team-name {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.sport-vs {
  font-family: 'Bebas Neue';
  font-size: 22px;
  color: var(--text3);
  flex-shrink: 0;
}

.sport-score {
  font-family: 'Bebas Neue';
  font-size: 32px;
  letter-spacing: 2px;
  text-align: center;
}

.sport-time {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 1.5s infinite;
}

/* ── GENRE PAGE ── */
.page-header {
  padding: 120px 40px 40px;
  background: linear-gradient(to bottom, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 0.5px solid var(--border);
}

.page-header h1 {
  font-family: 'Bebas Neue';
  font-size: 52px;
  letter-spacing: 2px;
}

.page-header p {
  color: var(--text2);
  font-size: 15px;
  margin-top: 8px;
}

.genre-tabs {
  display: flex;
  gap: 8px;
  padding: 20px 40px;
  overflow-x: auto;
  flex-wrap: wrap;
}

.genre-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.genre-tab:hover,
.genre-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── DETAIL HERO ── */
.detail-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 60px;
  overflow: hidden;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  z-index: 1;
}

.detail-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg) 90%),
    linear-gradient(to top, var(--bg) 0%, transparent 50%),
    linear-gradient(to right, var(--bg) 0%, rgba(5, 8, 15, 0.75) 50%, transparent 100%);
  z-index: 2;
}

.detail-hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 48px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.detail-poster {
  width: 320px;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border);
  flex-shrink: 0;
  animation: slideRight 0.8s ease both;
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #fff;
}

.detail-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.stat-badge {
  background: var(--bg3);
  color: var(--text2);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.stat-badge.rating {
  color: var(--gold);
  border-color: rgba(245, 197, 24, 0.2);
}

.detail-overview {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 28px;
}

.detail-player-wrap {
  padding: 0 40px 40px;
  background: var(--bg);
}

.player-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid var(--border);
}

.player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.player-sources {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.source-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}

.source-btn:hover,
.source-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  padding: 40px 40px 24px;
  margin-top: 60px;
}

.footer-top {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-logo {
  font-family: 'Bebas Neue';
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 10px;
}

.footer-logo span {
  color: var(--text);
}

.footer-desc {
  font-size: 13px;
  color: var(--text3);
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: gap;
  font-size: 12px;
  color: var(--text3);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.fade-in {
  animation: fadeUp 0.6s ease both;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 0 20px 60px;
    min-height: 80vh;
  }

  .section {
    padding: 30px 20px;
  }

  .detail-hero {
    padding: 0 20px 40px;
  }

  .detail-player-wrap {
    padding: 0 20px 40px;
  }

  .page-header,
  .genre-tabs {
    padding-left: 20px;
    padding-right: 20px;
  }

  footer {
    padding: 30px 20px 20px;
  }
}

/* SILVA STYLE ENHANCEMENTS */
.badge-quality {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #2ecc71;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 5;
  text-transform: uppercase;
}

.nav-surprise-btn {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  margin-right: 15px;
}

.nav-surprise-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(15deg);
}

.nav-surprise-btn svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

/* PWA BANNER */
.pwa-banner {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5000;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  border-left: 4px solid var(--accent);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  pointer-events: none;
}

.pwa-banner.active {
  bottom: 30px;
  opacity: 1;
  pointer-events: auto;
}

.pwa-info h4 {
  font-family: 'Bebas Neue';
  font-size: 20px;
  margin-bottom: 4px;
  color: #fff;
}

.pwa-info p {
  font-size: 11px;
  color: var(--text3);
}

.pwa-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.pwa-close {
  color: var(--text3);
  font-size: 20px;
  cursor: pointer;
  margin-left: 15px;
  background: none;
  border: none;
}

/* DETAIL PAGE BUTTONS (Silva Style) */
.action-row {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-action {
  background: #1a1a1a;
  border: 1px solid #333;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  font-size: 13px;
  text-decoration: none;
}

.btn-action:hover {
  background: #2a2a2a;
  border-color: #444;
}

.btn-action.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-action.primary:hover {
  background: #ff0f1e;
}

.btn-action svg {
  width: 16px;
  height: 16px;
}

/* NEWS TICKER (Silva Sports) */
.ticker-wrap {
  background: var(--accent);
  color: #fff;
  padding: 7px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 99;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

.ticker-wrap::before {
  content: 'LIVE';
  background: #000;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 0 14px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  flex-shrink: 0;
  line-height: 1;
  align-self: stretch;
  justify-content: center;
  margin-right: 10px;
}

.ticker-scroll {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker 50s linear infinite;
  gap: 60px;
  width: max-content;
}

.ticker-content:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
}

.ticker-item i {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-style: normal;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

/* ── AD PROTECTION ── */
.nav-vip,
.pwa-banner,
#google_ads_frame,
#adsbygoogle,
.ad-slot,
.advertisement,
#div-gpt-ad,
[id^="div-gpt-ad"],
iframe[src*="doubleclick.net"],
iframe[src*="googlesyndication.com"],
iframe[src*="adservice.google"],
ins.adsbygoogle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
}

/* ── CINEMATIC PRELOADER ── */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.preloader-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.3);
  opacity: 0.6;
  z-index: -1;
  transform: scale(1.1);
  transition: opacity 0.5s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-typing {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5.5rem;
  /* Slightly smaller to fit mobile/small screens better */
  letter-spacing: 12px;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  border-right: 5px solid var(--accent);
  width: 0;
  animation: typing 2.5s steps(11) forwards, blink 0.6s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .preloader-typing {
    font-size: 3rem;
    letter-spacing: 6px;
  }
}

.preloader-typing span:nth-child(1) {
  color: #e50914;
}

/* TNP */
.preloader-typing span:nth-child(2) {
  color: #ffffff;
  margin-left: 15px;
}

/* STREAMS */

@keyframes typing {
  0% {
    width: 0;
  }

  100% {
    width: min(620px, 90vw);
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.preloader-hint {
  margin-top: 30px;
  font-size: 14px;
  color: var(--text3);
  letter-spacing: 6px;
  text-transform: uppercase;
  animation: pulse 2s infinite ease-in-out;
  font-weight: 500;
}

.preloader-skip {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
}

.preloader-skip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

/* ── ADDITIONAL MOBILE OVERRIDES ── */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  /* Search Overlay */
  .search-input-wrap {
    padding: 10px 15px;
  }

  .search-input-wrap input {
    font-size: 16px;
  }

  /* Sports Card */
  .sport-card {
    width: 260px;
    padding: 15px;
  }

  .sport-team-logo {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* Detail Hero */
  .detail-hero {
    padding: 80px 20px 40px;
    min-height: auto;
    flex-direction: column;
    text-align: center;
  }

  .detail-hero-inner {
    flex-direction: column;
    gap: 30px;
  }

  .detail-poster {
    width: 180px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

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

  .detail-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Video Player */
  .detail-player-wrap {
    padding: 10px;
  }

  .player-container {
    aspect-ratio: 16/9;
    height: auto;
  }

  .player-sources {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding-bottom: 10px;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }
}

.section-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* ══════════════════════════════════════════
   ── MOBILE BOTTOM NAVIGATION BAR ──
   Shows on screens ≤ 1024px only
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Hide the top center nav links — they get too cramped */
  .nav-links {
    display: none !important;
  }

  /* Give the top nav a tighter padding on mobile */
  .nav {
    padding: 0 16px;
  }

  /* Push page content up so bottom bar doesn't overlap */
  body {
    padding-bottom: 70px;
  }

  /* ── THE BOTTOM BAR ── */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(5, 8, 15, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    height: 64px;
    align-items: stretch;
    justify-content: space-around;
  }

  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 4px;
    color: var(--text3);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0px;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    padding: 8px 0;
  }

  .mob-nav-item svg {
    width: 24px;
    height: 24px;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
  }

  .mob-nav-item:hover,
  .mob-nav-item.active {
    color: #fff;
  }

  .mob-nav-item:hover svg,
  .mob-nav-item.active svg {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-2px);
  }

  .mob-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 8px rgba(229, 9, 20, 0.6);
  }

  .mob-nav-item .mob-live-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1s infinite;
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
  }
}

/* Hide bottom nav on desktop */
@media (min-width: 1025px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}