/* ═══════════════════════════════════════════════════════════════
   Aadhyatma Vignan Foundation
   Design: Light & Soft · Spiritual Content Platform
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Noto+Sans:wght@300;400;500;600&family=Noto+Sans+Devanagari:wght@300;400;500&display=swap');

/* ── Variables ───────────────────────────────────────────────── */
:root {
  /* Primary — Red */
  --orange: #DD1717;
  --orange-dark: #B81010;
  --orange-light: #E84343;
  --orange-bg: rgba(221, 23, 23, 0.08);

  /* Accent — Navy Blue */
  --navy: #0F4392;
  --navy-dark: #0A2F6B;
  --navy-light: #1A5CBF;
  --navy-bg: rgba(15, 67, 146, 0.08);

  /* Neutrals */
  --gray-body: #E8E8E8;
  --gray-band: #F0F0F0;
  --gray-mid: #CCCCCC;
  --gray-text: #888888;
  --dark: #151515;
  --dark-mid: #3A3A3A;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --border-hover: #CCCCCC;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);

  /* Shape & Type */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-head: 'Montserrat Alternates', 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans', 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Theme Override ─────────────────────────────────────── */
body.dark-theme {
  --gray-body: #0D0D0D;
  --gray-band: #181818;
  --gray-mid: #333333;
  --gray-text: #999999;
  --dark: #F0EDE8;
  --dark-mid: #C8C4BE;
  --white: #1C1C1C;
  --border: #2A2A2A;
  --border-hover: #444444;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65);
}

body.dark-theme .site-header {
  background: #141414;
  border-bottom-color: #2a2a2a;
}

body.dark-theme .video-card,
body.dark-theme .archive-card {
  background: #1E1E1E;
  border-color: #2E2E2E;
}

body.dark-theme .card-info {
  background: #1E1E1E;
}

body.dark-theme .hero {
  background: linear-gradient(135deg, #141414 0%, #1A1414 100%);
}

body.dark-theme .section-band {
  background: #141414;
}

body.dark-theme .cat-tabs-wrap,
body.dark-theme .subfilter-bar {
  background: #141414;
}

body.dark-theme .cat-tab {
  background: #1E1E1E;
  border-color: #2E2E2E;
  color: var(--dark-mid);
}

body.dark-theme .cat-tab:hover,
body.dark-theme .cat-tab.active {
  background: var(--orange);
  border-color: var(--orange-dark);
  color: #fff;
}

body.dark-theme input[type="search"],
body.dark-theme .header-search {
  background: #1E1E1E;
  border-color: #333;
  color: #F0EDE8;
}

body.dark-theme input[type="search"]::placeholder {
  color: #666;
}

body.dark-theme .dim-toggle-btn {
  background: #1E1E1E;
  border-color: #333;
  color: #C8C4BE;
}

body.dark-theme .theme-toggle-btn {
  background: #1E1E1E;
  border-color: #333;
  color: #C8C4BE;
}

body.dark-theme .theme-toggle-btn:hover {
  background: var(--orange-bg);
  color: var(--orange);
  border-color: var(--orange);
}

body.dark-theme .pip-player {
  background: #141414;
  border-color: #2a2a2a;
}

body.dark-theme .pip-info {
  background: #1A1A1A;
}

body.dark-theme .footer {
  background: #0A0A0A;
}

body.dark-theme .ebook-card {
  background: #1E1E1E;
  border-color: #2E2E2E;
}

body.dark-theme .playlist-card {
  background: #1E1E1E;
  border-color: #2E2E2E;
}

body.dark-theme .contact-card {
  background: #1E1E1E;
  border-color: #2E2E2E;
}

body.dark-theme .mobile-nav {
  background: #141414;
  border-bottom-color: #2a2a2a;
}

/* ── Theme Toggle Button ─────────────────────────────────────── */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--dark-mid);
  background: var(--gray-band);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.theme-toggle-btn:hover {
  background: var(--orange-bg);
  color: var(--orange);
  border-color: var(--orange);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--gray-body);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul,
ol {
  list-style: none;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9995;
  background: var(--white);
  border-bottom: 2px solid var(--orange);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.62rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.header-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--gray-body);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--dark);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.header-search input:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(221, 23, 23, 0.10);
}

.header-search input::placeholder {
  color: var(--gray-text);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-text);
  font-size: 14px;
  pointer-events: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--dark-mid);
  transition: background var(--transition), color var(--transition);
}

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

.nav-yt-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-head);
  transition: background var(--transition), transform var(--transition);
}

.nav-yt-btn:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

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

/* ── Mobile Nav Drawer ───────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 9994;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-inner {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-mid);
  transition: background var(--transition), color var(--transition);
}

.mobile-nav-link:hover {
  background: var(--orange-bg);
  color: var(--orange);
}

.mobile-nav-link.yt {
  background: var(--navy);
  color: var(--white);
  margin-top: 10px;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-head);
  border-radius: var(--radius-sm);
}

.mobile-nav-link.yt:hover {
  background: var(--navy-dark);
  color: var(--white);
}

/* ── Channel Banner ──────────────────────────────────────────── */
.channel-banner {
  display: none;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.hero-avatar {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--orange-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 3px solid var(--orange);
  overflow: hidden;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-info {
  flex: 1;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 0.86rem;
  color: var(--gray-text);
  margin-bottom: 14px;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--dark-mid);
  font-weight: 500;
}

.hero-stat-icon {
  color: var(--orange);
}

.hero-featured {
  flex-shrink: 0;
  width: 320px;
}

.featured-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.featured-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-card:hover .featured-thumb {
  transform: scale(1.04);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(221, 23, 23, 0.4);
  transition: transform var(--transition), background var(--transition);
}

.featured-card:hover .featured-play {
  transform: scale(1.1);
  background: var(--orange-dark);
}

.featured-title {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  font-size: 0.8rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ④ FEATURED "Start Here" label */
.featured-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-head);
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(221, 23, 23, 0.35);
}

/* ── Mandala Art Backgrounds ─────────────────────────────────── */
.hero-mandala {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  pointer-events: none;
  opacity: 0.055;
  z-index: 0;
}

.content-mandala-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
}

.main-content {
  position: relative;
}

.main-content-inner {
  position: relative;
  z-index: 1;
}

/* ── Section Band ────────────────────────────────────────────── */
.section-band {
  background: var(--gray-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}

.section-band-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-band-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-band-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--orange);
  border-radius: 2px;
}

.section-band-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#playlistSelect {
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--dark-mid);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
  max-width: 200px;
}

#playlistSelect:focus {
  border-color: var(--orange);
}

/* ── Category Tabs ───────────────────────────────────────────── */
.categories-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 66px;
  z-index: 90;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.categories-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-inner::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--dark);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  cursor: pointer;
}

.cat-tab:hover {
  color: var(--orange);
}

.cat-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.cat-tab .cat-icon {
  font-size: 15px;
}

.cat-tab .cat-count {
  background: var(--gray-band);
  color: var(--gray-text);
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-body);
}

.cat-tab.active .cat-count {
  background: var(--orange-bg);
  color: var(--orange-dark);
}

/* ── Subfilter Bar ───────────────────────────────────────────── */
.subfilter-bar {
  background: var(--gray-band);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: none;
}

.subfilter-bar.visible {
  display: block;
}

.subfilter-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subfilter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.subfilter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-text);
  font-family: var(--font-head);
  white-space: nowrap;
  min-width: 40px;
}

.subfilter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.subfilter-chip {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--dark-mid);
  background: var(--white);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.subfilter-chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.subfilter-chip.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange-dark);
}

/* ── Playlists Browser ───────────────────────────────────────── */
.playlists-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0 4px;
}

.playlists-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.playlists-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-mid);
}

.playlists-all-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--orange);
  border: 1.5px solid var(--orange);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.playlists-all-btn:hover {
  background: var(--orange);
  color: var(--white);
}

/* Playlists slider wrap with prev/next arrows */
.playlists-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.playlists-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 16px;
  cursor: grab;
}

.playlists-scroll.dragging {
  cursor: grabbing;
  user-select: none;
}

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

.playlist-slider-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--dark-mid);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.playlist-slider-btn:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: scale(1.08);
}

.playlist-slider-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.playlist-slider-btn.prev {
  margin-right: 10px;
}

.playlist-slider-btn.next {
  margin-left: 10px;
}

.playlist-card {
  flex-shrink: 0;
  width: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}

.playlist-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(221, 23, 23, 0.15);
}

.playlist-card.active {
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(221, 23, 23, 0.2);
}

.playlist-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-band);
  position: relative;
}

.playlist-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.playlist-card:hover .playlist-thumb {
  transform: scale(1.05);
}

.playlist-count-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.playlist-info {
  padding: 8px 10px 10px;
}

.playlist-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Location filter */
.playlist-location-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.playlist-location-filter .filter-label {
  font-size: 0.72rem;
  color: var(--gray-text);
  font-weight: 600;
  font-family: var(--font-head);
}

.pl-loc-btn {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--dark-mid);
  background: var(--gray-band);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.pl-loc-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.pl-loc-btn.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange-dark);
}

/* Playlists full grid view */
.playlists-grid-view {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.playlists-grid-view.visible {
  display: block;
}

.playlists-grid-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.playlists-grid-header h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.playlists-grid-header h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--orange);
  border-radius: 2px;
}

.playlists-grid-close {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--gray-text);
  background: var(--gray-band);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.playlists-grid-close:hover {
  background: var(--orange-bg);
  color: var(--orange);
  border-color: var(--orange);
}

.playlists-full-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.playlists-full-grid .playlist-card {
  width: 100%;
  flex-shrink: unset;
}

/* ── Main Content ────────────────────────────────────────────── */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.sort-select {
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--dark-mid);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.sort-select:focus {
  border-color: var(--orange);
}

/* ── Video Grid ──────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 20px;
}

.video-grid.shorts-grid {
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}

.shorts-grid .video-card .card-thumb-wrap {
  aspect-ratio: 9 / 16;
}

/* ── Video Card ──────────────────────────────────────────────── */
.video-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  animation: fadeInCard 0.35s ease both;
}

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

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--gray-band);
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.card-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--white);
  transform: scale(0.8);
  transition: transform var(--transition);
  box-shadow: 0 4px 16px rgba(221, 23, 23, 0.4);
}

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

.card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-head);
}

.card-body {
  padding: 14px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shorts-grid .card-title {
  font-size: 0.8rem;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--gray-text);
}

.card-views,
.card-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.card-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-text);
  transition: background var(--transition), color var(--transition);
}

.card-action-btn:hover {
  background: var(--gray-band);
  color: var(--orange);
}

.card-action-btn.share-wa:hover {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
}

/* ── NEW / SAVE Ribbons on Cards ─────────────────────────────── */
.card-new-ribbon {
  position: absolute;
  top: 12px;
  right: -28px;
  left: auto;
  width: 110px;
  background: var(--orange);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  font-family: var(--font-head);
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(45deg);
  z-index: 5;
}

.ebook-save-ribbon {
  position: absolute;
  top: 12px;
  left: -28px;
  width: 110px;
  display: none;
  background: var(--orange);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  font-family: var(--font-head);
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(221, 23, 23, 0.4);
  z-index: 5;
}

/* ── Loading Skeleton ────────────────────────────────────────── */
.skeleton {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.skeleton-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 14px;
}

.skeleton-line {
  height: 11px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line:last-child {
  width: 60%;
}

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

/* ═══════════════════════════════════════════════════════════════
   PIP (Picture-in-Picture) FLOATING PLAYER
   ═══════════════════════════════════════════════════════════════ */
.pip-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 35%;
  background: #1a1a1a;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  animation: pipSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pipSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pip-player.active {
  display: flex;
}

.pip-player.is-short {
  width: 220px;
}

.pip-player.minimized .pip-body {
  display: none;
}

.pip-player.minimized .pip-footer {
  display: none;
}

.pip-player.minimized {
  border-radius: 8px;
}

.pip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 14px;
  background: #111;
  cursor: grab;
  flex-shrink: 0;
}

.pip-header:active {
  cursor: grabbing;
}

.pip-title {
  flex: 1;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-head);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.pip-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.pip-btn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.pip-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.pip-btn.pip-close:hover {
  background: #d32f2f;
  color: var(--white);
}

.pip-btn.pip-minimize:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.pip-btn.pip-yt {
  color: rgba(255, 80, 80, 0.8);
}

.pip-btn.pip-yt:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #ff4444;
}

.pip-body {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  flex-shrink: 0;
}

.pip-player.is-short .pip-body {
  padding-bottom: 0;
  height: 380px;
}

.pip-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.pip-player.is-short .pip-body iframe {
  position: static;
  width: 100%;
  height: 380px;
}

.pip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #141414;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.pip-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.69rem;
  color: rgba(255, 255, 255, 0.38);
  overflow: hidden;
}

.pip-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pip-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pip-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
}

.pip-action-btn:hover {
  background: var(--orange);
  color: var(--white);
}

.pip-action-btn.pip-wa:hover {
  background: #25D366;
  color: var(--white);
}

body.pip-dragging {
  cursor: grabbing !important;
}

body.pip-dragging * {
  cursor: grabbing !important;
  pointer-events: none;
}

body.pip-dragging .pip-player {
  pointer-events: all;
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--gray-text);
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--dark-mid);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.875rem;
}

/* ── Load More ───────────────────────────────────────────────── */
.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.load-more-btn:hover {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(221, 23, 23, 0.28);
  transform: translateY(-2px);
}

.load-more-btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   eBOOK SECTION
   ═══════════════════════════════════════════════════════════════ */
.ebooks-section {
  background: var(--white);
  margin-top: 0;
  padding-bottom: 56px;
}

.ebooks-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.ebooks-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ebook-filter-btn {
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--gray-text);
  background: var(--gray-band);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.ebook-filter-btn:hover,
.ebook-filter-btn.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.ebooks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.ebook-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: fadeInCard 0.35s ease both;
}

.ebook-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ebook-cover {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f5f0eb 0%, #ede5d8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.ebook-cover-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.ebook-cover-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  gap: 10px;
}

.ebook-cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--orange);
  z-index: 1;
}

.ebook-cover-icon {
  font-size: 44px;
  opacity: 0.65;
}

.ebook-cover-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-mid);
  text-align: center;
  line-height: 1.4;
  max-height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.ebook-lang-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-head);
  z-index: 2;
}

.ebook-info {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ebook-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ebook-meta {
  font-size: 0.72rem;
  color: var(--gray-text);
  margin-bottom: 10px;
  margin-top: 4px;
}

.ebook-actions {
  display: flex;
  gap: 6px;
}

.ebook-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-head);
  transition: all var(--transition);
  cursor: pointer;
}

.ebook-btn.read {
  background: var(--orange);
  color: var(--white);
}

.ebook-btn.read:hover {
  background: var(--orange-dark);
}

.ebook-btn.download {
  background: var(--gray-band);
  color: var(--dark-mid);
  border: 1px solid var(--border);
}

.ebook-btn.download:hover {
  background: var(--orange-bg);
  color: var(--orange);
  border-color: var(--orange);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 24px 28px;
  position: relative;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-name {
  color: var(--white);
  font-size: 1.05rem;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand .logo-tagline {
  color: var(--orange);
}

.footer-brand p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 1);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  transition: background var(--transition), color var(--transition);
}

.social-btn:hover {
  background: var(--orange);
  color: var(--white);
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 1);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--orange-light);
}

.footer-bottom {
  max-width: 1400px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 1);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 1);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--orange-light);
}

/* ── Contact Section ─────────────────────────────────────────── */
.contact-section {
  background: var(--gray-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px 52px;
}

.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.contact-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.contact-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--dark-mid);
  background: var(--white);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.contact-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.contact-tab.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange-dark);
}

.contact-country-group {
  margin-bottom: 36px;
}

.contact-country-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange-bg);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}

.contact-card-city {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
}

.contact-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  margin-bottom: 2px;
}

.contact-card-name i {
  color: var(--orange);
  font-size: 15px;
}

.contact-card-phones {
  font-size: 0.72rem;
  color: var(--gray-text);
  line-height: 1.5;
  margin-bottom: 4px;
}

.contact-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.73rem;
  font-weight: 700;
  font-family: var(--font-head);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.contact-btn.call {
  background: var(--orange-bg);
  color: var(--orange-dark);
  border: 1px solid rgba(221, 23, 23, 0.2);
}

.contact-btn.call:hover {
  background: var(--orange);
  color: var(--white);
}

.contact-btn.wa {
  background: rgba(37, 211, 102, 0.1);
  color: #16a34a;
  border: 1px solid rgba(37, 211, 102, 0.22);
}

.contact-btn.wa:hover {
  background: #25D366;
  color: var(--white);
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: var(--white);
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  z-index: 10000;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease;
  opacity: 0;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Back to Top ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 16px rgba(221, 23, 23, 0.35);
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
  opacity: 0;
  transform: translateY(20px);
  z-index: 80;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

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

::-webkit-scrollbar-track {
  background: var(--gray-body);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-mid);
  border-radius: 3px;
}

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

/* ═══════════════════════════════════════════════════════════════
   CINEMA DIM MODE
   ═══════════════════════════════════════════════════════════════ */
.dim-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.dimmed .dim-overlay {
  opacity: 1;
  pointer-events: all;
}

.dim-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--dark-mid);
  background: var(--gray-band);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.dim-toggle-btn:hover {
  background: var(--orange-bg);
  color: var(--orange);
  border-color: var(--orange);
}

body.dimmed .dim-toggle-btn {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange-dark);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-featured {
    width: 280px;
  }

  .hero-mandala {
    width: 340px;
    height: 340px;
    right: -20px;
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-inner > :last-child {
    grid-column: 1 / -1;
  }

  .contact-regions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header-search {
    max-width: 240px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-featured {
    width: 100%;
    max-width: 440px;
  }

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

  .ebooks-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }

  .playlists-full-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .contact-regions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
    padding: 0 16px;
  }

  .header-search {
    display: none;
  }

  .nav-link:not(.nav-yt-btn) {
    display: none;
  }

  .nav-yt-btn {
    display: none;
  }

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

  .mobile-nav {
    display: block;
  }

  .hero-inner {
    padding: 24px 16px;
  }

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

  .hero-mandala {
    display: none;
  }

  .main-content {
    padding: 20px 16px 40px;
  }

  .ebooks-content {
    padding: 20px 16px 0;
  }

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

  .ebooks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-inner > :first-child,
  .footer-inner > :last-child {
    grid-column: 1 / -1;
  }

  .section-band {
    padding: 12px 16px;
  }

  .channel-banner {
    height: 100px;
  }

  .pip-player {
    width: 280px;
    bottom: 16px;
    right: 16px;
  }

  .pip-player.is-short {
    width: 190px;
  }

  .pip-player.is-short .pip-body {
    height: 330px;
  }

  .pip-player.is-short .pip-body iframe {
    height: 330px;
  }

  .subfilter-bar {
    padding: 10px 16px;
  }

  .contact-section {
    padding: 28px 16px 40px;
  }

  .contact-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
  }

  .playlists-grid-header,
  .playlists-full-grid {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 520px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .video-grid.shorts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ebooks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pip-player {
    width: calc(100vw - 32px);
    right: 16px;
  }

  .pip-player.is-short {
    width: 200px;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-tabs {
    gap: 6px;
  }

  .contact-tab {
    padding: 6px 14px;
    font-size: 0.78rem;
  }
}
