/* ===========================================
   Lord V Website - Modern Design System v2
   Theme Support: dark, light, neon
   Cross-browser Compatible
   Last updated: 2024-12-31 fix35
   =========================================== */

/* ===== NORMALIZE & RESET ===== */
/* Box sizing */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

/* Document */
html { 
  font-size: 16px; 
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* iOS */
  -ms-text-size-adjust: 100%; /* IE */
  text-size-adjust: 100%;
}

/* Body */
body { 
  min-height: 100vh;
  min-height: -webkit-fill-available; /* iOS Safari */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Media */
img, video, picture, canvas, svg { 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

/* Remove default styles */
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, textarea, select { 
  cursor: pointer; 
  background: none; 
  border: none; 
  font: inherit;
  color: inherit;
}

/* Fix Safari button styling */
button, [type="button"], [type="submit"] {
  -webkit-appearance: button;
  appearance: button;
}

/* Form elements */
input, textarea, select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Remove tap highlight on mobile */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ===== THEME VARIABLES ===== */
:root {
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Safe font stack */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
  
  --max-width: 1200px;
  --transition: 0.3s ease;
  
  /* Safe area insets for notched devices */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* Dark Theme (default) */
[data-theme="dark"], :root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-hover: #1f1f1f;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #e63946;
  --accent-hover: #ff4d5a;
  --accent-glow: rgba(230, 57, 70, 0.25);
  --border: rgba(255, 255, 255, 0.08);
  --overlay: rgba(10, 10, 10, 0.85);
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-card: #ffffff;
  --bg-hover: #f0f0f0;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #d90429;
  --accent-hover: #ef233c;
  --accent-glow: rgba(217, 4, 41, 0.15);
  --border: rgba(0, 0, 0, 0.08);
  --overlay: rgba(255, 255, 255, 0.92);
}

/* Neon Theme */
[data-theme="neon"] {
  --bg-primary: #0d0221;
  --bg-secondary: #120330;
  --bg-card: #180640;
  --bg-hover: #251259;
  --text-primary: #ffffff;
  --text-secondary: #c4b5fd;
  --text-muted: #7c6fb0;
  --accent: #ff2a6d;
  --accent-hover: #ff5c8d;
  --accent-glow: rgba(255, 42, 109, 0.35);
  --border: rgba(255, 42, 109, 0.15);
  --overlay: rgba(13, 2, 33, 0.92);
}

/* ===== BASE ===== */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ===== HEADER - Clean Rebuild ===== */
.header {
  position: sticky;
  top: 0;
  background: var(--header-bg, rgba(10, 10, 10, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 var(--space-lg);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Top row: Logo + Social + Hamburger */
.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.header__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
}

.header__logo span { 
  color: var(--accent); 
}

.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Social links in header */
.header__social {
  display: none;
  align-items: center;
  gap: var(--space-xs);
}

.header__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition);
}

.header__social-link:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.header__social-link svg { 
  width: 18px; 
  height: 18px; 
}

/* Navigation row - below logo */
.header__nav {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border);
}

.header__link {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: var(--transition);
  text-decoration: none;
}

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

.header__link.active { 
  color: var(--accent); 
}

/* Hamburger button */
.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* =================================
   RESPONSIVE BREAKPOINTS
   ================================= */

/* DESKTOP: 1100px+ */
@media (min-width: 1100px) {
  .header__nav { 
    display: flex; 
  }
  .header__social { 
    display: flex; 
  }
  .header__menu-btn { 
    display: none; 
  }
}

/* TABLET: 768px - 1099px */
@media (min-width: 768px) and (max-width: 1099px) {
  .header__nav { 
    display: flex; 
  }
  .header__social { 
    display: none; 
  }
  .header__menu-btn { 
    display: none; 
  }
}

/* MOBILE: 0 - 767px */
@media (max-width: 767px) {
  .header {
    padding: 0 var(--space-md);
  }
  
  .header__top {
    height: 56px;
  }
  
  .header__logo {
    font-size: 1.4rem;
  }
  
  .header__nav { 
    display: none !important; 
  }
  .header__social { 
    display: none !important; 
  }
  .header__menu-btn { 
    display: flex; 
  }
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  padding: 80px var(--space-xl) var(--space-xl);
  padding-bottom: calc(var(--space-xl) + var(--safe-bottom)); /* Safe area for iPhone */
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  -webkit-transition: var(--transition);
  transition: var(--transition);
  z-index: 998;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
}

.mobile-nav.active { 
  -webkit-transform: translateX(0); 
  -ms-transform: translateX(0);
  transform: translateX(0); 
}

.mobile-nav__link {
  display: block;
  padding: var(--space-md) 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.mobile-nav__link:hover { color: var(--accent); }

/* Social w mobile nav */
.mobile-nav__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.mobile-nav__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 50%;
  transition: var(--transition);
}

.mobile-nav__social a:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--space-3xl) var(--space-lg);
}

/* With background */
.hero--bg {
  background: 
    linear-gradient(to bottom, var(--bg-primary) 0%, transparent 20%),
    linear-gradient(to top, var(--bg-primary) 0%, transparent 30%),
    var(--hero-bg-image, url('../images/background.jpg')) center/cover no-repeat;
}

.hero--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

/* Smaller hero for category pages */
.hero--small {
  min-height: 25vh;
  padding: var(--space-xl) var(--space-lg);
}

.hero--small .hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.hero--small .hero__subtitle {
  font-size: 1rem;
  margin-bottom: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 10rem);
  line-height: 0.9;
  letter-spacing: 4px;
  margin-bottom: var(--space-md);
  text-shadow: 0 0 60px var(--accent-glow);
  white-space: nowrap;
}

.hero__title span { color: var(--accent); }

.hero__subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: var(--space-2xl);
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.btn--outline {
  border: 2px solid var(--border);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn svg { width: 18px; height: 18px; }

/* ===== SECTIONS ===== */
.section {
  padding: var(--space-3xl) var(--space-lg);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg-secondary);
}

.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .about__grid { grid-template-columns: 1fr; text-align: center; }
  .about__links { justify-content: center; }
}

.about__image {
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.about__name {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.about__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.about__links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ===== VIDEO GRID ===== */
.videos-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.video-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.video-card:hover {
  -webkit-transform: translateY(-8px);
  -ms-transform: translateY(-8px);
  transform: translateY(-8px);
  -webkit-box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-glow);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16/9) {
  .video-card__thumb {
    padding-top: 56.25%; /* 9/16 = 0.5625 */
  }
  
  .video-card__thumb img,
  .video-card__thumb iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

.video-card__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}

.video-card:hover .video-card__img { 
  -webkit-transform: scale(1.05); 
  -ms-transform: scale(1.05);
  transform: scale(1.05); 
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}

.video-card:hover .video-card__play { opacity: 1; }

.video-card__play-btn {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px var(--accent-glow);
}

.video-card__play-btn svg {
  width: 26px;
  height: 26px;
  fill: white;
  margin-left: 4px;
}

.video-card__duration {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

.video-card__body { padding: var(--space-md); }

.video-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CATEGORY PAGE ===== */
.category-header {
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-lg) var(--space-2xl);
  text-align: center;
  background: var(--bg-secondary);
}

.category-header__title {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 3px;
  margin-bottom: var(--space-sm);
}

.category-header__desc {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== SHARE BUTTONS ===== */
.share {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.share__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.share__buttons {
  display: flex;
  gap: var(--space-sm);
}

.share__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
}

.share__btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.share__btn svg {
  width: 18px;
  height: 18px;
}

/* ===== FOOTER - Clean Rebuild ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) var(--space-lg);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.footer__logo span { 
  color: var(--accent); 
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer__social-link:hover {
  background: var(--accent);
  color: white;
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

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

/* Footer Mobile */
@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--space-lg);
  }
  
  .footer__links {
    order: 2;
  }
  
  .footer__social {
    order: 3;
  }
}

/* ===== THEME SWITCHER (user) ===== */
.theme-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-switcher__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-switcher__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.theme-switcher__btn svg {
  width: 20px;
  height: 20px;
}

.theme-switcher__menu {
  position: absolute;
  bottom: 54px;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.theme-switcher__menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.theme-switcher__option:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.theme-switcher__option.active {
  background: var(--accent-glow);
  color: var(--accent);
}

.theme-switcher__color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

/* Theme colors preview */
.theme-switcher__color[data-theme="dark"] { background: #0a0a0a; }
.theme-switcher__color[data-theme="light"] { background: #f5f5f5; }
.theme-switcher__color[data-theme="neon"] { background: linear-gradient(135deg, #0d0221, #ff00ff); }
.theme-switcher__color[data-theme="ocean"] { background: linear-gradient(135deg, #0a1628, #0ea5e9); }
.theme-switcher__color[data-theme="forest"] { background: linear-gradient(135deg, #0a1a0a, #22c55e); }
.theme-switcher__color[data-theme="sunset"] { background: linear-gradient(135deg, #1a0a0a, #f97316); }
.theme-switcher__color[data-theme="gold"] { background: linear-gradient(135deg, #0a0a05, #eab308); }

@media (max-width: 768px) {
  .theme-switcher {
    bottom: 80px; /* Above cookie banner */
  }
}

/* ===== VIDEO PAGE ===== */
.video-page {
  max-width: 1200px;
  margin: 0 auto;
}

.video-page__nav {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.video-page__nav-link {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 6px;
  transition: var(--transition);
}

.video-page__nav-link:hover { color: var(--accent); }
.video-page__nav-link.active { color: var(--accent); background: var(--accent-glow); }

/* Desktop - show nav below header */
@media (min-width: 768px) {
  .video-page__nav { display: flex; }
}

.video-player {
  background: #000;
  aspect-ratio: 16/9;
  max-height: 70vh;
  margin: 0 auto;
}

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

.video-details {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.video-details__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.video-details__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

.video-details__meta a {
  color: var(--accent);
}

.video-details__desc {
  color: var(--text-secondary);
  line-height: 1.8;
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: 12px;
  white-space: pre-wrap;
}

/* ===== STATIC PAGES ===== */
.page-header {
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  text-align: center;
  background: var(--bg-secondary);
}

.page-header__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 2px;
}

.page-content {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.prose { color: var(--text-secondary); line-height: 1.8; }
.prose h2 { color: var(--text-primary); font-size: 1.5rem; margin: var(--space-2xl) 0 var(--space-md); }
.prose h3 { color: var(--text-primary); font-size: 1.2rem; margin: var(--space-xl) 0 var(--space-sm); }
.prose p { margin-bottom: var(--space-md); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { margin: var(--space-md) 0; padding-left: var(--space-xl); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--space-sm); }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: var(--space-sm) var(--space-md);
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* Social Icons */
.icon-youtube { fill: currentColor; }
.icon-spotify { fill: currentColor; }
.icon-facebook { fill: currentColor; }
.icon-instagram { fill: currentColor; }
.icon-apple { fill: currentColor; }
.icon-amazon { fill: currentColor; }
.icon-soundcloud { fill: currentColor; }
.icon-twitter { fill: currentColor; }

/* ===== CROSS-BROWSER FIXES ===== */

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

/* Webkit scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* IE/Edge flexbox fixes - only for non-header/footer elements */
.videos-grid,
.hero__content,
.hero__cta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/* Grid fallback for older browsers */
@supports not (display: grid) {
  .videos-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  
  .videos-grid > * {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc(33.333% - 1rem);
    flex: 0 0 calc(33.333% - 1rem);
    margin: 0.5rem;
  }
}

/* iOS Safari fixes */
@supports (-webkit-touch-callout: none) {
  /* Fix 100vh on iOS */
  .hero {
    min-height: -webkit-fill-available;
  }
  
  /* Fix sticky on iOS */
  .header {
    position: -webkit-sticky;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255, 255, 255, 0.3);
  }
  
  .btn, .header__link, .footer__link {
    border: 1px solid currentColor;
  }
}

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

/* Print styles */
@media print {
  .header,
  .footer,
  .mobile-nav,
  .hero__cta,
  .share,
  .btn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a {
    text-decoration: underline;
  }
  
  .video-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .header__link,
  .mobile-nav__link,
  .footer__link,
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover effects on touch */
  .video-card:hover {
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
  }
}

/* Landscape phone fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-xl) var(--space-lg);
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
}

/* ===== SEARCH ===== */
.search-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto var(--space-xl);
}

.search-input {
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  padding-left: 3rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

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

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

.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-tertiary);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.search-clear:hover {
  background: var(--accent);
  color: white;
}

.search-input:not(:placeholder-shown) + .search-icon + .search-clear {
  display: flex;
}

.search-results-info {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
}

.no-results {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.no-results__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-md) var(--space-lg);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cookie-consent__text {
  flex: 1;
  min-width: 280px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.cookie-consent__text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-consent__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.cookie-consent__btn {
  padding: var(--space-xs) var(--space-md);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.cookie-consent__btn:active {
  transform: scale(0.98);
}

.cookie-consent__btn--accept {
  background: var(--accent);
  color: white;
}

.cookie-consent__btn--accept:hover {
  background: var(--accent-hover);
}

.cookie-consent__btn--decline {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cookie-consent__btn--decline:hover {
  background: var(--bg-primary);
}

@media (max-width: 600px) {
  .cookie-consent__inner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-consent__buttons {
    width: 100%;
    justify-content: center;
  }
}
