/* ==========================================================================
   UzDramaa.net Unified Premium Theme Stylesheet (React Header & Hero Slider 1:1)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-color: #121212;
  --panel-bg: #1e1e1e;
  --accent: #86e000;
  --accent-hover: #9bfb00;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: #2c2c2c;
  --badge-top: #ffb703;
  --badge-hd: #219ebc;
  --input-bg: #2a2a2a;
  --input-bg-hover: #3a3a3a;
  --primary: #86e000;
}

[data-theme="light"] {
  --bg-color: #f3f4f6;
  --panel-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-color: #e5e7eb;
  --input-bg: #e5e7eb;
  --input-bg-hover: #d1d5db;
}

* {
  box-sizing: border-box;
}

body.dark-theme, body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img, video, iframe, embed, object {
  max-width: 100%;
}

.container, .site-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   REACT DESKTOP NAVBAR & HEADER (EXACT MATCH 1:1)
   ========================================================================== */
.navbar {
  background-color: var(--panel-bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  padding-bottom: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffd700 0%, var(--accent) 100%);
  border-radius: 2px;
  transition: width 0.3s ease-in-out;
  box-shadow: 0 0 8px rgba(134, 224, 0, 0.4);
}

.logo-icon {
  color: #6366f1;
  background: #2d2f4a;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.logo-icon svg {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo span {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo span span {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .logo:hover {
    transform: translateY(-1px);
  }

  .logo:hover::after {
    width: 100%;
  }

  .logo:hover .logo-icon {
    transform: scale(1.07);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
  }

  .logo:hover .logo-icon svg {
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
  }

  .logo:hover > span {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.25), 0 0 15px rgba(255, 255, 255, 0.2);
  }

  .logo:hover > span > span {
    color: var(--accent-hover);
    text-shadow: 0 0 8px rgba(134, 224, 0, 0.5);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.nav-link svg {
  transition: transform 0.3s ease;
}

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

.nav-link:hover svg {
  animation: iconWiggle 0.4s ease-in-out forwards;
  filter: drop-shadow(0 0 8px rgba(134, 224, 0, 0.4));
}

@keyframes iconWiggle {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-15deg) scale(1.2); }
  50% { transform: rotate(10deg) scale(1.2); }
  75% { transform: rotate(-10deg) scale(1.2); }
  100% { transform: rotate(0deg) scale(1.2); }
}

.nav-link.active-home {
  color: var(--accent);
  font-weight: 600;
}

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

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border-radius: 20px;
  padding: 6px 12px;
  width: 250px;
  position: relative;
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  width: 100%;
  font-size: 14px;
}

.search-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 1000;
  max-height: 350px;
  overflow-y: auto;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: rgba(134, 224, 0, 0.1); }
.search-item img {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.search-item-info { display: flex; flex-direction: column; min-width: 0; }
.search-item-title { font-weight: 600; font-size: 13px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-cat { font-size: 11px; color: var(--accent); margin-top: 4px; }
.search-no-results { padding: 16px; text-align: center; color: var(--text-muted); font-size: 14px; }

.search-btn {
  background: var(--text-main);
  color: var(--panel-bg);
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 30px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-btn svg {
  animation: iconSlide 3s infinite ease-in-out;
}

@keyframes iconSlide {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.theme-toggle {
  transition: color 0.2s;
}

.theme-toggle:hover {
  color: var(--accent) !important;
}

.theme-toggle svg {
  animation: iconGlow 3s infinite ease-in-out;
}

@keyframes iconGlow {
  0%, 100% {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
  }
  50% {
    color: #555555;
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }
}

.icon-btn {
  background: var(--input-bg);
  color: var(--text-main);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.icon-btn:hover {
  background: var(--input-bg-hover);
  color: var(--accent);
}

/* ==========================================================================
   HERO SLIDER (3-CARD LANDSCAPE REFERENCE STYLING)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  margin: 30px 0;
  overflow: hidden;
  border-radius: 16px;
}

.hero-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-slider-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #14171f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  display: block;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

@media (max-width: 900px) {
  .hero-slide {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .hero-slide {
    flex: 0 0 100%;
  }
}

.hero-slide-image, .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .hero-slide:hover {
    border-color: rgba(255, 225, 85, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 220, 60, 0.12);
  }

  .hero-slide:hover .hero-slide-image,
  .hero-slide:hover img {
    transform: scale(1.03);
  }

  .hero-slide:hover .hero-play-icon {
    background: rgba(15, 16, 12, 0.85);
    border-color: rgba(255, 235, 100, 1);
    color: #FFF099;
    transform: scale(1.06);
    box-shadow: 0 0 14px rgba(255, 220, 60, 0.45), 0 0 24px rgba(255, 220, 60, 0.25);
  }

  .hero-slide:hover .hero-play-icon i {
    color: #FFF099;
  }

  .hero-slide:hover .hero-cta-text {
    color: #ffffff;
  }

  .hero-slide:hover .hero-arrow-icon {
    transform: translateX(3px);
    color: #ffffff;
  }
}

/* Top Left Material Type Badge */
.hero-type-badge-wrap {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
}

.hero-type-badge {
  background: rgba(15, 20, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Dark Gradient Overlay */
.hero-slide-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0; top: 0;
  background: linear-gradient(to top, rgba(11, 13, 18, 0.95) 0%, rgba(11, 13, 18, 0.45) 50%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  pointer-events: none;
  z-index: 2;
}

.hero-slide-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.slide-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.slide-badge {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.slide-badge.hd-badge-pill {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

/* CTA Row (Play Ring + "Hozir tomosha qiling" + Chevron) */
.hero-slide-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 4px;
}

.hero-play-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 16, 12, 0.70);
  border: 2px solid rgba(255, 225, 85, 0.95);
  color: #FFE36A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  box-shadow: 0 0 10px rgba(255, 220, 60, 0.28), 0 0 18px rgba(255, 220, 60, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-play-icon i {
  color: #FFE36A;
  margin-left: 2px;
  transition: color 0.25s ease;
}

.hero-cta-text {
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
}

.hero-arrow-icon {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 2px;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Nav Buttons Glass Style */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 20, 28, 0.85);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.slider-nav-btn:hover {
  background: rgba(255, 216, 61, 0.2);
  border-color: rgba(255, 216, 61, 0.4);
  color: #ffd83d;
  transform: translateY(-50%) scale(1.06);
}

.slider-nav-btn.left { left: 10px; }
.slider-nav-btn.right { right: 10px; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide-image, .hero-slide img, .hero-slider-track {
    transition: none !important;
    animation: none !important;
  }
}

/* --- CATEGORY CHIPS BAR --- */
.category-wrapper, .category-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 28px;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.category-wrapper::-webkit-scrollbar, .category-chips::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.cat-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(134, 224, 0, 0.3);
}

.cat-btn.cat-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59,130,246,0.3); }
.cat-btn.cat-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border-color: rgba(168,85,247,0.3); }
.cat-btn.cat-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; border-color: rgba(236,72,153,0.3); }
.cat-btn.cat-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; border-color: rgba(249,115,22,0.3); }

/* --- UNIFIED MOVIES GRID & SCOPED MOVIE CARD --- */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding-bottom: 20px;
  width: 100%;
}

@media (max-width: 1200px) { .movies-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px) { .movies-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .movies-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .movies-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; } }

.home-movie-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: var(--panel-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 0 !important;
  margin-bottom: 0 !important;
  border: none;
}

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

.home-movie-card .movie-poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  width: 100%;
  background: #0d0f12;
}

.home-movie-card .movie-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.home-movie-card:hover .movie-poster-wrap img {
  transform: scale(1.05);
}

.home-movie-card .movie-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

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

.play-circle {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge {
  position: absolute;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.hd-badge { top: 8px; left: 8px; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); }
.top-badge { top: 8px; right: 8px; background: var(--badge-top); color: #000; }

.movie-info {
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.movie-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

/* Filter Pill Badges */
.filter-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  background: #1e293b !important;
  color: #ffffff !important;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-pill-badge:hover {
  background: var(--accent) !important;
  color: #000 !important;
  border-color: var(--accent) !important;
  transform: translateY(-1px);
}

/* --- FILTER PAGES LAYOUT (/yil/{year} & /davlat/{slug}) --- */
.filter-page-container {
  padding: 25px 0;
  width: 100%;
}

.filter-layout-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  width: 100%;
  align-items: start;
}

.filter-main-col {
  min-width: 0;
  width: 100%;
}

.filter-sidebar-col {
  min-width: 0;
  width: 300px;
}

.filter-movies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 1200px) {
  .filter-movies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .filter-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .filter-sidebar-col {
    width: 100% !important;
  }
  .filter-movies-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* --- INNER MOVIE / SERIES LAYOUT & SIDEBAR --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-item {
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.breadcrumb-item:hover { color: var(--text-main); }
.breadcrumb-item.current { color: var(--text-main); font-weight: 600; cursor: default; }

.main-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  padding-bottom: 50px;
}

.left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.movie-detail-card {
  background: var(--panel-bg);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 30px;
  border: 1px solid var(--border-color);
}

.movie-detail-poster {
  width: 220px;
  height: 330px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

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

.movie-detail-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 20px 0;
  color: var(--text-main);
}

.play-btn-large {
  background: var(--accent);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-bottom: 30px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.play-btn-large:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.meta-info {
  display: flex;
  gap: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-value {
  color: var(--text-main);
  font-weight: 600;
  font-size: 16px;
}

.rating-value {
  color: var(--badge-top);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar {
  background: var(--panel-bg);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--border-color);
  width: 380px;
  min-width: 0;
  height: fit-content;
  box-sizing: border-box;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.sidebar-title .icon { color: var(--accent); }

.sidebar .similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 14px;
  row-gap: 22px;
  width: 100%;
}

.sidebar .home-movie-card {
  width: 100%;
  min-width: 0;
}

.sidebar .home-movie-card .movie-poster-wrap {
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar .home-movie-card .movie-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar .home-movie-card .movie-info {
  padding: 8px 2px 2px 2px;
}

.sidebar .home-movie-card .movie-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 0 0 6px 0 !important;
  color: var(--text-main) !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sidebar .home-movie-card .filter-pill-badge {
  font-size: 10px;
  padding: 2px 5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- PLAYERJS CONTAINER RULES --- */
.video-area, .watch-section {
  background: var(--panel-bg);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
  clear: both;
  box-sizing: border-box;
}

.player-wrapper, #player, #videoKodContainer {
  width: 100%;
  height: 480px;
  background: #000;
}

.player-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

.action-btn {
  background: var(--panel-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.action-btn:hover {
  background: var(--input-bg);
  transform: translateY(-2px);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--panel-bg);
  border-top: 1px solid var(--border-color);
  margin-top: 50px;
  padding-top: 40px;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 16px 0;
  line-height: 1.6;
  max-width: 320px;
}

.social-links { display: flex; gap: 12px; }

.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--input-bg);
  color: var(--text-main);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}

.social-btn:hover { background: var(--accent); color: #000; transform: translateY(-2px); }

.footer-title {
  font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 20px; letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.footer-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-links .footer-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 12px;
  height: 33px;
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.footer-links .footer-menu-button:hover {
  background: #3b82f6 !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.footer-menu-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-chevron {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.footer-menu-text {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  background: rgba(0,0,0,0.1);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright { font-size: 13px; color: var(--text-muted); }

.scroll-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(134, 224, 0, 0.4);
  transition: transform 0.2s;
}

.scroll-to-top:hover { transform: translateY(-4px); }

/* ==========================================================================
   REACT MOBILE MEDIA QUERIES (<= 768px EXACT 1:1)
   ========================================================================== */
@media (max-width: 768px) {
  .site-main-content {
    margin-top: 15px !important;
  }

  .navbar {
    padding-bottom: 50px !important;
    position: relative !important;
    height: auto !important;
  }

  .nav-links {
    display: none !important;
  }

  .search-wrapper {
    position: absolute !important;
    bottom: 8px !important;
    left: 20px !important;
    right: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: auto !important;
  }

  .search-bar {
    width: 100% !important;
  }

  .search-bar input {
    display: block !important;
  }

  .search-btn {
    margin-left: 8px !important;
    background: var(--text-main) !important;
    color: var(--bg-color) !important;
  }

  .hero-slide { flex: 0 0 100% !important; }
  .movies-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .main-layout { grid-template-columns: 1fr !important; }
  .movie-detail-card { flex-direction: column !important; align-items: center !important; text-align: center !important; }
  .meta-info { justify-content: center !important; flex-wrap: wrap !important; gap: 15px !important; }
  .footer-content { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-bottom-content { flex-direction: column !important; gap: 12px !important; text-align: center !important; }
  .scroll-to-top { right: 16px !important; bottom: 16px !important; }

  .sidebar {
    width: 100% !important;
  }
  .sidebar .similar-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .sidebar .similar-grid > *:nth-child(n+3) {
    display: none !important;
  }
}

/* ==========================================================================
   EXACT 16:9 MOVIE PLAYER & PLAYERJS OVERLAY FIX (DESKTOP & MOBILE)
   ========================================================================== */
.player-shell,
.video-area,
#watchSection {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #000 !important;
  margin-bottom: 20px !important;
  box-sizing: border-box !important;
}

.player-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  background: #000 !important;
}

#player,
#videoKodContainer {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  background: #000 !important;
  overflow: hidden !important;
}

/* Target ONLY direct child main wrapper generated by PlayerJS */
#player > pjs,
#player > pjsdiv,
#player > div {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  box-sizing: border-box !important;
}

/* Poster image layer: fill full 16:9 area seamlessly */
#player img,
#player [style*="background-image"],
.pjs_poster {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
}

/* Playing video / canvas / iframe layer */
#player video,
#player canvas,
#player iframe,
#videoKodContainer iframe,
#videoKodContainer video {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

/* --- SCOPED COMMENTS SYSTEM STYLES --- */
.comments-section {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.comments-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.comments-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
}

.comments-count-badge {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 6px;
}

.comments-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

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

.comment-input-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  resize: vertical;
  min-height: 90px;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s;
}

.comment-input-wrap textarea:focus {
  border-color: var(--accent);
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.comment-char-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-submit-comment {
  padding: 10px 20px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  border: none;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-submit-comment:hover {
  transform: translateY(-1px);
}

.comments-guest-prompt {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.comments-guest-prompt p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 12px 0;
}

.btn-guest-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  color: #ffd700;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-guest-login:hover {
  background: rgba(255, 215, 0, 0.22);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #0f172a;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.comment-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.comment-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}

.comments-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.comments-load-more-wrap {
  text-align: center;
  margin-top: 20px;
}

.comments-load-more {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

.comments-load-more:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* === REKLAMA CONTAINER STYLES (0px height when empty) === */
.ad-container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  text-align: center;
  box-sizing: border-box;
}
.ad-container:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
}
.ad-container img,
.ad-container iframe,
.ad-container video,
.ad-container svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  margin: 0 auto;
}
