/* ===== BASE STYLES ===== */
:root {
  --primary: #000000;
  --secondary: #000000;
  --accent: #fff;
  --accent-light: #3399ff;
  --hover-accent: #fff;
  --text: #ffffff;
  --text-secondary: #b3b3b3;
  --card-bg: #1a1a2e;
  --success: #00c853;
  --warning: #ffab00;
  --danger: #ff1744;
  --transition: all 0.3s ease;
  --off-white: #f8f9fa;
  --signin-bg: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--primary);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== UPDATED BUTTON STYLES ===== */
.btn {
  display: inline-block;
  background: white;
  color: #000;
  font-weight: 800 !important;
  padding: 12px 24px;
  border-radius: 30px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  background: var(--off-white) !important;
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 255, 5, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  font-weight: 800 !important;
  border-radius: 30px !important;
}

.btn-outline:hover {
  background: var(--off-white) !important;
  color: #000 !important;
  border-color: var(--off-white);
}

.subscribe-btn {
  background: var(--off-white);
  color: #000;
  font-weight: 800 !important;
  border-radius: 30px !important;
}

.subscribe-btn:hover {
  background: var(--off-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 255, 5, 0.4);
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background-color: transparent;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 5px 0;
  height: 60px;
}

header .container {
  padding: 0 5px;   /* reduced space for hamburger & subscribe button */
}

header.scrolled {
  background-color: rgba(3, 1, 1, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  height: 50px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  z-index: 1001;
  order: 1;
}

.logo img {
  height: 34px;
  width: auto;
  margin-right: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin-left: 30px;
  margin-right: auto;
  order: 2;
}

.nav-links li {
  margin: 0 8px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--hover-accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.auth-buttons {
  display: flex;
  gap: 8px;
  z-index: 1001;
  order: 4;
}

.auth-buttons .btn {
  padding: 8px 16px;
  font-size: 11px;
}

.auth-buttons .btn-outline {
  background: var(--signin-bg) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
}

.auth-buttons .btn-outline:hover {
  background: var(--signin-bg) !important;
  color: white !important;
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  width: 20px;
  height: 16px;
  position: relative;
  order: 1;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 7px;
}

.hamburger span:nth-child(3) {
  top: 14px;
}

.hamburger.active span:nth-child(1) {
  top: 7px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.active span:nth-child(3) {
  top: 7px;
  transform: rotate(-135deg);
}

.mobile-auth {
  display: none;
}

.user-menu {
  position: relative;
  display: inline-block;
}

.user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  color: white !important;
  padding: 0 !important;
  border-radius: 50% !important;
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
  width: 40px;
  height: 40px;
}

.user-btn:hover {
  background: transparent !important;
  color: white !important;
  transform: scale(1.05);
}

.user-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  object-fit: cover;
  font-size: 14px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000 !important;
  color: white !important;
  font-weight: bold;
  border: 2px solid var(--hover-accent);
}
.user-btn i.fa-chevron-down {
  display: none !important;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 180px;
  background: var(--card-bg);
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
  z-index: 1000;
  display: none;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  font-size: 12px;
}

.user-dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hover-accent);
}

.user-dropdown a i {
  width: 14px;
  text-align: center;
}

/* ===== HERO SECTION - UPDATED WITH SLIDING ANIMATION ===== */
.hero {
  height: 85vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
  transform: translateX(100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide.prev {
  transform: translateX(-100%);
}

.slide-content {
  position: absolute;
  bottom: 150px;
  left: 40px;
  width: 100%;
  text-align: left;
  z-index: 10;
  padding: 0 40px;
  max-width: 60%;
}

.hero .slide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .slide-content .btn {
  order: 1;
  margin-bottom: 30px;
}
.slide-content h2 {
  font-size: 1.6rem !important;
  margin-bottom: 8px;
  text-shadow: none;
}

.slide-content p {
  font-size: 0.85rem !important;
  margin-bottom: 15px !important;
  color: #b3b3b3 !important;
  text-shadow: none;
}

@media (min-width: 769px) {
  .slide-content h2 {
    font-size: 1.6rem !important;
    margin-bottom: 8px;
    text-shadow: none;
  }

  .slide-content p {
    font-size: 0.85rem !important;
    margin-bottom: 15px !important;
    color: #b3b3b3 !important;
    text-shadow: none;
  }

  .slide-content .btn {
    padding: 14px 28px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
  }
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 10, 18, 0.95) 0%, rgba(10, 10, 18, 0.4) 40%, rgba(10, 10, 18, 0.1) 100%);
}

.slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  transform: translateY(-50%);
}

.arrow {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.arrow:hover,
.stream-nav-btn:hover{
  background: rgba(255, 255, 255, 0.2) !important;
  transform: none !important;
  color: white !important;
}

.arrow i {
  font-size: 14px;
}




/* ===== MODIFIED: Content card layout - overlay title & category on thumbnail ===== */
.stream-card {
  background: transparent !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: var(--transition);
  position: relative;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  height: auto;
  min-height: 0;
  margin-bottom: 0 !important;
  border: 2px solid transparent;
}

.stream-card:hover {
  transform: translateY(-5px);
  border: 2px solid var(--hover-accent) !important;
  box-shadow: 0 10px 25px rgba(243, 255, 5, 0.4);
  text-decoration: none !important;
}

.card-img {
  height: 150px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px !important;
  background: var(--card-bg);
  flex-shrink: 0;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 12px !important;
}

.stream-card:hover .card-img img {
  transform: scale(1.08);
}

/* Card content now overlays thumbnail without a dark background */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 8px 6px !important;
  background: transparent; /* Removed the black gradient overlay */
  display: flex;
  flex-direction: column;
  gap: 2px !important;
  z-index: 2;
  border-radius: 0 0 12px 12px !important;
  text-decoration: none !important;
  pointer-events: none;
  border: none;
  margin: 0;
}

/* Category (inside meta) appears ABOVE the title */
.card-meta {
  order: -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  margin: 2px 0 0 0 !important;
  text-decoration: none !important;
  flex-wrap: wrap;
  min-height: auto !important;
}
.card-meta .card-category {
  order: 0;
}
.card-meta span:not(.card-category) {
  order: 1;
}

/* Title with reduced brightness and thickness */
.card-title {
  font-size: 14px;
  font-weight: 500; /* reduced thickness */
  color: rgba(255, 255, 255, 0.85) !important; /* dimmer white */
  line-height: 1.2 !important;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: auto !important;
  max-height: 2.4em;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.card-category {
  font-weight: 300;
  opacity: 0.8;
  text-decoration: none !important;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  margin-top: 2px;
}

/* CHANGED: Live badge to capsule shape */
.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--danger);
  color: white;
  padding: 4px 12px;
  border-radius: 30px !important;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  z-index: 2;
  text-decoration: none !important;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse 1.5s infinite;
}

/* CHANGED: Time badge to capsule shape */
.time-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 12px;
  border-radius: 30px !important;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  z-index: 2;
  text-decoration: none !important;
}

/* CHANGED: Premium badge to capsule shape */
.premium-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--warning);
  color: #000;
  padding: 4px 12px;
  border-radius: 30px !important;
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
  text-decoration: none !important;
}

/* ===== FIX 4: Reduce section titles and spacing ===== */
.section {
  padding: 5px 0 10px !important;   /* reduced space between sections */
  width: 100%;
  overflow: hidden;
}

.section + .section {
  margin-top: 0 !important;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1px !important;   /* reduced space between header and cards */
  position: relative;
  width: 100%;
}

.section-title {
  font-size: 1rem !important;
  position: relative;
  padding-bottom: 0;
  font-weight: 600;
  margin-bottom: 0;
}

.section-title::after {
  display: none;
}

.view-all {
  color: var(--accent) !important;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 12px;
}

.view-all:hover {
  color: var(--hover-accent) !important;
  text-decoration: underline;
}

/* Edge‑to‑edge thumbnails for stream sections */
.section:has(.stream-grid) .container {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}
.section:has(.stream-grid) .section-header {
  padding-left: 20px;
  padding-right: 20px;
}

/* ===== STREAM GRID STYLES ===== */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0 !important;
  position: relative;
  margin-bottom: 0 !important;
  padding-bottom: 10px !important;
  width: 100%;
}

@media (min-width: 769px) {
  .stream-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;   /* smooth scrolling */
    gap: 0 !important;
    padding: 8px 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }
  
  .stream-grid::-webkit-scrollbar {
    display: none;
  }
  
  .stream-card {
    flex: 0 0 auto;
    width: 260px !important;
    /* scroll-snap-align removed for free scrolling */
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px !important;   /* reduced space */
    position: relative;
  }
  
  .section-title {
    flex: 1;
  }
.view-all {
    color: var(--accent) !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 12px;
    white-space: nowrap;
    margin-right: 15px;
  }
  
  .view-all:hover {
    color: var(--hover-accent) !important;
    text-decoration: underline;
  }
  
  .stream-nav {
    display: flex;
    gap: 8px;
    margin-left: 0;
  }
  
  .stream-nav-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
  }
  
  .stream-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
  }
  
  .stream-nav-btn i {
    font-size: 12px;
  }
}

/* ===== VIDEO PLAYER PAGE ===== */
.player-page {
  padding-top: 0;
}

.player-container {
  position: relative;
  width: 100%;
  background: #000;
  z-index: 1;
}

.player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 2;
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.8) 100%);
  color: white;
  z-index: 10;
}

.player-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.player-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 30px !important;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
}

.player-action-btn:hover {
  background: var(--hover-accent) !important;
  color: #000 !important;
}

.player-action-btn.active {
  background: var(--accent);
  color: #000;
}
.thumbnail-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.thumbnail-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 4rem;
  cursor: pointer;
}

.player-info {
  padding: 20px;
  background: var(--secondary);
  margin-top: 0;
}

.player-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: white;
}

.player-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 14px;
}

.player-description {
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text);
}

.related-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.related-tab {
  padding: 8px 16px;
  background: var(--card-bg);
  border: none;
  border-radius: 30px !important;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
  white-space: nowrap;
}

.related-tab.active {
  background: var(--hover-accent) !important;
  color: #000 !important;
}


.upcoming-stream-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.countdown-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  max-width: 90%;
  backdrop-filter: blur(5px);
}

.countdown-container h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--accent);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-value {
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent);
  color: #000;
  padding: 10px;
  border-radius: 8px;
  min-width: 60px;
  display: inline-block;
}

.countdown-label {
  font-size: 0.8rem;
  margin-top: 5px;
  opacity: 0.8;
}

.reminder-btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 30px !important;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  margin-bottom: 15px;
}

.reminder-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.start-time {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 10px;
}

.live-now {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  animation: pulse 1.5s infinite;
}





@media (min-width: 769px) {


}
/* ===== UPDATED PROMOTIONAL BANNER STYLES ===== */
.promo-banner {
  margin: 20px 0 !important;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

.promo-banner-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: white;
  text-align: left;
}

.promo-banner-title {
  font-size: 22px !important;
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.promo-banner-subtitle {
  font-size: 13px !important;
  margin-bottom: 20px;
  opacity: 0.9;
  color: #b3b3b3 !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  max-width: 100%;
}

.promo-banner .btn {
  border-radius: 30px !important;
  padding: 10px 20px;
  font-size: 12px;
  align-self: flex-start;
  width: auto;
  font-weight: 800 !important;
}

/* ===== FOOTER - UPDATED WITH THIN LINES ===== */
footer {
  background: var(--secondary);
  padding: 40px 0 20px;
  margin-top: 40px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  width: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 16px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1px;
  background: var(--accent) !important;
  border-radius: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--hover-accent) !important;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--hover-accent) !important;
  color: #000 !important;
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  color: var(--text-secondary);
  font-size: 12px;
}

/* ===== FIXED: Mobile Header Reorganization ===== */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    position: relative;
    padding: 0 10px;
  }

  .hamburger {
    display: block;
    order: 1;
    margin-right: 1px;
  }

  .logo {
    order: 2;
    margin-right: auto;
    margin-left: 1px;
  }
  
  .auth-buttons {
    order: 4 !important;
    display: flex !important;
    margin-left: 0 !important;
  }

  .nav-links.active ~ .auth-buttons {
    display: none !important;
  }

  .mobile-auth {
    display: none;
  }

  .user-menu .user-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .user-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: -60%;
    background: var(--primary);
    width: 60% !important;
    height: calc(100vh - 60px);
    flex-direction: column;
    padding: 30px 0;
    transition: var(--transition);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 999;
    margin-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    order: unset;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 18px 20px;
    font-size: 16px !important;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }

  .mobile-auth-item {
    display: none;
  }

  .hero, .content-hero, .explore-hero {
    height: 70vh !important;
    min-height: 500px !important;
  }
  
  .slide-content {
    left: 15px;
    bottom: 40px;
    max-width: 90%;
    text-align: center;
    padding: 0 20px;
  }
  
  .slide-content h2 {
    font-size: 1.5rem !important;
  }
  
  .slide-content p {
    font-size: 0.8rem !important;
    margin-bottom: 20px;
    color: #b3b3b3 !important;
  }
  
  .slide-content .btn {
    width: 100%;
    max-width: none;
    padding: 14px 20px;
    font-size: 14px;
  }
  
  .hero .slider-dots {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 10px;
  }
  
  .slider-arrows {
    display: none;
  }
  
  .section-title {
    font-size: 1.2rem;
  }

  .auth-buttons {
    display: none;
  }
  
  .mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
  }
  
  .mobile-auth .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px;
    font-size: 14px !important;
    font-weight: 800 !important;
  }
  
  .mobile-auth .btn:hover {
    background: var(--hover-accent) !important;
    color: #000 !important;
  }
  
  .mobile-auth .btn.btn-outline {
    color: white !important;
    border-color: white !important;
  }
  
  .mobile-auth .btn.btn-outline:hover {
    background: var(--hover-accent) !important;
    color: black !important;
  }
  
  .mobile-auth .subscribe-btn {
    color: black !important;
    background: var(--off-white) !important;
  }
  
  .mobile-auth .subscribe-btn:hover {
    background: var(--hover-accent) !important;
    color: black !important;
  }
  
  .user-menu-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .user-menu-mobile .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px;
    font-size: 14px !important;
  }
  
  .mobile-auth-item {
    display: block !important;
  }
  
  .player-wrapper {
    height: 56.25vw;
    max-height: 40vh;
  }
  
  .player-info {
    margin-top: 56.25vw;
    max-height: 60vh;
  }
  
  .arrow {
    width: 30px;
    height: 30px;
  }
  
  .slider-arrows {
    padding: 0 15px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .explore-hero .slide-content {
    max-width: 90%;
    left: 20px;
    text-align: center;
  }
  
  /* Mobile card adjustments - overlay without dark background */
  .stream-card {
    margin-bottom: 0 !important;
    width: 78% !important;
  }

  .stream-card:hover {
    transform: translateY(-5px);
  }

  .card-img {
    height: 140px !important;
  }

  .card-content {
    padding: 8px 6px 4px !important;
    gap: 1px !important;
    background: transparent; /* no background on mobile too */
  }

  .card-title {
    font-size: 13px;
    line-height: 1.2 !important;
    max-height: 2.2em;
    font-weight: 500; /* thinner on mobile */
    color: rgba(255,255,255,0.85) !important;
  }

  .card-meta {
    font-size: 10px;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px;
    min-height: auto !important;
    margin: 1px 0 0 0 !important;
  }

  .stream-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;   /* smooth scrolling on mobile too */
    gap: 0 !important;
    padding: 4px 0 8px 0;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0;
    width: 100%;
  }

  .stream-card {
    flex: 0 0 auto;
    width: 75% !important;
    min-width: 0;
    margin: 0;
  }

  .stream-card:hover {
    transform: translateY(-5px);
  }

  .section .container {
    padding: 0 10px;
  }

  .section-header {
    padding: 0 10px;
    margin-bottom: 2px !important;   /* reduced space */
  }

  .leagues-nav {
    display: none;
  }
  
  .promo-banner {
    height: 200px;
    margin: 20px 0 !important;
  }
  
  .promo-banner-content {
    width: 100%;
    text-align: center;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    justify-content: flex-end;
    padding: 20px;
  }
  
  .promo-banner .btn {
    align-self: center;
  }
  
  .promo-banner-title {
    font-size: 20px !important;
  }
  
  .promo-banner-subtitle {
    font-size: 12px !important;
    color: #b3b3b3 !important;
  }
  
  .countdown-timer {
    gap: 10px;
  }
  
  .countdown-unit {
    min-width: 60px;
  }
  
  .countdown-value {
    font-size: 1.5rem;
    padding: 8px;
    min-width: 50px;
  }
  
  .countdown-label {
    font-size: 0.7rem;
  }
  
  @media (orientation: landscape) {
    .stream-card {
      width: 42% !important;
    }
    
    .card-img {
      height: 120px;
    }

    .container {
      padding: 0 10px;
    }
  }
  
  @media (orientation: portrait) {
    .stream-card {
      width: 75% !important;
    }
  }
  
  .section {
    padding: 5px 0 10px !important;  /* consistent with desktop */
  }
  
  .stream-grid {
    gap: 0 !important;
    padding-bottom: 8px !important;
  }
}

/* Additional safety for very small mobile screens */
@media (max-width: 480px) {
  .nav-links {
    width: 70% !important;
    left: -70%;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    padding: 16px 18px;
    font-size: 15px !important;
  }
  
  .auth-buttons .btn {
    padding: 5px 8px;
    font-size: 9px;
  }
  
  .logo img {
    height: 25px;
  }
  
  .hamburger {
    margin-right: 8px;
  }
  
  .user-name {
    display: none;
  }
  
  .user-btn {
    padding: 4px 6px !important;
  }
  
  .user-btn i {
    margin-left: 2px;
  }

  .stream-card {
    width: 72% !important;
  }
  
  .card-img {
    height: 135px !important;
  }
  
  .card-content {
    padding: 6px 5px 3px !important;
    background: transparent;
  }

  .card-title {
    font-size: 12px; /* slightly smaller on very small screens */
  }

  .nav-links a {
    padding: 16px 18px;
    font-size: 15px !important;
  }
  
  .mobile-auth .btn {
    padding: 16px;
    font-size: 14px !important;
  }
}

@media (max-width: 360px) {
  .nav-links {
    width: 75% !important;
    left: -75%;
  }
  
  .nav-links a {
    padding: 14px 16px;
    font-size: 14px !important;
  }
}

@media (max-width: 768px) {
  .user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: var(--card-bg);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    z-index: 1000;
    display: none;
  }

  .user-dropdown.show {
    display: block;
  }
}

/* ===== ADDITIONAL MOBILE EDGE-TO-EDGE STYLE ===== */
@media (max-width: 768px) {
  .section:has(.stream-grid) .section-header {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 576px) {
  .hero{
    height: 70vh !important;
    min-height: 500px !important;
  }
  
  .slide-content {
    max-width: 90%;
    text-align: center;
    padding: 0 20px;
  }
  
  .slide-content h2 {
    font-size: 1.5rem;
  }
  
  .slide-content p {
    font-size: 0.8rem;
    color: #b3b3b3 !important;
  }
  
  .btn {
    padding: 8px 14px;
    font-size: 11px;
  }
  
  .section {
    padding: 20px 0;
  }
  
  .mobile-auth {
    flex-direction: column;
    gap: 8px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .stream-grid {
    grid-template-columns: 1fr;
  }

  .countdown-timer {
    gap: 5px;
  }
  
  .countdown-unit {
    min-width: 50px;
  }
  
  .countdown-value {
    font-size: 1.2rem;
    padding: 6px;
    min-width: 40px;
  }
}
.thumbnail-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.thumbnail-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 4rem;
  cursor: pointer;
}

.related-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.related-tab {
  padding: 8px 16px;
  background: var(--card-bg);
  border: none;
  border-radius: 30px !important;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
  white-space: nowrap;
}

.related-tab.active {
  background: var(--hover-accent) !important;
  color: #000 !important;
}

.no-content {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 0;
}

.error-message {
  color: var(--danger);
  text-align: center;
  padding: 20px;
}

/* ===== UPDATED LOADING STYLES ===== */
.loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #000 !important;
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.loading-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(243, 255, 5, 0.1),
    transparent
  );
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}




@media (max-width: 480px) {
}

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

.filter select {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 4px;
}



@media (max-width: 768px) {

}

/* Player action buttons */
.player-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 30px !important;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 600;
}

.player-action-btn:hover {
  background: var(--hover-accent) !important;
  color: #000 !important;
}

.player-action-btn.active {
  background: var(--accent);
  color: #000;
}

/* DAZN-style header */
header {
  background: transparent;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Hero banner styles - FIXED */
.hero{
  margin-top: 0 !important;
}

header {
  z-index: 1001;
}

.hero .slide-content{
  z-index: 10;
}

/* ===== POPUP STYLES - MODIFIED ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.content-popup {
  width: 90%;
  max-width: 400px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-overlay.active .content-popup {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-close:hover {
  background: var(--hover-accent) !important;
  transform: rotate(90deg);
  color: #000 !important;
}

.popup-hero {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.popup-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
}

.popup-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.badge.live {
  background: var(--danger);
  color: white;
}

.badge.live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  margin-right: 4px;
  animation: pulse 1.5s infinite;
}

.badge.premium {
  background: var(--warning);
  color: #000;
}
.popup-title {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
  color: white;
}

.popup-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 20px;
}

.popup-actions {
  padding: 0 20px 20px;
  display: flex;
  gap: 12px;
  background: #000;
}


.popup-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #000;
}

/* ===== FIX 2: Ensure hero dots appear below buttons on all devices ===== */
.hero .slide-content{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .slide-content .btn{
  order: 1;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .hero .slide-content{
    align-items: center;
    text-align: center;
  }
}
/* ===== FIX 5: Additional safety for card content ===== */
.stream-card, .stream-card * {
  text-decoration: none !important;
}

/* All card children get text shadow for legibility, but no forced white color */
.card-content * {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.card-meta span {
  color: var(--text-secondary) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

main {
  width: 100%;
  overflow: hidden;
}

section {
  width: 100%;
}

/* ===== ADDITIONAL SAFETY RULES ===== */
body,
.section-title,
.card-title,
.popup-title,
.player-title {
  color: var(--text) !important;
}

.nav-links a::after {
  background: var(--hover-accent) !important;
}
