/* ============================================
   ALBATROS PLATFORM - Premium Design System
   A world-class entertainment experience
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --accent-primary: #a855f7;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #a855f7, #6366f1);
  --accent-glow: rgba(168, 85, 247, 0.3);
  --text-primary: #f1f1f7;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(168, 85, 247, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.15);
  --shadow-hero: 0 20px 60px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-ar: 'Marhey', 'Tajawal', cursive;
  --font-body: 'Inter', 'Open Sans', sans-serif;
  --navbar-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-secondary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--accent-primary);
  color: #fff;
}

/* ---------- Animated Background ---------- */
.bg-animated {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--bg-primary);
  
}

.bg-animated::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(120, 58, 237, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-2%, 1%) rotate(1deg); }
  66% { transform: translate(1%, -1%) rotate(-0.5deg); }
  100% { transform: translate(-1%, 2%) rotate(0.5deg); }
}

/* ---------- Glassmorphism Navbar ---------- */
.navbar-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.navbar-glass.scrolled {
  background: rgba(10, 10, 15, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.navbar-logo img {
  height: 45px;
  width: auto;
  filter: brightness(1.1);
  transition: transform var(--transition-fast);
}

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

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  direction: rtl;
}

.navbar-nav li a {
  font-family: var(--font-ar);
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.navbar-nav li a:hover,
.navbar-nav li a.active {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.navbar-nav li a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Buttons ---------- */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-ar);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

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

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
  color: #fff;
}

.btn-glow:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-ar);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--navbar-height);
  margin-bottom: 40px;
  
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
}

.hero-slide {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  
}

.hero-slide img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide:hover img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.4) 50%, rgba(10,10,15,0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  z-index: 2;
  direction: rtl;
  pointer-events: none;
}
.hero-content > * {
  pointer-events: auto;
}

.hero-content h1 {
  font-family: var(--font-ar);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.95), 0 2px 10px rgba(0,0,0,0.85);
}

.hero-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  pointer-events: auto;
}

/* ---------- Section Layout ---------- */
.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  direction: rtl;
}

.section-title {
  font-family: var(--font-ar);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
}

.section-link {
  font-family: var(--font-ar);
  font-size: 14px;
  color: var(--accent-primary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  color: var(--text-primary);
  gap: 8px;
}

/* ---------- Horizontal Scroll Row ---------- */
.scroll-row {
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: none;
  direction: rtl;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

/* ---------- Content Cards ---------- */
.card-media {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.card-media:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  z-index: 5;
}

.card-media .card-thumb {
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  
}

.card-media .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.card-media:hover .card-thumb img {
  transform: translateY(-50%) scale(1.1);
}

.card-media .card-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-card), transparent);
  pointer-events: none;
}

.card-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity:  0;
  transition: opacity var(--transition-fast);
}

.card-media:hover .card-play-overlay {
  opacity: 1;
}

.card-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: scale(0.8);
  transition: transform var(--transition-spring);
}

.card-media:hover .card-play-btn {
  transform: scale(1);
}

.card-play-btn i {
  color: #fff;
  font-size: 18px;
  margin-left: 2px;
}

.card-media .card-info {
  padding: 14px 16px;
}

.card-media .card-title {
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  
  text-overflow: ellipsis;
  text-align: right;
}

.card-media .card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

/* ---------- Wide Series Cards ---------- */
.card-series {
  overflow: hidden;
  flex: 0 0 auto;
  width: 360px;
  height: 200px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.card-series:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  z-index: 5;
}

.card-series .series-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
  object-position: center 20%;
}

.card-series:hover .series-bg {
  transform: translateY(-50%) scale(1.1);
}

.card-series .series-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3), transparent);
  text-align: right;
}

.card-series .series-title {
  font-family: var(--font-ar);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.card-series .series-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--font-ar);
  background: var(--accent-gradient);
  border-radius: 20px;
  color: #fff;
  margin-bottom: 6px;
}

/* ---------- Video Player Page ---------- */
.video-page {
  padding-top: var(--navbar-height);
  min-height: 100vh;
}

.video-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 24px;
}

.video-main {
  flex: 1;
  min-width: 0;
}

.video-player-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  
  background: #000;
  box-shadow: var(--shadow-hero);
}

.video-player-wrap video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
}

.video-info {
  padding: 20px 0;
  direction: rtl;
}

.video-info h1 {
  font-family: var(--font-ar);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.video-info .video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.video-sidebar {
  width: 380px;
  flex-shrink: 0;
}

.sidebar-title {
  font-family: var(--font-ar);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  direction: rtl;
  color: var(--text-primary);
}

.sidebar-playlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-left: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  direction: rtl;
}

.sidebar-item:hover,
.sidebar-item.playing {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
}

.sidebar-item.playing {
  border-color: var(--accent-primary);
  box-shadow: inset 3px 0 0 var(--accent-primary);
}

.sidebar-item .item-thumb {
  width: 100px;
  height: 60px;
  border-radius: var(--radius-sm);
  
  flex-shrink: 0;
}

.sidebar-item .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.sidebar-item .item-info p {
  font-family: var(--font-ar);
  font-size: 13px;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  
  text-overflow: ellipsis;
}

.sidebar-item .item-info span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---------- Playlist / Audio Page ---------- */
.playlist-page {
  padding-top: var(--navbar-height);
  min-height: 100vh;
  padding-bottom: 120px;
}

.playlist-header-section {
  padding: 40px 24px 30px;
  max-width: 1400px;
  margin: 0 auto;
  direction: rtl;
}

.playlist-header-section h1 {
  font-family: var(--font-ar);
  font-size: 28px;
  font-weight: 700;
}

.track-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  direction: rtl;
  position: relative;
  
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 0;
  background: var(--accent-gradient);
  transition: width var(--transition-fast);
  opacity: 0.1;
}

.track-card:hover::before {
  width: 100%;
}

.track-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  transform: translateX(-4px);
}

.track-card.active-track {
  border-color: var(--accent-primary);
  background: rgba(168, 85, 247, 0.08);
}

.track-card .track-number {
  font-size: 14px;
  color: var(--text-muted);
  min-width: 30px;
  text-align: center;
  font-weight: 500;
}

.track-card .track-art {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  
  flex-shrink: 0;
}

.track-card .track-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.track-card .track-name {
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.track-card .track-album {
  font-size: 12px;
  color: var(--text-muted);
}

.track-card .track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-card .track-download {
  opacity:  0;
  transition: opacity var(--transition-fast);
}

.track-card:hover .track-download {
  opacity: 1;
}

/* ---------- Bottom Audio Player ---------- */
.audio-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 260px;
  direction: rtl;
}

.player-album-art {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.player-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-album-art.spinning img {
  animation: spin 3s linear infinite;
}

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

.player-song-info .player-song-name {
  font-family: var(--font-ar);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.player-song-info .player-artist {
  font-size: 12px;
  color: var(--text-muted);
}

.player-controls-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.player-buttons button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition-fast);
  padding: 6px;
}

.player-buttons button:hover {
  color: var(--text-primary);
  transform: translateY(-50%) scale(1.1);
}

.player-buttons .play-main {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.player-buttons .play-main:hover {
  transform: scale(1.08);
  background: #fff;
}

.player-progress-bar {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-progress-bar .time-label {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 40px;
  text-align: center;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: height var(--transition-fast);
}

.progress-track:hover {
  height: 6px;
}

.progress-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 4px;
  position: relative;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.progress-track:hover .progress-fill::after {
  transform: translateY(-50%) scale(1);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity:  0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--bg-secondary);
  padding: 24px;
  transition: right var(--transition-smooth);
  direction: rtl;
}

.mobile-nav-overlay.open .mobile-nav-panel {
  right: 0;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 24px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links li a {
  font-family: var(--font-ar);
  font-size: 18px;
  color: var(--text-secondary);
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-links li a:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
  text-align: center;
  margin-top: 60px;
}

.site-footer .footer-logo img {
  height: 50px;
  width: auto;
  opacity: 0.7;
  margin-bottom: 12px;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .footer-brand img {
  height: 30px;
  width: auto;
  opacity: 0.6;
}

/* ---------- Fade-in Animations ---------- */
.fade-up {
  opacity:  0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

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

/* ---------- Spinner ---------- */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .video-layout {
    flex-direction: column;
  }
  
  .video-sidebar {
    width: 100%;
  }
  
  .sidebar-playlist {
    max-height: 400px;
  }
  
  .card-series {
  overflow: hidden;
    width: 300px;
    height: 170px;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-carousel {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
}
  
  .hero-content {
    padding: 20px;
  }
  
  .hero-content h1 {
    font-size: 24px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .card-media {
    width: 200px;
  }
  
  .card-series {
  overflow: hidden;
    width: 260px;
    height: 150px;
  }
  
  .content-section {
    padding: 0 16px;
    margin-bottom: 32px;
  }
  
  .audio-player-bar {
    height: 70px;
    padding: 0 12px;
  }
  
  .player-track-info {
    width: 160px;
  }
  
  .player-album-art {
    width: 44px;
    height: 44px;
  }
  
  .player-song-info .player-song-name {
    font-size: 12px;
  }
  
  .player-buttons {
    gap: 12px;
  }
  
  .player-buttons .play-main {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  
  .player-progress-bar {
    display: none;
  }

  .video-layout {
    padding: 12px;
    gap: 16px;
  }

  .track-card {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .navbar-actions .btn-ghost,
  .navbar-actions .btn-glow span {
    display: none;
  }
  
  .hero-carousel {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
}
  
  .card-media {
    width: 160px;
  }
  
  .card-series {
  overflow: hidden;
    width: 220px;
    height: 130px;
  }

  .card-media .card-info {
    padding: 10px 12px;
  }

  .card-media .card-title {
    font-size: 13px;
  }
}


/* Card Thumb Icon Styles */
.thumb-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, #1e1e2d 100%);
  color: rgba(255, 255, 255, 0.9);
  transition: transform var(--transition-smooth), color var(--transition-smooth);
}

.card-media:hover .thumb-icon {
  transform: scale(1.15);
}

/* Different gradients based on category */
.thumb-icon--new {
  background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  color: #fff;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
.thumb-icon--popular {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
.thumb-icon--jokes {
  background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
  color: #fff;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}
.thumb-icon--comedy {
  background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

/* Hero Carousel Play Button */
.hero-play-circle {
  pointer-events: auto;
  position: absolute;
  top: 40%;
  left: 50%;
  z-index: 20;
  transform: translate(-50%, -50%) scale(0.9);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 5;
  opacity:  1;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  text-decoration: none;
}

.hero-play-circle i {
  margin-left: 6px; /* Offset for better optical centering of play icon */
}

.hero-slide:hover .hero-play-circle {
  pointer-events: auto;
  position: absolute;
  top: 40%;
  left: 50%;
  z-index: 20;
  transform: translate(-50%, -50%) scale(1);
}
.hero-play-circle:hover {
  background: var(--accent-primary);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
  transform: translate(-50%, -50%) scale(1.1) !important;
  color: #fff;
}

/* Hero Carousel Custom Arrows */
.splide__arrow {
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  opacity: 1;
  transition: all var(--transition-base);
  z-index: 99 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}
:hover .splide__arrow {
  opacity: 1;
}
.splide__arrow:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-50%) scale(1.1);
}
.splide__arrow svg {
  fill: #fff;
  width: 24px;
  height: 24px;
}



/* Make Logos Visible on Dark Background */
.navbar-logo img,
.site-footer .footer-logo img,
.site-footer .footer-brand img {
  filter: invert(1) brightness(1.5);
}

@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.6); }
  70% { box-shadow: 0 0 0 20px rgba(168, 85, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.hero-play-circle i {
  animation: none;
}

.hero-play-circle {
  animation: playPulse 2s infinite;
}

/* Fix Splide full height */
.hero-carousel .splide__track,
.hero-carousel .splide__list,
.hero-carousel .splide__slide {
  height: 100%;
}
.hero-section {
    padding-top: var(--navbar-height);
    margin-bottom: 40px;
    /* Remove overflow hidden from here so arrows don't get clipped if they are outside, though usually they are inside */
}



