/* PLAYLAB Modern Theme CSS */

/* Root Variables */
:root {
  --primary-color: #e50914;
  --secondary-color: #f5a623;
  --danger-color: #e74c3c;
  --success-color: #25D366;
  --bg-dark: #0b0f1a;
  --text-primary: #ffffff;
  --text-secondary: #ccc;
  --border-radius: 8px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
}

/* HEADER STYLING */
.modern-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  padding: 0 !important;
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
}

.navbar-brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
}

.navbar-brand::before {
  content: '';
  display: inline-block;
  color: var(--primary-color);
}

.navbar-nav {
  gap: 30px;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
  background: rgba(11, 15, 26, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--border-radius) !important;
  padding: 10px 0 !important;
}

.dropdown-menu .dropdown-item {
  color: var(--text-secondary) !important;
  font-size: 14px;
  padding: 10px 20px !important;
  transition: all var(--transition);
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(229, 9, 20, 0.2) !important;
  color: var(--text-primary) !important;
}

.dropdown-divider {
  background: rgba(255, 255, 255, 0.1) !important;
  margin: 5px 0 !important;
}

/* Premium Button */
.btn-premium {
  background: var(--primary-color) !important;
  padding: 7px 14px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  color: var(--text-primary) !important;
}

.btn-premium:hover {
  opacity: 0.8;
}

/* WhatsApp Button */
.whatsapp-btn {
  background: var(--success-color);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* Navbar Right Items */
.navbar-right-items {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 30px;
}

.search-btn,
.user-menu-btn,
.btn-login {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: color var(--transition);
  text-decoration: none;
}

.search-btn:hover,
.user-menu-btn:hover,
.btn-login:hover {
  color: var(--text-primary);
}

/* HERO SLIDER STYLING */
.splide {
  margin-top: 60px !important;
}

.hero-slide {
  height: 72vh;
  position: relative;
}

.hero-bg {
  width: 100%;
  height: 72vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.85) 10%, transparent 60%),
    linear-gradient(to top, var(--bg-dark) 10%, transparent 60%);
  z-index: 1;
}

.hero-slide-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.hero-content {
  position: absolute;
  bottom: 60px;
  left: 60px;
  z-index: 2;
  max-width: 520px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.watch-btn,
.plan-btn {
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.watch-btn {
  background: var(--secondary-color);
}

.watch-btn:hover {
  background: #f59545;
  transform: translateY(-2px);
}

.plan-btn {
  background: var(--danger-color);
}

.plan-btn:hover {
  background: #d63125;
  transform: translateY(-2px);
}

/* CONTENT SECTIONS */
.section {
  padding: 40px 0;
}

.row {
  padding: 25px 40px;
}

.section-header {
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-header a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.section-header a:hover {
  color: var(--primary-color);
}

/* CARD STYLING */
.card-list,
.video-carousel,
.video-shows-carousel,
.tv-season-video-carousel,
.recently-watched-video-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
}

.card,
.single-video {
  min-width: 220px;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  flex-shrink: 0;
}

.card img,
.video-img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.card:hover,
.single-video:hover {
  transform: scale(1.12);
}

.card-video {
  position: relative;
  overflow: hidden;
}

.video-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--text-primary);
  padding: 15px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vid-lab-premium {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.vid-lab-premium img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* SCROLLBAR STYLING */
.card-list::-webkit-scrollbar,
.video-carousel::-webkit-scrollbar,
.video-shows-carousel::-webkit-scrollbar,
.tv-season-video-carousel::-webkit-scrollbar,
.recently-watched-video-carousel::-webkit-scrollbar {
  height: 6px;
}

.card-list::-webkit-scrollbar-track,
.video-carousel::-webkit-scrollbar-track,
.video-shows-carousel::-webkit-scrollbar-track,
.tv-season-video-carousel::-webkit-scrollbar-track,
.recently-watched-video-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.card-list::-webkit-scrollbar-thumb,
.video-carousel::-webkit-scrollbar-thumb,
.video-shows-carousel::-webkit-scrollbar-thumb,
.tv-season-video-carousel::-webkit-scrollbar-thumb,
.recently-watched-video-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.card-list::-webkit-scrollbar-thumb:hover,
.video-carousel::-webkit-scrollbar-thumb:hover,
.video-shows-carousel::-webkit-scrollbar-thumb:hover,
.tv-season-video-carousel::-webkit-scrollbar-thumb:hover,
.recently-watched-video-carousel::-webkit-scrollbar-thumb:hover {
  background: #c00812;
}

/* BANNER STYLING */
.home-banner-block {
  padding: 25px 40px;
}

.home-banner-block .rounded-3 {
  border-radius: var(--border-radius) !important;
  overflow: hidden;
}

/* VIEW ALL BUTTON */
.btn-outline {
  background: transparent !important;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--primary-color) !important;
  color: var(--text-primary) !important;
}

/* MOBILE MENU STYLING */
.navbar-toggle-btn,
.navbar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 5px;
}

.toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .modern-navbar {
    padding: 12px 20px;
  }

  .navbar-nav {
    gap: 15px;
  }

  .nav-link {
    font-size: 13px;
  }

  .hero-slide,
  .hero-bg {
    height: 45vh;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-content {
    left: 20px;
    bottom: 30px;
    max-width: 280px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .watch-btn,
  .plan-btn {
    width: 100%;
    justify-content: center;
  }

  .row {
    padding: 20px;
  }

  .card,
  .single-video {
    min-width: 180px;
  }

  .video-item-content {
    font-size: 11px;
  }

  .navbar-right-items {
    gap: 10px;
    margin-left: 10px;
  }

  .search-btn,
  .user-menu-btn,
  .btn-login {
    font-size: 14px;
  }

  .navbar-toggle-btn,
  .navbar-close-btn {
    display: block;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent);
    flex-direction: column !important;
    padding: 20px;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-slide,
  .hero-bg {
    height: 30vh;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-content {
    left: 15px;
    bottom: 20px;
  }

  .hero-buttons {
    gap: 8px;
  }

  .watch-btn,
  .plan-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .card,
  .single-video {
    min-width: 150px;
  }

  .section-header h2 {
    font-size: 18px;
  }

  .row {
    padding: 15px;
  }
}

/* Splide Customization */
.splide__arrow {
  background: rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  transition: background var(--transition);
}

.splide__arrow:hover {
  background: var(--primary-color);
}

.splide[data-type="fade"] > .splide__track > .splide__list {
  margin: 0;
}

/* Owl Carousel Customization */
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-nav .owl-prev {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.owl-carousel .owl-nav .owl-next:hover,
.owl-carousel .owl-nav .owl-prev:hover {
  background: var(--primary-color);
}

.owl-carousel .owl-nav .owl-prev:before,
.owl-carousel .owl-nav .owl-next:before {
  color: var(--text-primary);
  font-weight: bold;
}
