/* ============================
   ZONA PRIVADA PLAY — styles
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&family=Poppins:wght@400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --text-primary: #1a1a2e;
  --text-muted: #6b7280;
  --border: rgba(0,0,0,0.08);
  --card-bg: #ffffff;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.10);
  --card-shadow-hover: 0 10px 36px rgba(0,0,0,0.16);
  --radius: 20px;
  --radius-sm: 12px;
}

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

body {
  min-height: 100vh;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
}

/* ── Decorative blobs (pure CSS, no images) ── */
body::before {
  content: '';
  position: fixed;
  width: 420px; height: 420px;
  top: -160px; left: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  width: 380px; height: 380px;
  bottom: -130px; right: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* Extra blobs injected in HTML */
.blob-tr {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  width: 280px; height: 280px;
  top: -70px; right: 40px;
  background: radial-gradient(circle, rgba(52,211,153,0.15) 0%, transparent 70%);
}
.blob-bl {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  width: 320px; height: 320px;
  bottom: 40px; left: -100px;
  background: radial-gradient(circle, rgba(251,113,133,0.13) 0%, transparent 70%);
}
/* Dot grid overlay */
.dot-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.065) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* All content above decorations */
.site-header, main, .folder-page-header, .watch-container {
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.site-header {
  text-align: center;
  padding: 44px 20px 30px;
}

.site-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(1.7rem, 6vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 40%, #f97316 70%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 6px;
}

.title-divider {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 12px auto 0;
}
.title-divider span { display: block; height: 4px; border-radius: 2px; }
.title-divider span:nth-child(1) { width: 30px; background: #6366f1; }
.title-divider span:nth-child(2) { width: 18px; background: #ec4899; }
.title-divider span:nth-child(3) { width: 10px; background: #f97316; }

/* ── Folder Grid ── */
.folders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ── Folder Card ── */
.folder-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 14px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}
.folder-card:hover, .folder-card:active {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.folder-icon { width: 86px; height: 72px; flex-shrink: 0; }
.folder-icon svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 5px 12px var(--folder-shadow, rgba(0,0,0,0.18)));
}

.folder-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  color: #1a1a2e;
}
.folder-count { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

/* ── Back button ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 100px;
  padding: 8px 18px;
  color: #374151;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
  margin-bottom: 20px;
}
.back-btn:hover { background: #e5e7eb; }

/* ── Folder page ── */
.folder-page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 32px 20px 16px;
  max-width: 680px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.folder-page-icon { width: 48px; height: 40px; flex-shrink: 0; }
.folder-page-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: 900;
  color: #1a1a2e;
}

/* ── Videos grid ── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.video-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
}
.video-card:hover, .video-card:active {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.12);
  transition: background 0.2s;
}
.video-card:hover .play-overlay { background: rgba(0,0,0,0.05); }

.play-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.play-icon svg { width: 15px; height: 15px; fill: #1a1a2e; margin-left: 2px; }

.video-info { padding: 10px 12px; }
.video-title {
  font-size: 0.82rem; font-weight: 600; line-height: 1.35; color: #1a1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Watch page ── */
.watch-container { max-width: 680px; margin: 0 auto; padding: 28px 16px 60px; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumb a { color: #6366f1; text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.5; }

.video-player-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}
.video-player-wrap iframe,
.video-player-wrap video {
  width: 100%; height: 100%; border: none; display: block;
}

.watch-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #1a1a2e;
}

/* ── Empty / error ── */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted); font-size: 0.92rem;
  grid-column: 1 / -1;
}

/* ── Spinner ── */
.spinner {
  display: flex; justify-content: center; padding: 60px;
  grid-column: 1 / -1;
}
.spinner::after {
  content: '';
  width: 34px; height: 34px;
  border: 3px solid rgba(0,0,0,0.08);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
