*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --color-primary-main: #FFD700;
  --color-primary-hover: #E6C200;
  --color-primary-active: #CCAD00;
  --color-accent-red: #E50914;
  --color-accent-green: #10B981;

  --color-primary: var(--color-primary-main);
  --color-primary-hover: var(--color-primary-hover);
  --color-primary-dim: rgba(255, 215, 0, 0.15);
  --color-primary-glow: rgba(255, 215, 0, 0.3);

  --color-bg-app: #0C0E12;
  --color-bg-surface-primary: #14171F;
  --color-bg-surface-secondary: #1E222D;
  --color-bg-overlay: rgba(12, 14, 18, 0.8);

  --color-bg: var(--color-bg-app);
  --color-bg-2: var(--color-bg-surface-primary);
  --color-surface: var(--color-bg-surface-primary);
  --color-surface-2: var(--color-bg-surface-secondary);
  --color-surface-3: #2A2E3A;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --color-text-primary: #FFFFFF;
  --color-text-secondary: #9CA3AF;
  --color-text-muted: #6B7280;
  --color-text-inverse: #0C0E12;

  --color-text: var(--color-text-primary);
  --color-text-2: var(--color-text-secondary);
  --color-text-dim: #50506a;

  --color-success: var(--color-accent-green);
  --color-success-dim: rgba(16, 185, 129, 0.12);
  --color-warning: #f59e0b;
  --color-warning-dim: rgba(245, 158, 11, 0.12);
  --color-error: #ef4444;
  --color-error-dim: rgba(239, 68, 68, 0.12);
  --color-info: #3b82f6;
  --color-info-dim: rgba(59, 130, 246, 0.12);
  --color-gold: var(--color-primary-main);
  --font-display: "Bebas Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display-fallback:
    Impact, -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: clamp(0.75rem, 1.5vw, 0.8125rem);
  --text-sm: clamp(0.75rem, 2vw, 0.875rem);
  --text-base: clamp(0.875rem, 2.5vw, 1rem);
  --text-lg: clamp(1rem, 3vw, 1.125rem);
  --text-h2: clamp(1.25rem, 4vw, 2.2rem);
  --text-h3: clamp(1.1rem, 3vw, 1.5rem);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-glow-primary: 0 4px 20px rgba(229, 9, 20, 0.3);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-normal: 300ms;
  --z-header: 100;
  --z-tab-bar: 100;
  --z-toast: 300;
  --z-loader: 999;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 72px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
  user-select: none;
  -webkit-user-select: none;
}
img {
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: #fff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 10000;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: none;
  box-shadow: 0 4px 20px var(--color-primary-glow);
}

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding: 10px clamp(12px, 4vw, 24px);
  background: rgba(12, 14, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(10px, env(safe-area-inset-top));
  flex-wrap: wrap;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}
.header-search {
  position: relative;
  flex: 1 1 220px;
  max-width: 420px;
  min-width: 140px;
}
.header-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}
.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  outline: none;
}
.header-search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-dim);
}
.header-nav {
  display: none;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.header-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font-family);
}
.header-nav-item:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}
.header-nav-item.active {
  color: var(--color-text-inverse);
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow-primary);
}
#header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hero-slider {
  margin: var(--space-4) 12px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  aspect-ratio: 3/2;
}
@media (min-width: 768px) {
  .hero-slider {
    margin: var(--space-6) auto;
    max-width: 1440px;
    aspect-ratio: 16/5;
  }
}
.swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 10%;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  z-index: 1;
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
  animation: slideIn 0.8s ease;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.slide-title {
  font-size: clamp(1rem, 4vw, 1.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: clamp(8px, 2vw, 16px);
  text-transform: uppercase;
  color: #fff;
  font-family: var(--font-display), var(--font-display-fallback);
}
.slide-btn {
  background: var(--color-primary);
  color: #0C0E12;
  padding: clamp(6px, 1.5vw, 10px) clamp(12px, 3vw, 24px);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: clamp(0.8125rem, 2vw, 0.9rem);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  text-transform: uppercase;
}
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}
.swiper-pagination-bullet-active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
  transition: width 0.3s;
}

.ptr-loader {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  gap: 8px;
}
.ptr-icon-wrap {
  width: 32px;
  height: 32px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.ptr-icon {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--color-text-muted);
  border-top-color: var(--color-primary);
  border-radius: 50%;
}
.ptr-refreshing .ptr-icon {
  animation: ptr-spin 0.6s linear infinite;
}
.ptr-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}
@keyframes ptr-spin {
  to {
    transform: rotate(360deg);
  }
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--color-border);
  z-index: var(--z-tab-bar);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 6px;
  cursor: pointer;
  transition: color var(--duration-normal);
  color: var(--color-text-muted);
  font-size: clamp(0.75rem, 2.5vw, 0.8125rem);
  font-weight: 600;
  background: none;
  border: none;
  font-family: var(--font-family);
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 0 0 4px 4px;
  transform: translateX(-50%) scaleX(0);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab.active::before {
  width: 32px;
  transform: translateX(-50%) scaleX(1);
}
.tab i {
  font-size: clamp(1.1rem, 4vw, 1.25rem);
  line-height: 1;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab.active {
  color: #ff1a27;
}
.tab.active i {
  transform: translateY(-1px) scale(1.08);
}
.tab:hover {
  color: var(--color-text);
}
.tab:focus-visible {
  outline-offset: -3px;
}

.guest-banner {
  background: rgba(0, 136, 204, 0.08);
  border: 1px solid rgba(0, 136, 204, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.guest-banner p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}
.guest-banner a {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: #29b6f6;
  color: #000;
  font-size: var(--text-xs);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}
.guest-banner a:hover {
  opacity: 0.85;
}
.guest-banner-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: #29b6f6;
  color: #000;
  font-size: var(--text-xs);
  font-weight: 800;
  font-family: var(--font-family);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}
.guest-banner-btn:hover {
  opacity: 0.85;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 72px;
    padding-left: 0;
  }
  .header {
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .header-nav {
    display: flex;
  }
  .tab-bar {
    display: none;
  }
  .section {
    max-width: 1200px;
    margin: 0 auto;
  }
  #pull-container {
    padding-bottom: 40px;
  }
}

.section {
  display: none;
  padding: var(--space-4) clamp(12px, 4vw, 24px);
  animation: fadeUp 0.35s var(--ease-out);
}
.section.active {
  display: block;
}
@media (min-width: 1024px) {
  .section {
    max-width: 1200px;
    margin: 0 auto;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sec-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.sec-title i {
  color: var(--color-primary);
}

.home-section {
  margin-bottom: var(--space-6);
}

.tv-channel {
  flex-shrink: 0;
  width: clamp(100px, 28vw, 140px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-snap-align: start;
}
.tv-channel:hover {
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.tv-channel-logo {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text-muted);
  overflow: hidden;
}
.tv-channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tv-channel-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.random-card {
  background: linear-gradient(145deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-4);
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.random-card:hover {
  border-color: rgba(229, 9, 20, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.random-poster {
  width: 120px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--color-surface-2);
}
.random-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.random-info {
  flex: 1;
  min-width: 0;
}
.random-title {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.random-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.random-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-2);
}
.random-badge.accent {
  background: var(--color-primary-dim);
  border-color: rgba(229, 9, 20, 0.2);
  color: var(--color-primary);
}
.random-actions {
  display: flex;
  gap: var(--space-2);
}
.random-shuffle {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-family);
}
.random-shuffle:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.top10-card {
  flex-shrink: 0;
  width: clamp(120px, 30vw, 160px);
  position: relative;
  scroll-snap-align: start;
}
.top10-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #ff4d4d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: var(--text-sm);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}
.top10-card .movie-card {
  width: 100%;
  min-width: 0 !important;
  max-width: 100% !important;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
}
@media (max-width: 400px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}
@media (min-width: 1440px) {
  .grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 1800px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.h-scroll {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar {
  display: none;
}
.h-scroll .movie-card {
  min-width: clamp(140px, 35vw, 200px);
  max-width: clamp(140px, 35vw, 200px);
  scroll-snap-align: start;
}

.movie-card {
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--color-surface),
    var(--color-surface-2)
  );
  border: 1px solid var(--color-border);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background 0.35s ease;
  touch-action: manipulation;
  backdrop-filter: blur(10px);
  position: relative;
}
.movie-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(229, 9, 20, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 3;
}
.movie-card:hover::after {
  opacity: 1;
}
.movie-card:active {
  transform: scale(0.97);
}
.movie-card:hover {
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(229, 9, 20, 0.15);
  background: linear-gradient(
    145deg,
    var(--color-surface-2),
    var(--color-surface-3)
  );
  border-color: rgba(229, 9, 20, 0.2);
  transform: translateY(-4px);
}
.movie-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--color-surface-2);
  overflow: hidden;
}
.movie-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--color-surface-2) 25%,
    var(--color-surface-3) 50%,
    var(--color-surface-2) 75%
  );
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite linear;
  z-index: 0;
  pointer-events: none;
}
.movie-poster img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
  opacity: 0;
}
.movie-poster img.loaded {
  opacity: 1;
}
.movie-card:hover .movie-poster img {
  transform: scale(1.08);
}
.movie-poster.nsfw img {
  filter: blur(25px);
}
.nsfw-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dur-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}
.quality-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(229, 9, 20, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.movie-info {
  padding: var(--space-2) var(--space-2) var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 4;
}
.movie-name {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text-2);
  flex: 1;
}
.play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(229, 9, 20, 0.25) 100%
  );
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 2;
}
.movie-card:hover .play-overlay {
  opacity: 1;
}
.play-btn {
  background: var(--color-primary);
  color: #0C0E12;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
  position: relative;
}
.play-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.25);
  animation: play-pulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes play-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.25);
    opacity: 0;
  }
}
.play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(229, 9, 20, 0.5);
}
.movie-bookmark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease;
  z-index: 4;
  pointer-events: auto;
}
.movie-card:hover .movie-bookmark {
  opacity: 1;
  transform: translateY(0);
}
.movie-bookmark:hover {
  background: rgba(229, 9, 20, 0.7);
  border-color: rgba(229, 9, 20, 0.9);
}
.movie-bookmark.saved {
  opacity: 1;
  transform: translateY(0);
  background: rgba(229, 9, 20, 0.35);
  border-color: rgba(229, 9, 20, 0.6);
  color: var(--color-primary);
}

.sk-card {
  pointer-events: none;
}
.sk-card .movie-poster {
  background: none;
}
.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    var(--color-surface-2) 50%,
    var(--color-surface) 75%
  );
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 6px;
}
@keyframes shimmer {
  to {
    background-position: -400% 0;
  }
}
.sk-card .movie-poster .skeleton-shimmer {
  height: 100%;
}
.sk-line {
  height: 10px;
  margin-top: 4px;
}

.search-wrap {
  position: relative;
  margin-bottom: var(--space-4);
}
.search-wrap .ico-s {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--text-base);
  outline: none;
  transition:
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease;
}
.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1), 0 0 20px rgba(229, 9, 20, 0.08);
  background: var(--color-surface-2);
}
.search-input::placeholder {
  color: var(--color-text-muted);
}
.search-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px var(--color-error-dim);
  animation: shake 0.4s ease;
}
.search-input.success {
  border-color: var(--color-success);
  box-shadow: 0 0 0 3px var(--color-success-dim);
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.input-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-surface-2);
  border: none;
  color: var(--color-text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.input-clear:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
}
.search-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  padding: 0 var(--space-1);
}
.search-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
  padding: 0 var(--space-1);
  display: none;
}
.search-error.visible {
  display: block;
}
.search-debounce {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  display: none;
  align-items: center;
  gap: 6px;
}
.search-debounce.visible {
  display: flex;
}
.search-debounce .spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-text-muted);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: ptr-spin 0.6s linear infinite;
}

.filter-bar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.filter-bar::-webkit-scrollbar {
  display: none;
}
.filter-bar select {
  flex-shrink: 0;
  background: var(--color-surface-2);
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
  padding-right: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  min-height: 44px;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  appearance: none;
  -webkit-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='%237a7a90' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  backdrop-filter: blur(10px);
}
.filter-bar select:hover {
  border-color: rgba(229, 9, 20, 0.35);
  background: var(--color-surface-3);
}
.filter-bar select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12);
  background: var(--color-surface-3);
}

.history-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: background 0.2s;
}
.history-item:hover {
  background: var(--color-surface-2);
}
.history-item .h-ico {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.history-item .h-text {
  flex: 1;
  font-size: var(--text-base);
  font-weight: 500;
}
.history-item .h-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.profile-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
}
.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), #b20710);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--space-4);
  box-shadow: 0 8px 20px var(--color-primary-dim);
  color: white;
  overflow: hidden;
}
.profile-name {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: 4px;
}
.profile-id {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.p-stat {
  background: var(--color-surface-2);
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-md);
  text-align: center;
}
.p-stat-val {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
}
.p-stat-lab {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 4px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  text-align: center;
  grid-column: 1 / -1;
}
.empty i {
  font-size: 3.5rem;
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  opacity: 0.7;
  transition: transform 0.3s ease;
}
.empty:hover i {
  transform: scale(1.1);
}
.empty .e-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.empty .e-desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  max-width: 360px;
}
.empty .e-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-top: var(--space-4);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    background 0.2s ease;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.25);
}
.empty .e-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
}
.empty .e-btn:active {
  transform: scale(0.95);
}
.empty .e-btn-secondary {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  box-shadow: none;
}
.empty .e-btn-secondary:hover {
  background: var(--color-surface-3);
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: var(--color-surface-2);
  color: var(--color-text);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--color-border);
  z-index: var(--z-toast);
  transition: transform 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 280px;
  max-width: 90vw;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
.toast-icon {
  font-size: 1.1rem;
}
.toast.success .toast-icon {
  color: var(--color-success);
}
.toast.error .toast-icon {
  color: var(--color-error);
}
.toast.warning .toast-icon {
  color: var(--color-warning);
}
.toast.info .toast-icon {
  color: var(--color-info);
}

.tg-notice {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  margin: var(--space-5) 0;
}
.tg-notice i {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
  display: block;
  color: var(--color-primary);
}
.tg-notice p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.5;
}

.wh-card {
  min-width: 140px;
  max-width: 140px;
  cursor: pointer;
}
.wh-poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-2);
  margin-bottom: var(--space-2);
  border: 1px solid var(--color-border);
}
.wh-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wh-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-2);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-card {
  background: rgba(112, 0, 255, 0.08);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  border: 1px solid rgba(112, 0, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.admin-card-text {
  font-weight: 800;
  font-size: var(--text-base);
  color: #7000ff;
}
.admin-card-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}
.admin-card-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 800;
  background: #7000ff;
  color: white;
  white-space: nowrap;
}

#search-results[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.genre-chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-1) 0 var(--space-4);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.genre-chips::-webkit-scrollbar {
  display: none;
}
.genre-chip {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}
.genre-chip:active {
  transform: scale(0.93);
}
.genre-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #0C0E12;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
  transform: translateY(-1px);
}
.genre-chip:hover:not(.active) {
  border-color: rgba(255, 215, 0, 0.35);
  color: var(--color-text);
  background: var(--color-surface-2);
}

.movie-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-xs);
  color: var(--color-gold, #fbbf24);
  font-weight: 700;
  white-space: nowrap;
}
.movie-rating i {
  font-size: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.icon-muted {
  font-size: 1.5rem;
  color: var(--color-text-muted);
}
.pull-container {
  position: relative;
  min-height: calc(100vh - 60px);
  transition: transform 0.3s var(--ease-out);
  padding-bottom: 80px;
  overscroll-behavior-y: contain;
}
.hidden {
  display: none !important;
}

.container {
  width: 100%;
}

.empty-full {
  grid-column: 1/-1;
  padding: 40px;
  text-align: center;
  color: var(--color-text-muted);
}
.empty-wide {
  grid-column: 1/-1;
}
.profile-skeleton {
  height: 200px;
  border-radius: var(--radius-lg);
}
.sk-card .movie-poster .skeleton-shimmer {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.sk-line-85 {
  width: 85%;
}
.sk-line-55 {
  width: 55%;
  margin-top: 6px;
}
.mt-12 {
  display: inline-flex;
  margin-top: 12px;
}
.flex {
  display: flex;
}
.history-muted {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.h-scroll-gap {
  gap: var(--space-3);
}
.inline-flex {
  display: inline-flex;
}
.sidebar-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 8px 6px;
}
.icon-primary {
  color: var(--color-primary);
}
.last-search-card {
  background: var(--color-surface);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
}
.wh-list-gap {
  margin-bottom: var(--space-6);
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.scroll-top {
  position: fixed;
  bottom: 84px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.35);
}
.scroll-top:active {
  transform: scale(0.9);
}
@media (max-width: 480px) {
  .header {
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .header-logo {
    height: 24px;
  }
  .header-title {
    font-size: var(--text-base);
  }
  .hero-slider {
    margin: var(--space-3) 8px;
    aspect-ratio: 3/2;
  }
  .slide-content {
    max-width: 80%;
  }
  .slide-title {
    font-size: clamp(0.85rem, 3.5vw, 1.2rem);
  }
  .slide-btn {
    padding: clamp(5px, 1.2vw, 8px) clamp(10px, 2.5vw, 16px);
    font-size: clamp(0.8125rem, 1.8vw, 0.9rem);
  }
  .section {
    padding: var(--space-3) 10px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }
  .movie-card {
    border-radius: var(--radius-md);
  }
  .movie-poster {
    aspect-ratio: 2/3;
  }
  .movie-name {
    font-size: var(--text-xs);
    -webkit-line-clamp: 2;
  }
  .movie-info {
    padding: var(--space-1) var(--space-1) var(--space-2);
  }
  .play-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .movie-bookmark {
    width: 28px;
    height: 28px;
    top: 6px;
    right: 6px;
    font-size: 0.75rem;
  }
  .search-wrap {
    margin-bottom: var(--space-3);
  }
  .search-input {
    padding: 12px 38px 12px 40px;
    font-size: var(--text-sm);
  }
  .filter-bar {
    gap: var(--space-2);
    margin-bottom: var(--space-3);
  }
  .filter-bar select {
    padding: var(--space-1) var(--space-2);
    padding-right: var(--space-4);
    font-size: var(--text-xs);
    min-height: 40px;
  }
  .genre-chips {
    gap: var(--space-1);
    padding: var(--space-1) 0 var(--space-3);
  }
  .genre-chip {
    padding: 6px 12px;
    font-size: var(--text-xs);
  }
  .sec-title {
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
  }
  .toast {
    min-width: 240px;
    max-width: 95vw;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }
  .empty {
    padding: 40px 16px;
  }
  .empty i {
    font-size: 2.5rem;
  }
  .empty .e-title {
    font-size: var(--text-base);
  }
  .scroll-top {
    bottom: 80px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
  .profile-card {
    padding: var(--space-4) var(--space-3);
  }
  .profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
  .profile-name {
    font-size: var(--text-base);
  }
  .p-stat {
    padding: var(--space-3) var(--space-2);
  }
  .p-stat-val {
    font-size: var(--text-base);
  }
  .history-item {
    padding: var(--space-3) var(--space-2);
  }
  .wh-card {
    min-width: 120px;
    max-width: 120px;
  }
  .wh-title {
    font-size: 10px;
  }
}

@media (min-width: 481px) and (max-width: 1023px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
  .movie-poster {
    aspect-ratio: 2/3;
  }
  .section {
    max-width: 900px;
    margin: 0 auto;
  }
  .hero-slider {
    aspect-ratio: 16/7;
  }
  .slide-content {
    max-width: 70%;
  }
  .filter-bar {
    gap: var(--space-2);
  }
  .search-input {
    padding: 13px 42px 13px 44px;
  }
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
  }
  .movie-poster {
    aspect-ratio: 16/10;
  }
  .section {
    max-width: 1200px;
    margin: 0 auto;
  }
  .hero-slider {
    aspect-ratio: 16/5;
    max-width: 1440px;
  }
  .slide-content {
    max-width: 50%;
  }
    bottom: 24px;
    right: 24px;
  }
}

@media (min-width: 1440px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .section {
    max-width: 1400px;
  }
}

@media (min-width: 1800px) {
  .grid {
    grid-template-columns: repeat(7, 1fr);
  }
  .section {
    max-width: 1600px;
  }
}

@media (hover: hover) {
  .movie-card:hover .movie-bookmark {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none) {
  .movie-bookmark {
    opacity: 0.9;
    transform: translateY(0);
    top: 6px;
    right: 6px;
  }
  .play-overlay {
    opacity: 0;
  }
}

/* ================= GENRES ================= */
.genres-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .genres-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .genres-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.genre-card {
  background: rgba(24, 24, 37, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.genre-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-primary);
  border-color: rgba(229, 9, 20, 0.3);
}
.genre-emoji {
  font-size: 2.5rem;
  margin-bottom: 4px;
}
.genre-name {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
}
.genre-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}
.genre-back-btn {
  margin-bottom: var(--space-3);
}
.genre-title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-3);
  font-weight: 800;
}
.sort-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-4);
}
.sort-bar select {
  width: auto;
  min-width: 150px;
}

/* ================= PLAYLISTS ================= */
.playlists-list {
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
}
.playlist-card {
  background: linear-gradient(145deg, var(--color-surface-2), var(--color-surface-3));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  min-width: 140px;
  position: relative;
  text-align: center;
  flex-shrink: 0;
}
.playlist-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}
.playlist-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.playlist-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  color: var(--color-text-muted);
  background: transparent;
  padding: 4px;
  font-size: 1rem;
}
.playlist-delete:hover {
  color: var(--color-error);
}

/* ================= ACHIEVEMENTS ================= */
.level-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface-2);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.level-badge {
  background: linear-gradient(135deg, var(--color-primary), #ff4d4d);
  color: #fff;
  font-weight: 800;
  font-size: var(--text-sm);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.progress-bar-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #ff4d4d);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.streak-info {
  background: rgba(255, 152, 0, 0.1);
  color: var(--color-warning);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(255, 152, 0, 0.2);
}
.fire-icon {
  font-size: 1.2rem;
  animation: pulse-fire 1.5s infinite alternate;
}
@keyframes pulse-fire {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--color-warning)); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 8px var(--color-warning)); }
}
.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.badge-card {
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.3s;
}
.badge-card.earned {
  border-color: rgba(255, 215, 0, 0.4);
  background: linear-gradient(145deg, var(--color-surface-2), rgba(255, 215, 0, 0.05));
}
.badge-card.locked {
  opacity: 0.5;
  filter: grayscale(1);
}
.badge-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.badge-card.earned .badge-icon {
  animation: shimmer-badge 3s infinite;
}
@keyframes shimmer-badge {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 5px rgba(255,215,0,0.5)); }
  100% { transform: scale(1); }
}
.badge-name {
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ================= SERIAL TRACKER ================= */
.serials-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.serial-card {
  display: flex;
  gap: 12px;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.serial-card:hover {
  transform: translateX(4px);
  background: var(--color-surface-3);
  border-color: rgba(229, 9, 20, 0.2);
}
.serial-thumb {
  width: 70px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}
.serial-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.serial-title {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 4px;
}
.serial-episodes {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ================= TOGGLE SWITCH ================= */
.toggle-switch {
  position: relative;
  display: inline-block;
  user-select: none;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: var(--color-surface-3);
  border-radius: 24px;
  transition: 0.3s;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .toggle-slider {
  background-color: var(--color-primary);
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* ============ YETISHMAYOTGAN STILLAR ============ */

/* Toast matni */
.toast-text {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

/* Bo'lim sarlavhalari */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-h3);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}
.section-title i {
  color: var(--color-primary);
}

/* Bo'lim konteynerlari */
.playlists-section,
.serial-tracker,
.achievements-section,
.notification-settings {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: linear-gradient(145deg, var(--color-surface-2), var(--color-surface-3));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

/* Tugmalar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-family);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn:active {
  transform: scale(0.95);
}
.btn-primary {
  background: var(--color-primary);
  color: #0C0E12;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35);
}
.btn-secondary {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--color-surface-3);
  border-color: var(--color-border-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  box-shadow: none;
}
.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.btn-sm {
  padding: 8px 14px;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* Forma guruhlari */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-group label {
  color: var(--color-text-2);
  font-size: var(--text-sm);
}
.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--text-base);
  outline: none;
  transition:
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1);
}
.input::placeholder {
  color: var(--color-text-muted);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-toast) + 1);
  animation: fadeIn 0.25s ease;
}
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92vw);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  z-index: calc(var(--z-toast) + 2);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
.modal-header h3 {
  margin: 0;
  font-size: var(--text-h3);
}
.modal-body {
  margin-bottom: var(--space-4);
}
.modal-footer {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}

/* Margin utilitlari */
.mt-3 {
  margin-top: var(--space-3);
}
.mt-4 {
  margin-top: var(--space-4);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
.qr-modal[hidden] {
  display: none;
}
.qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: qrFadeIn 0.25s var(--ease-out, ease-out) both;
}
.qr-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, #15151f 0%, #0d0d15 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5);
  padding: 32px 28px 26px;
  text-align: center;
  animation: qrPop 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}
.qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.qr-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  transform: rotate(90deg);
}
.qr-view {
  animation: qrFadeIn 0.25s ease-out both;
}
.qr-icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 1.7rem;
}
.qr-lock {
  background: linear-gradient(135deg, #e50914, #7a050b);
  color: #fff;
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.35);
}
.qr-error {
  background: rgba(255, 152, 0, 0.12);
  color: #ff9800;
  box-shadow: 0 10px 30px rgba(255, 152, 0, 0.15);
}
.qr-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.qr-sub {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: 18px;
  line-height: 1.5;
}
.qr-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.qr-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
}
.qr-features i {
  color: var(--color-primary);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.qr-cta {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.qr-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(229, 9, 20, 0.45);
}
.qr-cta:active {
  transform: scale(0.97);
}
.qr-hint {
  margin-top: 14px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.qr-scan-wrap {
  position: relative;
  width: 224px;
  height: 224px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-scan-ring {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: conic-gradient(from 0deg, rgba(229, 9, 20, 0), rgba(229, 9, 20, 0.55), rgba(229, 9, 20, 0));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: qrSpin 3.2s linear infinite;
}
.qr-image {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  object-fit: contain;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  animation: qrPop 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}
.qr-scan-line {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.8);
  animation: qrScan 2s ease-in-out infinite;
}
.qr-steps {
  margin: 14px 0 18px;
  display: grid;
  gap: 10px;
  text-align: left;
}
.qr-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}
.qr-step-num {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.qr-step b {
  color: #ff1a27;
}
.qr-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: 14px;
}
.qr-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: qrSpin 0.8s linear infinite;
}
.qr-link-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.qr-link-btn:hover {
  color: var(--color-text);
}
.qr-success-check {
  width: 72px;
  height: 72px;
  margin: 6px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 12px 36px rgba(34, 197, 94, 0.4);
  animation: qrSuccess 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}
.qr-modal-open {
  overflow: hidden;
}
@keyframes qrFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes qrPop {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes qrSpin {
  to { transform: rotate(360deg); }
}
@keyframes qrScan {
  0% { top: 8px; }
  50% { top: 210px; }
  100% { top: 8px; }
}
@keyframes qrSuccess {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
  .qr-card {
    max-width: 340px;
    padding: 26px 20px 22px;
  }
  .qr-scan-wrap {
    width: 200px;
    height: 200px;
  }
  .qr-image {
    width: 178px;
    height: 178px;
  }
  @keyframes qrScan {
    0% { top: 8px; }
    50% { top: 186px; }
    100% { top: 8px; }
  }
   .qr-features {
     grid-template-columns: 1fr;
   }
  }

  /* ================= SharqMovie HEADER ================= */
  .sharqmovie-header {
    background: #0C0E12 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 10px 16px !important;
    padding-top: max(10px, env(safe-area-inset-top)) !important;
    gap: 12px;
  }
  .header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
  }
  .sharqmovie-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .sharqmovie-logo-icon {
    font-size: 1.3rem;
  }
  .sharqmovie-logo-text {
    font-family: var(--font-display), var(--font-display-fallback);
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 0.05em;
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
  }
  .sharqmovie-logo-text-sm {
    font-family: var(--font-display), var(--font-display-fallback);
    font-size: 1rem;
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 0.05em;
  }
  .header-search {
    flex: 1;
    min-width: 0;
    position: relative;
  }
  .header-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    pointer-events: none;
  }
  .header-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--text-sm);
    outline: none;
    transition: all 0.25s ease;
  }
  .header-search input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
    background: var(--color-surface-3);
  }
  .header-search input::placeholder {
    color: var(--color-text-muted);
  }

  /* ================= FEATURED BANNER ================= */
  .featured-banner {
    margin: 12px 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #0C0E12 0%, #14171F 50%, #1E222D 100%);
    border: 1px solid rgba(229, 9, 20, 0.25);
    box-shadow: 0 4px 24px rgba(229, 9, 20, 0.2);
  }
  .featured-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
  }
  .featured-banner-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #E50914;
    border-radius: 0 4px 4px 0;
  }
  .featured-banner-content {
    flex: 1;
    min-width: 0;
    z-index: 1;
  }
  .featured-banner-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #E50914;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 999px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(229, 9, 20, 0.4);
  }
  .featured-banner-title {
    font-family: var(--font-display), var(--font-display-fallback);
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    line-height: 1.2;
  }
  .featured-banner-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: 14px;
  }
  .featured-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #FFD700;
    color: #0C0E12;
    border: none;
    border-radius: 999px;
    font-family: var(--font-family);
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
  }
  .featured-banner-btn:hover {
    background: #E6C200;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  }
  .featured-banner-poster {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #E50914, #b20710);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.3);
  }
  .featured-banner-poster-inner {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  }
  .featured-poster-emoji {
    display: block;
  }
  @media (max-width: 480px) {
    .featured-banner-inner {
      padding: 16px;
      gap: 12px;
    }
    .featured-banner-poster {
      width: 80px;
      height: 80px;
      border-radius: 10px;
    }
    .featured-banner-poster-inner {
      font-size: 2.2rem;
    }
    .featured-banner-title {
      font-size: 0.95rem;
    }
  }

  /* ================= GENRE ICON GRID ================= */
  .genre-grid-sharqmovie {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 0 16px;
  }
  @media (max-width: 400px) {
    .genre-grid-sharqmovie {
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }
  }
  @media (min-width: 768px) {
    .genre-grid-sharqmovie {
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }
  }
  @media (min-width: 1024px) {
    .genre-grid-sharqmovie {
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }
  }
  .genre-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-family);
  }
  .genre-icon-btn:active {
    transform: scale(0.93);
  }
  .genre-icon-btn.active {
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.4);
    color: #FFD700;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
  }
  .genre-icon-btn:hover:not(.active) {
    border-color: rgba(229, 9, 20, 0.3);
    color: var(--color-text);
    background: var(--color-surface-2);
  }
  .genre-icon-emoji {
    font-size: 1.6rem;
    line-height: 1;
  }
  .genre-icon-label {
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
  }

  /* ================= RANDOM FILM SPLIT LAYOUT ================= */
  .random-card-sharqmovie {
    background: linear-gradient(145deg, var(--color-surface), var(--color-surface-2));
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  .random-card-sharqmovie:hover {
    border-color: rgba(229, 9, 20, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
  .random-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .random-details-title {
    font-family: var(--font-display), var(--font-display-fallback);
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.3;
  }
  .random-details-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .random-detail-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-2);
  }
  .random-detail-badge.accent {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.25);
    color: #FFD700;
  }
  .random-detail-badge.rating {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.25);
    color: #ff6b6b;
  }
  .random-details-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .random-details-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
  }
  .random-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: var(--font-family);
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
  }
  .random-btn-primary {
    background: #FFD700;
    color: #0C0E12;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
  }
  .random-btn-primary:hover {
    background: #E6C200;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  }
  .random-btn-secondary {
    background: var(--color-surface-2);
    color: #fff;
    border: 1px solid var(--color-border);
  }
  .random-btn-secondary:hover {
    background: var(--color-surface-3);
    border-color: rgba(229, 9, 20, 0.3);
  }
  .random-poster-sharqmovie {
    flex-shrink: 0;
    width: 120px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  .random-poster-sharqmovie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  @media (max-width: 600px) {
    .random-card-sharqmovie {
      flex-direction: column;
      text-align: center;
      padding: 14px;
    }
    .random-details-actions {
      justify-content: center;
    }
    .random-poster-sharqmovie {
      width: 100px;
      height: 140px;
    }
    .random-details-meta {
      justify-content: center;
    }
  }

  /* ================= TOP 10 NUMBERED GRID ================= */
  .top10-grid-sharqmovie {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  @media (max-width: 480px) {
    .top10-grid-sharqmovie {
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }
  }
  @media (min-width: 768px) {
    .top10-grid-sharqmovie {
      grid-template-columns: repeat(5, 1fr);
      gap: 12px;
    }
  }
  .top10-card-sharqmovie {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  .top10-card-sharqmovie:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 9, 20, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
  .top10-card-sharqmovie .movie-poster {
    aspect-ratio: 2/3;
    position: relative;
  }
  .top10-card-sharqmovie .movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .top10-number-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #E6C200);
    color: #0C0E12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    font-family: var(--font-display), var(--font-display-fallback);
  }
  .top10-card-sharqmovie .movie-info {
    padding: 8px;
  }
  .top10-card-sharqmovie .movie-name {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-2);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ================= FOOTER ================= */
  .footer-sharqmovie {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    padding: 24px 16px;
    margin-top: 24px;
  }
  .footer-sharqmovie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer-sharqmovie-copy {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 4px;
  }
  .footer-sharqmovie-links {
    display: flex;
    gap: 16px;
  }
  .footer-sharqmovie-links a {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .footer-sharqmovie-links a:hover {
    color: #FFD700;
  }
  @media (max-width: 480px) {
    .footer-sharqmovie-inner {
      flex-direction: column;
      text-align: center;
    }
  }
