/* =============================================
   CSS Variables & Reset
   ============================================= */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f0f;
  --bg-card: #161616;
  --bg-elevated: #1e1e1e;
  --bg-input: #141414;
  --bg-hover: #222222;
  --accent: #e63946;
  --accent-hover: #ff4d5a;
  --accent-soft: rgba(230, 57, 70, 0.12);
  --accent-glow: rgba(230, 57, 70, 0.3);
  --text-primary: #f0f0f0;
  --text-secondary: #a8a8a8;
  --text-muted: #5a5a5a;
  --border: #1f1f1f;
  --border-light: #2a2a2a;
  --border-focus: #e63946;
  --success: #27ae60;
  --warning: #f39c12;
  --error: #e74c3c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.6);
  --shadow-accent: 0 4px 20px rgba(230,57,70,0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 64px;
  --sidebar-width: 320px;
  --container-max: 1400px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

ul { list-style: none; }

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.text-accent { color: var(--accent); }

/* =============================================
   Utility Classes
   ============================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* =============================================
   Buttons
   ============================================= */
.btn-accent {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}
.btn-accent:active { transform: translateY(0); }
.btn-accent:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-full { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn-text { transition: opacity 0.2s; }
.btn-accent:disabled .btn-text { opacity: 0; }

.btn-spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.link-accent {
  color: var(--accent);
  font-weight: 500;
}
.link-accent:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition);
}
.link-btn:hover { color: var(--accent-hover); }

/* =============================================
   Toast Notifications
   ============================================= */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 300px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}
.toast.removing {
  animation: toastOut 0.3s ease forwards;
}
.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.toast-message {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.toast-close:hover { color: var(--text-primary); }
.toast.success { border-left: 3px solid var(--success); }
.toast.success .toast-icon { color: var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.error .toast-icon { color: var(--error); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info { border-left: 3px solid var(--accent); }
.toast.info .toast-icon { color: var(--accent); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  flex-shrink: 0;
}
.nav-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.nav-link.active { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 4px 0 14px;
  height: 38px;
  width: 220px;
  transition: all var(--transition);
}
.nav-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  width: 280px;
}
.nav-search-box .search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.nav-search-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 0 10px;
  font-size: 0.85rem;
  height: 100%;
}
.nav-search-box input::placeholder { color: var(--text-muted); }
.nav-search-box button {
  background: var(--accent);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-search-box button:hover { background: var(--accent-hover); }
.nav-search-box button svg { width: 14px; height: 14px; }

/* User Dropdown */
.nav-user {
  position: relative;
}
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.nav-user-btn:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
}
.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
}
.nav-user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.nav-user.open .nav-user-chevron { transform: rotate(180deg); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  overflow: hidden;
}
.nav-user.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  width: 100%;
  text-align: left;
}
.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.dropdown-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.dropdown-item.danger { color: var(--error); }
.dropdown-item.danger:hover { background: rgba(231,76,60,0.1); }

/* Mobile Menu Button */
.nav-mobile-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-mobile-btn:hover { background: var(--bg-hover); }
.nav-mobile-btn svg { width: 24px; height: 24px; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 1200;
  padding: 80px 24px 24px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-menu.active { right: 0; }
.mobile-menu .mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.mobile-menu .mobile-link:hover,
.mobile-menu .mobile-link.active {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.mobile-menu .mobile-link.active { color: var(--accent); }
.mobile-menu .mobile-link svg { width: 20px; height: 20px; }

/* =============================================
   Hero Section
   ============================================= */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(230,57,70,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(230,57,70,0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.hero-particles {
  position: absolute;
  inset: 0;
}
.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-400px) scale(0); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(230,57,70,0.2);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search-box {
  max-width: 600px;
  margin: 0 auto 24px;
  height: 52px;
}
.hero-search-box input {
  font-size: 0.95rem;
}
.hero-search-box button {
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.chip {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: all var(--transition);
}
.chip:hover, .chip.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* =============================================
   Search Box (shared)
   ============================================= */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 6px 0 16px;
  height: 44px;
  transition: all var(--transition);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box .search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 0 10px;
  font-size: 0.9rem;
  height: 100%;
}
.search-box input::placeholder { color: var(--text-muted); }

/* =============================================
   Main Content Grid
   ============================================= */
.main-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 32px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

/* =============================================
   Section Headers
   ============================================= */
.section { margin-bottom: 48px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
}
.title-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.section-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--transition);
}
.section-link:hover { gap: 8px; }
.section-link svg { width: 18px; height: 18px; }

/* =============================================
   Filter Bar
   ============================================= */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.filter-right {
  display: flex;
  gap: 8px;
}
.filter-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 8px 32px 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a8a8a8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition);
}
.filter-select:hover { border-color: var(--border-light); }
.filter-select:focus { border-color: var(--accent); outline: none; }

/* =============================================
   Video Grid & Cards
   ============================================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.trending-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.video-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.video-card:hover .video-card-thumb img {
  transform: scale(1.05);
}
.video-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.video-card:hover .video-card-overlay { opacity: 1; }
.play-btn-overlay {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  transform: scale(0.8);
  transition: transform 0.3s;
}
.video-card:hover .play-btn-overlay { transform: scale(1); }
.play-btn-overlay svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 2px;
}
.video-card-country {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 500;
  color: #fff;
}

.video-card-body {
  padding: 14px 16px 16px;
}
.video-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.video-card-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.video-card-stats svg {
  width: 14px;
  height: 14px;
}

/* =============================================
   Sidebar
   ============================================= */
.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Category List */
.category-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.category-list li a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.category-list li a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.cat-icon { font-size: 1rem; width: 20px; text-align: center; }
.cat-count {
  margin-left: auto;
  font-size: 0.78rem;
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* Widget Video List */
.widget-video-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-video-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.widget-video-item:hover { background: var(--bg-hover); }
.widget-video-thumb {
  width: 100px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.widget-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.widget-video-item:hover .widget-video-thumb img { transform: scale(1.05); }
.widget-video-info { flex: 1; min-width: 0; }
.widget-video-info h4 {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.widget-video-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
/* Make sure this has position relative */
.widget-video-thumb {
  width: 100px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
  position: relative; /* CRITICAL FOR PLAY BUTTON */
}

/* Play Button Overlay */
.widget-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.widget-video-item:hover .widget-play-overlay {
  opacity: 1;
}

.widget-play-overlay.offline-badge {
  background: rgba(39, 174, 96, 0.9);
}

.widget-play-overlay span {
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin-top: 2px;
}
/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Newsletter Widget */
.newsletter-widget p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.newsletter-widget .input {
  margin-bottom: 10px;
}

/* =============================================
   Load More / Empty State
   ============================================= */
.load-more-container {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.4;
}
.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* =============================================
   Skeleton Loaders
   ============================================= */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.skeleton-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0;
}
.skeleton-text {
  height: 14px;
  margin: 14px 16px 0;
}
.skeleton-text.short {
  width: 60%;
  margin-bottom: 16px;
}
.skeleton-widget-item {
  display: flex;
  gap: 12px;
  padding: 6px;
}
.skeleton-widget-thumb {
  width: 100px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.skeleton-widget-item .skeleton-text {
  margin: 4px 0;
}
.skeleton-player {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =============================================
   Auth Pages
   ============================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.auth-bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
}
.shape-2 {
  width: 300px;
  height: 300px;
  background: #ff6b6b;
  bottom: -50px;
  left: -50px;
}
.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.auth-logo svg { width: 28px; height: 28px; }
.auth-header h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.auth-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.required { color: var(--accent); }
.lock-icon { font-size: 0.75rem; }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 0.9rem;
  transition: all var(--transition);
  width: 100%;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder { color: var(--text-muted); }
.input-wrapper .input { padding-left: 44px; }

.select-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a8a8a8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.input-wrapper .select-input { padding-left: 44px; }

.textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.input:read-only {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  min-height: 18px;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Password Toggle */
.toggle-password {
  position: absolute;
  right: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.toggle-password:hover { background: var(--bg-hover); }
.toggle-password svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

/* Password Strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: all 0.3s;
}
.strength-text {
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 50px;
  text-align: right;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.checkbox-label input { display: none; }
.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.checkbox-label input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-label input:checked + .checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.auth-footer p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
/* =============================================
   Google Auth Button
   ============================================= */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 24px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  margin-bottom: 20px;
}
.btn-google:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

/* =============================================
   Auth Divider
   ============================================= */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   Modal
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-size: 1.1rem;
}
.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.modal-body {
  padding: 24px;
}
.modal-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.modal-body .form-group { margin-bottom: 16px; }

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

/* =============================================
   Upload Page
   ============================================= */
.upload-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  min-height: 100vh;
}

.auth-guard {
  text-align: center;
  padding: 80px 20px;
}
.auth-guard svg {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.auth-guard h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.auth-guard p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.auth-guard-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.upload-header {
  margin-bottom: 32px;
}
.upload-header h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.upload-header p {
  color: var(--text-secondary);
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Dropzone */
.upload-dropzone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: var(--bg-card);
}
.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone-content h3 {
  font-size: 1rem;
  margin-top: 12px;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.dropzone-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.dropzone-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.dropzone-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin: 0 auto;
}

.dropzone-preview {
  position: relative;
}
.dropzone-preview video,
.dropzone-preview img {
  width: 100%;
  border-radius: var(--radius-md);
  max-height: 300px;
  object-fit: contain;
  background: #000;
}
.thumb-preview {
  max-height: 200px;
}
.thumb-preview img {
  max-height: 200px;
  object-fit: cover;
}
.preview-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.preview-remove:hover { background: var(--error); }

/* Progress Bar */
.upload-progress {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s;
}
.progress-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 36px;
  text-align: right;
}

.upload-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
}

/* =============================================
   Video Page
   ============================================= */
.video-page-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.video-page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.video-player-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.video-player-wrapper video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

.video-info {
  padding-top: 20px;
}
.video-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
  line-height: 1.3;
}
.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.video-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.stat-item svg {
  width: 16px;
  height: 16px;
}

.video-actions {
  display: flex;
  gap: 6px;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
}
.action-btn svg {
  width: 18px;
  height: 18px;
}
.action-btn:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
  color: var(--text-primary);
}
.action-btn.liked {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.action-btn.disliked {
  color: var(--warning);
  border-color: var(--warning);
  background: rgba(243,156,18,0.1);
}

.video-description-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.video-description-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Related Videos */
.related-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.related-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer-socials a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.footer-socials a svg { width: 16px; height: 16px; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .video-page-grid {
    grid-template-columns: 1fr;
  }
  .related-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }
  .nav-links { display: none; }
  .nav-search-box { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-user-name { display: none; }

  .hero {
    min-height: 420px;
    padding: 90px 16px 40px;
  }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.4rem; }

  .main-container { padding: 24px 16px 40px; }
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }
  .trending-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-right { width: 100%; }
  .filter-select { flex: 1; }

  .auth-card { padding: 28px 22px; }
  .form-row-2col { grid-template-columns: 1fr; }

  .upload-dropzone { padding: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .hero-chips { gap: 6px; }
  .chip { padding: 5px 12px; font-size: 0.76rem; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 40px; height: 1px; }
  .video-actions { flex-wrap: wrap; }
}

/* =============================================
   Reduced Motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =============================================
   Lazy Load Transition
   ============================================= */
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lazy-img.loaded {
  opacity: 1;
}

/* =============================================
   Profile Page
   ============================================= */
.profile-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 20px 60px;
  min-height: 100vh;
}

/* Profile Header */
.profile-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
}
.profile-cover {
  height: 120px;
  background: linear-gradient(135deg, rgba(230,57,70,0.25) 0%, rgba(230,57,70,0.05) 50%, var(--bg-elevated) 100%);
  position: relative;
}
.profile-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(230,57,70,0.15) 0%, transparent 60%);
}

.profile-header-body {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px 28px;
  margin-top: -40px;
  position: relative;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  border: 4px solid var(--bg-card);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.profile-header-info {
  flex: 1;
  min-width: 200px;
}
.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2px;
  line-height: 1.3;
}
.profile-email {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.profile-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.profile-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.profile-header-actions {
  flex-shrink: 0;
}
.profile-header-actions .btn-accent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* Stats Row */
.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.profile-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
}
.profile-stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.profile-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-stat-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.profile-stat-info {
  display: flex;
  flex-direction: column;
}
.profile-stat-number {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.profile-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Uploads Section */
.profile-uploads-section {
  margin-bottom: 40px;
}
.profile-uploads-section .section-header {
  margin-bottom: 20px;
}

/* Delete button on cards */
.video-card-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  color: #fff;
}
.video-card:hover .video-card-delete {
  opacity: 1;
}
.video-card-delete:hover {
  background: var(--error);
  transform: scale(1.1);
}
.video-card-delete svg {
  width: 16px;
  height: 16px;
}

/* Delete Modal Extras */
.delete-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(231,76,60,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.delete-modal-icon svg {
  width: 28px;
  height: 28px;
  color: var(--error);
}
.modal-body p {
  text-align: center;
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.modal-actions .btn-accent {
  min-width: 110px;
}

/* Profile Responsive */
@media (max-width: 768px) {
  .profile-header-body {
    flex-direction: column;
    text-align: center;
    padding: 0 20px 24px;
    align-items: center;
  }
  .profile-avatar {
    width: 76px;
    height: 76px;
    font-size: 1.7rem;
    margin-top: -38px;
  }
  .profile-meta {
    justify-content: center;
  }
  .profile-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .profile-stat-card {
    padding: 16px;
  }
  .profile-stat-number {
    font-size: 1.15rem;
  }
}

/* =============================================
   Profile Card Styles
   ============================================= */

/* Scroll Container - Vertical Scroll */
.profile-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
.profile-scroll-container::-webkit-scrollbar {
  width: 5px;
}

.profile-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.profile-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.profile-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Card */
.profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary, #1a1a2e);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background: var(--bg-tertiary, #1f1f35);
}

/* Card Thumbnail */
.profile-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111; /* Fallback while image loads */
}

.profile-card-thumb img {
  display: block; /* CRITICAL: Fixes invisible bottom gap under images */
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.85;
  background-color: var(--bg-secondary, #1a1a2e); /* Prevents white flash on error before onerror triggers */
}

.profile-card:hover .profile-card-thumb img {
  transform: scale(1.08);
  opacity: 1;
}

/* =============================================
   Specific Watch History Thumbnail Styles
   ============================================= */

/* Make history thumbnails fully bright and vivid by default */
#profile-history-list .profile-card-thumb img {
  opacity: 1; 
  transition: transform 0.4s ease;
}

#profile-history-list .profile-card:hover .profile-card-thumb img {
  transform: scale(1.05); /* Slightly less aggressive zoom for history */
}

/* Refine the history badge so it doesn't cover the main focal point of the thumbnail */
.profile-card-badge--history {
  background: rgba(0, 0, 0, 0.75);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 4px;
}

.profile-card-badge--history svg {
  opacity: 0.8;
}

/* =============================================
   Other Elements
   ============================================= */

/* Offline Thumbnail */
.profile-card-thumb--offline {
  background: linear-gradient(135deg, #0f3460, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Overlay */
.profile-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.profile-card:hover .profile-card-overlay {
  opacity: 1;
}

/* Play Button */
.profile-card-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(4px);
}

.profile-card:hover .profile-card-play-btn {
  transform: scale(1);
  box-shadow: 0 6px 30px rgba(230, 57, 70, 0.6);
}

/* Offline Label */
.profile-card-offline-label {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Badges */
.profile-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-card-badge--live {
  background: #ff4757;
  color: #fff;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
}

/* Card Body */
.profile-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted, #888);
  margin: 0;
  line-height: 1.3;
}

/* Remove Button */
.profile-card-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  backdrop-filter: blur(6px);
}

.profile-card:hover .profile-card-remove {
  opacity: 1;
  transform: scale(1);
}

.profile-card-remove:hover {
  background: rgba(230, 57, 70, 0.85);
}

.profile-card-remove:active {
  transform: scale(0.92);
}

/* Card Placeholder */
.profile-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: rgba(255, 255, 255, 0.2);
  font-size: 2rem;
  font-weight: 800;
}

/* =============================================
   Loading & Empty States
   ============================================= */

.profile-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 50px 20px;
  color: var(--text-muted, #888);
  font-size: 0.85rem;
}

.profile-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent, #e63946);
  border-radius: 50%;
  animation: profileSpin 0.8s linear infinite;
}

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

.profile-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 50px 20px;
  text-align: center;
  color: var(--text-muted, #888);
}

.profile-empty-state svg {
  opacity: 0.35;
  margin-bottom: 4px;
}

.profile-empty-state p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary, #bbb);
}

.profile-empty-state span {
  font-size: 0.8rem;
  opacity: 0.7;
}

.profile-empty-state--error svg {
  opacity: 0.6;
  stroke: #e63946;
}

.profile-empty-state--error p {
  color: #e63946;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
  .profile-scroll-container {
    max-height: 500px;
    gap: 10px;
  }

  .profile-card-body {
    padding: 12px 14px 14px;
  }

  .profile-card-title {
    font-size: 0.88rem;
  }

  .profile-card-play-btn {
    width: 50px;
    height: 50px;
  }

  .profile-card-play-btn svg {
    width: 26px;
    height: 26px;
  }

  .profile-card-remove {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .profile-scroll-container {
    max-height: 450px;
    gap: 8px;
  }

  .profile-card-badge {
    font-size: 0.58rem;
    padding: 3px 7px;
  }
}
/* =============================================
   Profile Tabs
   ============================================= */
.profile-tabs-section {
  margin-bottom: 48px;
}

.profile-tabs-header {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.profile-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.profile-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.profile-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.profile-tab svg {
  flex-shrink: 0;
}

.profile-tab-content {
  display: none;
  min-height: 120px;
}

.profile-tab-content.active {
  display: block;
}

/* Widget video list with remove button */
.profile-tab-content .widget-video-item {
  position: relative;
}

.widget-remove-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition);
}

.widget-video-item:hover .widget-remove-btn {
  opacity: 1;
}

.widget-remove-btn:hover {
  background: rgba(231, 76, 60, 0.15);
  border-color: var(--error);
  color: var(--error);
}

.widget-remove-btn svg {
  width: 14px;
  height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-tabs-header {
    gap: 0;
  }
  .profile-tab {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  .widget-remove-btn {
    opacity: 1;
    right: 4px;
  }
}
/* =============================================
   Force Desktop Layout On Phones Only
   (Matches JS viewport script threshold of 768px)
   ============================================= */
@media (max-width: 767px) {
  
  /* Content Grids - Force desktop side-by-side */
  .content-grid {
    grid-template-columns: 1fr var(--sidebar-width) !important;
  }
  .sidebar {
    display: flex !important;
    grid-template-columns: 1fr !important;
    position: sticky !important;
    top: calc(var(--nav-height) + 16px) !important;
  }
  .video-page-grid {
    grid-template-columns: 1fr 360px !important;
  }
  .related-sidebar {
    position: sticky !important;
    top: calc(var(--nav-height) + 16px) !important;
  }

  /* Navigation - Force desktop layout */
  .nav-links {
    display: flex !important;
  }
  .nav-search-box {
    display: flex !important;
    width: 200px !important;
  }
  .nav-search-box:focus-within {
    width: 260px !important;
  }
  .nav-mobile-btn {
    display: none !important;
  }
  .mobile-overlay,
  .mobile-menu {
    display: none !important;
  }

  /* Hero - Force desktop layout */
  .hero {
    min-height: 440px !important;
    padding: 100px 20px 48px !important;
  }
  .hero-title {
    font-size: clamp(1.7rem, 4vw, 2.6rem) !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
  .hero-stats {
    flex-direction: row !important;
    gap: 28px !important;
  }
  .stat-divider {
    width: 1px !important;
    height: 32px !important;
  }
  .hero-chips {
    gap: 8px !important;
  }
  .chip {
    padding: 6px 16px !important;
    font-size: 0.82rem !important;
  }

  /* Video Grids - Force desktop columns */
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 16px !important;
  }
  .trending-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  }

  /* Forms & Uploads - Force desktop layout */
  .form-row-2col {
    grid-template-columns: 1fr 1fr !important;
  }
  .auth-card {
    padding: 40px 36px !important;
  }
  .upload-dropzone {
    padding: 40px !important;
  }

  /* Footer - Force desktop columns */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 32px !important;
  }
  .footer-bottom {
    flex-direction: row !important;
    justify-content: space-between !important;
    text-align: left !important;
  }
}
/* =============================================
   View All Page Styles
   ============================================= */
.page-header {
  background: var(--bg-elevated, #0f0f0f);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  padding: 32px 0 28px;
  margin-bottom: 0;
}

.page-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--text-muted, #888);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent, #e63946);
}

.breadcrumb-sep {
  color: var(--text-muted, #555);
}

.breadcrumb-current {
  color: var(--text-secondary, #ccc);
  font-weight: 500;
}

.page-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 8px;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted, #888);
  margin: 0;
  line-height: 1.5;
}

.video-count-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(230, 57, 70, 0.12);
  color: var(--accent, #e63946);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: 12px;
  white-space: nowrap;
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elevated, #0f0f0f);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 10px;
  margin-bottom: 20px;
}

.active-filters-label {
  font-size: 0.82rem;
  color: var(--text-muted, #888);
  margin-right: 4px;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent, #e63946);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  font-family: inherit;
}

.active-filter-chip:hover {
  background: rgba(230, 57, 70, 0.25);
}

.active-filter-chip .chip-remove {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.clear-filters-btn {
  background: none;
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  color: var(--text-muted, #888);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-left: auto;
}

.clear-filters-btn:hover {
  border-color: var(--accent, #e63946);
  color: var(--accent, #e63946);
}

/* Responsive for page header */
@media (max-width: 768px) {
  .page-header {
    padding: 24px 0 20px;
  }
  .page-title {
    font-size: 1.5rem;
  }
  .active-filters {
    padding: 10px 12px;
  }
  .video-count-badge {
    display: none;
  }
}
/* =============================================
   Hero Chip Counters
   ============================================= */
.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  margin-left: 6px;
  line-height: 1;
  transition: all 0.25s ease;
}

.chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.chip:hover .chip-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
/* =============================================
   Help Center Styles
   ============================================= */
.help-search-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.help-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-elevated, #161616);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 14px;
  padding: 6px 6px 6px 20px;
  max-width: 640px;
  margin: 0 auto;
  transition: border-color 0.25s;
}

.help-search-box:focus-within {
  border-color: var(--accent, #e63946);
}

.help-search-box .search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted, #666);
}

.help-search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary, #fff);
  font-size: 0.95rem;
  padding: 12px;
  font-family: inherit;
}

.help-search-box input::placeholder {
  color: var(--text-muted, #555);
}

.help-search-box .btn-accent {
  padding: 10px 24px;
  font-size: 0.85rem;
  border-radius: 10px;
  white-space: nowrap;
}

.help-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.help-category-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated, #161616);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.help-category-card:hover {
  border-color: var(--accent, #e63946);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.1);
}

.help-cat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 12px;
  margin-bottom: 16px;
}

.help-cat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent, #e63946);
}

.help-category-card h3 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0 0 8px;
}

.help-category-card p {
  font-size: 0.85rem;
  color: var(--text-muted, #888);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.help-cat-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  margin-top: 16px;
  align-self: flex-start;
  transition: all 0.25s;
}

.help-cat-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted, #666);
  transition: transform 0.25s;
}

.help-category-card:hover .help-cat-arrow {
  background: rgba(230, 57, 70, 0.15);
}

.help-category-card:hover .help-cat-arrow svg {
  color: var(--accent, #e63946);
  transform: translateX(3px);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto 48px;
}

.faq-section {
  margin-bottom: 40px;
}

.faq-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}

.faq-section-title svg {
  width: 24px;
  height: 24px;
  color: var(--accent, #e63946);
}

.faq-item {
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.open {
  border-color: rgba(230, 57, 70, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-elevated, #161616);
  border: none;
  color: var(--text-primary, #eee);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1.5;
}

.faq-question:hover {
  background: rgba(255,255,255,0.03);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted, #666);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent, #e63946);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 20px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary, #bbb);
  line-height: 1.7;
  margin: 0;
}

.faq-answer a {
  color: var(--accent, #e63946);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Help CTA */
.help-cta {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-elevated, #161616);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 16px;
  margin-bottom: 48px;
}

.help-cta h2 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 8px;
}

.help-cta p {
  color: var(--text-muted, #888);
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.help-cta .btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
}

/* =============================================
   Contact Page Styles
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.contact-info-card {
  background: var(--bg-elevated, #161616);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.25s;
}

.contact-info-card:hover {
  border-color: rgba(230, 57, 70, 0.3);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 10px;
  margin-bottom: 14px;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent, #e63946);
}

.contact-info-card h3 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0 0 6px;
}

.contact-info-card p {
  font-size: 0.82rem;
  color: var(--text-muted, #888);
  margin: 0 0 10px;
  line-height: 1.5;
}

.contact-info-link {
  font-size: 0.85rem;
  color: var(--accent, #e63946);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.contact-info-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.contact-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  color: var(--text-secondary, #ccc);
  transition: all 0.25s;
}

.contact-socials a svg {
  width: 16px;
  height: 16px;
}

.contact-socials a:hover {
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent, #e63946);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
  min-width: 0;
}

.contact-form-card {
  background: var(--bg-elevated, #161616);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 16px;
  padding: 36px;
}

.contact-form-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 6px;
}

.contact-form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted, #888);
  margin: 0 0 28px;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary, #ccc);
  margin-bottom: 8px;
}

.required {
  color: var(--accent, #e63946);
}

.optional {
  color: var(--text-muted, #666);
  font-weight: 400;
  font-size: 0.8rem;
}

.form-group .input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary, #0a0a0a);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 10px;
  color: var(--text-primary, #fff);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group .input:focus {
  border-color: var(--accent, #e63946);
}

.form-group .input::placeholder {
  color: var(--text-muted, #555);
}

.form-group .textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.char-count {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-muted, #666);
  margin-top: 6px;
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: var(--error, #e74c3c);
  margin-top: 6px;
  min-height: 18px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  border-radius: 10px;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .help-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-info {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .contact-form-card {
    padding: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .help-categories-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    grid-template-columns: 1fr;
  }
  .help-search-box {
    flex-wrap: wrap;
  }
  .help-search-box .btn-accent {
    width: 100%;
  }
}
/* =============================================
   Services Page Styles
   ============================================= */
.service-block {
  background: var(--bg-elevated, #161616);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  transition: border-color 0.25s;
}

.service-block:hover {
  border-color: rgba(230, 57, 70, 0.2);
}

.service-block-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.service-block-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 14px;
  flex-shrink: 0;
}

.service-block-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent, #e63946);
}

.service-block-header h2 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0;
}

.service-block-sub {
  font-size: 0.85rem;
  color: var(--text-muted, #888);
  margin: 4px 0 0;
}

.service-block-body p {
  font-size: 0.9rem;
  color: var(--text-secondary, #bbb);
  line-height: 1.7;
  margin: 0 0 14px;
}

.service-block-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.service-block-body ul li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 0.88rem;
  color: var(--text-secondary, #bbb);
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.service-block-body ul li:last-child {
  border-bottom: none;
}

.service-block-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #e63946);
  opacity: 0.7;
}

.service-block-body ul li strong {
  color: var(--text-primary, #eee);
}

.service-block-body a {
  color: var(--accent, #e63946);
  text-decoration: none;
  font-weight: 500;
}

.service-block-body a:hover {
  text-decoration: underline;
}

/* Service Summary */
.service-summary {
  background: var(--bg-elevated, #161616);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 16px;
  padding: 32px;
  margin-top: 16px;
}

.service-summary h2 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 20px;
}

.service-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.service-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

.service-summary-label {
  font-size: 0.88rem;
  color: var(--text-secondary, #ccc);
  font-weight: 500;
}

.service-summary-value.available {
  font-size: 0.8rem;
  color: #27ae60;
  font-weight: 600;
  background: rgba(39, 174, 96, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.service-summary-note {
  font-size: 0.85rem;
  color: var(--text-muted, #888);
  line-height: 1.6;
  margin: 0;
  padding: 16px;
  background: rgba(230, 57, 70, 0.05);
  border-left: 3px solid var(--accent, #e63946);
  border-radius: 0 8px 8px 0;
}

/* =============================================
   Legal Pages Shared Styles (Privacy, Cookies)
   ============================================= */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.legal-intro {
  margin-bottom: 32px;
}

.legal-intro p {
  font-size: 0.95rem;
  color: var(--text-secondary, #bbb);
  line-height: 1.8;
}

.legal-toc {
  background: var(--bg-elevated, #161616);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 36px;
}

.legal-toc h3 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0 0 16px;
}

.legal-toc ol {
  padding-left: 20px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}

.legal-toc li {
  padding: 4px 0;
}

.legal-toc a {
  font-size: 0.88rem;
  color: var(--accent, #e63946);
  text-decoration: none;
  transition: opacity 0.2s;
}

.legal-toc a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}

.legal-section h3 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary, #eee);
  margin: 28px 0 12px;
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--text-secondary, #bbb);
  line-height: 1.75;
  margin: 0 0 14px;
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

.legal-section li {
  font-size: 0.9rem;
  color: var(--text-secondary, #bbb);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-section li strong {
  color: var(--text-primary, #eee);
}

.legal-section a {
  color: var(--accent, #e63946);
  text-decoration: none;
  font-weight: 500;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-section code {
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent, #e63946);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.84rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Cookie Page Specific */
.cookie-type-card {
  background: var(--bg-elevated, #161616);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 12px;
}

.cookie-type-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cookie-type-header h3 {
  margin: 0;
  font-size: 1rem;
}

.cookie-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.cookie-badge.essential {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}

.cookie-badge.none {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted, #666);
}

.cookie-type-card p {
  margin: 0;
  font-size: 0.88rem;
}

/* Cookie Table */
.cookie-table-wrapper {
  overflow-x: auto;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.cookie-table thead {
  background: rgba(255,255,255,0.03);
}

.cookie-table th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text-primary, #eee);
  font-size: 0.82rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}

.cookie-table td {
  padding: 12px 16px;
  color: var(--text-secondary, #bbb);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.cookie-table td code {
  font-size: 0.8rem;
}

.cookie-table tbody tr:last-child td {
  border-bottom: none;
}

.cookie-table-note {
  font-size: 0.84rem;
  color: var(--text-muted, #888);
  font-style: italic;
  margin: 0 0 28px;
}

/* Cookie Impact Grid */
.cookie-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.cookie-impact-item {
  background: var(--bg-elevated, #161616);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 24px;
}

.cookie-impact-item h4 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary, #eee);
  margin: 0 0 10px;
}

.cookie-impact-item p {
  font-size: 0.84rem;
  color: var(--text-muted, #999);
  line-height: 1.65;
  margin: 0;
}

/* Legal responsive */
@media (max-width: 768px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
  .service-block {
    padding: 24px 20px;
  }
  .service-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .service-summary-grid {
    grid-template-columns: 1fr;
  }
  .service-summary-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .cookie-impact-grid {
    grid-template-columns: 1fr;
  }
  .cookie-table {
    font-size: 0.78rem;
  }
  .cookie-table th,
  .cookie-table td {
    padding: 10px 12px;
  }
}
/* Card metadata badges */
.card-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.card-meta-year {
  background: rgba(230, 57, 70, 0.15);
  color: #e63946;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.card-meta-rated {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.card-meta-runtime {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.card-meta-imdb {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(245, 197, 24, 0.12);
  color: #f5c518;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.card-meta-genre {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Duration badge on thumbnail */
.video-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 2;
}
/* Profile stats - 3 columns */
.profile-stats-row {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
  .profile-stats-row {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .profile-stats-row {
    grid-template-columns: 1fr !important;
  }
}
/* User Dropdown */
.nav-user {
  position: relative;
}
.nav-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  padding: 0;
}
.nav-user-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.nav-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
}
.nav-user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.nav-user.open .nav-user-chevron { transform: rotate(180deg); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 100;
}
.nav-user.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Dropdown user info card */
.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(230,57,70,0.08) 0%, transparent 60%);
}
.dropdown-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.dropdown-user-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dropdown-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  width: 100%;
  text-align: left;
}
.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.dropdown-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.dropdown-item.danger { color: var(--error); }
.dropdown-item.danger:hover { background: rgba(231,76,60,0.1); }

/* Mobile menu user card */
.mobile-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.mobile-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mobile-user-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mobile-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-user-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-link-danger {
  color: var(--error) !important;
}
.mobile-link-danger:hover {
  background: rgba(231,76,60,0.1) !important;
  color: var(--error) !important;
}
/* =============================================
   Offline Storage Bar
   ============================================= */
#storage-bar-container {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.storage-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.storage-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.storage-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
}

.storage-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease, background 0.3s ease;
}

/* =============================================
   Play Overlay on Widgets
   ============================================= */
.widget-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: var(--radius-sm);
}

.widget-video-item:hover .widget-play-overlay {
  opacity: 1;
}

.widget-play-overlay.offline-badge {
  background: rgba(39, 174, 96, 0.85);
}

.widget-play-overlay span {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin-top: 2px;
}
/* =============================================
   Live TV Indicator
   ============================================= */
.live-indicator-dot {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
}

.live-indicator-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}
/* ============ Translated Video Card Enhancements ============ */

/* VJ Name Badge */
.video-card-vj-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent, #e63946);
    margin-bottom: 8px;
    max-width: 100%;
    overflow: hidden;
}

.video-card-vj-badge svg {
    flex-shrink: 0;
    color: var(--accent, #e63946);
}

.video-card-vj-badge span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Genre Tags Row */
.video-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.video-card-genre-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 0.68rem;
    color: var(--text-secondary, #8a8aa4);
    white-space: nowrap;
}

/* Country Label */
.video-card-country {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 4px;
    font-size: 0.68rem;
    color: var(--info, #74b9ff);
    font-weight: 500;
    margin-right: 6px;
}

/* Updated card meta row to hold country + stats inline */
.video-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted, #55556e);
}

/* Widget VJ name in sidebar popular list */
.widget-vj-name {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent, #e63946);
    margin-bottom: 1px;
}

/* Card body spacing adjustments */
.video-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.video-card-body .video-card-title {
    margin-bottom: 8px;
}

/* Responsive: stack meta on small screens */
@media (max-width: 480px) {
    .video-card-vj-badge {
        font-size: 0.68rem;
        padding: 2px 8px;
    }
    .video-card-genre-tag {
        font-size: 0.64rem;
    }
    .video-card-country {
        font-size: 0.64rem;
    }
}
/* =========================================
   HERO FEATURED SLIDER - STRICT LAYOUT
   ========================================= */

/* 1. Ensure the main hero section acts as the anchor */
section.hero {
  position: relative !important;
  overflow: hidden !important;
}

/* 2. Ensure the background container fills the hero */
.hero-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
}

/* 3. Slider Container */
#hero-featured-slider {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important; /* Above empty background, below gradient */
}

/* 4. Individual Slides */
.hero-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  opacity: 0 !important;
  transition: opacity 1.5s ease-in-out !important;
  z-index: 1 !important;
}

.hero-slide.active {
  opacity: 1 !important;
}

/* 5. Dark overlay on the slide to make text readable */
.hero-slide-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.4) 100%) !important;
  z-index: 2 !important; /* Overlay sits ON TOP of the image */
}

/* 6. Layering existing elements correctly */
.hero-gradient {
  z-index: 3 !important; /* Sits above slide overlay, below particles */
}

#hero-particles {
  z-index: 4 !important; /* Particles above gradient */
}

.hero-content {
  position: relative !important;
  z-index: 5 !important; /* Text and search ALWAYS on top */
}


/* ============================================
   READABILITY OVERSIZES
   ============================================ */

/* --- Global base bump --- */
body {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

/* --- NAVBAR --- */
.navbar .nav-link,
.navbar .nav-brand {
  font-size: 20px !important;
  letter-spacing: 0.02em !important;
}

/* --- HERO SECTION --- */
.hero-badge {
  font-size: 14px !important;
  padding: 8px 20px !important;
}

.hero-title {
  font-size: 46px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

.hero-subtitle {
  font-size: 18px !important;
  line-height: 1.7 !important;
  max-width: 640px !important;
}

/* --- HERO SEARCH BOX --- */
.hero-search-box input {
  font-size: 16px !important;
  padding: 14px 18px !important;
  height: auto !important;
}
.hero-search-box .btn-accent {
  font-size: 15px !important;
  padding: 12px 28px !important;
}

/* --- HERO CHIPS --- */
.hero-chips {
  gap: 8px !important;
}
.chip {
  font-size: 14px !important;
  padding: 9px 18px !important;
}
.chip-count {
  font-size: 12px !important;
  margin-left: 4px !important;
}

/* --- SECTION HEADERS --- */
.section-header {
  margin-bottom: 24px !important;
}
.section-title {
  font-size: 26px !important;
  line-height: 1.3 !important;
}
.title-icon {
  width: 26px !important;
  height: 26px !important;
}
.section-link {
  font-size: 15px !important;
  padding: 8px 18px !important;
}

/* --- FILTER BAR --- */
.filter-bar {
  padding: 16px 0 !important;
}
.filter-select {
  font-size: 14px !important;
  padding: 10px 16px !important;
  min-height: 44px !important;
}

/* --- VIDEO CARDS --- */
.video-card {
  gap: 10px !important;
  padding: 10px !important;
}

/* Thumbnail */
.video-card .card-thumb,
.video-card .card-thumbnail,
.video-card .thumb-wrapper {
  position: relative !important;
  overflow: hidden !important;
  background: #0a0a0a !important;
  border-radius: 10px !important;
}

.video-card .card-thumb img,
.video-card .card-thumbnail img,
.video-card .thumb-wrapper img,
.video-card img[class*="thumb"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* VJ Name badge */
.card-vj-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.1) !important;
  border: 1px solid rgba(251, 191, 36, 0.25) !important;
  padding: 3px 10px !important;
  border-radius: 1px !important;
  margin-top: 6px;
  margin-right: 6px;
  line-height: 1.4 !important;
  letter-spacing: 0.02em !important;
  max-width: 120px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.card-vj-name::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 2px;
  background: #fbbf24;
  border-radius: 20%;
  flex-shrink: 0;
}

/* Translated badge on thumbnail */
.card-translated-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.4);
}

/* Title */
.video-card .card-title {
  font-size: 20px !important;
  line-height: 1.7 !important;
  font-weight: 700 !important;
  color: #f0f0f0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Channel name */
.video-card .card-channel {
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #b0b0b0 !important;
  margin-top: 2px !important;
}

/* Stats & meta */
.video-card .card-stats,
.video-card .card-meta {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #888 !important;
}

/* Timestamp */
.video-card .card-time {
  font-size: 15px !important;
  line-height: 1.4 !important;
  color: #777 !important;
}

/* Duration badge */
.video-card .card-duration {
  font-size: 15px !important;
  padding: 3px 7px !important;
  font-weight: 600 !important;
  background: rgba(0, 0, 0, 0.85) !important;
  color: #fff !important;
  border-radius: 4px !important;
}

/* Category tag */
.video-card .card-category-tag {
  font-size: 20px !important;
  padding: 3px 10px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
}

/* --- SKELETON LOADERS --- */
.skeleton-text {
  height: 16px !important;
}
.skeleton-text.short {
  width: 60% !important;
  height: 14px !important;
}

/* --- SIDEBAR WIDGETS --- */
.widget {
  margin-bottom: 28px !important;
}
.widget-title {
  font-size: 20px !important;
  margin-bottom: 16px !important;
}

/* Sidebar search */
.sidebar .search-box input {
  font-size: 20px !important;
  padding: 12px 16px !important;
  min-height: 44px !important;
}

/* Category list */
.category-list li a {
  font-size: 20px !important;
  padding: 10px 14px !important;
  line-height: 1.6 !important;
}
.cat-count {
  font-size: 13px !important;
}

/* Popular videos widget */
.widget-video-list .widget-item {
  gap: 25px !important;
}
.widget-video-list .widget-item-title {
  font-size: 25px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
}
.widget-video-list .widget-item-meta {
  font-size: 25px !important;
  line-height: 1.4 !important;
}
.widget-video-list .widget-item-thumb {
  min-width: 130px !important;
  width: 10px !important;
  height: 72px !important;
}

/* Tag cloud */
.tag {
  font-size: 20px !important;
  padding: 7px 14px !important;
}

/* Newsletter widget */
.newsletter-widget p {
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 14px !important;
}
.newsletter-widget .input {
  font-size: 15px !important;
  padding: 12px 16px !important;
  min-height: 46px !important;
  margin-bottom: 12px !important;
}
.newsletter-widget .btn-accent {
  font-size: 15px !important;
  padding: 13px 24px !important;
}

/* --- LOAD MORE BUTTON --- */
.btn-outline {
  font-size: 20px !important;
  padding: 13px 36px !important;
}

/* --- EMPTY STATE --- */
.empty-state h3 {
  font-size: 25px !important;
}
.empty-state p {
  font-size: 20px !important;
}

/* --- FOOTER --- */
.footer {
  font-size: 15px !important;
  line-height: 1.7 !important;
}
.footer-title,
.footer h3,
.footer h4 {
  font-size: 18px !important;
}
.footer a {
  font-size: 14px !important;
  padding: 4px 0 !important;
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container .toast {
  font-size: 14px !important;
  padding: 14px 22px !important;
}

/* --- MOBILE MENU --- */
.mobile-menu a,
.mobile-menu .mobile-nav-link {
  font-size: 17px !important;
  padding: 14px 0 !important;
}

/* ============================================
   HERO GRADIENT FIX — Make transparent so
   slider images show through
   ============================================ */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(230,57,70,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(230,57,70,0.06) 0%, transparent 50%) !important;
  /* Removed the opaque linear-gradient that was blocking images */
}
/* =============================================
   More Categories Button & Panel
   ============================================= */
.btn-more-categories {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.btn-more-categories svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-more-categories:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-more-categories.active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

/* Panel */
.more-categories-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 680px;
  max-width: calc(100vw - 48px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.more-categories-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.more-categories-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.more-categories-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.more-categories-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

/* Scroll track inside panel */
.more-categories-panel .category-scroll-track {
  padding: 14px 18px 18px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 200px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.more-categories-panel .category-scroll-track::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.more-categories-panel .category-scroll-track::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

/* Category cards */
.category-card {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.category-card:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.category-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}

.category-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}

.category-card.active .category-card-name {
  color: var(--accent);
}

.category-card-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 24px;
  text-align: center;
  transition: all var(--transition);
}

.category-card.active .category-card-count {
  background: var(--accent);
  color: #fff;
}

/* Loading skeletons inside panel */
.category-scroll-loading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-scroll-loading .skeleton {
  flex-shrink: 0;
  border-radius: 8px;
}

/* Filter bar needs position relative for panel */
.filter-bar {
  position: relative;
}

/* Force desktop on phones */
@media (max-width: 767px) {
  .more-categories-panel {
    width: calc(100vw - 32px);
    right: -10px;
  }
  .category-card {
    padding: 7px 12px;
  }
  .category-card-name {
    font-size: 12px;
  }
  .category-card-count {
    font-size: 10px;
  }
}

/* =============================================
   Email OTP Verification Page
   ============================================= */

/* --- OTP Card Adjustments --- */
[data-page="verification"] .auth-card {
  position: relative;
  overflow: hidden;
  max-width: 440px;
}

/* --- OTP Email Display --- */
.otp-email-display {
  background: var(--card-bg-alt, #f8f9fa);
  border-radius: 12px;
  padding: 14px 20px;
  margin: 20px 0 5px;
  text-align: center;
  font-weight: 500;
  color: var(--text-secondary, #666);
  font-size: 14px;
  border: 1px solid var(--border-color, #eee);
}

.otp-email-display strong {
  color: var(--accent, #e63946);
  font-weight: 600;
}

/* --- OTP Illustration --- */
.otp-illustration {
  text-align: center;
  margin: 25px 0 10px;
}

.otp-illustration svg {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 4px 12px rgba(230, 57, 70, 0.15));
}

/* --- OTP Input Boxes --- */
.otp-inputs {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 30px 0 10px;
}

.otp-input {
  width: 62px;
  height: 70px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--border-color, #e0e0e0);
  border-radius: 14px;
  background: var(--input-bg, #f8f9fa);
  color: var(--text-primary, #1a1a2e);
  transition: all 0.25s ease;
  outline: none;
  -moz-appearance: textfield;
  caret-color: var(--accent, #e63946);
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-input::placeholder {
  color: #ccc;
  font-size: 20px;
}

.otp-input:focus {
  border-color: var(--accent, #e63946);
  background: var(--input-bg-focus, #fff);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12);
  transform: translateY(-3px);
}

.otp-input.filled {
  border-color: var(--accent, #e63946);
  background: var(--input-bg-focus, #fff);
}

.otp-input.error {
  border-color: #dc3545;
  background: #fff5f5;
  animation: otp-shake 0.45s ease;
}

.otp-input.success {
  border-color: #28a745;
  background: #f0fff4;
}

/* --- OTP Shake Animation --- */
@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}

/* --- OTP Message --- */
.otp-message {
  text-align: center;
  padding: 12px 18px;
  border-radius: 10px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  display: none;
  line-height: 1.5;
}

.otp-message.show {
  display: block;
  animation: otp-fadeIn 0.3s ease;
}

.otp-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.otp-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

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

/* --- OTP Timer --- */
.otp-timer {
  text-align: center;
  color: var(--text-muted, #999);
  font-size: 13px;
  margin-top: 16px;
  min-height: 20px;
}

.otp-timer .countdown {
  font-weight: 700;
  color: var(--accent, #e63946);
  font-variant-numeric: tabular-nums;
}

/* --- OTP Action Buttons --- */
.otp-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.otp-verify-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent, #e63946);
  color: #fff;
  letter-spacing: 0.3px;
}

.otp-verify-btn:hover:not(:disabled) {
  background: var(--accent-hover, #c0392b);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.35);
}

.otp-verify-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}

.otp-verify-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.otp-resend-btn {
  width: 100%;
  padding: 14px 24px;
  border: 2px solid var(--accent, #e63946);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--accent, #e63946);
}

.otp-resend-btn:hover:not(:disabled) {
  background: var(--accent, #e63946);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.25);
}

.otp-resend-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.otp-back-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  color: var(--text-muted, #999);
}

.otp-back-btn:hover {
  color: var(--text-primary, #333);
  background: var(--card-bg-alt, #f5f5f5);
}

/* --- OTP Spinner --- */
.otp-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: otp-spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* --- Success Overlay --- */
.otp-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: inherit;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  z-index: 10;
  animation: otp-fadeIn 0.4s ease;
}

.otp-success-overlay.show {
  display: flex;
}

.success-checkmark {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745, #20c997);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 30px rgba(40, 167, 69, 0.3);
  animation: otp-scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-checkmark svg {
  width: 40px;
  height: 40px;
  color: #fff;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: otp-drawCheck 0.6s ease 0.3s forwards;
}

@keyframes otp-scaleIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes otp-drawCheck {
  to { stroke-dashoffset: 0; }
}

.otp-success-overlay h2 {
  margin-bottom: 6px;
  color: var(--text-primary, #1a1a2e);
  font-size: 22px;
}

.otp-success-overlay p {
  color: var(--text-secondary, #888);
  font-size: 14px;
  margin: 0;
}

.redirect-text {
  color: var(--text-muted, #aaa);
  font-size: 13px;
  margin-top: 18px;
}

.redirect-text .countdown {
  font-weight: 700;
  color: var(--accent, #e63946);
  font-variant-numeric: tabular-nums;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .otp-inputs {
    gap: 10px;
  }

  .otp-input {
    width: 54px;
    height: 62px;
    font-size: 24px;
    border-radius: 12px;
  }

  .otp-illustration svg {
    width: 80px;
    height: 80px;
  }

  .otp-verify-btn,
  .otp-resend-btn,
  .otp-back-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .otp-inputs {
    gap: 8px;
  }

  .otp-input {
    width: 48px;
    height: 56px;
    font-size: 22px;
    border-radius: 10px;
  }
}
/* =============================================
   Device Limit Page
   ============================================= */

/* --- Card --- */
.device-limit-card {
  max-width: 480px;
}

/* --- Illustration --- */
.device-limit-illustration {
  text-align: center;
  margin: 20px 0;
  padding: 10px;
}

.device-limit-illustration svg {
  width: 180px;
  height: 130px;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.08));
}

/* --- Info Text --- */
.device-limit-info {
  text-align: center;
  color: var(--text-secondary, #666);
  font-size: 14px;
  margin-bottom: 20px;
}

/* --- Device List --- */
.device-list {
  margin-bottom: 20px;
}

.device-list-loading {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted, #999);
}

.device-list-loading p {
  margin-top: 12px;
  font-size: 13px;
}

.device-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color, #e0e0e0);
  border-radius: 50%;
  border-top-color: var(--accent, #e63946);
  animation: device-spin 0.8s linear infinite;
  margin: 0 auto;
}

.device-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent, #e63946);
  animation: device-spin 0.7s linear infinite;
  display: inline-block;
}

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

/* --- Device Item --- */
.device-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card-bg-alt, #f8f9fa);
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color, #eee);
  transition: all 0.25s ease;
}

.device-item:hover {
  border-color: var(--accent, #e63946);
  box-shadow: 0 2px 12px rgba(230, 57, 70, 0.08);
}

.device-item.device-this {
  border-color: var(--accent, #e63946);
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
}

.device-item-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.device-item-icon svg {
  width: 24px;
  height: 24px;
}

.device-item-info {
  flex: 1;
  min-width: 0;
}

.device-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary, #1a1a2e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-item-meta {
  font-size: 12px;
  color: var(--text-muted, #999);
  margin-top: 3px;
}

/* --- Badges --- */
.device-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.device-badge-this {
  background: var(--accent, #e63946);
  color: #fff;
}

.device-badge-active {
  background: #d4edda;
  color: #155724;
}

/* --- Remove Button --- */
.device-remove-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #999);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.device-remove-btn:hover {
  background: #f8d7da;
  color: #dc3545;
}

.device-remove-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* --- Actions --- */
.device-limit-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.device-limit-back-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  color: var(--text-muted, #999);
}

.device-limit-back-btn:hover {
  color: var(--text-primary, #333);
  background: var(--card-bg-alt, #f5f5f5);
}

/* --- Empty State --- */
.device-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-secondary, #666);
  font-size: 14px;
  background: #d4edda;
  border-radius: 12px;
  border: 1px solid #c3e6cb;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .device-limit-illustration svg {
    width: 150px;
    height: 110px;
  }

  .device-item {
    padding: 12px;
    gap: 10px;
  }

  .device-item-icon {
    width: 36px;
    height: 36px;
  }

  .device-item-name {
    font-size: 13px;
  }

  .device-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}
/* =============================================
   LABAFILM-STYLE CARD LAYOUT — UPDATED
   ============================================= */

/* --- Trending New Movies: 4 per row --- */
.trending-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
}

/* --- Recent Uploads: 3 per row --- */
.video-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
}

/* --- Card thumbnail: poster ratio --- */
.video-card-thumb {
  aspect-ratio: 2 / 3 !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  overflow: hidden !important;
  background: #111 !important;
}

.video-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

/* --- Card body: compact --- */
.video-card-body {
  padding: 10px 8px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.video-card-title {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  -webkit-line-clamp: 2 !important;
  margin-bottom: 0 !important;
}

.video-card-desc {
  font-size: 0.75rem !important;
  -webkit-line-clamp: 1 !important;
  margin-bottom: 0 !important;
}

.video-card-stats {
  font-size: 0.72rem !important;
  gap: 8px !important;
}

.video-card-stats svg {
  width: 12px !important;
  height: 12px !important;
}

/* --- Meta badges: small --- */
.card-meta-badges {
  gap: 4px !important;
  margin-bottom: 2px !important;
}

.card-meta-year,
.card-meta-rated,
.card-meta-runtime,
.card-meta-imdb {
  font-size: 0.65rem !important;
  padding: 1px 6px !important;
}

.card-meta-genre {
  font-size: 0.68rem !important;
  margin-bottom: 2px !important;
}

/* --- VJ badge: compact --- */
.video-card-vj-badge {
  font-size: 0.65rem !important;
  padding: 2px 7px !important;
  margin-bottom: 4px !important;
}

/* --- Genre tags: compact --- */
.video-card-tags {
  gap: 3px !important;
  margin-bottom: 4px !important;
}

.video-card-genre-tag {
  font-size: 0.6rem !important;
  padding: 1px 6px !important;
}

/* --- Duration badge --- */
.video-card-duration {
  font-size: 0.65rem !important;
  padding: 2px 5px !important;
  bottom: 6px !important;
  right: 6px !important;
}

/* --- Country badge --- */
.video-card-country {
  font-size: 0.6rem !important;
  padding: 2px 6px !important;
  top: 6px !important;
  left: 6px !important;
}

/* --- Translated badge --- */
.card-translated-badge {
  font-size: 0.58rem !important;
  padding: 2px 7px !important;
  top: 6px !important;
  right: 6px !important;
}

/* --- Hover --- */
.video-card {
  padding: 0 !important;
  gap: 0 !important;
}

.video-card:hover {
  transform: translateY(-3px) !important;
}

.video-card:hover .video-card-thumb img {
  transform: scale(1.04) !important;
}

/* --- Skeleton --- */
.skeleton-thumb {
  aspect-ratio: 2 / 3 !important;
}

/* --- Misc fixes --- */
.video-card .card-channel {
  font-size: 0.72rem !important;
  margin-top: 0 !important;
}

.video-card .card-time {
  font-size: 0.72rem !important;
}

.video-card .card-category-tag {
  font-size: 0.68rem !important;
  padding: 2px 7px !important;
  letter-spacing: 0.05em !important;
}

.card-vj-name {
  font-size: 0.68rem !important;
  max-width: 100% !important;
  padding: 2px 7px !important;
  margin-top: 2px !important;
  margin-right: 0 !important;
}

/* =============================================
   RESPONSIVE — Real screen sizes only
   (NO phone locking here — JS handles that)
   ============================================= */

@media (max-width: 1200px) {
  .trending-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .video-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .trending-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .trending-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .video-card-body {
    padding: 8px 6px 10px !important;
  }
  .video-card-title {
    font-size: 0.7rem !important;
  }
  .card-meta-badges {
    display: none !important;
  }
  .video-card-genre-tag {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .trending-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .video-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =============================================
   FORCE DESKTOP ON PHONES ONLY
   (Only activates when JS adds .force-desktop-active to <html>)
   ============================================= */

html.force-desktop-active .trending-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
}

html.force-desktop-active .video-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

html.force-desktop-active .video-card-title {
  font-size: 0.75rem !important;
}

html.force-desktop-active .content-grid {
  grid-template-columns: 1fr var(--sidebar-width) !important;
}

html.force-desktop-active .sidebar {
  display: flex !important;
  grid-template-columns: 1fr !important;
  position: sticky !important;
  top: calc(var(--nav-height) + 16px) !important;
}

html.force-desktop-active .video-page-grid {
  grid-template-columns: 1fr 360px !important;
}

html.force-desktop-active .related-sidebar {
  position: sticky !important;
  top: calc(var(--nav-height) + 16px) !important;
}

html.force-desktop-active .nav-links {
  display: flex !important;
}

html.force-desktop-active .nav-search-box {
  display: flex !important;
  width: 200px !important;
}

html.force-desktop-active .nav-search-box:focus-within {
  width: 260px !important;
}

html.force-desktop-active .nav-mobile-btn {
  display: none !important;
}

html.force-desktop-active .mobile-overlay,
html.force-desktop-active .mobile-menu {
  display: none !important;
}

html.force-desktop-active .hero {
  min-height: 440px !important;
  padding: 100px 20px 48px !important;
}

html.force-desktop-active .hero-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem) !important;
}

html.force-desktop-active .hero-subtitle {
  font-size: 0.95rem !important;
}

html.force-desktop-active .hero-stats {
  flex-direction: row !important;
  gap: 28px !important;
}

html.force-desktop-active .stat-divider {
  width: 1px !important;
  height: 32px !important;
}

html.force-desktop-active .hero-chips {
  gap: 8px !important;
}

html.force-desktop-active .chip {
  padding: 6px 16px !important;
  font-size: 0.82rem !important;
}

html.force-desktop-active .form-row-2col {
  grid-template-columns: 1fr 1fr !important;
}

html.force-desktop-active .auth-card {
  padding: 40px 36px !important;
}

html.force-desktop-active .upload-dropzone {
  padding: 40px !important;
}

html.force-desktop-active .footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 32px !important;
}

html.force-desktop-active .footer-bottom {
  flex-direction: row !important;
  justify-content: space-between !important;
  text-align: left !important;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  vertical-align: middle;
}

.footer-brand .nav-logo-img {
  height: 32px;
}
/* VJ Buttons Grid Container */
.vj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}

/* Individual VJ Button */
.vj-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.vj-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.vj-btn.active,
.vj-btn:active {
  background: rgba(230, 57, 70, 0.15);
  border-color: #e63946;
  color: #e63946;
}

/* VJ count badge */
.vj-btn .count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-left: 2px;
}

/* Desktop: wider grid */
@media (min-width: 768px) {
  .vj-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .vj-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Section labels inside grid */
.vj-label {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 0 2px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
}

.vj-label:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Favorites spans full width */
.vj-btn[style*="grid-column"] {
  justify-content: center;
}