/* ==========================================================================
   PYINNYARPARAMI (ပညာပါရမီ) — Sacred Burmese Theravada Editorial Theme
   Global Custom Font: TU001_Pann_Yeat.ttf
   ========================================================================== */

@font-face {
  font-family: "PannYeat";
  src: url("/static/fonts/TU001_Pann_Yeat.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --maroon-950: #22060f;
  --maroon-900: #350d17;
  --maroon-800: #4c1523;
  --maroon-700: #681f32;
  --gold-500: #d4af37;
  --gold-400: #e5c668;
  --gold-200: #f6e7b8;
  --cream-50: #fcf9f4;
  --cream-100: #f6efe4;
  --cream-200: #eadfce;
  --ink-900: #1e1412;
  --ink-700: #463530;
  --ink-500: #74625b;
  --border-subtle: rgba(104, 31, 50, 0.14);
  --shadow-sm: 0 4px 14px rgba(36, 7, 16, 0.08);
  --shadow-md: 0 12px 28px rgba(36, 7, 16, 0.14);
  --shadow-lg: 0 22px 46px rgba(36, 7, 16, 0.22);
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-global: "PannYeat", "Pyidaungsu", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-global);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-global);
  color: var(--ink-900);
  background:
    radial-gradient(circle at top center, rgba(212, 175, 55, 0.12), transparent 46%),
    var(--cream-50);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.has-mini-player {
  padding-bottom: 84px;
}

button,
input,
select,
textarea {
  font-family: var(--font-global);
}

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

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

/* Selective typographic balance per modern-web-guidance */
h1, h2, h3 {
  text-wrap: balance;
  margin-top: 0;
}

.intro-copy {
  text-wrap: pretty;
}

/* ── Top Navigation Bar ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(53, 13, 23, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--cream-50);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-sm {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-mm {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-200);
  letter-spacing: 0.02em;
}

.brand-en {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 231, 184, 0.74);
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: rgba(252, 249, 244, 0.86);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-pill:hover,
.nav-pill.is-active {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-200);
}

.nav-pill.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Main Container ──────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ── Landing Hero ────────────────────────────────────────────────────────── */
.landing-hero {
  min-height: calc(100dvh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.hero-card {
  width: 100%;
  max-width: 780px;
  text-align: center;
  padding: 3.25rem 2.25rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #faf4ea 100%);
  border: 1px solid rgba(212, 175, 55, 0.34);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--maroon-900), var(--gold-500), var(--maroon-900));
}

.hero-logo-wrap {
  width: 138px;
  height: 138px;
  margin: 0 auto 1.4rem;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--maroon-800), var(--gold-400));
  box-shadow: 0 14px 34px rgba(53, 13, 23, 0.25);
}

.hero-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero-title-mm {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  color: var(--maroon-900);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.hero-title-en {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8c6b1c;
  font-weight: 700;
  margin: 0 0 1.4rem;
}

.hero-divider {
  width: 120px;
  height: 2px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.hero-intro {
  max-width: 600px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  color: var(--ink-700);
  line-height: 1.95;
}

.hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.2rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: rgba(53, 13, 23, 0.06);
  border: 1px solid rgba(104, 31, 50, 0.12);
  color: var(--maroon-800);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 240px;
  padding: 1rem 1.7rem;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--maroon-900) 0%, var(--maroon-700) 100%);
  color: var(--gold-200);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 10px 24px rgba(53, 13, 23, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(53, 13, 23, 0.32);
  background: linear-gradient(135deg, var(--maroon-800) 0%, #7d253c 100%);
}

.btn-video {
  background: linear-gradient(135deg, #f7ecd5 0%, #edd9aa 100%);
  color: var(--maroon-900);
  border-color: rgba(176, 137, 36, 0.55);
  box-shadow: 0 10px 24px rgba(53, 13, 23, 0.12);
}

.btn-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(53, 13, 23, 0.2);
  background: linear-gradient(135deg, #fbf3e2 0%, #f3e2b8 100%);
}

.btn-disabled {
  background: #ece5db;
  color: #8c7e76;
  border-color: #d8cec1;
  cursor: not-allowed;
  opacity: 0.78;
}

.btn-badge {
  font-size: 0.74rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(116, 98, 91, 0.16);
  color: #6a5d56;
  font-weight: 600;
}

/* ── Breadcrumbs & Page Headers ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-bottom: 1.15rem;
}

.breadcrumb a:hover {
  color: var(--maroon-800);
  text-decoration: underline;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--maroon-900);
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.page-subtitle {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.95rem;
}

/* ── Filter & Search Bar ─────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-tab {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #fff;
  color: var(--ink-700);
  border: 1px solid var(--border-subtle);
  transition: all 0.16s ease;
}

.filter-tab:hover {
  border-color: var(--maroon-700);
  color: var(--maroon-900);
}

.filter-tab.is-active {
  background: var(--maroon-900);
  color: var(--gold-200);
  border-color: var(--maroon-900);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.search-input,
.section-select {
  font-size: 0.92rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(104, 31, 50, 0.22);
  background: #fff;
  color: var(--ink-900);
  outline: none;
}

.search-input {
  min-width: 230px;
}

.section-select {
  max-width: 280px;
}

.search-input:focus,
.section-select:focus {
  border-color: var(--maroon-700);
  box-shadow: 0 0 0 3px rgba(104, 31, 50, 0.12);
}

.search-btn {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  border: none;
  background: var(--maroon-900);
  color: var(--gold-200);
  cursor: pointer;
}

.search-btn:hover {
  background: var(--maroon-700);
}

/* ── 3:4 Card Grids (Sayadaws & SVG Audio Covers) ────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.35rem;
}

/* Per modern-web-guidance `defer-rendering-heavy-content`:
   Apply content-visibility: auto ONLY to below-the-fold cards, paired with contain-intrinsic-size */
.card-grid > :nth-child(n + 13) {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 310px;
}

/* ── Redesigned Sayadaw 3:4 Card (Crisp Corner Avatar + Clean Background) ── */
.sayadaw-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 1rem;
  background:
    radial-gradient(circle at 86% 14%, rgba(212, 175, 55, 0.16), transparent 44%),
    linear-gradient(155deg, #3c101d 0%, #270812 58%, #18040b 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sayadaw-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 9px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  pointer-events: none;
}

.sayadaw-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-500);
}

.sayadaw-card-ornament {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 0 18px rgba(212, 175, 55, 0.04);
  pointer-events: none;
}

.sayadaw-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.sayadaw-avatar-ring {
  width: 74px;
  height: 74px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), rgba(212, 175, 55, 0.35));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.42);
  flex-shrink: 0;
}

.sayadaw-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background: var(--maroon-950);
}

.sayadaw-card-badge {
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-200);
  border: 1px solid rgba(212, 175, 55, 0.36);
  white-space: nowrap;
}

.sayadaw-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #fffdf8;
}

.sayadaw-card-cat {
  font-size: 0.75rem;
  color: var(--gold-400);
  font-weight: 600;
}

.sayadaw-card-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fffdf8;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sayadaw-name-line {
  display: block;
}

.sayadaw-card-cta {
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 0.78rem;
  color: rgba(246, 231, 184, 0.8);
}

/* ── Sayadaw Detail Banner ───────────────────────────────────────────────── */
.sayadaw-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--maroon-900) 0%, #4b1525 100%);
  color: var(--cream-50);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.6rem;
}

.sayadaw-banner-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-500);
  flex-shrink: 0;
  background: var(--maroon-950);
}

.sayadaw-banner-info {
  flex: 1;
  min-width: 240px;
}

.sayadaw-banner-cat {
  font-size: 0.82rem;
  color: var(--gold-400);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.sayadaw-banner-name {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: #fffdf7;
  margin: 0 0 0.35rem;
  line-height: 1.45;
}

.sayadaw-banner-meta {
  font-size: 0.9rem;
  color: rgba(252, 249, 244, 0.82);
}

/* ── 3:4 Pure SVG Audio Cover Card ───────────────────────────────────────── */
.svg-cover-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  background: var(--maroon-950);
}

.svg-cover-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.svg-cover-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Top-center Sayadaw name broken ONLY at spaces */
.svg-fo-sayadaw {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f6df9e;
  font-family: var(--font-global);
  font-weight: 700;
  line-height: 1.42;
  padding: 2px 4px;
  overflow: hidden;
}

.svg-sayadaw-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.svg-sayadaw-line {
  display: block;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Left-aligned Date (above) + Dhamma Title (below) */
.svg-fo-body-left {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 4px 2px;
  overflow: hidden;
}

.svg-fo-date {
  font-family: var(--font-global);
  font-size: 11px;
  font-weight: 600;
  color: #e8c97a;
  letter-spacing: 0.03em;
  line-height: 1.35;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.svg-fo-title-left {
  width: 100%;
  color: #fffdf8;
  font-family: var(--font-global);
  font-weight: 700;
  line-height: 1.55;
  text-align: left;
  word-break: break-word;
  overflow: hidden;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

/* ── Dedicated Track Detail Page & Music Player Card ─────────────────────── */
.track-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}

.track-cover-wrap {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.track-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.music-player-card {
  background: linear-gradient(155deg, #350d17 0%, #240710 68%, #19040b 100%);
  color: #fffdf8;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.85rem;
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  box-shadow: var(--shadow-lg);
}

.player-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.player-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.track-uid-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-200);
  border: 1px solid rgba(212, 175, 55, 0.32);
}

.track-date-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6e7b8;
}

.player-min-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-200);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease;
}

.player-min-btn:hover {
  background: rgba(212, 175, 55, 0.22);
}

.track-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: #fffdf8;
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.track-sayadaw-link {
  display: inline-block;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.track-sayadaw-link:hover {
  text-decoration: underline;
}

/* Progress / Seek Bar */
.player-progress-wrap {
  margin-bottom: 1.25rem;
}

.player-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--gold-500) 0%,
    var(--gold-500) var(--seek-pct, 0%),
    rgba(255, 255, 255, 0.18) var(--seek-pct, 0%),
    rgba(255, 255, 255, 0.18) 100%
  );
  outline: none;
  cursor: pointer;
}

.player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-200);
  border: 2px solid var(--maroon-900);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.player-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(246, 231, 184, 0.8);
  margin-top: 0.45rem;
}

/* Main Transport Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.ctrl-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fffdf8;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ctrl-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-500);
  transform: scale(1.05);
}

.ctrl-btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.ctrl-skip {
  width: 54px;
  height: 54px;
  gap: 1px;
}

.skip-label {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-200);
}

.ctrl-play {
  width: 66px;
  height: 66px;
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--maroon-950);
  border: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.ctrl-play:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 100%);
  transform: scale(1.06);
}

/* Secondary Row */
.player-secondary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.player-vol-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.player-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-200);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.player-chip-btn:hover {
  background: rgba(212, 175, 55, 0.22);
}

.player-volume {
  width: 88px;
  accent-color: var(--gold-500);
  cursor: pointer;
}

/* Minimized Placeholder Notice */
.minimized-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1.5px dashed rgba(212, 175, 55, 0.65);
  box-shadow: var(--shadow-sm);
}

/* Metadata Card */
.track-meta-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.track-meta-list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-700);
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.track-meta-list strong {
  color: var(--ink-900);
}

.track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-sm {
  min-width: auto;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 10px;
}

.btn-outline {
  background: #fff;
  color: var(--maroon-900);
  border: 1.5px solid rgba(104, 31, 50, 0.28);
}

.btn-outline:hover {
  border-color: var(--maroon-800);
  background: var(--cream-100);
}

/* ── Floating Minimized Mini-Player Bar ──────────────────────────────────── */
.mini-player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(34, 6, 15, 0.97);
  backdrop-filter: blur(12px);
  color: #fffdf8;
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.35);
}

.mini-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.mini-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold-500);
  transition: width 0.2s linear;
}

.mini-player-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mini-track-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-500);
  flex-shrink: 0;
}

.mini-text {
  min-width: 0;
}

.mini-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fffdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-sub {
  font-size: 0.78rem;
  color: var(--gold-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.mini-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fffdf8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.mini-ctrl-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.25);
}

.mini-ctrl-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mini-play-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--gold-500);
  color: var(--maroon-950);
  border: none;
}

.mini-expand-btn {
  border-color: var(--gold-500);
  color: var(--gold-200);
}

/* ── Video Player Card & Floating Minimized Video Dock ───────────────────── */
.video-page-layout {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 960px;
  margin: 0 auto;
}

.video-player-card {
  background: linear-gradient(155deg, #350d17 0%, #240710 68%, #19040b 100%);
  color: #fffdf8;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem 1.75rem;
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  box-shadow: var(--shadow-lg);
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0d0306;
  border: 1px solid rgba(212, 175, 55, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dhamma-video-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
  cursor: pointer;
}

.mini-video-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 65;
  width: 320px;
  max-width: calc(100vw - 2rem);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(25, 4, 11, 0.97);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  color: #fffdf8;
}

body.has-mini-player .mini-video-dock {
  bottom: 5.5rem;
}

.mini-video-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.mini-video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
}

.mini-video-meta {
  min-width: 0;
  flex: 1;
}

.mini-video-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fffdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-video-sub {
  font-size: 0.72rem;
  color: var(--gold-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-video-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.mini-video-actions .mini-ctrl-btn {
  height: 30px;
  min-width: 30px;
  padding: 0 0.4rem;
  font-size: 0.76rem;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
}

.page-btn {
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--border-subtle);
  color: var(--ink-700);
}

.page-btn:hover {
  border-color: var(--maroon-700);
  color: var(--maroon-900);
}

.page-btn.is-active {
  background: var(--maroon-900);
  color: var(--gold-200);
  border-color: var(--maroon-900);
}

.page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--maroon-950);
  color: rgba(246, 231, 184, 0.74);
  text-align: center;
  padding: 1.4rem 1rem;
  font-size: 0.88rem;
  border-top: 1px solid rgba(212, 175, 55, 0.24);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 840px) {
  .track-layout {
    grid-template-columns: 1fr;
  }
  .track-cover-wrap {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-card {
    padding: 2.25rem 1.25rem;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .btn {
    width: 100%;
    min-width: 0;
  }
  .mini-player-inner {
    flex-wrap: wrap;
  }
}
