/* ============================================
   FilmKu — Premium Design System & Homepage
   Netflix-quality dark theme
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');

/* ============================================
   1. DESIGN TOKENS
   ============================================ */
:root {
  /* Backgrounds */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1f1f1f;
  --bg-card: #181818;

  /* Accent */
  --accent-primary: #E50914;
  --accent-hover: #FF0A16;
  --accent-gradient: linear-gradient(135deg, #E50914, #FF6B00);

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  --text-muted: #666666;

  /* Glass */
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Elevation */
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(229, 9, 20, 0.3);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --nav-height: 68px;
  --content-padding: 4%;
}

/* ============================================
   2. GLOBAL RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

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

input {
  border: none;
  outline: none;
  font-family: inherit;
  background: transparent;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

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

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-tertiary) var(--bg-primary);
}

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

::-moz-selection {
  background: var(--accent-primary);
  color: var(--text-primary);
}

/* ============================================
   3. NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--content-padding);
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar__left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar__logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  user-select: none;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 4px 0;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-primary);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Search Bar ── */
.navbar__search {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar__search-input {
  width: 0;
  padding: 0;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  transition: var(--transition);
  opacity: 0;
}

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

.navbar__search.active .navbar__search-input {
  width: 260px;
  padding: 10px 40px 10px 16px;
  background: var(--glass);
  border-color: var(--glass-border);
  opacity: 1;
}

.navbar__search-btn {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  transition: var(--transition);
  z-index: 1;
}

.navbar__search-btn:hover {
  color: var(--text-primary);
}

.navbar__search-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Admin Button ── */
/* ── Dynamic User / Auth Section ── */
.navbar__user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Guest Sign-In Button */
.navbar__login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: var(--accent-gradient);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.2);
}

.navbar__login-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.navbar__login-btn svg {
  width: 16px;
  height: 16px;
}

/* Profile Toggle */
.navbar__profile-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.navbar__profile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Avatar / Initial Circle */
.navbar__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
}

.navbar__profile-toggle svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.navbar__user:hover .navbar__profile-toggle svg {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.navbar__profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 210px;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.navbar__user:hover .navbar__profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

/* Dropdown header with User email info */
.navbar__profile-dropdown-header {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 6px;
}

.navbar__profile-dropdown-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar__profile-dropdown-email {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

/* Dropdown Items */
.navbar__profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border-left: 2px solid transparent;
}

.navbar__profile-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-left-color: var(--accent-primary);
}

.navbar__profile-dropdown-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.navbar__profile-dropdown-item:hover svg {
  color: var(--text-primary);
}

/* Red text specifically for Log Out item */
.navbar__profile-dropdown-item--logout:hover {
  color: #f87171;
  border-left-color: #ef4444;
}

.navbar__profile-dropdown-item--logout:hover svg {
  color: #f87171;
}

/* Mobile User Panel Styling */
.navbar__mobile-user {
  width: 85%;
  margin-top: 15px;
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.navbar__mobile-user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.navbar__mobile-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.navbar__mobile-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.navbar__mobile-user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.navbar__mobile-user-email {
  font-size: 13px;
  color: var(--text-secondary);
}

.navbar__mobile-login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: var(--accent-gradient);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar__mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}

.navbar__mobile-link:hover {
  color: var(--text-primary);
}

.navbar__mobile-link--logout {
  color: #f87171;
}

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


/* ── Mobile Menu Toggle ── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Nav Overlay ── */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.navbar__mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.navbar__mobile-menu .navbar__link {
  font-size: 22px;
  font-weight: 600;
}

/* ============================================
   4. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  animation: kenburns 25s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-primary) 0%, rgba(10, 10, 10, 0.6) 40%, transparent 70%),
    linear-gradient(to right, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.4) 40%, transparent 70%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.5) 0%, transparent 15%);
  z-index: 1;
}

.hero__content {
  position: absolute;
  bottom: 18%;
  left: var(--content-padding);
  z-index: 2;
  max-width: 650px;
  animation: fadeIn 1s ease-out;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.hero__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 14px;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.hero__meta-item svg {
  width: 16px;
  height: 16px;
}

.hero__meta-rating {
  color: #FBBF24;
  font-weight: 600;
}

.hero__meta-year {
  padding: 2px 8px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.hero__description {
  max-width: 550px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.hero__btn svg {
  width: 22px;
  height: 22px;
}

.hero__btn--play {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.hero__btn--play:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.05);
}

.hero__btn--info {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__btn--info:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Hero Pagination Dots ── */
.hero__dots {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero__dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
}

/* ============================================
   5. CONTENT / CATEGORY SECTIONS
   ============================================ */
.content {
  position: relative;
  z-index: 2;
  margin-top: -120px;
  padding-bottom: 60px;
}

.category-section {
  padding: 0 var(--content-padding);
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.category-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.category-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.category-section__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
}

.category-section__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
}

.category-section__see-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.category-section__see-all:hover {
  color: var(--accent-primary);
}

/* ── Scroll Container ── */
.category-section__row-wrapper {
  position: relative;
}

.category-section__row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  padding: 20px 0 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-section__row::-webkit-scrollbar {
  display: none;
}

/* ── Scroll Arrows ── */
.category-section__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
}

.category-section__row-wrapper:hover .category-section__arrow {
  opacity: 1;
}

.category-section__arrow:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-60%) scale(1.1);
}

.category-section__arrow svg {
  width: 20px;
  height: 20px;
}

.category-section__arrow--left {
  left: -12px;
}

.category-section__arrow--right {
  right: -12px;
}

.category-section__arrow.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* ============================================
   6. VIDEO CARD
   ============================================ */
.video-card {
  position: relative;
  flex-shrink: 0;
  width: 250px;
  border-radius: var(--radius-md);
  overflow: visible;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
              z-index 0s 0.1s;
}

.video-card:hover {
  transform: scale(1.3);
  z-index: 10;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              z-index 0s;
}

.video-card__inner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: none;
  transition: box-shadow 0.35s ease;
}

.video-card:hover .video-card__inner {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
}

.video-card__thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.video-card__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 9, 20, 0.9);
  border-radius: 50%;
  color: white;
  opacity: 0;
  transition: var(--transition);
  z-index: 3;
}

.video-card__play-icon svg {
  width: 24px;
  height: 24px;
  margin-left: 2px;
}

.video-card:hover .video-card__play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-card__duration {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

/* ── Info Overlay (slides up on hover) ── */
.video-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 14px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
  z-index: 2;
}

.video-card:hover .video-card__info {
  transform: translateY(0);
  opacity: 1;
}

.video-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.video-card__meta-rating {
  color: #FBBF24;
  font-weight: 600;
}

.video-card__meta-year {
  color: var(--text-muted);
}

.video-card__meta-views {
  color: var(--text-muted);
}

/* ============================================
   7. LOADING SKELETON
   ============================================ */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 100%
  );
  animation: shimmer 1.8s ease-in-out infinite;
}

.skeleton-card {
  flex-shrink: 0;
  width: 250px;
  aspect-ratio: 16 / 9;
}

.skeleton-hero {
  width: 100%;
  height: 100vh;
  border-radius: 0;
}

.skeleton-text {
  height: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.skeleton-text--title {
  width: 60%;
  height: 36px;
}

.skeleton-text--desc {
  width: 80%;
  height: 14px;
}

.skeleton-text--short {
  width: 40%;
}

/* ============================================
   8. SEARCH RESULTS DROPDOWN
   ============================================ */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 420px;
  max-height: 460px;
  overflow-y: auto;
  background: rgba(24, 24, 24, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 1001;
}

.search-results.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.search-results__header {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--glass-border);
}

.search-results__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  transition: var(--transition);
  cursor: pointer;
}

.search-results__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-results__item-thumb {
  width: 72px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.search-results__item-info {
  flex: 1;
  min-width: 0;
}

.search-results__item-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-results__item-title mark {
  background: transparent;
  color: var(--accent-primary);
  font-weight: 700;
}

.search-results__item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-results__empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================
   9. TOAST NOTIFICATIONS
   ============================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 440px;
  padding: 14px 20px;
  background: rgba(24, 24, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
  position: relative;
  overflow: hidden;
}

.toast__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.toast__message {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.toast__close {
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.toast__close:hover {
  color: var(--text-primary);
}

.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  animation: progressShrink linear forwards;
}

/* Toast Types */
.toast--success {
  border-left: 3px solid #22C55E;
}
.toast--success .toast__icon {
  color: #22C55E;
}
.toast--success .toast__progress {
  background: #22C55E;
}

.toast--error {
  border-left: 3px solid #EF4444;
}
.toast--error .toast__icon {
  color: #EF4444;
}
.toast--error .toast__progress {
  background: #EF4444;
}

.toast--info {
  border-left: 3px solid #3B82F6;
}
.toast--info .toast__icon {
  color: #3B82F6;
}
.toast--info .toast__progress {
  background: #3B82F6;
}

.toast--warning {
  border-left: 3px solid #F59E0B;
}
.toast--warning .toast__icon {
  color: #F59E0B;
}
.toast--warning .toast__progress {
  background: #F59E0B;
}

.toast.removing {
  animation: slideOutRight 0.3s ease forwards;
}

/* ============================================
   10. FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 60px var(--content-padding) 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer__col-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer__link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--accent-primary);
  padding-left: 6px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 20px;
}

.footer__socials {
  display: flex;
  gap: 14px;
}

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

.footer__social-icon:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-3px);
}

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

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

/* ============================================
   11. KEYFRAME ANIMATIONS
   ============================================ */
@keyframes kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes progressShrink {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   12. RESPONSIVE DESIGN
   ============================================ */

/* ── Large Screens ── */
@media (max-width: 1200px) {
  .video-card {
    width: 220px;
  }

  .skeleton-card {
    width: 220px;
  }

  .hero__title {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  }

  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Tablets ── */
@media (max-width: 768px) {
  :root {
    --content-padding: 5%;
    --nav-height: 60px;
  }

  /* Navbar */
  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__search.active .navbar__search-input {
    width: 180px;
  }

  .navbar__admin-btn span {
    display: none;
  }

  .navbar__admin-btn {
    padding: 10px;
    border-radius: 50%;
  }

  /* Hero */
  .hero {
    min-height: 500px;
  }

  .hero__content {
    bottom: 22%;
    max-width: 90%;
  }

  .hero__title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .hero__description {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .hero__btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .hero__meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Cards */
  .video-card {
    width: 180px;
  }

  .video-card:hover {
    transform: scale(1.15);
  }

  .skeleton-card {
    width: 180px;
  }

  .category-section__title {
    font-size: 18px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* Search Results */
  .search-results {
    width: 90vw;
    right: -20px;
  }

  /* Content */
  .content {
    margin-top: -80px;
  }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  :root {
    --content-padding: 4%;
  }

  .navbar__logo {
    font-size: 22px;
  }

  .navbar__admin-btn {
    display: none;
  }

  .hero__content {
    bottom: 25%;
  }

  .hero__title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .hero__description {
    display: none;
  }

  .hero__meta {
    font-size: 12px;
  }

  .hero__btn {
    padding: 10px 18px;
    font-size: 13px;
  }

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

  .hero__badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  .video-card {
    width: 150px;
  }

  .video-card:hover {
    transform: scale(1.08);
  }

  .skeleton-card {
    width: 150px;
  }

  .category-section {
    margin-bottom: 32px;
  }

  .category-section__title {
    font-size: 16px;
  }

  .category-section__arrow {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .toast {
    min-width: auto;
    max-width: calc(100vw - 48px);
  }

  #toast-container {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .content {
    margin-top: -60px;
  }
}
