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

:root {
  --bg-primary: #eef2f8;
  --bg-secondary: rgba(255, 255, 255, 0.6);
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-header: rgba(255, 255, 255, 0.7);
  --text-primary: #0b1220;
  --text-secondary: #526070;
  --accent: #2f6bff;
  --accent-hover: #1f57e6;
  --accent-glow: rgba(47, 107, 255, 0.22);
  --gradient-start: #2f6bff;
  --gradient-end: #22c5b8;
  --border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  --glass-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.7);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px circle at 10% 10%, rgba(47, 107, 255, 0.18), transparent 45%),
    radial-gradient(900px circle at 90% -10%, rgba(34, 197, 184, 0.2), transparent 45%),
    radial-gradient(1000px circle at 20% 80%, rgba(255, 183, 77, 0.18), transparent 55%),
    linear-gradient(180deg, #eef2f8 0%, #dfe6f3 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.7), transparent 70%);
}

body::after {
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(34, 197, 184, 0.6), transparent 70%);
}

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

/* Noise texture */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.015;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--glass-shadow-soft);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 107, 255, 0.5), transparent);
  opacity: 0.7;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

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

.logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.6);
  position: relative;
}

.logo-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  z-index: -1;
  opacity: 0.4;
  filter: blur(8px);
}

.logo-icon-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-icon-img {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}

.footer-logo .logo-icon-img {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #0b1220 20%, rgba(47, 107, 255, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.35rem;
  background: var(--glass-bg);
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(16px) saturate(150%);
}

.nav-link {
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(11, 18, 32, 0.7);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: #0b1220;
  background: rgba(47, 107, 255, 0.1);
}

.nav-link:hover::after {
  width: 0;
}

.nav-link.active {
  color: #0b1220;
  background: rgba(47, 107, 255, 0.14);
  font-weight: 600;
}

.nav-link.active::after {
  width: 0;
}

.nav-link.nav-highlight {
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(34, 197, 184, 0.9));
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.nav-link.nav-highlight::after {
  display: none;
}

.nav-link.nav-highlight:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link::after {
  display: none;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 420px;
  background: var(--glass-bg-strong);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(150%);
}

.nav-dropdown .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.dropdown-grid a {
  padding: 0.65rem 0.9rem;
  color: rgba(11, 18, 32, 0.7);
  font-size: 0.85rem;
  font-weight: 450;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.dropdown-grid a:hover {
  background: rgba(47, 107, 255, 0.12);
  color: #0b1220;
  padding-left: 1.1rem;
}

.dropdown-grid a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.dropdown-grid a:hover::before {
  height: 60%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-container {
  position: relative;
  width: 200px;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem;
  padding-left: 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: all 0.25s ease;
}

.search-input:focus {
  outline: none;
  background: var(--glass-bg-strong);
  border-color: rgba(47, 107, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
  width: 240px;
}

.search-input::placeholder {
  color: rgba(11, 18, 32, 0.45);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(11, 18, 32, 0.45);
  font-size: 0.95rem;
  pointer-events: none;
}

.mobile-menu-btn {
  display: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1.25rem;
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: var(--glass-bg-strong);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px) saturate(150%);
  padding: 1.5rem;
  z-index: 99;
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu.active {
  display: block;
}

.mobile-search {
  padding: 0 0 1.25rem;
  position: relative;
}

.mobile-search .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-75%);
  font-size: 1rem;
}

.mobile-search .search-input {
  width: 100%;
  padding-left: 2.75rem;
  height: 48px;
  font-size: 1rem;
  border-radius: 12px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  color: rgba(11, 18, 32, 0.7);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 12px;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: rgba(47, 107, 255, 0.1);
  color: #0b1220;
}

.mobile-nav-link.mobile-highlight {
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(34, 197, 184, 0.9));
  color: #fff;
  text-align: center;
  justify-content: center;
  margin-top: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.18);
}

.mobile-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 107, 255, 0.2), transparent);
  margin: 1.25rem 0;
}

.mobile-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(11, 18, 32, 0.4);
  padding: 0.5rem 1.25rem 0.75rem;
  font-weight: 600;
}

.mobile-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.mobile-categories a {
  padding: 0.85rem 1rem;
  color: rgba(11, 18, 32, 0.7);
  font-size: 0.9rem;
  font-weight: 450;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.2s ease;
}

.mobile-categories a:hover {
  background: rgba(47, 107, 255, 0.1);
  border-color: rgba(47, 107, 255, 0.25);
  color: #0b1220;
}

/* ==================== MAIN ==================== */
.main {
  padding-top: 72px;
  min-height: calc(100vh - 300px);
  animation: pageReveal 0.6s ease both;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0.5rem;
}

.breadcrumb ol,
.breadcrumb ul,
.breadcrumb-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none !important;
  list-style-type: none !important;
  font-size: 0.85rem;
  margin: 0 !important;
  padding: 0 !important;
}

.breadcrumb li,
.breadcrumb-item {
  display: inline-flex !important;
  align-items: center;
  color: var(--text-secondary);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.breadcrumb li::before {
  content: none !important;
}

.breadcrumb-item::after {
  content: '›';
  margin: 0 0.6rem;
  color: var(--text-secondary);
  opacity: 0.6;
  font-size: 1rem;
}

.breadcrumb-item:last-child::after {
  content: none;
}

.breadcrumb-item a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-item.active span {
  color: var(--text-primary);
  font-weight: 500;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* ==================== HERO PANEL ==================== */
.hero-ad {
  max-width: 1400px;
  margin: 1rem auto 1.5rem;
  padding: 0 1.5rem;
}

.hero-ad-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 120px;
  background-image: url('/ads/banner-top.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--glass-shadow-soft);
}

.hero-ad-link::before {
  content: none;
}

.hero-ad-link::after {
  content: none;
}

.hero-ad-content {
  display: none;
}

.hero-ad-eyebrow {
  display: none;
}

.hero-ad-title {
  display: none;
}

.hero-ad-title span {
  display: none;
}

.hero-ad-subtitle {
  display: none;
}

.hero-ad-cta {
  display: none;
}

.hero-ad-link:hover .hero-ad-cta {
  transform: none;
  background: none;
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 0.75rem 1rem 0.25rem;
  }

  .breadcrumb-list {
    font-size: 0.75rem;
  }

  .breadcrumb-item.active span {
    max-width: 200px;
  }
}

/* ==================== HERO ==================== */
.hero {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.hero-line {
  display: block;
}

.hero-line.accent {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px var(--accent-glow));
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ==================== ADS ==================== */
.ad-banner {
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.ad-placeholder {
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(47, 107, 255, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ad-banner-top .ad-placeholder,
.ad-banner-bottom .ad-placeholder {
  height: 90px;
}

.ad-placeholder.ad-large {
  height: 250px;
}

.ad-link {
  display: block;
  width: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ad-link:hover {
  transform: scale(1.01);
  opacity: 0.95;
}

.ad-img {
  width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.ad-img.ad-large {
  max-height: 250px;
}

.ad-placeholder small {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-top: 0.25rem;
}

.ad-sidebar {
  display: none;
}

.ad-vertical {
  width: 160px;
  height: 600px;
}

/* ==================== TAGS ==================== */
.tags-section {
  padding: 0.9rem 1.25rem;
  max-width: 1400px;
  margin: 0 auto 1.1rem;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(16px) saturate(150%);
}

.tags-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

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

.tag-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  backdrop-filter: blur(14px) saturate(140%);
}

.tag-btn:hover {
  border-color: rgba(47, 107, 255, 0.3);
  color: var(--text-primary);
}

.tag-btn.active {
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(34, 197, 184, 0.9));
  border-color: transparent;
  color: #fff;
}

/* ==================== CONTENT HEADER ==================== */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.video-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.video-count span {
  color: var(--accent);
  font-weight: 600;
}

.sort-select {
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(140%);
}

/* ==================== VIDEO GRID ==================== */
.grid-container {
  padding: 0 0 1rem;
}

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

.video-grid-small {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Video Card */
.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px) saturate(140%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.card-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.7) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.95), rgba(34, 197, 184, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transform: scale(0);
  transition: transform 0.3s ease;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

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

.card-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  background: rgba(11, 18, 32, 0.75);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #fff;
}

.card-info {
  padding: 0.75rem 0.85rem 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
  color: #0b1220;
}

.card-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow: hidden;
  max-height: 22px;
}

.card-tag {
  font-size: 0.65rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* Ad Card in Grid */
.ad-card {
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px) saturate(140%);
}

.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.ad-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.ad-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ad-card-text {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ad-title {
  color: #0b1220;
  font-weight: 600;
  font-size: 0.9rem;
}

.ad-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ==================== PAGINATION ==================== */
.pagination {
  margin: 1.5rem auto 0;
  padding: 0.5rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.content-shell {
  max-width: 1400px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(16px) saturate(150%);
}

.page-btn {
  padding: 0.6rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(14px) saturate(140%);
}

.page-btn:hover:not(:disabled) {
  background: rgba(47, 107, 255, 0.14);
  border-color: rgba(47, 107, 255, 0.35);
  color: #0b1220;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 0.25rem;
}

.page-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(14px) saturate(140%);
}

.page-num:hover,
.page-num.active {
  background: rgba(47, 107, 255, 0.14);
  border-color: rgba(47, 107, 255, 0.35);
  color: #0b1220;
}

.page-dots {
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

/* ==================== FOOTER ==================== */
.footer {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(140%);
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

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

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(34, 197, 184, 0.9));
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #fff;
}

.footer-btn:hover {
  background: linear-gradient(135deg, rgba(31, 87, 230, 0.95), rgba(19, 173, 160, 0.95));
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  padding: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem !important;
  opacity: 0.7;
}

/* ==================== VIDEO PAGE ==================== */
.video-page .hero {
  display: none;
}

.video-player-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

.video-player-wrapper {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.video-player-container {
  flex: 1;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--glass-shadow);
  padding: 1rem;
  backdrop-filter: blur(18px) saturate(150%);
}

.player-box {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.player-box video {
  width: 100%;
  height: 100%;
}

.video-info {
  padding: 1.2rem 0 0.4rem;
}

.video-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.video-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.video-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  box-shadow: var(--glass-shadow-soft);
}

.video-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.video-tag {
  padding: 0.4rem 0.8rem;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
}

.video-tag:hover {
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(34, 197, 184, 0.9));
  color: #fff;
}

.ad-under-player {
  margin: 1.5rem 0;
  padding: 0;
}

.related-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Loading */
.loading-video {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-secondary);
}

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

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

.loading-video.error {
  color: var(--accent);
}

.external-link {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.9), rgba(34, 197, 184, 0.9));
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.external-link:hover {
  background: linear-gradient(135deg, rgba(31, 87, 230, 0.95), rgba(19, 173, 160, 0.95));
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
  .ad-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .search-container {
    display: none;
  }

  .header-right {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero-ad-content {
    padding: 0;
  }

  .hero-ad-link {
    background-size: cover;
    background-position: center;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .card-info {
    padding: 0.5rem;
  }

  .card-title {
    font-size: 0.75rem;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .page-numbers {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .video-player-wrapper {
    flex-direction: column;
  }

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

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

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(47, 107, 255, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(47, 107, 255, 0.45);
}

/* External Player (for restricted sources) */
.external-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.external-player-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.external-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.external-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.external-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.95), rgba(34, 197, 184, 0.95));
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.external-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.3);
}

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