/* ============================================================
   Panchotsava — shared site styles
   Theme: deep cosmic navy + gold, echoing the channel's "5 Utsav"
   banner (music notes, film reel, starfield).
   ============================================================ */

:root {
  --bg-deep: #070b1f;
  --bg-navy: #0d1338;
  --bg-navy-2: #121a4a;
  --gold: #f0c05a;
  --gold-soft: #f7dfa0;
  --blue-glow: #5b7fff;
  --blue-glow-soft: #8fa6ff;
  --text-main: #f4f1e8;
  --text-dim: #b9c0e8;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(240, 192, 90, 0.25);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -10%, var(--bg-navy-2) 0%, var(--bg-navy) 45%, var(--bg-deep) 100%);
  color: var(--text-main);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
}

/* ---------- starfield background ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 80% 10%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1px 1px at 45% 35%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 15% 55%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1px 1px at 70% 90%, rgba(255,255,255,0.35), transparent 60%);
  background-repeat: repeat;
  background-size: 500px 500px;
  opacity: 0.8;
}

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

/* ---------- nav ---------- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw;
  position: relative;
  z-index: 5;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-soft);
  text-decoration: none;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand .note {
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- full-width decorative banner (index + gallery) ---------- */
.page-banner {
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.page-banner img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.85;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, #c98f2b 100%);
  color: #241705;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
  box-shadow: 0 8px 24px rgba(240, 192, 90, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(240, 192, 90, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--gold-soft);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(240, 192, 90, 0.08);
}

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 6vw 60px;
  color: rgba(185, 192, 232, 0.55);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.site-footer .made {
  margin-top: 6px;
  color: rgba(185, 192, 232, 0.35);
}

/* ============================================================
   HOME PAGE
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 6vw 60px;
  min-height: 78vh;
  justify-content: center;
}

/* Subtle decorative linework behind the hero text — flowing melody-line
   curves and a scatter of small points, standing in for a literal portrait.
   Kept abstract and low-opacity on purpose: the reference should read as
   "just a nice line drawing" at a glance, not announce an inspiration. */
.hero-linework {
  position: absolute;
  inset: -5% -5%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.hero-linework svg {
  width: 100%;
  height: 100%;
}

.hero-linework path {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.hero-linework .line-gold { stroke: var(--gold-soft); opacity: 0.55; }
.hero-linework .line-blue { stroke: var(--blue-glow-soft); opacity: 0.4; }

.hero-linework circle.dot {
  fill: var(--gold-soft);
  opacity: 0.5;
}

.hero-linework image.motif {
  opacity: 0.9;
}

/* Outline shapes used by the instrument/portrait motifs — stroke color and
   width are inherited from the wrapping <g>'s .line-gold/.line-blue class. */
.hero-linework g circle:not(.dot),
.hero-linework g ellipse,
.hero-linework g rect,
.hero-linework g path {
  fill: none;
}

@media (max-width: 640px) {
  .hero-linework { opacity: 0.25; }
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--blue-glow-soft);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  margin: 0;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 50%, var(--blue-glow-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}

.hero .devanagari {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
}

.hero p.tagline {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 22px 0 34px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-blurb {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 0 6vw;
  text-align: center;
  color: var(--text-dim);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.about-blurb h2 {
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  color: var(--gold);
  margin: 50px auto;
  max-width: 300px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */

.gallery-header {
  text-align: center;
  padding: 30px 6vw 10px;
}

.gallery-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--gold-soft);
  margin: 0 0 10px;
}

.gallery-header p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  padding: 26px 6vw 10px;
}

.search-box {
  width: min(420px, 90vw);
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

.search-box::placeholder {
  color: rgba(244, 241, 232, 0.4);
}

.search-box:focus {
  border-color: var(--gold);
}

/* #galleryGrid is now a vertical stack of labeled sections (see
   .gallery-section below) rather than one flat grid — grouping videos
   from the same performance/event together was a specific request,
   not just a visual nicety, so each section renders as its own block. */
.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 30px 6vw 80px;
}

.gallery-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-soft);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}

.gallery-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

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

.video-card:hover .thumb-wrap img {
  transform: scale(1.06);
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(7,11,31,0) 40%, rgba(7,11,31,0.75) 100%);
}

.play-badge svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-card:hover .play-badge svg {
  opacity: 1;
  transform: scale(1.08);
}

.video-info {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-main);
}

.video-title.loading {
  color: rgba(244, 241, 232, 0.35);
  font-style: italic;
  font-weight: 400;
}

.video-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.no-results {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 20px;
  grid-column: 1 / -1;
}

/* ---------- modal player ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 18, 0.9);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
}

.modal-overlay.open {
  display: flex;
}

.modal-inner {
  width: min(920px, 100%);
  position: relative;
}

.modal-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.modal-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: none;
  color: var(--gold-soft);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

@media (max-width: 640px) {
  .site-nav { padding: 18px 5vw; }
  .nav-links { gap: 16px; font-size: 0.85rem; }
}

/* ============================================================
   ADMIN PAGE (manage-25fde7.html)
   ============================================================ */

.admin-content {
  position: relative;
  z-index: 1;
  padding: 0 6vw 100px;
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- shared form controls ---------- */
.admin-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.admin-input:focus {
  border-color: var(--gold);
}

textarea.admin-input {
  resize: vertical;
  font-family: var(--font-body);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.admin-form .btn {
  align-self: flex-start;
}

.admin-form-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-form-inline .admin-input {
  flex: 1;
  min-width: 200px;
  width: auto;
}

.admin-optional {
  font-weight: 400;
  color: rgba(185, 192, 232, 0.5);
  font-size: 0.82rem;
}

.admin-hint {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: -6px 0 14px;
}

.admin-error {
  color: #ff9b8a;
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- login screen ---------- */
.admin-login {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.admin-login-box {
  width: min(360px, 90vw);
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.admin-login-box h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-soft);
  margin: 0 0 24px;
}

.admin-login-box form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-login-box .btn {
  align-self: stretch;
  justify-content: center;
}

.admin-login-box .admin-error {
  margin-top: 16px;
}

/* ---------- dashboard ---------- */
.admin-dashboard {
  padding-top: 30px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--gold-soft);
  margin: 0;
}

.admin-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 26px;
}

.admin-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-soft);
  margin: 0 0 18px;
}

/* ---------- sections list ---------- */
.admin-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
}

.admin-list-name {
  font-weight: 500;
  color: var(--text-main);
}

.admin-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-list-actions button {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.admin-list-actions button:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.admin-list-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-danger {
  color: #ff9b8a !important;
  border-color: rgba(255, 155, 138, 0.35) !important;
}

.admin-danger:hover {
  border-color: #ff9b8a !important;
  color: #ff9b8a !important;
}

/* ---------- all videos list ---------- */
.admin-video-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.admin-video-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
}

.admin-video-thumb {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #000;
}

.admin-video-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-video-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.admin-video-meta {
  color: var(--text-dim);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- inline edit form (replaces a video row) ---------- */
.admin-edit-form {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gold);
}

.admin-edit-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-edit-actions .btn {
  padding: 10px 22px;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .admin-video-row { flex-wrap: wrap; }
  .admin-video-thumb { width: 100%; aspect-ratio: 16 / 9; }
}
