/*
Theme Name: theme video
Description: A modern premium video theme
Author: Antigravity
Version: 2.0
*/

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════ */
:root {
  --bg-dark: #0a0b10;
  --bg-surface: #111219;
  --bg-card: #171822;
  --bg-card-hover: #1e2030;
  --bg-elevated: #232636;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text-main: #eaf0f6;
  --text-secondary: #8b95a8;
  --text-muted: #5a6478;
  --accent-color: #e91e63;
  --accent-hover: #f06292;
  --accent-glow: rgba(233, 30, 99, 0.25);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.25);
  --blue: #6366f1;
  --blue-glow: rgba(99, 102, 241, 0.2);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Light Mode ── */
[data-theme="light"] {
  --bg-dark: #f0f2f5;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f6f8;
  --bg-elevated: #e8eaee;
  --border-color: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);
  --text-main: #1a1d26;
  --text-secondary: #4a5568;
  --text-muted: #8a94a6;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

[data-theme="light"] .main-navigation li a:hover,
[data-theme="light"] .main-navigation li a.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}
[data-theme="light"] .header-search input[type="text"] {
  color: #1e293b;
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .header-search button {
  background: var(--accent-color);
  color: white;
}
[data-theme="light"] .sv-player-wrap {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .sv-related-thumb {
  background: #e2e8f0;
}
[data-theme="light"] .sv-related-item {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .video-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .badge-subindo {
  box-shadow: 0 2px 10px rgba(0, 206, 201, 0.2);
}
[data-theme="light"] .aj-badge {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-secondary);
}
[data-theme="light"] .aj-dot {
  color: var(--text-muted);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: rotate(30deg);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-color);
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(10, 11, 16, 0.9);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid var(--border-color);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.site-branding .logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-branding .logo img,
.header-logo-img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  max-width: 200px;
}
.site-logo-text {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}
.site-logo-text span {
  color: var(--accent-color);
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-navigation li a {
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.main-navigation li a:hover,
.main-navigation li a.active {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}
.main-navigation li a i {
  font-size: 13px;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}
.dd-arrow {
  font-size: 10px !important;
  transition: transform 0.3s;
}
.has-dropdown.open .dd-arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  list-style: none;
  margin: 6px 0 0 0;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 0;
  color: var(--text-secondary);
}
.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

/* Header Actions (search, theme toggle, menu toggle) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Search Bar */
.header-search form {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
}
.header-search form:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(255, 255, 255, 0.08);
}
.header-search input[type="text"] {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 10px 16px;
  outline: none;
  width: 180px;
  font-size: 14px;
  font-family: var(--font);
}
.header-search input::placeholder {
  color: var(--text-muted);
}
.header-search button {
  background: var(--accent-color);
  border: none;
  color: white;
  cursor: pointer;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 14px;
}
.header-search button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Search Toggle (mobile only) */
.search-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-toggle:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════════════
   SITE CONTENT
   ═══════════════════════════════════════════════════ */
.site-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 48px) 60px;
}

/* ═══════════════════════════════════════════════════
   QUICK CATEGORY NAV
   ═══════════════════════════════════════════════════ */
.quick-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quick-nav::-webkit-scrollbar { display: none; }
.quick-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}
.quick-nav-item:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(233, 30, 99, 0.06);
}
.quick-nav-item.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.quick-nav-item i { font-size: 12px; }
.quick-nav-more {
  color: var(--text-muted);
  font-size: 12px;
}

/* Home Section Spacing */
.home-section {
  margin-top: 48px;
  padding-top: 10px;
}

/* ═══════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  letter-spacing: -0.3px;
  position: relative;
}
.section-title i {
  color: var(--accent-color);
  font-size: 17px;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid rgba(233, 30, 99, 0.25);
  border-radius: 50px;
  transition: var(--transition);
}
.section-link:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Old page-header compat */
.page-header {
  margin-bottom: 24px;
}
.widget-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.widget-title i {
  color: var(--accent-color);
  font-size: 17px;
}

/* ═══════════════════════════════════════════════════
   VIDEO GRID
   ═══════════════════════════════════════════════════ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .video-info {
    padding: 10px 10px 12px;
  }
  .video-title {
    font-size: 13px;
    margin: 0 0 6px 0;
    line-height: 1.4;
  }
  .video-aj-meta {
    font-size: 10px;
  }
  .aj-badge {
    font-size: 9px;
    padding: 2px 5px;
  }
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm, 10px);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--border-hover);
}
[data-theme="light"] .video-card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
[data-theme="light"] .video-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.video-card a {
  display: block;
  color: inherit;
}

/* Thumbnail */
.video-thumb {
  position: relative;
  padding-bottom: 140%;
  overflow: hidden;
  background: var(--bg-elevated);
}
.video-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s ease;
}
.video-card:hover .video-thumb img {
  transform: scale(1.08); /* slightly more zoom */
  filter: brightness(0.65) blur(1px); /* dark and blur on hover to make play button pop */
}

/* Play Button Overlay */
.thumb-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  background: rgba(233, 30, 99, 0.9); /* accent color */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 0;
  z-index: 4;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}
.thumb-play-overlay i {
  margin-left: 3px; /* visual center for play icon */
}
.video-card:hover .thumb-play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Gradient overlay on hover */
.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6; /* always show slight gradient for bottom badges */
  transition: opacity 0.3s;
}
.video-card:hover .video-thumb::after {
  opacity: 0.9;
}

/* Shimmer overlay effect on hover */
.video-thumb::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-20deg);
  z-index: 2;
  transition: none;
}
.video-card:hover .video-thumb::before {
  animation: shine 1s;
}
@keyframes shine {
  100% { left: 200%; }
}

/* Hover Preview Video */
.sv-preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.video-card:hover .sv-preview-video {
  opacity: 1;
}

/* Badges */
.video-meta-badges {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}
.badge {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge i {
  font-size: 10px;
}
.badge.accent {
  background: rgba(233, 30, 99, 0.8);
}

.badge-subindo {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 3;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 206, 201, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge-subindo i { font-size: 10px; }

.badge-code {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 3;
  text-transform: uppercase;
}

.badge-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge-duration i { font-size: 10px; color: var(--accent-color); }

.badge-updated {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(99, 102, 241, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge-updated i {
  font-size: 9px;
}

/* ── Video Info ── */
.video-info {
  padding: 12px 14px 14px;
  position: relative;
}
.video-title {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  color: var(--text-main);
  transition: color 0.2s;
  word-break: break-word;
}
.video-card:hover .video-title {
  color: var(--accent-color);
}

/* AreaJAV Meta info styling */
.video-aj-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.aj-year, .aj-duration {
  display: flex;
  align-items: center;
  gap: 4px;
}
.aj-year i, .aj-duration i {
  font-size: 10px;
  color: var(--text-secondary);
}
.aj-dot {
  opacity: 0.4;
  font-size: 14px;
  line-height: 1;
}
.aj-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.aj-badge i {
  font-size: 8px;
  color: var(--green);
}

/* Placeholder thumb */
.thumb-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  color: var(--text-muted);
  font-size: 26px;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════════
   SINGLE VIDEO PAGE — AREAJAV STYLE
   ═══════════════════════════════════════════════════ */
.sv-page {
}

/* Breadcrumbs (areajav style) */
.aj-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.aj-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}
.aj-breadcrumbs a:hover {
  color: var(--accent-color);
}
.aj-bc-sep {
  color: var(--text-muted);
  font-size: 12px;
}

/* Title (areajav style) */
.aj-single-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.3;
  color: var(--accent-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gallery Hover */
.aj-gallery-item:hover img {
  transform: scale(1.05) !important;
}

/* Notice Box */
.aj-notice-box {
  background: var(--bg-card);
  border-left: 3px solid #e74c3c;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.aj-notice-box i {
  color: #e74c3c;
  font-size: 16px;
}

/* Server Section (below player) */
.aj-server-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.aj-server-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.aj-server-section-header i {
  color: var(--accent-color);
  font-size: 13px;
}

/* Server Tabs */
.aj-server-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.aj-server-tabs .sv-server-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12.5px;
  font-family: var(--font);
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.aj-server-tabs .sv-server-btn i {
  font-size: 9px;
  opacity: 0.6;
  transition: opacity 0.25s;
}
.aj-server-tabs .sv-server-btn:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(233, 30, 99, 0.06);
}
.aj-server-tabs .sv-server-btn:hover i {
  opacity: 1;
}
.aj-server-tabs .sv-server-btn.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 2px 12px rgba(233, 30, 99, 0.3);
}
.aj-server-tabs .sv-server-btn.active i {
  opacity: 1;
}

/* Player Container */
.aj-player-container {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.sv-embed {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
}
.sv-embed iframe,
.sv-embed video {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: none;
  object-fit: contain;
}
.sv-no-video {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 12px;
}
.sv-no-video i {
  font-size: 48px;
  opacity: 0.2;
}
.sv-no-video p {
  margin: 0;
  font-size: 14px;
}

/* Two-Column Info Grid (areajav layout) */
.aj-info-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.aj-info-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aj-cover-img {
  width: 100%;
  aspect-ratio: 5/7;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.aj-info-right {
}
.aj-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.aj-description p {
  margin: 0;
}

/* Meta List (areajav Key: Value style) */
.aj-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aj-meta-list li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.aj-meta-label {
  color: var(--text-muted);
  min-width: 80px;
  flex-shrink: 0;
}
.aj-meta-value {
  color: var(--accent-color);
}
.aj-meta-value a {
  color: var(--accent-color);
  text-decoration: none;
}
.aj-meta-value a:hover {
  text-decoration: underline;
}
.aj-quality-badge {
  background: var(--accent-color);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

/* Download Section */
.aj-download-section {
  margin-bottom: 24px;
}
.aj-section-heading {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.aj-section-heading i {
  color: var(--accent-color);
}
.aj-download-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aj-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 16px;
}
.aj-dl-name {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.aj-dl-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}
.aj-dl-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* Preview Gallery */
.aj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.aj-gallery-item {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  padding-top: 66.66%;
  background: var(--bg-surface);
}
.aj-gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Lightbox */
.aj-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.aj-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.aj-lb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}
.aj-lb-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aj-lb-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.aj-lb-close,
.aj-lb-prev,
.aj-lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.aj-lb-close:hover,
.aj-lb-prev:hover,
.aj-lb-next:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}
.aj-lb-close {
  top: -22px;
  right: -22px;
}
.aj-lb-prev {
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}
.aj-lb-next {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 768px) {
  .aj-lb-prev {
    left: 10px;
  }
  .aj-lb-next {
    right: 10px;
  }
  .aj-lb-close {
    top: 10px;
    right: 10px;
  }
}

/* Tags Chips */
.aj-tags-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.aj-tag-chip {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}
.aj-tag-chip:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* Related Section */
.aj-related-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
  .aj-info-grid {
    grid-template-columns: 1fr;
  }
  .aj-info-left {
    align-items: center;
  }
  .aj-cover-img {
    max-width: 240px;
    margin: 0 auto;
  }
  .aj-server-tabs {
    flex-wrap: wrap;
  }
}

/* ═══════════════════════════════════════════════════
   SAFELINK PAGE
   ═══════════════════════════════════════════════════ */
.sl-wrapper {
  padding: 60px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.sl-box {
  max-width: 480px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.sl-box.sl-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.sl-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--accent-color);
}
.sl-icon-wrap.sl-success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}
.sl-icon-wrap.sl-error {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}
.sl-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px 0;
}
.sl-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 28px 0;
  line-height: 1.5;
}
.sl-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 0 0;
}
.sl-timer-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}
.sl-timer-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.sl-ring-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 6;
}
.sl-ring-progress {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.sl-timer-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-color);
}
.sl-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
}
.sl-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(233, 30, 99, 0.45);
  filter: brightness(1.1);
}
.sl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.sl-back-link:hover {
  color: var(--accent-color);
}
.sl-btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.sl-btn-home:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}
/* ═══════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════ */
.pagination {
  margin-top: 40px;
  text-align: center;
}
.pagination .nav-links {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}
.pagination a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(233, 30, 99, 0.08);
  transform: translateY(-1px);
}
.pagination .current {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════
   ARCHIVE ITEMS (Categories, Tags, Actors)
   ═══════════════════════════════════════════════════ */
.archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.archive-item {
  background: var(--bg-card);
  padding: 24px 20px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.archive-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: var(--transition);
}
.archive-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-color);
}
.archive-item:hover::before {
  transform: scaleX(1);
}
.archive-item h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
}
.archive-item .count {
  color: var(--text-muted);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 48px clamp(16px, 4vw, 48px) 0;
  text-align: left;
  color: var(--text-secondary);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

/* Flex Layout */
.footer-main {
  display: flex;
  gap: 60px;
  margin-bottom: 40px;
}
.footer-left {
  flex: 3;
}
.footer-right {
  flex: 1;
  min-width: 200px;
}

/* Left Column Styling */
.footer-brand-area {
  margin-bottom: 16px;
}
.footer-logo-img {
  max-width: 200px;
  height: auto;
}
.footer-brand {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
}
.footer-brand span {
  color: var(--accent-color);
}
.footer-site-link {
  font-size: 16px;
  margin-bottom: 8px;
}
.footer-site-link a {
  color: var(--text-main);
}
.footer-site-link a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}
.footer-description {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.footer-disclaimer {
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--text-muted);
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: var(--text-main);
  font-size: 20px;
  opacity: 0.8;
  transition:
    opacity 0.3s,
    color 0.3s;
}
.footer-social a:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* Right Column Links */
.footer-links-title {
  color: var(--text-main);
  font-size: 16px;
  margin: 0 0 16px 0;
  font-weight: 700;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links li a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
}
.footer-links li a:hover {
  color: var(--accent-color);
}

/* Copyright Bar */
.footer-copyright-bar {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}
.footer-copy a {
  color: var(--text-secondary);
}
.footer-copy a:hover {
  color: var(--accent-color);
}

/* ═══════════════════════════════════════════════════
   SAFELINK PAGE
   ═══════════════════════════════════════════════════ */
.safelink-ad-top,
.safelink-ad-bottom {
  width: 100%;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
  .sv-info-grid {
    grid-template-columns: 1fr;
  }
  .sv-sidebar .sv-card {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Header Mobile */
  .site-header {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 12px;
    gap: 0;
  }
  .site-header .site-branding {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .header-logo-img,
  .site-branding .logo img {
    max-height: 36px;
    max-width: 140px;
  }
  .site-logo-text {
    font-size: 17px;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .menu-toggle,
  .search-toggle {
    display: flex;
  }

  /* Hide full search bar on mobile, show toggle icon */
  .header-search {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    z-index: 998;
  }
  .header-search.mobile-open {
    display: block;
  }
  .header-search form {
    width: 100%;
  }
  .header-search input[type="text"] {
    width: 100%;
    flex: 1;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px 20px;
    margin: 0;
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      visibility 0.3s,
      opacity 0.3s,
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .main-navigation.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .main-navigation ul {
    flex-direction: column;
    gap: 4px;
  }
  .main-navigation li a {
    padding: 14px 16px;
    border-radius: var(--radius-xs);
    font-size: 15px;
    background: var(--bg-card);
  }
  .main-navigation li a:hover {
    background: var(--bg-card-hover);
  }

  /* Mobile Dropdown */
  .dropdown-menu {
    position: static;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 20px;
    margin: 4px 0 0 0;
    min-width: auto;
  }
  .has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .dropdown-menu li a {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Cover image centered on mobile */
  .aj-info-grid {
    grid-template-columns: 1fr;
  }
  .aj-info-left {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .aj-cover-img {
    width: 260px !important;
    max-width: 260px;
    height: 360px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
  }

  .site-content {
    padding: 16px 10px 40px;
  }

  .quick-nav {
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .quick-nav-item {
    padding: 6px 14px;
    font-size: 12px;
  }

  .home-section {
    margin-top: 32px;
  }

  .section-header {
    padding-bottom: 12px;
  }
  .section-title {
    font-size: 16px;
  }
  .section-title i {
    font-size: 14px;
  }
  .section-link {
    font-size: 12px;
    padding: 6px 12px;
  }

  .videos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .video-card {
    border-radius: 8px;
  }
  .video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  }
  .video-info {
    padding: 10px 8px 10px;
  }
  .video-title {
    font-size: 12px;
    -webkit-line-clamp: 2;
    line-height: 1.4;
    margin: 0 0 4px 0;
  }
  .video-meta, .video-aj-meta {
    font-size: 10px;
    gap: 4px;
    flex-wrap: wrap;
  }
  .aj-badge {
    font-size: 8px;
    padding: 2px 4px;
  }
  .video-thumb::after {
    display: none !important;
  }
  .video-duration {
    font-size: 8px;
    padding: 2px 3px;
    bottom: 3px;
    right: 3px;
  }
  .badge-subindo {
    font-size: 8px;
    padding: 3px 6px;
    top: 6px;
    left: 6px;
    gap: 3px;
    letter-spacing: 0.3px;
  }
  .badge-code {
    font-size: 8px;
    padding: 3px 5px;
    top: auto;
    bottom: 6px;
    right: 6px;
    letter-spacing: 0.3px;
    border: none;
  }
  .badge-updated {
    font-size: 8px;
    padding: 3px 5px;
    bottom: 6px;
    left: 6px;
    gap: 3px;
  }
  .badge-updated i { font-size: 7px; }
  .badge {
    font-size: 10px;
    padding: 3px 6px;
  }

  .sv-title {
    font-size: 17px;
  }
  .aj-single-title {
    font-size: 16px;
    line-height: 1.3;
  }
  .sv-card {
    padding: 16px;
  }
  .sv-meta {
    gap: 10px;
  }
  .sv-controls {
    padding: 12px 14px;
    gap: 10px;
  }
  .sv-control-group {
    gap: 8px;
  }
  .sv-control-label {
    min-width: auto;
    font-size: 11px;
  }
  .sv-server-btn,
  .sv-dl-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  .sv-related-thumb {
    width: 110px;
    min-width: 110px;
  }

  .section-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .pagination .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 32px 16px 0;
  }
  .footer-main {
    flex-direction: column;
    gap: 32px;
  }
  .footer-left,
  .footer-right {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-brand {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .video-info {
    padding: 10px 10px 12px;
  }
  .video-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-height: 1.4;
    margin: 0 0 5px 0;
  }
  .video-aj-meta {
    font-size: 10px;
    gap: 4px;
  }
  .video-meta-badges {
    bottom: 6px;
    left: 6px;
    right: 6px;
  }
  .badge {
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
  }
  .badge-subindo {
    font-size: 8px;
    padding: 3px 6px;
    top: 6px;
    left: 6px;
    border-radius: 4px;
  }
  .badge-code {
    font-size: 8px;
    padding: 2px 5px;
    bottom: 6px;
    right: 6px;
    border-radius: 4px;
  }

  /* Play overlay smaller on mobile */
  .thumb-play-overlay {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Section header stack on small mobile */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 14px;
  }
  .section-title {
    font-size: 16px;
  }

  /* Pagination smaller */
  .pagination {
    margin-top: 24px;
  }
  .pagination .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
  .pagination a,
  .pagination span {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  /* Smaller cover on tiny screens */
  .aj-cover-img {
    width: 220px !important;
    max-width: 220px;
    height: 300px;
  }
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.video-card {
  animation: fadeInUp 0.4s ease both;
}
.video-card:nth-child(1) {
  animation-delay: 0s;
}
.video-card:nth-child(2) {
  animation-delay: 0.05s;
}
.video-card:nth-child(3) {
  animation-delay: 0.1s;
}
.video-card:nth-child(4) {
  animation-delay: 0.15s;
}
.video-card:nth-child(5) {
  animation-delay: 0.2s;
}
.video-card:nth-child(6) {
  animation-delay: 0.25s;
}
.video-card:nth-child(7) {
  animation-delay: 0.3s;
}
.video-card:nth-child(8) {
  animation-delay: 0.35s;
}

/* Scroll-padding for sticky nav */
html {
  scroll-padding-top: 80px;
}

/* ═══════════════════════════════════════════════════
   ADVERTISEMENT WRAPPERS (2 COLUMNS)
   ═══════════════════════════════════════════════════ */
.sv-ad-container,
.sl-ad {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.sv-ad-container > *,
.sl-ad > * {
  max-width: 100%;
}

@media (min-width: 768px) {
  .sv-ad-container > *,
  .sl-ad > * {
    /* If there are two ads, they take up 50% max each */
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 8px);
  }
  /* If there is only ONE ad, it takes up full natural width */
  .sv-ad-container > *:only-child,
  .sl-ad > *:only-child {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════
   SORT FILTER DROPDOWN (Custom)
   ═══════════════════════════════════════════════════ */
.aj-sort-form {
  display: flex;
  justify-content: flex-end;
}
.aj-sort-form .sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.aj-sort-form .sort-label {
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
}

/* Dropdown wrapper */
.sort-dropdown {
  position: relative;
  z-index: 50;
}

/* Toggle button */
.sort-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  white-space: nowrap;
}
.sort-toggle:hover {
  border-color: var(--accent-color);
}
.sort-toggle .sort-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.3s ease;
  opacity: 0.5;
}
.sort-dropdown.open .sort-toggle {
  border-color: var(--accent-color);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.sort-dropdown.open .sort-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown list */
.sort-list {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 100%;
  width: max-content;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.sort-dropdown.open .sort-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* List items */
.sort-item {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.sort-item:hover {
  background: var(--bg-secondary);
  color: var(--text-color);
}
.sort-item.active {
  color: var(--accent-color);
  font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .aj-sort-form {
    justify-content: flex-start;
  }
  .aj-sort-form .sort-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 6px;
  }
  .sort-dropdown {
    width: 100%;
  }
  .sort-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .sort-list {
    right: 0;
    min-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════
   BREADCRUMBS (SINGLE PAGE)
   ═══════════════════════════════════════════════════ */
.aj-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  white-space: nowrap;
  margin-bottom: 12px;
  font-size: 14px;
}

.aj-breadcrumbs a {
  flex-shrink: 0;
  color: var(--accent-color);
  text-decoration: none;
}
.aj-breadcrumbs a:hover {
  text-decoration: underline;
}

.aj-breadcrumbs .aj-bc-sep {
  flex-shrink: 0;
  margin: 0 8px;
  color: var(--text-muted);
}

.aj-breadcrumbs .aj-bc-current {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   SHARE BUTTONS
   ═══════════════════════════════════════════════════ */
.sv-share-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.sv-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sv-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm, 8px);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-primary, 'Inter', sans-serif);
  text-decoration: none;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sv-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  filter: brightness(1.1);
}
.sv-share-btn i { font-size: 16px; }
.sv-share-telegram { background: #0088cc; }
.sv-share-twitter { background: #1d1d1d; border: 1px solid #333; }
.sv-share-whatsapp { background: #25d366; color: #fff; }
.sv-share-copy { background: rgba(255,255,255,0.08); border: 1px solid var(--border-color); color: var(--text-secondary, #aaa); }
.sv-share-copy:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }

@media (max-width: 500px) {
  .sv-share-buttons { gap: 8px; }
  .sv-share-btn { padding: 8px 14px; font-size: 13px; flex: 1; justify-content: center; min-width: calc(50% - 8px); }
}

/* ═══════════════════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════════════════ */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9990;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-color, #e91e63);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}
