/* Color Palette — Dark Orange Theme */
:root {
  --bg-color: #000000;
  --primary-glow: #ff8c00;
  --primary-hover: #cc7000;
  --secondary-glow: #e67800;
  --primary-pink: #ff6600;
  --primary-pink-hover: #e05500;
  --accent-blue: #555555;
  --text-primary: #ffffff;
  --text-muted: #999999;
  --card-glass: rgba(0, 0, 0, 0.45);
  --border-glass: rgba(255, 255, 255, 0.08);
  --neon-border: rgba(255, 140, 0, 0.25);
  --font-family: 'Poppins', sans-serif;
}

/* =======================================================
   1. GLOBAL TAP PROTECTION & SMOOTH CLICKING (IMAGE 3 FIX)
   ======================================================= */
html,
body {
  position: relative;
  overflow-x: hidden !important; /* Force blocks any viewport width leak */
  width: 100% !important;
  max-width: 100% !important;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  background-image: none;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  margin: 0 !important;
  padding: 0 !important;
  
  /* Disable User Selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;

  /* Hide Scrollbar - Cross Browser (Chrome, Edge, Firefox, Android) */
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

/* Hide Scrollbar for WebKit Browsers (Chrome, Edge, Safari, Android) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

* {
  box-sizing: border-box !important; /* Strict protection preventing structural calculations overflow */
  margin: 0;
  padding: 0;
  
  /* Image 3 Tap Highlight Bug fix - Removes blue active highlights on mobile clicks */
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;

  /* Globally hide scrollbar on ALL elements - prevents flash on any scroll container */
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Kill ALL webkit scrollbars globally - no exceptions, no flash ever */
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Disable tap outlines on focus/active elements */
button, a, select, input, textarea, .category-pill, .movie-card {
  outline: none !important;
  box-shadow: none !important;
}

/* Allow selection inside typing inputs */
input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Image Copy & Save Protection */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

/* Custom Scrollbar REMOVED - All scrollbars permanently hidden globally above */

/* Toast Container */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  width: calc(100% - 40px);
}

.toast {
  background: rgba(0, 0, 0, 0.95);
  border-left: 4px solid var(--primary-glow);
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease-out forwards;
  backdrop-filter: blur(8px);
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Header Styles */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    width: 100% !important;
  }
  .header-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.4rem 1rem 0.25rem 1rem;
  }
  .header-top-row .hamburger-btn {
    position: absolute;
    left: 1rem;
  }
  .header-top-row .logo { font-size: 1.55rem; }
  .header-search-row {
    padding: 0 0.8rem 0.65rem 0.8rem;
  }
  .header-search-row .search-box {
    width: 100%;
    max-width: 100%;
    position: relative;
  }

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  flex-shrink: 0;
}
/* Two-tone logo: "filmy" white, "fly" orange */
.logo-p1 { color: #ffffff; }
.logo-p2 { color: #ff8c00; text-shadow: 0 0 10px rgba(255,140,0,0.7); }

.logo img { display: none; }

/* Autocomplete Header Search */
.search-box {
  position: relative;
  width: 400px;
  max-width: 100%;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 2.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.clear-search-icon {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.clear-search-icon:hover {
  color: #fff;
}

/* Autocomplete drop panel styling */
.search-autocomplete-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #000000;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  max-height: 350px;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  padding: 8px 0;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.search-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.search-item-info {
  display: flex;
  flex-direction: column;
}

.search-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  margin-top: 2px;
}

.search-type-label {
  color: var(--primary-glow);
  font-weight: bold;
}

.search-year-label {
  color: var(--text-muted);
}

/* Views Setup */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: calc(100vh - 280px);
  overflow-x: hidden !important; /* Secondary boundary security check */
}

.app-view {
  display: none;
  width: 100%;
  max-width: 100%;
}

.app-view.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out forwards;
}

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

/* Hero Carousel Slider */
.carousel-container {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 20px;
  overflow: hidden !important;
  margin-bottom: 2rem;
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  display: none;
  background: #000000;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

/* Blurred background layer for poster slides */
.cs-blur-bg {
  position: absolute;
  inset: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  object-fit: cover;
  filter: blur(28px);
  opacity: 0.3;
  pointer-events: none;
}

/* Cinematic slide content row */
.cs-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.8rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 100%);
}

/* Portrait poster inside carousel */
.cs-poster {
  height: calc(100% - 20px);
  width: auto;
  max-width: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.8);
  flex-shrink: 0;
  pointer-events: none;
}

/* Movie info text in carousel */
.cs-info {
  flex: 1;
  color: #fff;
  overflow: hidden;
}

.cs-info h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.8rem;
}

.cs-quality-badge {
  display: inline-block;
  background: var(--primary-glow);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.cs-play-icon {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 140, 0, 0.6);
  border: 1px solid var(--primary-glow);
  padding: 8px 16px;
  border-radius: 20px;
  width: fit-content;
  backdrop-filter: blur(6px);
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--primary-glow);
  width: 18px;
  border-radius: 3px;
}

/* Old carousel-slide img fallback for custom URL banners */
.carousel-slide > img.cs-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Carousel arrows permanently hidden */
.carousel-btn,
.prev-btn,
.next-btn {
  display: none !important;
}

/* ====================================================
   TRENDING NOW HORIZONTAL STRIP
   ==================================================== */
.trending-now-section {
  margin-bottom: 2rem;
}

.trending-now-strip {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.5rem 0.2rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.tn-card {
  flex-shrink: 0;
  width: 120px;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
}

.tn-poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 14px rgba(0,0,0,0.7);
  transition: transform 0.25s ease;
}

.tn-card:hover .tn-poster-wrapper {
  transform: scale(1.04);
  border-color: var(--primary-glow);
}

.tn-poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.tn-star-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.75);
  color: #facc15;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  backdrop-filter: blur(4px);
}

.tn-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 5px 5px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Telegram Join Button */
.tg-join-wrapper {
  margin-bottom: 1.8rem;
}

.tg-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.95rem 1rem;
  background: linear-gradient(90deg, #0088cc, #00aaff);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(0, 136, 204, 0.4);
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
}

.tg-join-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.tg-join-btn i {
  font-size: 1.2rem;
}

/* Categories Capsule Outline Pills */
.categories-bar {
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.2rem;
}

.categories-list {
  display: flex;
  flex-wrap: wrap; 
  gap: 0.8rem;
  justify-content: center;
}

.category-pill {
  white-space: nowrap;
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.25s ease;
}

.category-pill:hover, .category-pill.active {
  background: rgba(255, 140, 0, 0.85);
  border-color: #ff8c00;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.35);
}

/* Tutorial Download Section */
.tutorial-card-container {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.tutorial-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Movie Grids & Standard Cards Layout */
.movies-section {
  margin-bottom: 3rem;
}

.section-title-wrapper {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-neon {
  color: #ff8c00;
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.6);
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.2rem;
}

/* ===================================================================
   2. HOME PAGE COMPACT POSTERS WITH DYNAMIC TITLE OVERLAYS (POINT 3)
   =================================================================== */
.movie-card {
  background: transparent !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-glow) !important;
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

/* Remove old footer info cards at bottom of main view grid */
.movie-card .card-content {
  display: none !important;
}

/* Compact black translucent title overlays on poster card */
.poster-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.65) 75%, transparent 100%);
  padding: 12px 8px 8px 8px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.poster-title-overlay .card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.poster-title-overlay .card-meta {
  font-size: 0.68rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poster-title-overlay .card-meta-dl-text {
  color: var(--primary-pink);
  font-weight: bold;
}

/* Poster Wrapper aspect ratio boundaries */
.card-poster-wrapper {
  position: relative;
  aspect-ratio: 2/3;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.card-poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* Left Dark Tag Badge */
.card-type-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: rgba(255, 220, 100, 0.95);
  font-size: 0.62rem;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 9;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 200, 60, 0.2);
}

/* Right Violet Quality Badge */
.card-quality-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff8c00;
  color: #fff;
  font-size: 0.68rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 9;
}

/* ========================================================
   MICRO COMFORT ENFORCED GRIDS (TRENDING 12 & RECENT 6 POSTS)
   ======================================================== */
.trending-grid-3cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.2rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Hide card content completely inside trending grid to mimic reference image exactly */
.trending-grid-3cols .movie-card .card-content {
  display: none !important;
}

.trending-grid-3cols .movie-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.trending-grid-3cols .card-poster-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.trending-overlay-card {
  position: relative;
  width: 100%;
}

/* Transparent outline numbers — image reference style */
.trending-number-overlay {
  position: absolute;
  left: -8px;
  bottom: -10px;
  font-size: 7rem;
  font-weight: 900;
  font-family: 'Orbitron', 'Poppins', sans-serif;
  color: transparent;
  -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.55);
  text-stroke: 2.5px rgba(255, 255, 255, 0.55);
  text-shadow: none;
  z-index: 10;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -4px;
}

/* Recent Uploads Grid Styles */
.recent-grid-3cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.2rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.recent-grid-3cols .movie-card .card-content {
  display: none !important; /* Hide old cards in Recent as well */
}

/* TABLET SCALING */
@media (max-width: 768px) {
  .trending-grid-3cols, .recent-grid-3cols {
    gap: 0.6rem;
  }
  
  .trending-grid-3cols .card-poster-wrapper,
  .recent-grid-3cols .card-poster-wrapper {
    border-radius: 8px;
  }

  .trending-overlay-card .trending-number-overlay {
    font-size: 4.2rem;
    left: -5px;
    bottom: -7px;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
  }
}

/* SMARTPHONE SCALING */
@media (max-width: 480px) {
  .trending-grid-3cols, .recent-grid-3cols {
    gap: 0.4rem !important;
  }

  .trending-overlay-card .trending-number-overlay {
    font-size: 3.2rem;
    left: -4px;
    bottom: -6px;
    -webkit-text-stroke: 1.8px rgba(255, 255, 255, 0.5);
  }
}

/* Explore Categories Grid (Unneeded/Removed from Home, but styled here safely) */
.explore-categories-card {
  background: #000000;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
}

.explore-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.explore-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.explore-cat-item:hover {
  background: rgba(255, 140, 0, 0.1);
  border-color: var(--primary-glow);
}

.explore-cat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.explore-cat-badge {
  background: var(--primary-glow);
  color: white;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Pagination Buttons Design */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 3rem;
  flex-wrap: nowrap;
}

/* Large PREV / NEXT buttons matching screenshot */
.pagination-nav-btn {
  background: #ff8c00;
  border: none;
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.32rem 0.8rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.pagination-nav-btn:hover:not(:disabled) {
  background: #ffa030;
  transform: scale(1.04);
}
.pagination-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* "Page X of Y" info pill */
.pagination-page-info {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Keep old class as no-op so old references don't break */
.pagination-btn { display: none; }

/* Movie Details Layout */
.movie-details-card {
  display: flex;
  flex-direction: column !important; /* Forces strict vertical stack on both mobile & desktop */
  align-items: center !important;
  justify-content: center !important;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  max-width: 900px; /* Restrict width elegantly */
  margin: 0 auto;
  width: 100%;
}

.details-poster {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.details-poster img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  border: 1px solid var(--border-glass);
  pointer-events: none;
}

.details-info-side {
  width: 100% !important;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.details-info-side h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: #fff;
}

.details-metadata-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  justify-content: center !important;
}

.meta-pill {
  background: rgba(255, 140, 0, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--neon-border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

/* Info spec-table */
.details-info-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 0 auto 2rem auto !important;
  text-align: left;
  width: 100%;
  max-width: 720px;
}

.details-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.spec-list-table {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-list-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 10px;
}

.spec-list-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-row-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary-glow);
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.spec-row-value {
  font-size: 1rem;
  color: #fff;
}

/* ===============================================================
   SCREENSHOTS SECTION: NO CROP, LARGE VERTICAL CARDS (IMAGE 6 FIX)
   =============================================================== */
.screenshots-gallery-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 10px var(--primary-glow);
  width: 100%;
}

.screenshots-gallery-header i {
  color: #f43f5e; /* Image 6 style pink camera/image icon */
}

/* Redesigned clean, large vertical collage stacked containers */
.screenshots-vertical-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Exact vertical gap spacing */
  width: 100%;
  max-width: 720px; /* Aligns with spec tables perfectly */
  margin: 0 auto 3.5rem auto;
  padding: 0 12px;
}

.screenshot-card-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 20px; /* Clean 20px curve layout borders */
  overflow: hidden;
  border: 1px solid rgba(255, 140, 0, 0.35); /* Purple glowing borders */
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.45); /* Purple shadow glow effects */
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s;
}

/* Protective invisible shield on images preventing saving via drag or touch menus */
.screenshot-card-wrapper::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: transparent;
  z-index: 5;
}

.screenshot-card-wrapper img {
  width: 100%;
  height: auto; /* Fully responsive natural height, no crop */
  display: block;
  pointer-events: none;
}

.screenshot-card-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 0 28px rgba(255, 140, 0, 0.75);
}

@media (max-width: 600px) {
  .screenshots-vertical-gallery {
    gap: 1.5rem;
    padding: 0 8px;
  }
  .screenshot-card-wrapper {
    border-radius: 16px;
  }
}

.extra-details-container {
  margin-top: 4rem;
}

/* Zoom popup modal */
.screenshot-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.screenshot-modal.active {
  display: flex;
}

.screenshot-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid var(--border-glass);
  pointer-events: none;
}

/* =============================================================
   DYNAMIC TIMERS & SECURE DECRYPT PROGRESS LOOPS (IMAGE 1 & 8)
   ============================================================= */
.download-system-card {
  background: rgba(12, 9, 31, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 720px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 5px 25px rgba(0,0,0,0.4);
}

.btn-dl-init {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn-dl-init:hover {
  box-shadow: 0 4px 25px rgba(255, 0, 128, 0.5);
  transform: translateY(-2px);
}

/* Image 1 countdown box design */
.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 16px; /* Image 1 card styling */
  gap: 14px;
}

/* Image 1 countdown text block */
.countdown-timer-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.3px;
}

/* Image 1 glowing pink indicator */
.countdown-timer-text .sec-glow {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #ff8c00;
  font-size: 1.35rem;
  margin: 0 4px;
  text-shadow: 0 0 12px rgba(255, 140, 0, 0.85); /* Radiant hot-pink glow */
}

.countdown-bar-outer {
  width: 100%;
  height: 5px; /* Thin progress layout */
  background: rgba(255, 255, 255, 0.08); /* Dark gray base */
  border-radius: 10px;
  overflow: hidden;
}

.countdown-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff8c00 0%, #ff5500 100%); /* Orange gradient progress */
  border-radius: 10px;
  transition: width 0.1s linear;
}

.download-links-dropdown-area {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 15px;
  animation: expandDown 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

.dl-grid-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.btn-dl {
  background: linear-gradient(135deg, var(--primary-glow), var(--primary-pink));
  color: white;
  text-decoration: none;
  padding: 0.95rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
  transition: all 0.25s;
  text-transform: uppercase;
}

.btn-dl:hover {
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
  transform: translateY(-2px);
}

/* ==============================================================
   EPIC BOTTOM THIN COMPACT INSTALL POPUP BAR (IMAGE 2 & 7 CODES)
   ============================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 14px;
  display: none;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 140, 0, 0.2);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  gap: 10px;
  box-sizing: border-box !important;
}

.pwa-install-button {
  flex: 1;
  border: none;
  padding: 7px 16px;
  border-radius: 20px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(90deg, #ff8c00 0%, #ff5500 100%) !important;
  box-shadow: 0 2px 12px rgba(255, 100, 0, 0.35);
  transition: opacity 0.2s, transform 0.2s;
  box-sizing: border-box !important;
  letter-spacing: 0.2px;
}

.pwa-install-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.pwa-install-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.pwa-install-close-btn:hover {
  color: #fff;
}

/* ==============================================================
   CUSTOM MODAL STYLE QUALITY DRY SELECT POPUP (IMAGE 5 STYLE)
   ============================================================== */
.quality-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-dropdown-header {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom dark selection radio overlay menu block */
.custom-dropdown-options-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  max-width: 90%;
  background: #000000; /* Image 5 dark shade background color */
  border-radius: 16px;
  z-index: 12000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  display: none;
  overflow: hidden;
  animation: modalScaleIn 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.custom-dropdown-options-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 11999;
  display: none;
}

.quality-modal-header {
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quality-modal-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
}

.quality-modal-option-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.quality-modal-option-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d1d0da;
}

/* Image 5 radio circular markers */
.quality-modal-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #58556f;
  position: relative;
  transition: all 0.2s;
}

.quality-modal-option-row.active .quality-modal-radio-dot {
  border-color: #3b86ff; /* Select highlights */
  background: #3b86ff;
}

.quality-modal-option-row.active .quality-modal-radio-dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* Admin input layout custom rounded rounded fields */
.form-container-card input, 
.form-container-card select, 
.form-container-card textarea {
  border-radius: 25px !important; /* Pill shaped input bounds */
}

/* Admin drag-and-drop screenshot items reordering UI rules */
.screenshot-drag-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: 30px;
  margin-bottom: 10px;
  cursor: grab;
  transition: background 0.2s, border-color 0.2s;
}

.screenshot-drag-item:active {
  cursor: grabbing;
}

.screenshot-drag-item.dragging {
  opacity: 0.5;
  border-color: var(--primary-glow);
  background: rgba(255, 140, 0, 0.05);
}

.screenshot-drag-handle {
  color: var(--text-muted);
  cursor: grab;
  font-size: 1.1rem;
}

.screenshot-drag-item input {
  flex: 1;
  border-radius: 30px !important;
}

.screenshot-drag-item .remove-ss-btn {
  background: #ef4444;
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.screenshot-drag-item .remove-ss-btn:hover {
  background: #dc2626;
}

/* Hide bottom install banner when any overlay modal (like admin panels) is open to prevent covering/blocking save buttons */
.modal-overlay.active ~ #pwa-install-banner,
.modal-overlay.active .pwa-install-banner {
  display: none !important;
}

/* Extra secure vertical spacing inside forms so bottom elements can be fully scrolled on small screens */
#movie-form {
  padding-bottom: 80px !important;
}

/* Premium Player Page Styling */
.player-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.player-brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 0 10px var(--primary-glow);
}

.player-wrapper {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2rem;
  margin: 0 auto;
  max-width: 1100px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.player-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.player-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.25);
  border: 1px solid var(--border-glass);
  margin-bottom: 1.5rem;
}

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

.player-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.player-tab-btn {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-family);
  font-weight: 500;
  transition: all 0.25s ease;
}

.player-tab-btn.active {
  background: var(--primary-glow);
  border-color: var(--primary-glow);
  box-shadow: 0 0 10px var(--primary-glow);
}

.player-qualities-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.2rem;
}

.quality-select-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-family);
  transition: all 0.2s;
}

.quality-select-btn.active, .quality-select-btn:hover {
  border-color: var(--secondary-glow);
  color: white;
  background: rgba(255, 0, 128, 0.15);
}

.stream-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Click-Redirect Blocker Layer overlay style (blocks clicks on top 55px bar only) */
.player-overlay-blocker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55px; /* blocks exact top 55px bar as marked in your image */
  z-index: 10;
  background: transparent;
  pointer-events: auto; /* intercepts events to block click redirection underneath */
}

/* Contact buttons at bottom of streaming page */
.stream-contact-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-wa {
  background: #25d366;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  background: #128c7e;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
  transform: translateY(-1px);
}

.btn-tg {
  background: #0088cc;
  box-shadow: 0 0 10px rgba(0, 136, 204, 0.3);
}

.btn-tg:hover {
  background: #006699;
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
  transform: translateY(-1px);
}

/* Dynamic Loading overlay for stream decoding */
.loading-overlay {
  position: absolute;
  inset: 0; 
  z-index: 20;
  background: rgba(7,11,26,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.loading-overlay.hidden { display: none; }

.spinner {
  position: relative;
  width: 52px; height: 52px;
  margin-bottom: 14px;
}
.ring1 {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #8B5CF6;
  border-right-color: #3B82F6;
  animation: spin 1s linear infinite;
}
.ring2 {
  position: absolute; inset: 8px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: rgba(255, 140, 0, 0.45);
  animation: spin 0.7s linear infinite reverse;
}
.loading-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 6vw, 38px);
  letter-spacing: 0.12em;
  color: rgba(255, 140, 0, 0.38);
  user-select: none;
}
.loading-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.18);
  margin-top: 6px;
  font-weight: 600;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Corner badge overlay */
.corner-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 30;
  background: rgba(7,11,26,0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 140, 0, 0.4);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 140, 0, 0.9);
  letter-spacing: 0.06em;
  pointer-events: none;
  font-family: 'Orbitron', sans-serif;
}

/* Admin Modal Layout */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(ellipse at 60% 40%, rgba(120, 40, 200, 0.55) 0%, rgba(30, 10, 60, 0.92) 60%, rgba(8, 4, 20, 0.98) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1000;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-overlay.active {
  display: block;
}

.modal-content {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px;
  background: transparent;
  border: none;
  box-sizing: border-box;
  overflow-x: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.admin-screen {
  display: none;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.admin-screen.active {
  display: block;
}

/* =====================================================
   GLASS MORPHISM ADMIN LOGIN CARD — Image 2 Reference
   ===================================================== */
.admin-glass-login-card {
  max-width: 360px;
  width: calc(100% - 40px);
  margin: 6vh auto;
  padding: 2.5rem 2rem;
  background: rgba(80, 30, 160, 0.18);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(180, 120, 255, 0.22);
  border-radius: 28px;
  box-shadow:
    0 8px 40px rgba(100, 30, 200, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
}

.admin-glass-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8c00, #cc5500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 1.2rem auto;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
}

.admin-glass-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
  letter-spacing: -0.3px;
}

.admin-glass-sub {
  font-size: 0.82rem;
  color: rgba(200, 170, 255, 0.7);
  margin-bottom: 1.8rem;
  font-weight: 500;
}

.admin-glass-field {
  margin-bottom: 1rem;
  text-align: left;
}

.admin-glass-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(220, 200, 255, 0.75);
  margin-bottom: 0.4rem;
  letter-spacing: 0.2px;
}

.admin-glass-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(180, 130, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.admin-glass-field input::placeholder {
  color: rgba(200, 170, 255, 0.35);
}

.admin-glass-field input:focus {
  outline: none;
  border-color: rgba(255, 140, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.admin-glass-btn {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.9rem;
  background: linear-gradient(135deg, #ff8c00 0%, #e07000 50%, #ff5500 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.5);
  transition: all 0.3s;
  letter-spacing: 0.3px;
}

.admin-glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 140, 0, 0.65);
  background: linear-gradient(135deg, #ffa020 0%, #e07000 100%);
}

/* Post Manager Grid of Cards */
.post-manager-cards-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.post-manager-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pm-card-top-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.pm-poster-box {
  width: 74px;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--border-glass);
}

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

.pm-poster-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary-glow);
  color: white;
  font-size: 0.58rem;
  font-weight: bold;
  padding: 2px 6px;
  border-bottom-right-radius: 6px;
  text-transform: uppercase;
}

.pm-info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pm-movie-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 4px;
}

.pm-movie-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pm-genres-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pm-genre-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 20px;
}

/* Post Manager Bottom Buttons */
.pm-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pm-btn-wide-view {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: white;
  padding: 10px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-family);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s;
}

.pm-btn-wide-view:hover {
  background: rgba(255, 140, 0, 0.1);
  border-color: var(--primary-glow);
}

.pm-action-btn-small {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.pm-btn-blue-edit {
  background: #3b86ff;
}

.pm-btn-blue-edit:hover {
  background: #2563eb;
}

.pm-btn-red-delete {
  background: #ef4444;
}

.pm-btn-red-delete:hover {
  background: #dc2626;
}

/* Category Tab style customizations */
.category-form-style {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Community Social links layout */
.social-form-style {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.8rem;
}

.social-form-style .input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Banners autocomplete search link */
.banner-form-style {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.banner-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000000;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.banner-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.banner-search-item:hover {
  background: rgba(255, 140, 0, 0.1);
}

.banner-search-item img {
  width: 32px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
}

.banner-search-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

/* Form layouts */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-glass);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stat-card .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.stat-card .stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 5px var(--primary-glow);
}

.stat-card .stat-value.latest-title {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.stat-card.full-width {
  grid-column: span 3;
}

.input-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.input-group input, 
.input-group textarea, 
.input-group select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.input-group input:focus, 
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary-glow);
}

.input-group.full-width {
  grid-column: span 1;
}

textarea {
  resize: vertical;
  width: 100%;
  max-width: 100%;
}

.glow-btn {
  background: var(--primary-glow);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--primary-glow);
  text-align: center;
}

.glow-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 15px var(--primary-glow);
}

.glow-btn.full-width {
  width: 100%;
}

/* Category Checklist Input Styles */
.categories-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  max-height: 150px;
  overflow-y: auto;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.checklist-item input {
  width: auto;
  cursor: pointer;
}

/* Dynamic Download Links inputs container */
.dynamic-download-link-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.dynamic-link-trash-btn {
  background: #ef4444;
  border: none;
  color: white;
  width: 44px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.dynamic-link-trash-btn:hover {
  background: #dc2626;
}

/* Back Button colored/glow */
.back-btn-colored {
  background: var(--primary-glow);
  color: #fff;
  border: 1px solid var(--neon-border);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
  transition: all 0.25s;
}

.back-btn-colored:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
  transform: translateY(-1px);
}

/* Highlighted streaming button */
.btn-stream {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-glow), var(--primary-pink));
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.35);
  transition: all 0.3s;
}

.btn-stream:hover {
  box-shadow: 0 4px 25px rgba(255, 140, 0, 0.55);
  transform: translateY(-2px);
}

/* Library Filtering Control Unit */
.library-controls-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.library-controls-bar input {
  flex: 1 1 200px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 0.65rem;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 0.85rem;
}

.library-controls-bar select {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 0.65rem;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Tab Navigation Buttons */
.dashboard-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 8px;
}

.welcome-text {
  font-size: 0.85rem;
  font-weight: 500;
}

.logout-btn {
  background: transparent;
  border: 1px solid #f87171;
  color: #f87171;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

.tab-buttons {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.8rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--primary-glow);
  border-bottom-color: var(--primary-glow);
}

.dashboard-tab {
  display: none;
  width: 100%;
  max-width: 100%;
  /* Clip any horizontal bleed from children so x-overflow never escapes the tab */
  overflow-x: hidden;
}

.dashboard-tab.active {
  display: block;
}

.tab-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  gap: 10px;
}

.tab-action-row h3 {
  font-size: 1.05rem;
}

/* Forms structure */
.form-container-card {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-container-card h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.preview-box {
  width: 100%;
  height: 100px;
  border-radius: 6px;
  border: 1px dashed var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  margin-top: 0.4rem;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Scraper Box styling */
.scraper-input-box {
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid var(--primary-glow);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.scraper-input-box label {
  font-size: 0.8rem;
  font-weight: 600;
}

.scraper-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}

.scraper-row input {
  background: #000;
  border: 1px solid var(--border-glass);
  color: white;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.scraper-row button {
  width: 100%;
  padding: 0.65rem 1rem;
}

.scraper-loader {
  font-size: 0.8rem;
  color: #ff8c00;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-actions-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1.2rem;
}

.form-actions-row button {
  width: 100%;
}

.cancel-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: center;
}

/* Inline single row configurations */
.inline-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.inline-form .input-group {
  margin-bottom: 0;
}

.inline-form button {
  width: 100%;
}

.form-actions-inline {
  display: flex;
  gap: 8px;
  width: 100%;
}

.form-actions-inline button {
  flex: 1;
}

/* ── Admin Data Table — No Overflow, Fixed Layout ─────────────────────────── */
.admin-data-table-wrapper {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  /* x: clip horizontal bleed; y: NEVER clip rows — height grows with content */
  overflow-x: hidden;
  overflow-y: visible;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  margin-top: 1rem;
}

.admin-data-table {
  box-sizing: border-box;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;        /* columns sized by colgroup, never by content */
}

/* Premium section title — Active Sliders List heading */
.section-panel-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 1.6rem 0 0 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, rgba(255,140,0,0.12) 0%, rgba(255,140,0,0) 100%);
  border-left: 3px solid #ff8c00;
  border-radius: 0 6px 6px 0;
  line-height: 1.2;
}

/* colgroup column widths — override any inline styles */
.admin-data-table col.col-preview  { width: 90px; }
.admin-data-table col.col-actions  { width: 64px; }
.admin-data-table col.col-title    { width: auto; } /* takes remaining space */

.admin-data-table th,
.admin-data-table td {
  box-sizing: border-box;
  padding: 0.65rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.8rem;
  vertical-align: middle;
  overflow: hidden;           /* cells never push outside their column */
}

/* Header row */
.admin-data-table th {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;        /* "Actions" stays on one line */
}

/* Preview column (first) */
.admin-data-table td:first-child {
  white-space: nowrap;
  overflow: hidden;
}

/* Actions column (last) — centered, no wrap */
.admin-data-table th:last-child,
.admin-data-table td:last-child {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* Title column — 2 lines max then ellipsis */
.admin-data-table td.slider-title-cell {
  overflow: hidden;
}

.admin-data-table td.slider-title-cell strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.admin-data-table td img {
  display: block;
  border-radius: 4px;
  max-width: 100%;
  height: auto;
}

/* Action buttons — stacked vertically, fixed size */
.action-row-btns {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
}

.action-row-btns button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.action-row-btns button:hover {
  background: var(--primary-glow);
}

/* Footer structure styling */
/* ── Footer — BollyBuzz-style ──────────────────────────────────────────────── */
.app-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #000;
  padding: 3.5rem 1.2rem 2rem;
  margin-top: 4rem;
}
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Brand name FILMY|FLY */
.footer-brand {
  font-family: var(--font-orbitron, 'Orbitron', sans-serif);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.footer-brand-p1 { color: #ffffff; }
.footer-brand-p2 { color: #ff8c00; }

/* Tagline */
.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #888;
  text-transform: uppercase;
  margin: 0 0 2rem 0;
}

/* Nav links in bordered boxes */
.footer-nav-boxes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}
.footer-nav-boxes a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-nav-boxes a:hover {
  color: #ff8c00;
  border-color: #ff8c00;
}

/* Social icons in dark circles */
.footer-social-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  flex-wrap: wrap;
}
.footer-social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.footer-social-bar a:hover {
  background: #ff8c00;
  color: #000;
  border-color: #ff8c00;
}

/* SEO tag cloud — hidden visually, present for crawlers */
.footer-tags-area {
  color: #333;
  font-size: 0.7rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Copyright */
.copyright-text {
  font-size: 0.78rem !important;
  color: #555 !important;
  line-height: 1.8;
}
.footer-heart { color: #ff8c00; }

/* Keep old .footer-logo as no-op */
.footer-logo { display: none; }
.footer-links { display: none; }

/* RESPONSIVE DESIGN VIEWPORT LAYOUT BREAKPOINTS */

@media (max-width: 480px) {
  .header-container {
    padding: 0.8rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .logo {
    justify-content: center;
  }
  .search-box {
    width: 100%;
  }
  .carousel-container {
    height: 240px;
    margin-bottom: 1.5rem;
  }
  .cs-info h2 { font-size: 1rem; }
  .cs-poster { max-width: 120px; }
  .cs-play-icon { display: none; }
  .movie-details-card {
    padding: 1rem;
    gap: 1.5rem;
  }
  .details-poster {
    max-width: 280px;
    margin: 0 auto;
  }
  .details-info-side h1 {
    font-size: 1.5rem;
  }
  .player-wrapper {
    padding: 1rem;
  }
  .player-title {
    font-size: 1.2rem;
  }
  .explore-categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) {
  .form-actions-row {
    flex-direction: row;
    justify-content: flex-end;
  }
  .form-actions-row button {
    width: auto;
  }
  .inline-form {
    flex-direction: row;
    align-items: flex-end;
  }
  .inline-form button {
    width: auto;
  }
  .form-actions-inline {
    width: auto;
  }
  .form-actions-inline button {
    flex: none;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    height: 280px;
  }
  .cs-info h2 { font-size: 1.1rem; }
  .cs-poster { max-width: 140px; }
  .trending-grid-3cols,
  .recent-grid-3cols {
    max-width: 100%;
  }
}

@media (min-width: 769px) {
  .modal-overlay {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-overlay.active {
    display: flex;
  }
  .modal-content {
    max-width: 900px;
    min-height: auto;
    max-height: 90vh;
    border-radius: 20px;
    border: 1px solid var(--neon-border);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.35);
    padding: 24px;
    overflow-y: auto;
  }
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .input-group.full-width {
    grid-column: span 2;
  }
  .content-wrapper {
    padding: 0 2rem;
  }
  .stats-overview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-card.full-width {
    grid-column: span 1;
  }
  .movie-details-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 2.5rem;
    gap: 3rem;
  }
  .details-info-side {
    text-align: left;
    flex: 1;
  }
  .details-metadata-pills {
    justify-content: flex-start;
  }
  .post-manager-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .pm-card-top-row {
    flex: 1;
  }
  .pm-action-row {
    width: 280px;
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
  .carousel-container {
    height: 380px;
    display: block;
  }
  .cs-info h2 { font-size: 1.6rem; }
  .cs-poster { max-width: 220px; }
}
/* ============================================================
   URL AUTOFILL BOX & MATH PUZZLE STYLES
   ============================================================ */
.math-puzzle-field input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(167, 139, 250, 0.45);
  background: rgba(20, 10, 40, 0.6);
  color: #fff;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.math-puzzle-field input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.9);
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

/* ============================================================
   PLAYER VIEW DISPLAY NONE (streaming removed)
   ============================================================ */
#player-view { display: none !important; }

/* ============================================================
   NEW ADMIN FORM — MOBILE-FIRST SINGLE COLUMN DESIGN
   ============================================================ */

/* Auto Fill Hero Card */
.autofill-hero-card {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.12) 0%, rgba(255, 140, 0, 0.08) 100%);
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 16px;
  padding: 20px 18px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.autofill-hero-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ff8c00;
  display: flex;
  align-items: center;
  gap: 8px;
}

.autofill-hero-title i {
  color: #ff8c00;
  font-size: 1.05rem;
}

.autofill-hero-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.autofill-url-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 140, 0, 0.4);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.autofill-url-input:focus {
  outline: none;
  border-color: rgba(255, 140, 0, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.18);
}

.btn-autofill-full {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #cc7000, #ff8c00);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-autofill-full:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-autofill-full:active {
  transform: translateY(0);
}

.autofill-status-msg {
  font-size: 0.78rem;
  color: #86efac;
  min-height: 16px;
}

/* Simple Form Stack — single column, full-width fields */
.simple-form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.simple-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.88rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.simple-input:focus {
  outline: none;
  border-color: rgba(255, 140, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12);
}

.simple-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.simple-select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.88rem;
  box-sizing: border-box;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.simple-select:focus {
  outline: none;
  border-color: rgba(255, 140, 0, 0.7);
}

.simple-select option {
  background: #000000;
  color: #fff;
}

.simple-textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.88rem;
  box-sizing: border-box;
  resize: vertical;
  min-height: 110px;
  transition: border-color 0.2s;
}

.simple-textarea:focus {
  outline: none;
  border-color: rgba(255, 140, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12);
}

.simple-textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

/* Screenshot rows in simple form */
.screenshots-input-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-add-row {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px dashed rgba(255, 140, 0, 0.5);
  background: rgba(255, 140, 0, 0.06);
  color: #ff8c00;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-add-row:hover {
  background: rgba(255, 140, 0, 0.14);
  border-color: rgba(255, 140, 0, 0.8);
}

/* Category select box */
.category-select-box {
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.4);
}

.category-select-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Download links section */
.dl-links-section-header {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ff8c00;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
}

.btn-add-link-full {
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #cc7000, #ff8c00);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.btn-add-link-full:hover {
  opacity: 0.88;
}

/* Save / Cancel buttons */
.btn-save-movie {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #cc7000, #ff8c00);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-save-movie:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-cancel-movie {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.45);
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}

.btn-cancel-movie:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Override quality-select-wrapper inside simple-form-stack */
.simple-form-stack .quality-select-wrapper {
  width: 100%;
  position: relative;
}

.simple-form-stack .custom-dropdown-header {
  padding: 13px 36px 13px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
}

.simple-form-stack .custom-dropdown-header:hover {
  border-color: rgba(255, 140, 0, 0.6);
}

/* ============================================================
   KILL ALL REMAINING HARDCODED PURPLE — GLOBAL OVERRIDE
   ============================================================ */

/* Toast */
.toast {
  border-left-color: #ff8c00 !important;
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.3) !important;
}

/* Logo glow */
.logo {
  text-shadow: none !important;
}

/* Admin login card */
.admin-glass-login-card {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.85) !important;
}

/* Admin glass sub-title & labels */
.admin-glass-sub {
  color: rgba(180, 180, 180, 0.75) !important;
}
.admin-glass-field label {
  color: rgba(180, 180, 180, 0.8) !important;
}
.admin-glass-field input:focus {
  border-color: rgba(255, 140, 0, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12) !important;
}

/* CS play icon (carousel detail overlay) */
.cs-play-icon {
  background: rgba(0, 0, 0, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Download button */
.btn-dl-init {
  background: linear-gradient(135deg, #ff8c00, #ff5500) !important;
  box-shadow: 0 4px 20px rgba(255, 100, 0, 0.35) !important;
}

/* Stream button */
.btn-stream {
  background: linear-gradient(135deg, #ff8c00, #ff5500) !important;
  box-shadow: 0 4px 20px rgba(255, 100, 0, 0.3) !important;
}

/* Player tab btn */
.player-tab-btn.active {
  background: rgba(255, 140, 0, 0.2) !important;
  border-color: #ff8c00 !important;
  color: #ff8c00 !important;
}

/* Progress bar */
.countdown-progress-bar {
  background: linear-gradient(90deg, #ff8c00 0%, #ff5500 100%) !important;
}

/* Explorer/genre filter active */
.explore-cat-badge,
.explore-cat-chip.active,
.explore-cat-chip:hover {
  background: rgba(255, 140, 0, 0.85) !important;
  border-color: #ff8c00 !important;
}

/* Back btn colored */
.back-btn-colored {
  background: #ff8c00 !important;
  border-color: rgba(255, 140, 0, 0.4) !important;
  box-shadow: none !important;
}
.back-btn-colored:hover {
  background: #cc7000 !important;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.3) !important;
}

/* Search type label */
.search-type-label {
  color: #ff8c00 !important;
}

/* Movie card on hover (purple glow → dark) */
.movie-card:hover {
  border-color: rgba(255, 140, 0, 0.35) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6) !important;
}

/* Search bar focus glow */
#global-search:focus {
  border-color: rgba(255, 140, 0, 0.5) !important;
  box-shadow: none !important;
}

/* Search wrapper border/glow */
.search-wrapper:focus-within {
  border-color: rgba(255, 140, 0, 0.4) !important;
  box-shadow: none !important;
}

/* Details page stars / rating accent */
.rating-stars,
.spec-highlight {
  color: #ff8c00 !important;
}

/* Quality select btn active */
.quality-select-btn.active, .quality-select-btn:hover {
  background: rgba(255, 140, 0, 0.85) !important;
  border-color: #ff8c00 !important;
  color: #fff !important;
}

/* Remove any lingering purple box shadows globally */
* {
  --shadow-purple: none;
}

/* ============================================================
   HOME HERO SEARCH BAR
   ============================================================ */
.home-hero-search {
  margin-bottom: 1.2rem;
}

.home-search-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  overflow: hidden;
  padding: 4px 4px 4px 16px;
}

.home-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-family);
  padding: 8px 0;
  outline: none !important;
  box-shadow: none !important;
}

.home-search-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.home-search-btn {
  background: linear-gradient(135deg, #ff8c00, #ff5500);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.home-search-btn:hover { opacity: 0.9; }

/* ============================================================
   HOME SECTION HEADERS (screenshot style)
   ============================================================ */
.home-section-hdr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.7rem 0.5rem;
  border-bottom: 2px solid #ff8c00;
  margin-bottom: 1.2rem;
  position: relative;
}

.hdr-text {
  font-size: 1rem;
  font-weight: 900;
  color: #ff8c00;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hdr-icon {
  font-size: 1.1rem;
}

.hdr-star {
  color: #ffcc00;
  font-size: 1rem;
}

.hdr-dot {
  color: #ff5500;
  font-size: 0.8rem;
}

/* Make trending strip draggable cursor */
.trending-now-strip {
  cursor: grab;
  user-select: none;
}

/* ============================================================
   QUALITY BADGE — DARK TRANSPARENT (all badge types)
   ============================================================ */
.card-quality-tag {
  background: rgba(0, 0, 0, 0.72) !important;
  color: rgba(255, 220, 100, 0.95) !important;
  border: 1px solid rgba(255, 200, 60, 0.25) !important;
  font-size: 0.62rem !important;
  padding: 2px 7px !important;
  backdrop-filter: blur(6px) !important;
}

.cs-quality-badge {
  background: rgba(0, 0, 0, 0.75) !important;
  color: rgba(255, 220, 100, 0.95) !important;
  border: 1px solid rgba(255, 200, 60, 0.2) !important;
}

.pm-poster-badge {
  background: rgba(0, 0, 0, 0.78) !important;
  color: rgba(255, 220, 100, 0.95) !important;
}

.corner-badge {
  background: rgba(0, 0, 0, 0.78) !important;
  border: 1px solid rgba(255, 200, 60, 0.2) !important;
  color: rgba(255, 220, 100, 0.9) !important;
}

/* ============================================================
   POST MANAGER CARDS — MOBILE FRIENDLY FIX (no overflow)
   ============================================================ */
.post-manager-card {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.pm-card-top-row {
  min-width: 0;
  overflow: hidden;
}

.pm-info-box {
  min-width: 0;
  overflow: hidden;
}

.pm-movie-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Action row — wrap on small screens */
.pm-action-row {
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.pm-btn-wide-view {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.8rem !important;
  padding: 8px 10px !important;
  word-break: keep-all;
  white-space: nowrap;
}

.pm-action-btn-small {
  width: 40px !important;
  height: 40px !important;
  flex-shrink: 0;
}

/* Ensure post manager container doesn't overflow viewport */
.post-manager-cards-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Override the fixed 280px width that breaks mobile */
@media (max-width: 767px) {
  .pm-action-row {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }
  .pm-btn-wide-view {
    flex: 1 1 120px;
    max-width: calc(100% - 96px);
  }
}

/* ============================================================
   ADMIN PANEL — BLACK DARK TRANSPARENT THEME OVERRIDES
   ============================================================ */

/* Modal backdrop — pure dark */
.modal-overlay {
  background: rgba(0, 0, 0, 0.97) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Login card — black glass */
.admin-glass-login-card {
  background: rgba(10, 10, 10, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8) !important;
}

.admin-glass-field input {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.admin-glass-field input:focus {
  background: rgba(0, 0, 0, 0.85) !important;
  border-color: rgba(255, 140, 0, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.12) !important;
}

.admin-glass-btn {
  background: linear-gradient(135deg, #ff8c00, #ff5500) !important;
  box-shadow: 0 4px 20px rgba(255, 100, 0, 0.4) !important;
}

.admin-glass-btn:hover {
  background: linear-gradient(135deg, #ffa020, #ff6010) !important;
}

/* Dashboard header bar */
.dashboard-header-bar {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* Stat cards */
.stat-card {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* Tab buttons */
.tab-buttons {
  border-bottom-color: rgba(255, 255, 255, 0.07) !important;
}

.tab-btn {
  color: rgba(255, 255, 255, 0.55) !important;
}

.tab-btn.active {
  color: #ff8c00 !important;
  border-bottom-color: #ff8c00 !important;
}

/* Form containers */
.form-container-card {
  background: rgba(0, 0, 0, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.banner-form-style,
.social-form-style,
.category-form-style {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* Input fields inside admin */
.input-group input,
.input-group textarea,
.input-group select {
  background: rgba(0, 0, 0, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: rgba(255, 140, 0, 0.5) !important;
  background: rgba(0, 0, 0, 0.8) !important;
  box-shadow: none !important;
}

.library-controls-bar input {
  background: rgba(0, 0, 0, 0.65) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

.library-controls-bar select {
  background: rgba(0, 0, 0, 0.85) !important;
}

/* Post manager cards */
.post-manager-card {
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* Category checklist */
.categories-checklist {
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Dynamic download link box */
.dynamic-download-link-box {
  background: rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Banner search results dropdown */
.banner-search-results {
  background: rgba(10, 10, 10, 0.97) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Admin data table */
.admin-data-table-wrapper {
  background: rgba(0, 0, 0, 0.4) !important;
}

.admin-data-table th {
  background: rgba(0, 0, 0, 0.8) !important;
}

.admin-data-table td {
  background: rgba(0, 0, 0, 0.4) !important;
}

/* Autofill card */
.autofill-hero-card {
  background: rgba(0, 0, 0, 0.55) !important;
  border-color: rgba(255, 140, 0, 0.2) !important;
}

.autofill-url-input {
  background: rgba(0, 0, 0, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* glow-btn override in admin to orange */
.dashboard-tab .glow-btn {
  background: linear-gradient(135deg, #ff8c00, #ff5500) !important;
  box-shadow: 0 0 10px rgba(255, 100, 0, 0.35) !important;
}

.dashboard-tab .glow-btn:hover {
  background: linear-gradient(135deg, #ffa020, #ff6010) !important;
  box-shadow: 0 0 15px rgba(255, 100, 0, 0.5) !important;
}

/* ── Hamburger Button ────────────────────────────────────────────────────── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.hamburger-btn:hover span { background: #ff8c00; }

/* ── Sidebar Overlay ─────────────────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1100;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ── Sidebar Drawer ──────────────────────────────────────────────────────── */
.sidebar-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 270px;
  background: #0d0d0d;
  border-right: 1px solid rgba(255,255,255,0.08);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar-drawer.open { transform: translateX(0); }

.sidebar-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}
.sidebar-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.sidebar-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Nav items */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1.4rem;
  color: #ccc;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.sidebar-item > span, .sidebar-item > a > span {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.sidebar-item i { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-item:hover,
.sidebar-item-active {
  background: rgba(255,140,0,0.08);
  color: #ff8c00;
  border-left-color: #ff8c00;
}
.sidebar-caret {
  font-size: 0.75rem;
  transition: transform 0.25s;
  color: #888;
}
.sidebar-caret.rotated { transform: rotate(180deg); }

/* Categories dropdown inside sidebar */
.sidebar-cats-list {
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.sidebar-cats-list.open { display: flex; }
.sidebar-cat-item {
  padding: 0.6rem 1.4rem 0.6rem 3.2rem;
  color: #bbb;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  transition: color 0.18s;
}
.sidebar-cat-item:hover { color: #ff8c00; }
