:root {
  --primary-color: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #a855f7;
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  --accent-light: #34d399;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-light: #cbd5e1;
  --text-muted: #94a3b8;
  --background: #0c0a1a;
  --background-alt: #151322;
  --background-card: #1a1b2e;
  --surface: #252641;
  --surface-elevated: #2d2e4a;
  --surface-hover: #363753;
  --border: #3a3c5c;
  --border-light: #4a4d70;
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-lg: rgba(0, 0, 0, 0.6);
  --shadow-xl: rgba(0, 0, 0, 0.8);
  --shadow-colored: rgba(124, 58, 237, 0.3);
  --gradient: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  --gradient-dark: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 100%
  );
  --gradient-light: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--accent-light) 100%
  );
  --gradient-surface: linear-gradient(
    135deg,
    var(--surface) 0%,
    var(--surface-elevated) 100%
  );
  --blur-backdrop: rgba(12, 10, 26, 0.9);
  --glass-bg: rgba(37, 38, 65, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Accessibility Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-alt);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 10px;
  border: 1px solid var(--border);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--accent-color)
  );
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--background-alt);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  background-image: radial-gradient(
      circle at 20% 20%,
      rgba(124, 58, 237, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(245, 158, 11, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 40% 60%,
      rgba(16, 185, 129, 0.08) 0%,
      transparent 40%
    );
  background-size: 100% 100%;
  background-attachment: fixed;
  scroll-behavior: smooth;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: var(--glass-bg);
  box-shadow: 0 8px 32px var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo i {
  font-size: 2.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px var(--shadow-colored));
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background-color: var(--surface);
}

/* Redesigned Hero Section */
.hero {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  padding: 2.5rem 0.1rem;
  margin: 2rem 0 2.5rem;
  box-shadow: 0 20px 60px var(--shadow-lg);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

/* Performance & accessibility adjustments */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .refresh-btn i {
    transform: none !important;
  }
}

@media (min-width: 801px) {
  .hero,
  .search-filter {
    backdrop-filter: blur(14px) saturate(160%);
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0.03;
  z-index: 0;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 8px var(--shadow-colored);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Ad Banner */
.ad-banner {
  margin: 1.5rem 0 1rem;
  display: flex;
  justify-content: center;
}
.ad-banner .ad-inner {
  position: relative;
  padding: 10px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 12px 30px var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}
.ad-banner .ad-inner::before {
  content: "AD";
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 0.55rem;
  letter-spacing: 1px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.75;
}
.ad-fallback {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border: 1px dashed var(--border);
  border-radius: 6px;
}
/* Mid-page ad variant */
.ad-banner-mid {
  margin: 1.25rem 0 1.75rem;
}
@media (max-width: 600px) {
  .ad-banner-mid {
    margin: 0.85rem 0 1.25rem;
  }
}
/* Lower ad variant */
.ad-banner-lower {
  margin: 1.75rem 0 1.5rem;
}
@media (max-width: 600px) {
  .ad-banner-lower {
    margin: 1.1rem 0 1rem;
  }
}

/* Side Rail Ads */
.side-ads {
  position: fixed;
  top: 140px;
  width: 170px;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.side-ads-left {
  left: 24px;
}
.side-ads-right {
  right: 24px;
}
.side-ad-inner {
  pointer-events: auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 6px 6px 10px;
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 30px var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.side-ad-inner::before {
  content: "AD";
  font-size: 0.55rem;
  letter-spacing: 1px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.7;
  margin-bottom: 4px;
}
.side-ad-fallback {
  width: 160px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 10px;
}
@media (max-width: 1400px) {
  .side-ads {
    display: none;
  }
}

/* Add horizontal breathing room for main content when side ads visible */
@media (min-width: 1401px) {
  body.has-side-ads .main > .container {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .ad-banner {
    margin: 1rem 0 0.75rem;
  }
  .ad-banner .ad-inner {
    width: 100%;
    padding: 8px 10px;
    border-radius: 14px;
    min-height: 70px;
  }
  .ad-banner iframe {
    max-width: 100% !important;
    height: auto !important;
  }
}

.year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.genres {
  display: flex;
  gap: 0.5rem;
}

.genre {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--surface);
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.hero-description {
  text-align: left;
  margin-bottom: 1.75rem;
}

.hero-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.hero-description p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient);
  color: white;
  padding: 18px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px var(--shadow-colored);
  position: relative;
  overflow: hidden;
}

.refresh-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.refresh-btn:hover::before {
  left: 100%;
}

.refresh-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px var(--shadow-colored);
}

.refresh-btn i {
  transition: transform 0.4s ease;
}

.refresh-btn:hover i {
  transform: rotate(360deg);
}

.hero-stats {
  display: flex;
  gap: 1rem;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.stat-badge i {
  color: var(--primary-color);
}

/* Controls Section */
.controls {
  margin-bottom: 2.5rem;
}

.controls-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.controls-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.controls-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.search-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 16px 48px var(--shadow-lg);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.search-filter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color) 20%,
    var(--secondary-color) 50%,
    var(--primary-color) 80%,
    transparent
  );
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
  z-index: 2;
}

.search-box input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: var(--background-card);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px var(--shadow);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--shadow-colored), 0 8px 24px var(--shadow-lg);
  background: var(--surface-elevated);
  transform: translateY(-2px);
}

.search-box input:hover {
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.search-box input::placeholder {
  color: var(--text-muted);
  font-size: 1rem;
}

.filter-options {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.filter-options select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--background-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px var(--shadow);
  min-width: 160px;
}

.filter-options select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--shadow-colored);
  background: var(--surface-elevated);
}

.filter-options select:hover {
  border-color: var(--primary-light);
  background: var(--surface-elevated);
  transform: translateY(-2px);
}

.filter-options select option {
  background: var(--background-card);
  color: var(--text-primary);
  padding: 10px;
  border: none;
}

.view-toggle {
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--background-card);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px var(--shadow);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-toggle:hover,
.view-toggle.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Loading Spinner */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  color: var(--text-secondary);
  min-height: 300px;
}

.spinner {
  width: 60px;
  height: 60px;
  position: relative;
  margin-bottom: 2rem;
}

.spinner::before,
.spinner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent-color);
  animation: spin 1.5s linear infinite;
}

.spinner::before {
  width: 100%;
  height: 100%;
  border-top-color: var(--accent-color);
  border-right-color: var(--secondary-color);
}

.spinner::after {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-top-color: var(--secondary-color);
  border-left-color: var(--accent-color);
  animation-duration: 1s;
  animation-direction: reverse;
}

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

.loading p {
  font-size: 1.1rem;
  font-weight: 500;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Videos Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  margin-bottom: 4rem;
}

/* Featured Video */
.featured-video-section {
  margin: 0 0 2.5rem 0;
  position: relative;
  animation: fadeInUp 0.6s ease;
}

.featured-video-card {
  display: grid;
  grid-template-columns: minmax(0, 520px) 1fr;
  gap: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 2.25rem 2.25rem 2rem;
  box-shadow: 0 24px 64px var(--shadow-lg);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  overflow: hidden;
  position: relative;
}

.featured-video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, transparent 60%);
  opacity: 0.07;
  pointer-events: none;
}

.featured-thumb-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--gradient-surface);
}
.featured-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.6s ease;
  filter: brightness(0.95);
}
.featured-thumb-wrapper:hover img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: #fff;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.featured-title {
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.featured-description {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
  margin: 0 0 1.25rem;
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}
.featured-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  border-radius: 22px;
  font-weight: 500;
  color: var(--text-light);
}
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.featured-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: #fff;
  padding: 14px 26px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 32px var(--shadow-colored);
  transition: all 0.4s ease;
}
.featured-play-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px var(--shadow-colored);
}
.featured-play-btn i {
  font-size: 1.1rem;
}
.featured-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--background-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.35s ease;
}
.featured-secondary-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(124, 58, 237, 0.1);
}

@media (max-width: 1024px) {
  .featured-video-card {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.75rem 1.5rem;
  }
  .featured-content {
    margin-top: 1rem;
  }
  .featured-description {
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
}

@media (max-width: 640px) {
  .featured-video-card {
    border-radius: 20px;
    padding: 1.2rem 1.2rem 1.1rem;
    margin: 0 0.5rem;
  }
  .featured-title {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    line-height: 1.25;
  }
  .featured-description {
    font-size: 0.88rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin-bottom: 0.9rem;
    line-height: 1.5;
  }
  .featured-meta {
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
  }
  .featured-meta .meta-item {
    padding: 4px 8px;
    font-size: 0.68rem;
    border-radius: 12px;
  }
  .featured-play-btn {
    flex: 1;
    justify-content: center;
    padding: 11px 18px;
    font-size: 0.82rem;
    min-height: 44px;
    font-weight: 600;
  }
  .featured-secondary-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.72rem;
    min-height: 44px;
  }
  .featured-thumb-wrapper img {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }

  /* Better mobile grid spacing */
  .videos-grid {
    gap: 0.8rem;
    margin: 0 0.3rem;
  }

  .video-card {
    border-radius: 18px;
  }

  .video-thumbnail {
    border-radius: 14px;
    height: 170px;
  }

  /* Enhanced mobile search and filters */
  .search-filter {
    padding: 1rem 0.8rem;
    margin: 0 0.5rem 1.5rem;
    border-radius: 18px;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
  }

  .filter-select {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
  }
}

/* Compact density mode */
.compact .videos-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.65rem;
}

.compact .video-card {
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow);
}

.compact .video-thumbnail {
  height: 140px;
}
.compact .video-info {
  padding: 0.85rem 1rem 0.9rem;
}
.compact .video-title {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.compact .video-description {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}
.compact .video-meta {
  padding: 0.6rem 0.8rem;
  margin: -0.5rem -1rem -0.9rem -1rem;
}

@media (max-width: 600px) {
  .compact .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .compact .video-thumbnail {
    height: 110px;
  }
  .compact .video-title {
    font-size: 0.85rem;
  }
  .compact .video-description {
    display: none;
  }
}

.video-card {
  background: var(--background-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow-lg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid var(--glass-border);
  position: relative;
  backdrop-filter: blur(10px);
}

.video-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.video-card:hover::before {
  opacity: 0.08;
}

.video-card:hover {
  transform: translateY(-16px) scale(1.03);
  box-shadow: 0 32px 80px var(--shadow-xl), 0 0 0 1px var(--primary-color);
  border-color: var(--primary-light);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--gradient-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  filter: brightness(0.95);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  transition: all 0.4s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.video-card:hover .play-overlay {
  background: var(--gradient);
  transform: translate(-50%, -50%) scale(1.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.video-info {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.video-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.video-card:hover .video-title {
  color: var(--primary-color);
}

.video-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  margin: -1rem -2rem -2rem -2rem;
  border-top: 1px solid var(--border-light);
}

.video-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.video-source {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Error Section */
.error {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-secondary);
}

.error-content i {
  font-size: 4rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

.error-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.retry-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
}

.retry-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: linear-gradient(
    135deg,
    var(--surface-dark) 0%,
    var(--surface-darker) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color) 20%,
    var(--secondary-color) 50%,
    var(--accent-color) 80%,
    transparent
  );
}

/* Hidden original multi-column footer layout (replaced by compact footer) */
.footer-content {
  display: none !important;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-logo .logo-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--text-primary);
}

.footer-logo .logo-text i {
  font-size: 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px var(--shadow-colored));
}

.footer-logo .logo-main {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo .logo-accent {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
  max-width: 300px;
}

.footer-bottom,
.footer-bottom-content {
  display: none !important;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-section ul li a::before {
  content: "→";
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-section ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(
    135deg,
    var(--surface-light),
    var(--surface-dark)
  );
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-links a:hover {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
  border-color: var(--accent-color);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  background: linear-gradient(
    90deg,
    transparent,
    var(--surface-light) 50%,
    transparent
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 2rem;
  margin-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo-small {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-logo-small i {
  font-size: 1.2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo-small strong {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero {
    padding: 1.5rem 0.5rem 1.75rem;
    margin: 1.25rem 0 2rem;
  }

  .hero-header {
    margin-bottom: 1rem;
  }

  .hero-description {
    margin-bottom: 1.25rem;
  }

  .hero-description p {
    margin-bottom: 0.65rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-description p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 0.5rem;
  }

  .search-filter {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    padding: 1.25rem;
  }

  .search-box {
    max-width: none;
  }

  .filter-options {
    justify-content: space-between;
    gap: 1rem;
  }

  .filter-options select {
    flex: 1;
    min-width: auto;
  }

  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
  }

  .video-card {
    border-radius: 18px;
    box-shadow: 0 8px 24px var(--shadow-lg);
  }

  .video-thumbnail {
    height: 180px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-logo .logo-text {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem 0.375rem 1.125rem;
    margin: 0.875rem 0 1.5rem;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.15;
  }

  .hero-header {
    margin-bottom: 0.875rem;
  }

  .hero-description {
    margin-bottom: 1rem;
  }

  /* Show only first paragraph and clamp lines */
  .hero-description p:first-child {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-description p + p {
    display: none;
  }

  .hero-meta {
    align-items: center;
  }

  .genres {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-description p {
    font-size: 0.95rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .video-info {
    padding: 0.85rem 1rem 1rem;
  }

  .video-thumbnail {
    height: 160px;
  }

  .video-title {
    font-size: 1.05rem;
  }

  .video-description {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 1rem;
  }

  .footer-logo .logo-text {
    font-size: 1.8rem;
  }

  .social-links {
    justify-content: center;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }
}

/* Animation for video cards appearing */
.video-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.video-card:nth-child(1) {
  animation-delay: 0.1s;
}
.video-card:nth-child(2) {
  animation-delay: 0.2s;
}
.video-card:nth-child(3) {
  animation-delay: 0.3s;
}
.video-card:nth-child(4) {
  animation-delay: 0.4s;
}
.video-card:nth-child(5) {
  animation-delay: 0.5s;
}
.video-card:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Video Modal Styles */
.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.video-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease-out;
}

.video-modal-content {
  background: var(--background);
  border-radius: 16px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.video-modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
  margin-right: 1rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background-color: var(--surface);
  color: var(--text-primary);
}

.video-player-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  background: #000;
}

.video-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-modal-info {
  padding: 1.5rem;
}

.video-modal-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-height: 100px;
  overflow-y: auto;
}

.modal-video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.external-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.external-link:hover {
  color: var(--primary-dark);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
    max-height: 95vh;
    margin: 20px;
  }

  .video-modal-header {
    padding: 1rem;
  }

  .video-modal-header h3 {
    font-size: 1.1rem;
  }

  .video-modal-info {
    padding: 1rem;
  }

  .modal-video-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .video-modal-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-height: 100vh;
  }
}

/* Page Load Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.header {
  animation: fadeInUp 0.8s ease-out;
}

.hero {
  animation: scaleIn 1s ease-out 0.2s both;
}

.search-controls {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.video-card {
  animation: fadeInUp 0.6s ease-out both;
}

.video-card:nth-child(1) {
  animation-delay: 0.1s;
}
.video-card:nth-child(2) {
  animation-delay: 0.2s;
}
.video-card:nth-child(3) {
  animation-delay: 0.3s;
}
.video-card:nth-child(4) {
  animation-delay: 0.4s;
}
.video-card:nth-child(5) {
  animation-delay: 0.5s;
}
.video-card:nth-child(6) {
  animation-delay: 0.6s;
}

.footer {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Smooth entrance for modal */
.video-modal.active {
  animation: fadeIn 0.3s ease-out;
}

.video-modal.active .video-modal-content {
  animation: scaleIn 0.4s ease-out 0.1s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Loading state animations */
.videos-grid.loading {
  min-height: 400px;
}

/* Enhance button animations */
.btn:active {
  transform: scale(0.95);
}

/* Floating animation for hero elements */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero .btn:hover {
  animation: float 2s ease-in-out infinite;
}

/* Add subtle parallax effect */
@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: parallax 20s ease-in-out infinite;
  }
}

@keyframes parallax {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compact footer new styles */
.footer {
  padding: 2.2rem 0 1.2rem;
  margin-top: 3.5rem;
}
.footer-compact .container {
  padding: 0 18px;
  max-width: 800px;
  margin: 0 auto;
}
.footer-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 6px 18px var(--shadow-lg);
  max-width: 100%;
}
.footer-mini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.footer-mini-brand i {
  font-size: 1.1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-mini-brand .brand-text {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.footer-mini-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-mini-nav .mini-link {
  background: var(--background-card);
  color: var(--text-secondary);
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
}
.footer-mini-nav .mini-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .footer {
    margin-top: 2.5rem;
    padding: 1.6rem 0 1rem;
  }
  .footer-compact-row {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.75rem 1rem;
    gap: 0.9rem;
  }
  .footer-mini-brand {
    font-size: 0.85rem;
  }
  .footer-copy {
    order: 3;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
  }
  .footer-mini-nav .mini-link {
    padding: 5px 9px;
    font-size: 0.6rem;
  }
}

/* Improve touch targets on coarse pointers */
@media (hover: none) and (pointer: coarse) {
  .refresh-btn {
    padding: 16px 28px;
  }
  .filter-options select {
    padding: 14px 16px;
  }
  .view-toggle {
    width: 56px;
    height: 56px;
  }
  .nav-link {
    padding: 0.75rem 1.25rem;
  }
}

/* Data saver: flatten heavy effects */
@media (prefers-reduced-data: reduce) {
  .video-card,
  .hero,
  .search-filter {
    box-shadow: none;
    background: var(--background-card);
  }
  .video-card:hover {
    transform: none;
  }
  .refresh-btn {
    box-shadow: none;
  }
}

/* Feed timestamp error state */
#feedTimestamp.feed-error {
  color: #f87171;
}

/* === Additional Responsive Refinements (UX density & adaptability) === */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero {
    padding: 2.4rem 2.2rem 2.1rem;
  }
  .video-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .featured-video-card {
    grid-template-columns: minmax(0, clamp(340px, 46%, 480px)) 1fr;
    padding: 1.7rem 1.7rem 1.5rem;
    gap: 1.4rem;
  }
  .featured-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 1400px) {
  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  }
}

@media (max-width: 360px) {
  .hero {
    padding: 1rem 0.85rem 1.15rem;
    margin: 0.9rem 0 1.4rem;
  }
  .hero-title {
    font-size: 1.55rem;
  }
  .search-filter {
    padding: 1.15rem 1rem 1.05rem;
    border-radius: 18px;
  }
  .videos-grid {
    gap: 0.65rem;
  }
  .video-thumbnail {
    height: 160px;
  }
  .video-info {
    padding: 1rem 0.9rem 1rem;
  }
  .featured-video-card {
    padding: 1rem 1rem 0.95rem;
    gap: 0.9rem;
  }
  .featured-title {
    font-size: 1.35rem;
  }
  .featured-description {
    font-size: 0.82rem;
  }
}

@media (max-height: 580px) and (orientation: landscape) {
  .hero {
    padding: 1.25rem 1.5rem 1.3rem;
    margin: 0.75rem 0 1.1rem;
  }
  .featured-video-card {
    padding: 1.25rem 1.4rem 1.1rem;
  }
  .videos-grid {
    gap: 0.85rem;
  }
}

@media (max-width: 640px) and (orientation: landscape) {
  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-height: 500px) {
  .hero-description p:nth-of-type(n + 2) {
    display: none;
  }
  .hero {
    margin-bottom: 1.2rem;
  }
}

/* Tablet footer adjustments */
@media (max-width: 768px) {
  .footer-compact .container {
    max-width: 90%;
    padding: 0 16px;
  }

  .footer-compact-row {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }
}

/* Enhanced Mobile Responsiveness - Additional Improvements */
@media (max-width: 480px) {
  /* Better mobile video cards */
  .video-card {
    border-radius: 16px;
    transition: transform 0.2s ease;
  }

  .video-card:active {
    transform: scale(0.98);
  }

  .video-info {
    padding: 1rem 0.8rem;
  }

  .video-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
  }

  .video-description {
    font-size: 0.82rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .video-meta {
    padding: 0.5rem 0.6rem;
    margin: -0.3rem -0.8rem -1rem -0.8rem;
  }

  /* Improve mobile navigation */
  .header {
    padding: 0.8rem 0;
  }

  .nav-container {
    padding: 0 1rem;
  }

  /* Better mobile search */
  .search-input:focus {
    transform: none; /* Prevent zoom on iOS */
  }

  /* Optimize mobile loading */
  .loading-content {
    padding: 2rem 1rem;
  }

  /* Enhanced mobile footer */
  .footer-container {
    padding: 1.5rem 1rem;
  }

  .footer-compact .container {
    max-width: 95%;
    padding: 0 12px;
  }

  .footer-mini {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .footer-mini-nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  /* Ultra-narrow mobile optimization */
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin: 0 0.2rem;
  }

  .video-card {
    max-width: 100%;
  }

  .search-filter {
    margin: 0 0.3rem 1.2rem;
    padding: 0.8rem 0.6rem;
  }

  .featured-video-card {
    margin: 0 0.3rem;
    padding: 1rem 1rem 0.9rem;
  }

  .hero {
    margin: 0 0.2rem 1.2rem;
  }
}

/* Touch-friendly mobile improvements */
@media (max-width: 768px) {
  /* Better touch targets for mobile */
  .video-card,
  .featured-play-btn,
  .search-input,
  .filter-select {
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.1);
  }

  .video-card {
    cursor: pointer;
  }

  /* Prevent zoom on form focus */
  .search-input,
  .filter-select {
    font-size: 16px;
  }

  /* Smooth mobile interactions */
  .video-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}
