/* ===== BASE STYLES ===== */
:root {
  --primary: #030101;
  --secondary: #030101;
  --accent: #F3FF05;
  --accent-light: #3399ff;
  --hover-accent: #F3FF05;
  --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: 8px;
  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;
}

.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;
}

.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;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  width: 100px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

.loading-circle {
  width: 50px;
  height: 50px;
  border: 3px solid transparent;
  border-top: 3px solid var(--hover-accent);
  border-right: 3px solid var(--hover-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  position: relative;
}

.loading-circle::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 3px solid transparent;
  border-bottom: 3px solid var(--hover-accent);
  border-left: 3px solid var(--hover-accent);
  border-radius: 50%;
  animation: spin 0.5s linear infinite reverse;
}

@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.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;
}

/* FIXED: Proper element ordering for navbar */
.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: 70px;
  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);
}

/* ===== ENHANCED: Professional Followed Categories Styling ===== */
.followed-categories {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 15px;
  position: relative;
  order: 3;
}

.followed-categories.compact {
  gap: 4px;
}

.followed-category-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.followed-category-icon.small {
  width: 26px;
  height: 26px;
  font-size: 10px;
}

.followed-category-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(243, 255, 5, 0.4);
}

.followed-category-icon.has-notification::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  background: var(--danger);
  border-radius: 50%;
  border: 1px solid var(--primary);
  animation: pulse 1.5s infinite;
}

/* Followed Categories Dropdown */
.followed-categories-dropdown {
  position: relative;
  display: inline-block;
}

.followed-categories-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.followed-categories-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(243, 255, 5, 0.4);
}

.followed-categories-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background: rgba(26, 26, 46, 0.98);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  padding: 6px 0;
  z-index: 1000;
  display: none;
  margin-top: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.followed-categories-menu.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

.followed-category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 12px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.followed-category-item:last-child {
  border-bottom: none;
}

.followed-category-item:hover {
  background: rgba(243, 255, 5, 0.1);
  color: var(--hover-accent);
}

.followed-category-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.followed-category-item.has-notification::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--danger);
  border-radius: 50%;
  margin-left: auto;
  animation: pulse 1.5s infinite;
}

.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-name {
  display: none !important;
}

.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%;
}

/* ===== FIX: Hero dots position for index.html ===== */
.hero .slide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .slide-content .btn {
  order: 1;
  margin-bottom: 30px;
}

.hero .slider-dots {
  order: 2;
  position: relative !important;
  bottom: 0 !important;
  left: 0 !important;
  transform: none !important;
  margin-top: 0;
  padding-top: 10px;
}

/* ===== FIX: Hero banner text colors and sizes ===== */
.slide-content h2 {
  font-size: 1.6rem !important; /* Reduced from 1.8rem */
  margin-bottom: 8px;
  text-shadow: none;
}

.slide-content p {
  font-size: 0.85rem !important; /* Reduced from 0.9rem */
  margin-bottom: 15px !important;
  color: #b3b3b3 !important; /* Changed to grey */
  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;
  }

  .slider-dots {
    position: absolute;
    bottom: 80px !important;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
  }
}

.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,
.leagues-nav:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: none !important;
  color: white !important;
}

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

.slider-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.slider-dot::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: white;
  transition: left 8s linear;
}

.slider-dot.active::before {
  left: 0;
}

.slider-dot.active {
  background: rgba(255, 255, 255, 0.6);
  transform: none;
}

/* ===== FIXED CONTENT CARD STYLES ===== */
.stream-card {
  background: transparent !important;
  border-radius: 8px;
  overflow: hidden !important;
  transition: var(--transition);
  position: relative;
  box-shadow: none;
  aspect-ratio: 16/14;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  transform: scale(0.95);
  transform-origin: center;
  height: auto;
  min-height: 0;
  margin-bottom: 4px !important;
}

.stream-card:hover {
  transform: scale(0.97) translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-decoration: none !important;
}

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

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

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

.card-content {
  padding: 6px 8px 6px !important;
  background: transparent !important;
  opacity: 1 !important;
  position: static;
  display: flex;
  flex-direction: column;
  gap: 2px !important;
  flex-grow: 1;
  justify-content: flex-start;
  min-height: auto !important;
  text-decoration: none !important;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0 !important;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text) !important;
  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-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
  margin: 2px 0 0 0 !important;
  text-decoration: none !important;
  flex-wrap: wrap;
  gap: 4px;
  min-height: auto !important;
}

.card-category {
  font-weight: 300;
  opacity: 0.8;
  text-decoration: none !important;
  background: rgba(0, 123, 255, 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;
}

.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--danger);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  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;
}

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

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

/* ===== FIX 4: Reduce section titles and spacing ===== */
.section {
  padding: 25px 0 30px !important;
  width: 100%;
  overflow: hidden;
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px !important;
  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;
}

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

@media (min-width: 769px) {
  .stream-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px !important;
    padding: 8px 0 15px;
    -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: start;
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px !important;
    position: relative;
  }
  
  .section-title {
    flex: 1;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  
  .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;
  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;
}

.content-type-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: #000;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 5;
}

.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;
  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;
}

.comment-form {
  margin-bottom: 20px;
}

.comment-input {
  width: 100%;
  background: var(--secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 12px;
  color: var(--text);
  margin-bottom: 10px;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
}

.comment-list {
  max-height: 300px;
  overflow-y: auto;
}

.comment-item {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-author {
  font-weight: 600;
  margin-right: 8px;
  font-size: 14px;
  color: var(--accent);
}

.comment-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.comment-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}

.login-prompt {
  text-align: center;
  padding: 20px;
  background: var(--secondary);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.login-prompt a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.login-prompt a:hover {
  text-decoration: underline;
}

.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;
  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;
}

/* ===== EXPLORE PAGE STYLES ===== */
.explore-hero {
  height: 70vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

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

.explore-hero .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%);
}

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

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

.explore-hero .slide-content {
  position: absolute;
  bottom: 150px;
  left: 40px;
  max-width: 50%;
  text-align: left;
  z-index: 10;
}

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

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

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

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

.leagues-section {
  padding: 25px 0 !important;
}

.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.league-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.league-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(243, 255, 5, 0.2);
}

.league-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 15px;
}

.upcoming-events {
  padding: 25px 0 !important;
  background: var(--secondary);
}

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

.event-tab {
  padding: 10px 20px;
  background: var(--card-bg);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.event-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  aspect-ratio: 16/9;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.event-date {
  padding: 10px 15px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  text-align: center;
}

.event-info {
  padding: 15px;
}

.event-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.team {
  text-align: center;
  flex: 1;
}

.team-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 5px;
}

.vs {
  font-weight: 600;
  margin: 10px 0;
}

.event-league {
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 10px;
}

.sports-leagues {
  padding: 25px 0 !important;
  background: var(--secondary);
}

.leagues-scroll {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.league-item {
  flex: 0 0 auto;
  width: 120px;
  text-align: center;
  scroll-snap-align: start;
}

.league-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.leagues-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  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);
  z-index: 5;
}

.leagues-nav:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.leagues-nav.prev {
  left: 10px;
}

.leagues-nav.next {
  right: 10px;
}

.leagues-nav i {
  font-size: 14px;
}

/* ===== UPDATED PROMOTIONAL BANNER STYLES ===== */
.promo-banner {
  margin: 25px 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; /* Reduced from 24px */
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

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

.promo-banner .btn {
  border-radius: 8px;
  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 - Followed Categories Right Side ===== */
@media (max-width: 768px) {
  /* Reorganize navbar for mobile with proper order */
  .navbar {
    justify-content: space-between;
    position: relative;
    padding: 0 10px;
  }

  /* Mobile element ordering - UPDATED */
  .hamburger {
    display: block;
    order: 1;
    margin-right: 8px;
  }

  .logo {
    order: 2;
    margin-right: auto;
    margin-left: 10px;
  }

  /* FIXED: Move followed categories to right side before auth buttons */
  .followed-categories {
    order: 3 !important;
    margin-right: 8px !important;
    margin-left: auto !important;
    display: flex !important;
    gap: 4px !important;
  }

  .auth-buttons {
    order: 4 !important;
    display: flex !important;
    margin-left: 0 !important;
  }

  /* UPDATED: Smaller, more professional followed category icons */
  .followed-category-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .followed-category-icon.small {
    width: 22px !important;
    height: 22px !important;
    font-size: 9px !important;
  }

  .followed-categories-toggle {
    width: 24px !important;
    height: 24px !important;
    font-size: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  /* UPDATED: Professional dropdown styling */
  .followed-categories-menu {
    width: 180px;
    right: -5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 46, 0.95) !important;
  }

  .followed-category-item {
    padding: 10px 12px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .followed-category-item:last-child {
    border-bottom: none;
  }

  .followed-category-item-icon {
    width: 20px;
    height: 20px;
    font-size: 9px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
  }

  /* Ensure proper spacing */
  .followed-categories.compact {
    gap: 3px !important;
  }

  /* Hide nav links when menu is open to prevent overlap */
  .nav-links.active ~ .followed-categories,
  .nav-links.active ~ .auth-buttons {
    display: none !important;
  }

  /* Hide mobile-auth since we're using desktop version on mobile */
  .mobile-auth {
    display: none;
  }

  /* UPDATED: Wider user profile icon on mobile */
  .user-menu .user-btn {
    width: 48px !important;
    height: 48px !important;
  }

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

  /* UPDATED: Hamburger menu now fills only half screen */
  .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;
  }

  /* Remove the mobile auth item from nav links */
  .mobile-auth-item {
    display: none;
  }

  /* UPDATED: Decreased hero banner height on mobile */
  .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;
  }
  
  /* Make hero buttons wider on mobile */
  .slide-content .btn {
    width: 100%;
    max-width: none;
    padding: 14px 20px;
    font-size: 14px;
  }
  
  /* Hero dots positioning for mobile */
  .hero .slider-dots {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 10px;
  }
  
  /* Hide arrows on mobile */
  .slider-arrows {
    display: none;
  }
  
  .section-title {
    font-size: 1.2rem;
  }

  /* Hide desktop auth buttons on mobile */
  .auth-buttons {
    display: none;
  }
  
  /* UPDATED: Mobile auth buttons */
  .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;
  }
  
  /* UPDATED: User menu in mobile */
  .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;
  }
  
  /* Ensure auth buttons are visible on mobile */
  .mobile-auth-item {
    display: block !important;
  }
  
  .player-wrapper {
    height: 56.25vw;
    max-height: 40vh;
  }
  
  .player-info {
    margin-top: 56.25vw;
    max-height: 60vh;
  }
  
  /* Mobile hero adjustments */
  .arrow {
    width: 30px;
    height: 30px;
  }
  
  .slider-arrows {
    padding: 0 15px;
  }

  /* Mobile button styles */
  .btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  /* Mobile explore adjustments */
  .explore-hero .slide-content {
    max-width: 90%;
    left: 20px;
    text-align: center;
  }
  
  .leagues-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .event-teams {
    flex-direction: column;
  }
  
  .team {
    margin: 10px 0;
  }
  
  .vs {
    margin: 10px 0;
  }
  
  /* FIX 1: Mobile card meta layout - views on right side */
  .card-meta {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }
  
  /* Mobile adjustments for content cards */
  .stream-card {
    aspect-ratio: 16/11;
    transform: scale(0.92);
    margin-bottom: 4px !important;
    width: 78% !important;
  }

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

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

  .card-content {
    padding: 4px 6px 4px !important;
    min-height: auto !important;
    gap: 1px !important;
  }

  .card-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-height: 1.2 !important;
    min-height: auto !important;
    max-height: 2.2em;
  }

  .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;
  }

  /* FIX 4: Improved horizontal scrolling for mobile - SMALLER CARDS */
  .stream-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 6px !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;
    scroll-snap-align: start;
    min-width: 0;
    margin: 0;
    aspect-ratio: 16/12 !important;
    transform: scale(0.92);
  }

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

  /* Adjust text sizes for mobile */
  .card-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .card-meta {
    font-size: 10px;
  }

  /* Ensure proper spacing at screen edges */
  .section .container {
    padding: 0 10px;
  }

  .section-header {
    padding: 0 10px;
    margin-bottom: 10px !important;
  }

  /* Remove any existing margins that cause unused space */
  .stream-grid .stream-card:first-child {
    margin-left: 0;
  }

  .stream-grid .stream-card:last-child {
    margin-right: 0;
  }
  
  .leagues-nav {
    display: none;
  }
  
  /* Mobile promo banner adjustments */
  .promo-banner {
    height: 200px;
    margin: 25px 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 text colors and sizes */
  .promo-banner-title {
    font-size: 20px !important;
  }
  
  .promo-banner-subtitle {
    font-size: 12px !important;
    color: #b3b3b3 !important;
  }
  
  /* Countdown mobile adjustments */
  .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;
  }
  
  /* FIX 5: Ensure cards maintain shape on mobile landscape */
  @media (orientation: landscape) {
    .stream-card {
      aspect-ratio: 16/10;
      width: 42% !important;
    }
    
    .card-img {
      height: 120px;
    }

    .container {
      padding: 0 10px;
    }
  }
  
  /* Reset for portrait orientation */
  @media (orientation: portrait) {
    .stream-card {
      aspect-ratio: 16/12 !important;
      width: 75% !important;
    }
  }
  
  /* FIX: Mobile section spacing */
  .section {
    padding: 20px 0 25px !important;
  }
  
  .stream-grid {
    gap: 6px !important;
    padding-bottom: 8px !important;
  }
}

/* Additional safety for very small mobile screens */
@media (max-width: 480px) {
  /* Ensure half-screen menu works on very small screens */
  .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: 70px;
  }
  
  .hamburger {
    margin-right: 8px;
  }
  
  /* Adjust followed categories for very small screens */
  .followed-category-icon {
    width: 22px !important;
    height: 22px !important;
    font-size: 9px !important;
  }
  
  .followed-category-icon.small {
    width: 20px !important;
    height: 20px !important;
    font-size: 8px !important;
  }
  
  .followed-categories-toggle {
    width: 22px !important;
    height: 22px !important;
    font-size: 9px !important;
  }
  
  /* Hide user name on very small screens, show only avatar */
  .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: 3px 5px 3px !important;
  }

  /* UPDATED: Menu items on very small screens */
  .nav-links a {
    padding: 16px 18px;
    font-size: 15px !important;
  }
  
  .mobile-auth .btn {
    padding: 16px;
    font-size: 14px !important;
  }

  .followed-categories {
    gap: 3px !important;
  }
  
  /* Hide some icons if too many to fit */
  .followed-category-icon:nth-child(n+4) {
    display: none;
  }
  
  .followed-categories.compact .followed-category-icon {
    display: flex !important;
  }
}

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

  .followed-categories {
    gap: 2px !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;
  }
}

@media (max-width: 576px) {
  .hero, .content-hero, .explore-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 mobile adjustments */
  .countdown-timer {
    gap: 5px;
  }
  
  .countdown-unit {
    min-width: 50px;
  }
  
  .countdown-value {
    font-size: 1.2rem;
    padding: 6px;
    min-width: 40px;
  }
}

/* Additional styles for player action buttons */
.content-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  z-index: 5;
}

.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;
  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-spinner {
  display: none !important;
}

.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%;
  }
}

.login-wall-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 18, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.login-wall-content {
  background: #1a1a2e;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.login-wall-content h2 {
  margin-bottom: 15px;
  color: var(--accent);
}

.login-wall-content p {
  margin-bottom: 25px;
  color: #b3b3b3;
}

.login-wall-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

@media (max-width: 480px) {
  .login-wall-buttons {
    flex-direction: column;
  }
}

.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;
}

/* Content page hero styles */
.content-hero {
  height: 60vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.content-hero .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.content-hero .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%);
}

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

@media (max-width: 768px) {
  .content-hero {
    height: 70vh !important;
    min-height: 500px !important;
  }
  
  .content-hero .slide-content {
    max-width: 90%;
    left: 20px;
    bottom: 40px;
    text-align: center;
  }
}

/* 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;
  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, .content-hero, .explore-hero {
  margin-top: 0 !important;
}

/* Ensure the header stays on top with proper z-index */
header {
  z-index: 1001;
}

/* Make sure hero content is properly positioned */
.hero .slide-content, 
.content-hero .slide-content, 
.explore-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-info {
  padding: 20px;
  background: #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;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--hover-accent) !important;
  color: #000 !important;
  transform: scale(1.1);
}

.btn-icon.active {
  background: var(--accent);
  color: #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,
.content-hero .slide-content,
.explore-hero .slide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .slide-content .btn,
.content-hero .slide-content .btn,
.explore-hero .slide-content .btn {
  order: 1;
  margin-bottom: 30px;
}

.hero .slider-dots,
.content-hero .slider-dots,
.explore-hero .slider-dots {
  order: 2;
  position: relative;
  bottom: 0;
  left: 0;
  transform: none;
  margin-top: 0;
  padding-top: 10px;
}

/* Mobile adjustments for hero dots */
@media (max-width: 768px) {
  .hero .slide-content,
  .content-hero .slide-content,
  .explore-hero .slide-content {
    align-items: center;
    text-align: center;
  }
  
  .hero .slider-dots,
  .content-hero .slider-dots,
  .explore-hero .slider-dots {
    position: relative;
    bottom: 0;
    margin-top: 10px;
  }
}

/* ===== Fix for explore page hero specifically ===== */
.explore-hero .slide-content .slider-dots {
  position: relative !important;
  bottom: 0 !important;
  left: 0 !important;
  transform: none !important;
  margin-top: 15px;
}

/* ===== FIX 5: Additional safety for card content ===== */
.stream-card, .stream-card * {
  text-decoration: none !important;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Ensure proper text contrast with transparent background */
.card-content * {
  color: var(--text) !important;
  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);
}

/* ADDED: Additional safety rules to prevent overflow */
main {
  width: 100%;
  overflow: hidden;
}

section {
  width: 100%;
}

/* ===== ENSURE CONTENT CARDS REMAIN UNCHANGED ===== */
.stream-card,
.card-img,
.card-content,
.card-title,
.card-meta,
.card-category,
.live-badge,
.time-badge,
.premium-badge {
  /* All styles remain exactly the same - no changes to card appearance */
}

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

/* Ensure red accents are removed from non-card elements */
.nav-links a::after {
  background: var(--hover-accent) !important;
}
