/* StreamVault - Modern Dark Cinema Theme Styling */
:root {
  --bg-primary: #0a0b0e;
  --bg-surface: #12141c;
  --bg-card: #171a26;
  --bg-card-hover: #1f2334;
  --bg-input: #1a1e2d;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background-color: rgba(18, 20, 28, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badge-account {
  font-size: 0.65rem;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.15);
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Active Group Switcher in Nav */
.nav-group-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.nav-group-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.nav-group-dropdown {
  background: transparent;
  color: var(--text-primary);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  max-width: 260px;
}

.nav-group-dropdown option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 500;
}

.user-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #334155;
  color: white;
}
.btn-secondary:hover {
  background: #475569;
}

.btn-accent {
  background: #8b5cf6;
  color: white;
}
.btn-accent:hover {
  background: #7c3aed;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-admin {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #93c5fd;
}
.btn-admin:hover {
  background: #1e293b;
  border-color: var(--accent);
  color: white;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  color: #fca5a5;
}

.btn-block {
  width: 100%;
}

/* Forms */
.form-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-bottom {
  display: flex;
  align-items: flex-end;
}

.input-with-button {
  display: flex;
  gap: 0.5rem;
}

/* Hero / Welcome Card */
.hero-card {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}
.hero-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero-card p {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

/* ======================================================== */
/* View 1: Topics View                                      */
/* ======================================================== */
.section-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  width: 100%;
}

.topics-search-wrap {
  width: 100%;
  max-width: 480px;
}

/* ======================================================== */
/* View 1: Topics View (Video Website / Streaming Portal)   */
/* ======================================================== */

/* Hero Showcase Banner */
.hero-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: #000;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.65);
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.hero-showcase:hover .hero-backdrop {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 11, 14, 0.95) 0%, rgba(10, 11, 14, 0.4) 60%, rgba(10, 11, 14, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.25rem 2rem;
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.topics-controls-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topic-filter-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-card);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.topic-filter-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.topic-filter-tab.active {
  background: var(--accent);
  color: white;
}

/* ========================================================
   Responsive Media & Topic Video Cards Grid
   ======================================================== */
#media-grid,
#topics-grid,
.topics-video-grid,
.video-grid,
.yt-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1.15rem 0.85rem;
  max-width: 1360px;
  margin: 1rem auto 2.5rem auto;
  width: 100%;
}

/* Base Video Card: Modern borderless card with smooth hover */
.topic-video-card,
.media-card,
.yt-video-card,
.yt-media-card {
  background: transparent;
  border: none;
  border-radius: 12px;
  overflow: visible;
  transition: transform 0.22s ease, filter 0.22s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-column: auto;
}

.topic-video-card:hover,
.media-card:hover {
  transform: translateY(-3px);
}

/* Uniform Video Thumbnails: Native 3:4 Aspect Ratio matching Telegram video thumbnails (zero cropping) */
.thumb-wrapper,
.yt-thumb-wrapper,
.topic-thumb-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-height: 290px;
  border-radius: 12px;
  background-color: #070913;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.thumb-img,
.yt-thumb-img,
.topic-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #070913;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1);
  display: block;
}

/* In-feed Ad Banner Item */
.ad-card-item {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
}

.ad-card-item .topic-thumb-wrapper {
  aspect-ratio: 16 / 9;
  max-height: 220px;
}

.topic-video-card:hover .thumb-img,
.media-card:hover .thumb-img {
  transform: scale(1.05);
}

/* YouTube Duration Badge (Bottom Right) */
.yt-badge-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.yt-badge-photo {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.yt-badge-pinned {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f59e0b;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

/* YouTube Card Details (Avatar + Info + Actions) */
.yt-card-body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.25rem 0.25rem 0.25rem;
  width: 100%;
}

.yt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.yt-card-details {
  flex: 1;
  min-width: 0;
}

.yt-card-title,
.media-title,
.topic-title-text {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}


.yt-card-channel {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.yt-card-meta-line {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
}

.yt-meta-dot {
  font-size: 0.65rem;
  opacity: 0.6;
}

/* YouTube Card Quick Actions */
.yt-card-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.yt-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.yt-action-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.08);
}

/* ========================================================
   YouTube Homepage & Search Bar
   ======================================================== */
.yt-home-bar {
  display: flex;
  justify-content: center;
  margin: 0.5rem auto 1.5rem auto;
  max-width: 620px;
  width: 100%;
}

.yt-search-container {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 0.5rem 1.15rem;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.yt-search-container:focus-within {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.yt-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.yt-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.94rem;
  width: 100%;
}

.yt-search-input::placeholder {
  color: var(--text-muted);
}

/* ========================================================
   Topic Page Header & Clean Section Switcher
   (Only Video & Photo Sections, No "All" Section)
   ======================================================== */
.topic-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.topic-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.yt-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.yt-back-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-2px);
}

.topic-title-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topic-main-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-sub-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.topic-count-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 8px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
}

.topic-section-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* YouTube Style Section Chips (Only Videos and Photos) */
.yt-chips-group {
  display: inline-flex;
  gap: 0.5rem;
  background: transparent;
  padding: 0;
  border: none;
}

.yt-chips-group .filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yt-chips-group .filter-tab:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.yt-chips-group .filter-tab.active {
  background: #fff;
  color: #0f0f0f;
  border-color: #fff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.yt-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 0.4rem 0.95rem;
  gap: 0.5rem;
  max-width: 250px;
}

.yt-search-box:focus-within {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.1);
}

.yt-search-input-inline {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  width: 100%;
}

/* Media Grid Badges & Controls */

/* Badges on media thumbnail */
.badge-media-type {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}
.badge-video {
  background: rgba(37, 99, 235, 0.85);
  color: white;
}
.badge-photo {
  background: rgba(16, 185, 129, 0.85);
  color: white;
}

.badge-size {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Hover play/view overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.thumb-wrapper:hover .play-overlay,
.topic-thumb-wrapper:hover .play-overlay,
.topic-video-card:hover .play-overlay,
.media-card:hover .play-overlay {
  opacity: 1;
}

.play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.6);
  transform: scale(0.85);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.thumb-wrapper:hover .play-circle,
.topic-thumb-wrapper:hover .play-circle,
.topic-video-card:hover .play-circle,
.media-card:hover .play-circle {
  transform: scale(1.05);
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.media-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-title:hover {
  color: #60a5fa;
}

.media-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.85rem;
  min-height: 2.4rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 0.4rem;
}

/* Stylish Central Page Loader */
.page-loader,
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.spinner {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: #6366f1;
  border-right-color: #a855f7;
  animation: stylish-spin 0.9s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
  will-change: transform;
}

.spinner::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-bottom-color: #ec4899;
  border-left-color: #6366f1;
  animation: stylish-spin-reverse 1.3s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
  will-change: transform;
}

.spinner::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes stylish-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes stylish-spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes pulse-glow {
  0% { opacity: 0.4; transform: scale(0.92); }
  100% { opacity: 0.9; transform: scale(1.18); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
  margin: 1.5rem 0;
}
.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Pagination */
.pagination-wrapper {
  text-align: center;
  margin: 2.5rem 0;
}
.load-status-text {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

/* ======================================================== */
/* Modals (Video, Image, Admin)                             */
/* ======================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop, .player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-dialog,
.modal-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.modal-sm {
  max-width: 480px;
}

.modal-dialog-lg {
  max-width: 820px;
}

.modal-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.modal-header-title h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.btn-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
  flex-shrink: 0;
}
.btn-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.05);
}
.btn-close:active {
  transform: scale(0.95);
}

/* ======================================================== */
/* Professional Cinema Video Player & Control Engine        */
/* ======================================================== */

.cinema-modal-backdrop {
  background: rgba(4, 7, 16, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.cinema-modal-backdrop.hidden,
#player-modal.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Ambient Backlight Glow Effect */
.player-ambient-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease, filter 0.8s ease;
  background: radial-gradient(circle 800px at 50% 35%, rgba(99, 102, 241, 0.22), rgba(236, 72, 153, 0.14), transparent 75%);
}
.player-ambient-glow.active {
  opacity: 1;
}

/* Cinema Container Box */
.cinema-player-content {
  position: relative;
  z-index: 10;
  background: #080c16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  width: 95vw;
  max-width: 1440px;
  height: 92vh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.9), 0 0 45px rgba(99, 102, 241, 0.12);
  transition: max-width 0.35s ease, height 0.35s ease, border-radius 0.35s ease;
}

.cinema-player-content.theater-mode {
  max-width: 98vw;
  width: 98vw;
  height: 96vh;
  max-height: 96vh;
}
.cinema-player-content.theater-mode .cinema-body-layout {
  grid-template-columns: 1fr;
}
.cinema-player-content.theater-mode .cinema-video-wrapper {
  max-height: 75vh;
}
.cinema-player-content.theater-mode .cinema-sidebar-playlist {
  max-height: 400px;
}

/* Cinema Header Bar */
.cinema-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  background: #0b1120;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
  flex-shrink: 0;
}

.player-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.cinema-brand-badge {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.cinema-breadcrumb {
  font-size: 0.85rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.cinema-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #34d399; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.player-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-ghost-cinema {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.btn-ghost-cinema:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.btn-ghost-cinema.active {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.2);
}

.btn-close-cinema {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-close-cinema:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: scale(1.08) rotate(90deg);
}

/* 2-Column Split Cinema Body */
.cinema-body-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.cinema-body-layout::-webkit-scrollbar {
  width: 6px;
}
.cinema-body-layout::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.cinema-main-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* Custom Video Stage */
.cinema-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 65vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.cinema-video-wrapper video,
#cinema-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  outline: none;
}

/* Ambient Canvas Layer */
.ambient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(40px) brightness(1.2);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
  display: none;
}

/* Buffering Spinner Overlay */
.player-buffer-spinner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  pointer-events: none;
}
.spinner-ring {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ec4899;
  border-right-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

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

/* Animated Center Play / Pause Indicator */
.center-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
  animation: center-play-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.center-play-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

@keyframes center-play-pop {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  40% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

/* Skip 10s Double-Tap Ripples */
.skip-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  animation: skip-bounce 0.6s ease forwards;
}
.skip-left { left: 12%; }
.skip-right { right: 12%; }

@keyframes skip-bounce {
  0% { transform: translateY(-50%) scale(0.7); opacity: 0; }
  50% { transform: translateY(-50%) scale(1.08); opacity: 1; }
  100% { transform: translateY(-50%) scale(1.2); opacity: 0; }
}

/* Custom Controls Overlay */
.custom-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 30%, rgba(5, 8, 16, 0.95) 100%);
  padding: 0 1rem 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  cursor: default;
}
.custom-controls-overlay.hide-controls {
  opacity: 0;
  pointer-events: none;
}
.cinema-video-wrapper.hide-cursor {
  cursor: none;
}

/* Interactive Timeline & Scrubber */
.player-timeline {
  position: relative;
  width: 100%;
  padding: 8px 0;
  cursor: pointer;
  touch-action: none;
}
.timeline-rail {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transition: height 0.15s ease;
  overflow: visible;
}
.player-timeline:hover .timeline-rail {
  height: 8px;
}

.timeline-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  transition: width 0.2s linear;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 55%, #3b82f6 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.timeline-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease, left 0.05s linear;
  pointer-events: none;
}
.player-timeline:hover .timeline-handle {
  transform: translate(-50%, -50%) scale(1);
}

/* Floating Hover Time Bubble */
.timeline-tooltip {
  position: absolute;
  bottom: 22px;
  left: 0%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 30;
}

/* Controls Bottom Action Row */
.controls-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
}

.controls-group-left,
.controls-group-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  touch-action: manipulation;
  flex-shrink: 0;
}
.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.08);
}
.ctrl-btn:active {
  transform: scale(0.95);
}

.ctrl-btn-badge {
  position: absolute;
  font-size: 0.58rem;
  font-weight: 800;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  color: #f8fafc;
  pointer-events: none;
}

.ctrl-text-btn {
  width: auto !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
}
.ctrl-text-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Volume Slider */
.volume-control-wrap {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.volume-slider {
  width: 0;
  opacity: 0;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: width 0.25s ease, opacity 0.25s ease;
}
.volume-control-wrap:hover .volume-slider,
.volume-slider:focus {
  width: 68px;
  opacity: 1;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/* Time Display */
.time-display {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: #cbd5e1;
  padding-left: 0.4rem;
  white-space: nowrap;
}
.time-divider {
  color: #64748b;
}

/* Speed Dropdown Menu */
.speed-menu-wrap {
  position: relative;
}
.speed-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 0.4rem;
  min-width: 130px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 40;
}
.speed-opt {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  color: #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.speed-opt:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.speed-opt.active {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  font-weight: 700;
}

/* Autoplay Pill Switch */
.ctrl-autoplay-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.autoplay-checkbox {
  display: none;
}
.autoplay-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #94a3b8;
  transition: all 0.2s ease;
}
.autoplay-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  transition: background 0.2s ease;
}
.autoplay-checkbox:checked + .autoplay-pill {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.autoplay-checkbox:checked + .autoplay-pill .autoplay-dot {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

/* Video Information & Interactive Action Hub */
.cinema-info-hub {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cinema-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cinema-title-wrap {
  flex: 1;
  min-width: 280px;
}

.cinema-video-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  margin: 0 0 0.5rem 0;
}

.cinema-badges-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cinema-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.badge-primary {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}
.badge-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.badge-speed {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Action Buttons Bar */
.cinema-action-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cinema-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}
.cinema-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.cinema-action-btn:active {
  transform: translateY(0);
}
.cinema-action-btn.active {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.4);
  color: #f472b6;
}

.btn-action-accent {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35) !important;
}
.btn-action-accent:hover {
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.55) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

/* Channel & Caption Card */
.cinema-details-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cinema-channel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cinema-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
  flex-shrink: 0;
}

.cinema-channel-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cinema-channel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
}
.cinema-channel-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.cinema-caption-wrapper {
  position: relative;
}
.cinema-caption-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 72px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.cinema-caption-text.expanded {
  max-height: none !important;
}

.btn-caption-more {
  background: none;
  border: none;
  color: #818cf8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0 0 0;
  display: block;
}
.btn-caption-more:hover {
  text-decoration: underline;
  color: #a5b4fc;
}

/* Right Sidebar: Up Next Playlist Queue */
.cinema-sidebar-playlist {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  max-height: 100%;
}

.playlist-header {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
}
.playlist-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}
.playlist-badge {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}
.playlist-subtext {
  font-size: 0.72rem;
  color: #64748b;
}

.playlist-items-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.playlist-items-scroll::-webkit-scrollbar {
  width: 5px;
}
.playlist-items-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

/* Playlist Video Card */
.playlist-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.playlist-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}
.playlist-card.active-playing {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

.playlist-thumb-box {
  position: relative;
  width: 105px;
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.playlist-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.playlist-card:hover .playlist-thumb-img {
  transform: scale(1.06);
}

.playlist-duration {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* Animated Equalizer Wave for Active Card */
.playlist-playing-eq {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.eq-bar {
  width: 3px;
  height: 14px;
  background: #ec4899;
  border-radius: 2px;
  animation: eq-bounce 0.8s ease infinite alternate;
}
.eq-bar:nth-child(2) { animation-delay: 0.2s; height: 18px; background: #8b5cf6; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; height: 10px; background: #3b82f6; }

@keyframes eq-bounce {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1.2); }
}

.playlist-info-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}
.playlist-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.playlist-card.active-playing .playlist-item-title {
  color: #c4b5fd;
  font-weight: 700;
}
.playlist-item-meta {
  font-size: 0.7rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Keyboard Shortcuts Modal Table */
.shortcuts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
  color: #cbd5e1;
}
.shortcut-key {
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: #f8fafc;
}

/* Mobile & Tablet Responsiveness for Cinema Player */
@media (max-width: 1024px) {
  .cinema-player-content {
    width: 96vw !important;
    height: 94vh !important;
    max-height: 94vh !important;
  }
  .cinema-body-layout {
    grid-template-columns: 1fr 310px !important;
    gap: 1rem !important;
    padding: 1rem !important;
  }
  .cinema-video-title {
    font-size: 1.15rem !important;
  }
}

@media (max-width: 768px) {
  .cinema-modal-backdrop {
    padding: 0 !important;
  }
  .cinema-player-content {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
  }
  .cinema-header {
    padding: 0.6rem 0.85rem !important;
    padding-top: max(0.6rem, env(safe-area-inset-top, 0px)) !important;
  }
  .cinema-body-layout {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .cinema-main-stage {
    gap: 0 !important;
  }
  .cinema-video-wrapper {
    border-radius: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    max-height: 48vh !important;
    aspect-ratio: 16 / 9 !important;
  }
  .cinema-info-hub {
    padding: 0.85rem !important;
  }
  .cinema-video-title {
    font-size: 1.05rem !important;
  }
  .cinema-action-bar {
    width: 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 0.4rem !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .cinema-action-bar::-webkit-scrollbar {
    display: none !important;
  }
  .cinema-action-btn {
    flex-shrink: 0 !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.78rem !important;
  }
  .cinema-sidebar-playlist {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    margin-top: 1rem !important;
  }
  .btn-ghost-cinema span {
    display: none !important;
  }
}

/* Image Lightbox Modal */
.image-modal-content {
  position: relative;
  background: #0d121c;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 94vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
}

.image-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.75rem;
  flex-shrink: 0;
}

.image-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  margin: 0;
}

.image-display-box,
.image-lightbox-container {
  width: 100%;
  max-height: 65vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.5rem;
  flex: 1;
}

.image-display-box img,
#lightbox-full-img,
.image-lightbox-container img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 4px;
}

.image-footer {
  padding: 0.75rem 1.25rem;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ======================================================== */
/* Admin Panel Specific Styles                              */
/* ======================================================== */
.admin-tabs {
  display: flex;
  background: #0f121a;
  border-bottom: 1px solid var(--border-color);
  padding: 0 1rem;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.admin-tab-btn.active {
  color: #60a5fa;
  border-bottom-color: #3b82f6;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-badge {
  font-size: 0.85rem;
  font-weight: 600;
}
.status-badge.connected {
  color: var(--success);
}
.status-badge.disconnected {
  color: var(--warning);
}

.user-details-box {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.form-section h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Whitelist Manager */
.add-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.add-group-card h4 {
  margin-bottom: 1rem;
}

.divider-text {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 1rem 0;
  position: relative;
}
.divider-text::before, .divider-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--border-color);
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.allowed-groups-section h4 {
  margin-bottom: 0.75rem;
}

.allowed-groups-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.allowed-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.allowed-group-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.allowed-group-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.allowed-group-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge-slug {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #60a5fa;
  font-family: monospace;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
}

.channel-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-sm {
  max-width: 440px;
}

.input-prefix-group {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.input-prefix {
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-right: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: monospace;
  font-weight: 700;
  font-size: 1rem;
}

.input-prefix-group .form-input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.empty-state-mini {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.alert-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.alert-banner.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--success);
  color: #34d399;
}
.alert-banner.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  color: #f87171;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
  z-index: 200;
  font-size: 0.875rem;
  transition: var(--transition);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
  }
  .nav-group-switch {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
  }
  .container {
    padding: 1rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
  .player-content, .image-modal-content {
    max-height: 98vh;
  }
}


/* ======================================================== */
/* Professional Admin Panel & Ad Engine Styles              */
/* ======================================================== */

.admin-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.metric-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.metric-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.metric-icon-wrap.success {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}
.metric-icon-wrap.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.metric-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Tab Navigation Enhanced */
.admin-tabs-nav {
  display: flex;
  background: #0d121c;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.admin-nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}
.admin-nav-item.active {
  color: #818cf8;
  border-bottom-color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
}

/* Modern Toggle Switch */
.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.toggle-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.toggle-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .25s ease;
  border-radius: 26px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
input:checked + .toggle-slider {
  background-color: #6366f1;
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* SEO & Social Card Previews */
.preview-card-wrap {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}
.preview-header-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.google-search-preview {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: Arial, sans-serif;
  max-width: 600px;
}
.google-preview-url {
  font-size: 0.78rem;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.google-preview-title {
  font-size: 1.15rem;
  color: #60a5fa;
  font-weight: 500;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.google-preview-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
}

.social-share-preview {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  max-width: 460px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.social-preview-thumbnail {
  width: 100%;
  height: 200px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  overflow: hidden;
}
.social-preview-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-preview-details {
  padding: 0.85rem 1rem;
}
.social-preview-site {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
}
.social-preview-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0.25rem 0;
  line-height: 1.3;
}
.social-preview-snippet {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Code Editor Area */
.code-editor-box {
  width: 100%;
  background: #0a0d14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #a5b4fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  resize: vertical;
  min-height: 120px;
}
.code-editor-box:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Public Website Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  color: white;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.announcement-bar.warning {
  background: linear-gradient(90deg, #d97706, #b45309);
}
.announcement-bar.success {
  background: linear-gradient(90deg, #059669, #047857);
}
.announcement-link-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 0.5rem;
  transition: var(--transition);
}
.announcement-link-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}
.announcement-close-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.announcement-close-btn:hover {
  color: white;
}

/* Header Ad Container */
.header-ad-container {
  max-width: 1280px;
  margin: 1.25rem auto 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.ad-banner-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.6rem;
  display: inline-block;
  max-width: 100%;
  position: relative;
}
.ad-badge {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  display: block;
}
.ad-banner-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

/* In-Feed Ad Card */
.ad-card-item {
  background: var(--bg-card);
  border: 1px dashed rgba(99, 102, 241, 0.45);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}
.ad-card-item:hover {
  border-color: #818cf8;
  transform: translateY(-4px);
}
.ad-card-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: #6366f1;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 5;
}
.ad-card-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #1e293b;
  overflow: hidden;
}
.ad-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-card-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.ad-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}
.ad-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.ad-card-cta {
  margin-top: auto;
  padding-top: 0.6rem;
}

/* Sticky Footer Ad */
.sticky-footer-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 23, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}
.sticky-ad-close {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.sticky-ad-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Player Ad */
.player-ad-container {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-align: center;
}

/* Public Website Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.5);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}


/* ======================================================== */
/* Comprehensive Mobile & Multi-Device Responsive Engine    */
/* Optimized for: Mobile Phones (320px-480px), Phablets,    */
/* Tablets (768px-1024px), Laptops, Desktops, & Landscape   */
/* ======================================================== */

:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* 1. Universal Layout & Touch Foundations */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

button, a, input, select, textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent unwanted automatic zoom in iOS Safari */
input, select, textarea {
  font-size: 16px;
}

/* Smooth active press feedback on touch devices */
.btn:active,
.filter-tab:active,
.yt-action-icon:active,
.btn-close:active {
  transform: scale(0.96);
}

/* 2. Tablets & Small Laptops (768px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 1.25rem 1rem !important;
    max-width: 100% !important;
  }
  #media-grid,
  #topics-grid,
  .topics-video-grid,
  .video-grid,
  .yt-feed-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem 0.75rem !important;
    max-width: 100% !important;
  }
  .player-content,
  .image-modal-content {
    max-width: 90vw !important;
    max-height: 90vh !important;
  }
  .hero-showcase {
    min-height: 220px !important;
  }
  .hero-content {
    padding: 2rem 1.5rem !important;
  }
}

/* 3. Phablets & Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  /* Navigation Bar */
  .navbar {
    padding: 0.65rem 0.85rem !important;
    padding-top: max(0.65rem, var(--sat)) !important;
    padding-left: max(0.85rem, var(--sal)) !important;
    padding-right: max(0.85rem, var(--sar)) !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .nav-brand {
    gap: 0.6rem !important;
  }
  .logo-icon {
    width: 32px !important;
    height: 32px !important;
  }
  .logo-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  .brand-text h1 {
    font-size: 1.05rem !important;
    letter-spacing: -0.01em !important;
  }
  .badge-account {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }
  .nav-group-switch {
    width: 100% !important;
    order: 3 !important;
    margin-top: 0.25rem !important;
    justify-content: space-between !important;
    padding: 0.4rem 0.75rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 10px !important;
  }
  .nav-group-dropdown {
    max-width: 100% !important;
    flex: 1 !important;
    font-size: 16px !important;
    height: 36px !important;
  }

  /* Main Container */
  .container {
    padding: 0.75rem 0.65rem !important;
    padding-left: max(0.65rem, var(--sal)) !important;
    padding-right: max(0.65rem, var(--sar)) !important;
  }

  /* Top Announcement Banner */
  .announcement-bar {
    padding: 0.55rem 0.85rem !important;
    padding-right: 2.5rem !important;
    font-size: 0.8rem !important;
    flex-wrap: wrap !important;
    text-align: left !important;
    gap: 0.4rem !important;
  }
  .announcement-link-btn {
    display: inline-block !important;
    font-size: 0.75rem !important;
    padding: 3px 10px !important;
    margin: 0.2rem 0 0 0 !important;
  }
  .announcement-close-btn {
    right: 0.6rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Header Ad Banner Slot */
  .header-ad-container {
    margin: 0.5rem auto 0 auto !important;
    padding: 0 0.5rem !important;
  }
  .ad-banner-box {
    width: 100% !important;
    padding: 0.35rem !important;
  }

  /* Hero Showcase Banner */
  .hero-showcase {
    min-height: 180px !important;
    margin-bottom: 1rem !important;
    border-radius: 12px !important;
  }
  .hero-content {
    padding: 1rem 0.85rem !important;
    max-width: 100% !important;
  }
  .hero-badge {
    font-size: 0.65rem !important;
    padding: 2px 7px !important;
    margin-bottom: 0.35rem !important;
  }
  .hero-title {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.25rem !important;
  }
  .hero-meta {
    font-size: 0.75rem !important;
    margin-bottom: 0.65rem !important;
  }
  .hero-actions {
    width: 100% !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
    min-height: 42px !important;
  }

  /* Homepage Search Bar */
  .yt-home-bar {
    width: 100% !important;
    margin-bottom: 0.85rem !important;
  }
  .yt-search-container {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 24px !important;
  }
  .yt-search-input {
    font-size: 16px !important;
    width: 100% !important;
  }

  /* Section Topbar & Controls */
  .section-topbar {
    width: 100% !important;
    margin-bottom: 0.75rem !important;
  }
  .topics-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  .topics-search-wrap .form-input {
    width: 100% !important;
    font-size: 16px !important;
    min-height: 40px !important;
  }

  /* Responsive Video Grid on Mobile */
  #media-grid,
  #topics-grid,
  .topics-video-grid,
  .video-grid,
  .yt-feed-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem 0.55rem !important;
    max-width: 100% !important;
    margin: 0.5rem auto 1.5rem auto !important;
    width: 100% !important;
  }

  .topic-video-card,
  .media-card,
  .yt-video-card,
  .yt-media-card {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .thumb-wrapper,
  .yt-thumb-wrapper,
  .topic-thumb-wrapper {
    aspect-ratio: 3 / 4 !important;
    max-height: 250px !important;
    border-radius: 10px !important;
    width: 100% !important;
  }

  .ad-card-item {
    grid-column: 1 / -1 !important;
  }

  .ad-card-item .topic-thumb-wrapper {
    aspect-ratio: 16 / 9 !important;
    border-radius: 10px !important;
  }

  /* Card Content & Details */
  .yt-card-body {
    padding: 0.45rem 0.15rem !important;
    gap: 0.45rem !important;
    align-items: flex-start !important;
  }
  .yt-avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 0.72rem !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }
  .yt-card-details {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .yt-card-title,
  .media-title,
  .topic-title-text {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.15rem !important;
    word-break: break-word !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }
  .yt-card-channel {
    font-size: 0.7rem !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .yt-card-meta-line {
    font-size: 0.66rem !important;
    color: var(--text-muted) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .yt-card-actions {
    display: flex !important;
    gap: 0.25rem !important;
    flex-shrink: 0 !important;
  }
  .yt-action-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .badge-media-type,
  .badge-duration,
  .badge-pinned-topic,
  .badge-size,
  .yt-badge-duration,
  .yt-badge-pinned {
    font-size: 0.62rem !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
  }

  /* Topic Header Bar inside Topic View */
  .topic-header-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    margin-bottom: 0.85rem !important;
  }
  .topic-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    width: 100% !important;
  }
  .yt-back-btn {
    min-height: 38px !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }
  .topic-title-box {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .topic-main-title {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    word-break: break-word !important;
  }
  .topic-sub-meta {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-wrap: wrap !important;
  }
  .topic-count-pill {
    font-size: 0.62rem !important;
    padding: 1px 6px !important;
    border-radius: 999px !important;
  }
  .topic-section-controls {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }
  .media-filter-tabs.yt-chips-group {
    width: 100% !important;
    display: flex !important;
    gap: 0.4rem !important;
  }
  .media-filter-tabs .filter-tab {
    flex: 1 !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.84rem !important;
    border-radius: 20px !important;
  }
  .yt-search-box {
    max-width: 100% !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 20px !important;
  }
  .yt-search-input-inline {
    font-size: 16px !important;
    width: 100% !important;
  }

  /* Pagination & Load More */
  .pagination-box {
    width: 100% !important;
    margin: 1.5rem auto !important;
  }
  .pagination-box .btn {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
  }
  .load-status-text {
    font-size: 0.75rem !important;
    text-align: center !important;
    margin-top: 0.4rem !important;
  }

  /* Fullscreen Cinema Video Player Modal on Mobile */
  .modal-backdrop {
    padding: 0 !important;
    overflow: hidden !important;
  }
  .modal-dialog,
  .modal-card {
    max-width: 95vw !important;
    width: 95vw !important;
    max-height: 90vh !important;
    margin: auto !important;
    border-radius: 12px !important;
  }
  .player-content {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .player-header {
    padding: 0.65rem 0.85rem !important;
    padding-top: max(0.65rem, var(--sat)) !important;
    background: #111827 !important;
    gap: 0.5rem !important;
  }
  .video-player-title {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
  }
  .btn-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 1.1rem !important;
  }
  .video-wrapper,
  .video-container {
    width: 100% !important;
    max-height: 45vh !important;
    min-height: 220px !important;
    aspect-ratio: auto !important;
    background: #000 !important;
    flex-shrink: 0 !important;
  }
  .video-wrapper video,
  #cinema-video {
    width: 100% !important;
    height: 100% !important;
    max-height: 45vh !important;
    object-fit: contain !important;
  }
  .player-footer {
    padding: 0.75rem 0.85rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    overflow-y: auto !important;
    flex: 1 !important;
    background: #111827 !important;
  }
  .video-details {
    min-width: 0 !important;
    width: 100% !important;
  }
  .player-actions {
    width: 100% !important;
    display: flex !important;
    gap: 0.45rem !important;
  }
  .player-actions .btn {
    flex: 1 !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
  }
  .player-nav-controls {
    display: flex !important;
    width: 100% !important;
    gap: 0.45rem !important;
    padding: 0.5rem 0.85rem !important;
    padding-bottom: max(0.65rem, var(--sab)) !important;
    background: #0d121c !important;
  }
  .player-nav-controls .btn {
    flex: 1 !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
  }

  /* Fullscreen Photo Lightbox Modal on Mobile */
  .image-modal-content {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .image-header {
    padding: 0.65rem 0.85rem !important;
    padding-top: max(0.65rem, var(--sat)) !important;
    background: #111827 !important;
  }
  .image-display-box {
    flex: 1 !important;
    max-height: 60vh !important;
    padding: 0.35rem !important;
  }
  .image-display-box img,
  #lightbox-full-img {
    max-height: 60vh !important;
  }
  .image-footer {
    padding: 0.75rem 0.85rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    background: #111827 !important;
  }
  .image-actions {
    width: 100% !important;
  }
  .image-actions .btn {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
  }

  /* Floating Sticky Footer Ad */
  .sticky-footer-ad {
    padding: 0.35rem 0.5rem !important;
    padding-bottom: max(0.4rem, var(--sab)) !important;
  }
  .sticky-footer-ad img {
    max-height: 48px !important;
    max-width: calc(100% - 38px) !important;
  }
  .sticky-ad-close {
    right: 0.5rem !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 0.85rem !important;
  }

  /* Site Footer */
  .site-footer {
    margin-top: 2.5rem !important;
    padding: 1.5rem 0.85rem !important;
    padding-bottom: max(1.5rem, calc(var(--sab) + 55px)) !important;
    font-size: 0.78rem !important;
  }

  /* Toast Notification */
  .toast {
    left: 1rem !important;
    right: 1rem !important;
    bottom: max(1.5rem, calc(var(--sab) + 60px)) !important;
    text-align: center !important;
    font-size: 0.82rem !important;
  }
}

/* 4. Compact Phones (max-width: 480px) */
@media (max-width: 480px) {
  #media-grid,
  #topics-grid,
  .topics-video-grid,
  .video-grid,
  .yt-feed-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem 0.4rem !important;
  }
  .thumb-wrapper,
  .yt-thumb-wrapper,
  .topic-thumb-wrapper {
    aspect-ratio: 3 / 4 !important;
    max-height: 220px !important;
    border-radius: 8px !important;
  }
  .yt-card-body {
    padding: 0.35rem 0.05rem !important;
    gap: 0.35rem !important;
  }
  .yt-avatar {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    font-size: 0.65rem !important;
  }
  .yt-card-title,
  .media-title {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
  }
  .yt-action-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    border-radius: 5px !important;
  }
  .yt-action-icon svg {
    width: 12px !important;
    height: 12px !important;
  }
}

/* 5. Extra Small / Foldable Outer Screens (max-width: 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0.5rem 0.35rem !important;
  }
  .brand-text h1 {
    font-size: 0.95rem !important;
  }
  #media-grid,
  #topics-grid,
  .topics-video-grid,
  .video-grid,
  .yt-feed-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem 0.3rem !important;
  }
  .thumb-wrapper,
  .yt-thumb-wrapper,
  .topic-thumb-wrapper {
    aspect-ratio: 3 / 4 !important;
    max-height: 195px !important;
    border-radius: 6px !important;
  }
  .yt-avatar {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    font-size: 0.58rem !important;
  }
  .yt-card-title,
  .media-title {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }
  .yt-card-channel,
  .yt-card-meta-line {
    font-size: 0.6rem !important;
  }
  .yt-action-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
  }
  .yt-action-icon svg {
    width: 11px !important;
    height: 11px !important;
  }
  .filter-tab {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.5rem !important;
  }
}

/* 6. Landscape Mode on Mobile Phones (max-height: 520px and orientation: landscape) */
@media (max-height: 520px) and (orientation: landscape) {
  .player-content {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
  .player-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 30 !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%) !important;
    border-bottom: none !important;
  }
  .video-wrapper,
  .video-container {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
  .video-wrapper video,
  #cinema-video {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    object-fit: contain !important;
  }
  .player-footer,
  .player-nav-controls {
    display: none !important;
  }
}

