:root {
  --maroon-deep: #190407;
  --maroon-dark: #26080c;
  --maroon-card: rgba(38, 12, 17, 0.92);
  --maroon-glass: rgba(30, 8, 12, 0.82);
  
  --sindoor: #d32f2f;
  --sindoor-glow: rgba(211, 47, 47, 0.45);
  
  --marigold: #e8a33d;
  --marigold-bright: #ffb84d;
  --gold-glow: rgba(255, 184, 77, 0.4);
  --gold-amber: #ffa000;
  
  --wa-green: #25D366;
  --wa-dark: #128C7E;
  --wa-glow: rgba(37, 211, 102, 0.45);
  
  --cream: #fff8ec;
  --cream-dim: #dfcca9;
  --text-muted: rgba(255, 248, 236, 0.7);
  
  --safe-bottom: env(safe-area-inset-bottom, 14px);
  --safe-top: env(safe-area-inset-top, 14px);
  
  --font-body: "Mukta", sans-serif;
  --font-festive: "Yatra One", "Rozha One", cursive, serif;
  --font-modern: "Outfit", sans-serif;
  
  --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 24px var(--gold-glow);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--cream);
  background-color: var(--maroon-deep);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* =========================================================
   BACKGROUND & AMBIENCE
   ========================================================= */
.bg-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 0;
  background-color: var(--maroon-deep);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  background-image: url("images/image_background.png");
  filter: saturate(1.15) brightness(0.9);
  transition: transform 10s ease, opacity 0.8s ease, visibility 0.8s ease;
}

@media (max-width: 1180px) {
  .bg-layer {
    background-image: url("images/chhath_puja_400x838.png");
  }
}

/* Live Background YouTube Video */
.bg-video-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  background: #000000;
}

body.live-video-active .bg-video-container {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

body.live-video-active .bg-layer {
  opacity: 0 !important;
  visibility: hidden !important;
}

body.live-video-active .bg-overlay {
  background: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.15) 0%, rgba(15, 2, 4, 0.4) 60%, rgba(10, 1, 3, 0.7) 100%);
}

.yt-bg-player,
.bg-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw; /* 16:9 ratio */
  min-height: 100dvh;
  min-width: 177.78dvh; /* 16:9 ratio */
  border: none;
  pointer-events: none;
}

.bg-video-ambient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 2;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 25%, rgba(255, 140, 0, 0.15) 0%, rgba(25, 4, 7, 0.65) 60%, rgba(15, 2, 4, 0.95) 100%);
  transition: background 0.6s ease;
}

.festive-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
}

/* =========================================================
   MAIN APP CONTAINER
   ========================================================= */
.app-container {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: calc(75px + var(--safe-top)) 18px calc(24px + var(--safe-bottom));
  gap: 20px;
}

/* =========================================================
   TOP NAVIGATION BAR (TRANSPARENT FLOATING CONTAINER)
   ========================================================= */
.top-navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  padding: calc(10px + var(--safe-top)) 18px 10px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.top-navbar-wrapper .top-bar {
  position: relative;
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: auto;
}

/* Time Widget (Single Line Layout with Interactive Hover) */
.time-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(38, 12, 17, 0.8);
  border: 1px solid rgba(255, 184, 77, 0.35);
  border-radius: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  z-index: 3;
}

.time-widget:hover {
  transform: translateY(-2px);
  background: rgba(48, 15, 22, 0.9);
  border-color: var(--marigold-bright);
  box-shadow: 0 6px 20px rgba(255, 184, 77, 0.25);
}

.time-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.time-main {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-modern);
  line-height: 1;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
}

.date-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-soft);
  line-height: 1;
  border-left: 1px solid rgba(255, 184, 77, 0.35);
  padding-left: 8px;
}

/* Top Center Mode Switcher, Nav & Language Switcher (Dead Center Positioned) */
.top-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: auto;
}

.top-actions {
  margin-left: auto;
  position: relative;
  z-index: 5;
}

/* Navigation Buttons (Home & About) */
.btn-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: rgba(38, 12, 17, 0.75);
  border: 1px solid rgba(255, 184, 77, 0.3);
  border-radius: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Hindi Song Nav Item with Festive Glowing Amber Tint */
.btn-hindi-song {
  text-decoration: none;
  background: linear-gradient(135deg, rgba(232, 163, 61, 0.22) 0%, rgba(38, 12, 17, 0.85) 100%);
  border: 1px solid rgba(255, 184, 77, 0.5);
  box-shadow: 0 4px 16px rgba(255, 160, 0, 0.15);
}

.btn-hindi-song .nav-icon {
  stroke: #ffc107;
}

.btn-hindi-song:hover {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.35) 0%, rgba(211, 47, 47, 0.4) 100%);
  border-color: #ffca28;
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(255, 184, 77, 0.4);
}

.btn-hindi-song.active {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.38) 0%, rgba(198, 40, 40, 0.6) 100%);
  border-color: var(--marigold-bright);
  box-shadow: 0 0 18px rgba(255, 184, 77, 0.55);
  color: #ffffff;
}

.btn-nav-item .nav-icon {
  stroke: var(--marigold-bright);
  transition: transform 0.2s ease;
}

.btn-nav-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 184, 77, 0.18);
  border-color: var(--marigold-bright);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 184, 77, 0.25);
}

.btn-nav-item:hover .nav-icon {
  transform: scale(1.15);
}

.btn-nav-item:active {
  transform: scale(0.95);
}

.btn-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  gap: 7px;
  padding: 7px 18px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  position: relative;
}

.btn-mode-toggle:hover {
  transform: translateY(-2px) scale(1.04);
}

.btn-mode-toggle:active {
  transform: scale(0.95);
}

.btn-mode-toggle .mode-text {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
}

/* Offline Mode (Default) - Red / Maroon Theme */
.btn-mode-toggle[data-mode="offline"] {
  background: linear-gradient(135deg, #FF3D00 0%, #D50000 55%, #8A0000 100%);
  border: 1px solid rgba(255, 215, 0, 0.55);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(213, 0, 0, 0.45);
}

.btn-mode-toggle[data-mode="offline"]:hover {
  background: linear-gradient(135deg, #FF5722 0%, #E50914 55%, #A00000 100%);
  box-shadow: 0 6px 24px rgba(255, 61, 0, 0.65), 0 0 12px rgba(255, 215, 0, 0.4);
}

/* Online Mode - Green / Emerald Theme with Live Pulse */
.btn-mode-toggle[data-mode="online"] {
  background: linear-gradient(135deg, #107C41 0%, #0B6A35 50%, #064E24 100%);
  border: 1px solid #2ae772;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(42, 231, 114, 0.5), 0 0 15px rgba(255, 215, 0, 0.4);
}

.btn-mode-toggle[data-mode="online"]:hover {
  background: linear-gradient(135deg, #14934d 0%, #0d7a3e 50%, #085e2c 100%);
  box-shadow: 0 6px 24px rgba(42, 231, 114, 0.65);
}

/* Language Toggle Button (Hindi / English) */
.btn-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  background: linear-gradient(135deg, #3A1040 0%, #220530 100%);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: #fff8eb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 215, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  position: relative;
}

.btn-lang-toggle:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, #5C1566 0%, #39084F 100%);
  box-shadow: 0 6px 22px rgba(255, 215, 0, 0.35);
  border-color: var(--marigold-bright);
}

.btn-lang-toggle:active {
  transform: scale(0.95);
}

.btn-lang-toggle .lang-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
}

/* Top Right Action Controls: Share Dropdown */
.top-actions {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 50;
}

.share-dropdown {
  position: relative;
  display: inline-block;
}

/* Main Share Trigger Button */
.btn-share-main {
  background: linear-gradient(135deg, #ff8c00 0%, #ff3d00 50%, #d81b60 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 18px rgba(255, 61, 0, 0.4), 0 0 10px rgba(255, 140, 0, 0.3);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 13.5px;
  cursor: pointer;
  outline: none;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.btn-share-main .share-icon-svg {
  stroke: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.btn-share-main:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffa726 0%, #ff5722 50%, #e91e63 100%);
  box-shadow: 0 6px 24px rgba(255, 61, 0, 0.6), 0 0 16px rgba(255, 167, 38, 0.5);
}

.btn-share-main:hover .share-icon-svg {
  transform: scale(1.15) rotate(-8deg);
}

.btn-share-main:active {
  transform: scale(0.95);
}

/* Floating Dropdown Menu (Transparent Container Centered under Share Button) */
.share-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 40px;
  padding: 8px 0 4px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px) scale(0.95);
  transform-origin: top center;
  transition: opacity 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0.22s;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
}

/* Hover & Focus / Open states */
.share-dropdown:hover .share-dropdown-menu,
.share-dropdown:focus-within .share-dropdown-menu,
.share-dropdown.open .share-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

/* Individual Share Menu Items matching the exact screenshot design */
.share-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  outline: none;
  text-align: center;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  text-decoration: none;
  width: auto;
}

.share-menu-item:hover {
  transform: translateY(-2px) scale(1.05);
}

.share-menu-item:active {
  transform: scale(0.95);
}

/* WhatsApp Option */
.share-menu-item.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.35);
}
.share-menu-item.btn-whatsapp .wa-icon {
  fill: #ffffff;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.share-menu-item.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae772 0%, #17a090 100%);
  box-shadow: 0 5px 18px rgba(37, 211, 102, 0.6);
}

/* Facebook Option */
.share-menu-item.btn-facebook {
  background: linear-gradient(135deg, #1877F2 0%, #0d5cb6 100%);
  box-shadow: 0 3px 12px rgba(24, 119, 242, 0.35);
}
.share-menu-item.btn-facebook .fb-icon {
  fill: #ffffff;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.share-menu-item.btn-facebook:hover {
  background: linear-gradient(135deg, #2884f9 0%, #156dd1 100%);
  box-shadow: 0 5px 18px rgba(24, 119, 242, 0.6);
}

/* Instagram Option */
.share-menu-item.btn-instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 3px 12px rgba(220, 39, 67, 0.35);
}
.share-menu-item.btn-instagram .insta-icon {
  fill: #ffffff;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.share-menu-item.btn-instagram:hover {
  filter: brightness(1.15);
  box-shadow: 0 5px 18px rgba(220, 39, 67, 0.6);
}

/* =========================================================
   HERO / LOGO SECTION
   ========================================================= */
.logo-container {
  position: relative;
  text-align: center;
  user-select: none;
  margin: auto 0;
  padding: 16px 0;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.divine-sun-halo {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, 85vw);
  height: min(380px, 85vw);
  background: radial-gradient(circle, rgba(255, 193, 7, 0.28) 0%, rgba(255, 143, 0, 0.12) 45%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: sunBreathe 6s ease-in-out infinite alternate;
  filter: blur(10px);
}

@keyframes sunBreathe {
  0% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

.logo {
  font-size: clamp(60px, 15vw, 142px);
  font-family: var(--font-festive);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 1.5px;
  margin: 0;
  padding-bottom: 2px;
  background: linear-gradient(135deg, #ffffff 0%, #ffe082 25%, #ffb300 50%, #ff8f00 75%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 25px rgba(255, 179, 0, 0.45));
  animation: goldShimmer 6s linear infinite, divineGlow 4s ease-in-out infinite alternate;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 35px rgba(255, 184, 77, 0.7));
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes divineGlow {
  0% { filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px rgba(255, 179, 0, 0.4)); }
  100% { filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 40px rgba(255, 184, 77, 0.65)); }
}

.tagline-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 6px 22px;
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.15) 0%, rgba(211, 47, 47, 0.2) 100%);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

.tagline-wrapper:hover {
  transform: translateY(-2px);
  border-color: var(--marigold-bright);
  box-shadow: 0 6px 24px rgba(255, 184, 77, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.tagline {
  font-family: var(--font-festive);
  font-size: clamp(19px, 4.2vw, 32px);
  color: #fff9ed;
  letter-spacing: 0.8px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 184, 77, 0.5);
}

/* 4 Days Festive Quick Indicator Pills */
.festive-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
}

.festive-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(46, 12, 18, 0.85) 0%, rgba(26, 6, 10, 0.9) 100%);
  border: 1px solid rgba(255, 184, 77, 0.35);
  border-radius: 30px;
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.festive-pill:hover {
  background: linear-gradient(135deg, rgba(255, 143, 0, 0.3) 0%, rgba(211, 47, 47, 0.3) 100%);
  border-color: var(--marigold-bright);
  color: #ffffff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 22px rgba(255, 184, 77, 0.35), 0 0 12px rgba(255, 143, 0, 0.25);
}

.festive-pill:active {
  transform: scale(0.96);
}

.pill-num {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff8f00, #d32f2f);
  color: #ffffff;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   MUSIC PLAYER
   ========================================================= */
.player-wrapper {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  z-index: 10;
}

#offlinePlayer {
  width: 100%;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(42, 10, 18, 0.95) 0%, rgba(20, 4, 9, 0.98) 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(255, 143, 0, 0.18),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#offlinePlayer:hover {
  border-color: rgba(255, 215, 0, 0.65);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(255, 184, 77, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

/* Cover / Vinyl Disc */
.offline-cover-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.offline-cover {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: radial-gradient(circle at 35% 35%, #ff9800 0%, #e65100 50%, #b71c1c 100%);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.55), inset 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.vinyl-center {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1a0407;
  border: 2.5px solid var(--marigold-bright);
  box-shadow: 0 0 6px rgba(255, 184, 77, 0.6);
}

.offline-cover.spinning {
  animation: rotateVinyl 8s linear infinite;
}

@keyframes rotateVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Song Meta Information */
.offline-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offline-song-title {
  font-size: clamp(14px, 2.5vw, 17px);
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  line-height: 1.25;
}

.offline-subtitle {
  font-size: 11.5px;
  color: var(--cream-dim);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Seek Bar & Progress */
.offline-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.offline-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  min-width: 28px;
  user-select: none;
  font-family: var(--font-modern);
  font-variant-numeric: tabular-nums;
}

.progress-bar-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  height: 16px;
}

.offline-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 6px;
  top: 5px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  margin: 0;
  z-index: 2;
  transition: height 0.15s ease;
}

.offline-progress:hover,
.progress-bar-container:hover .offline-progress {
  height: 8px;
  top: 4px;
}

/* Webkit / Chrome / Safari / Edge Thumb */
.offline-progress::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Pure solid white thumb on hover / active (No Glow) */
.offline-progress:hover::-webkit-slider-thumb,
.offline-progress:active::-webkit-slider-thumb,
.progress-bar-container:hover .offline-progress::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Firefox Thumb */
.offline-progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.offline-progress:hover::-moz-range-thumb,
.offline-progress:active::-moz-range-thumb,
.progress-bar-container:hover .offline-progress::-moz-range-thumb {
  transform: scale(1.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 5px;
  height: 6px;
  background: linear-gradient(90deg, #ff8f00, #ffb84d);
  border-radius: 10px;
  pointer-events: none;
  width: 0%;
  z-index: 1;
  box-shadow: none;
}

.progress-bar-container:hover .progress-fill,
.offline-progress:hover ~ .progress-fill {
  box-shadow: none;
}

/* Controls */
.offline-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.offline-control-btn,
.offline-extra-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.offline-control-btn:hover,
.offline-extra-btn:hover {
  color: var(--marigold-bright);
  background: rgba(255, 255, 255, 0.08);
}

.offline-control-btn:active,
.offline-extra-btn:active {
  transform: scale(0.88);
}

.offline-extra-btn.active {
  color: var(--marigold-bright);
  background: rgba(255, 184, 77, 0.2);
  border: 1px solid rgba(255, 184, 77, 0.4);
}

/* Simple Clean White Play/Pause Button */
.offline-play-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #120306;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
  padding: 0;
  position: relative;
  outline: none;
}

.offline-play-btn #playIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
  width: 100%;
  height: 100%;
  transform: translateX(1px);
  user-select: none;
  color: #120306;
}

.offline-play-btn.playing #playIcon,
#offlinePlayer.playing #playIcon {
  transform: translateX(0);
}

.offline-play-btn:hover {
  background: #f2f2f2;
  transform: scale(1.05);
}

.offline-play-btn:active {
  transform: scale(0.95);
}



/* Playlist Button */
.playlist-toggle-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 184, 77, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: var(--marigold-bright);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.playlist-toggle-btn:hover {
  background: rgba(255, 184, 77, 0.2);
  border-color: var(--marigold-bright);
}

/* =========================================================
   PLAYBACK SPEED DROPDOWN CONTROLLER
   ========================================================= */
.speed-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 40;
}

.offline-speed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  height: 28px;
  padding: 2px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 184, 77, 0.4);
  background: rgba(255, 184, 77, 0.1);
  color: var(--cream-soft);
  font-family: var(--font-modern);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  letter-spacing: 0.2px;
}

.offline-speed-btn:hover {
  background: rgba(255, 184, 77, 0.25);
  color: var(--marigold-bright);
  border-color: var(--marigold-bright);
  box-shadow: 0 0 12px rgba(255, 184, 77, 0.4);
  transform: translateY(-1px);
}

.offline-speed-btn:active {
  transform: scale(0.94);
}

.offline-speed-btn.custom-speed {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.35) 0%, rgba(216, 27, 96, 0.35) 100%);
  color: #ffffff;
  border-color: var(--marigold-bright);
  box-shadow: 0 0 10px rgba(255, 184, 77, 0.35);
}

.speed-caret-icon {
  width: 9px;
  height: 9px;
  stroke: currentColor;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0.85;
  flex-shrink: 0;
}

.speed-dropdown.open .offline-speed-btn,
.offline-speed-btn[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.3) 0%, rgba(216, 27, 96, 0.3) 100%);
  border-color: var(--marigold-bright);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 184, 77, 0.5);
}

.speed-dropdown.open .speed-caret-icon,
.offline-speed-btn[aria-expanded="true"] .speed-caret-icon {
  transform: rotate(180deg);
}

/* Floating Speed Dropdown Menu (Opens Upward) */
.speed-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  top: auto;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.95);
  transform-origin: bottom center;
  min-width: 86px;
  background: linear-gradient(145deg, rgba(42, 10, 18, 0.98) 0%, rgba(20, 4, 8, 0.99) 100%);
  border: 1px solid rgba(255, 184, 77, 0.45);
  border-radius: 14px;
  padding: 5px;
  box-shadow: 
    0 -14px 40px rgba(0, 0, 0, 0.9),
    0 0 25px rgba(255, 140, 0, 0.25),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0.22s;
  z-index: 999;
}

.speed-dropdown.open .speed-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.speed-options-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.speed-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--cream-soft);
  font-family: var(--font-modern);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
  user-select: none;
}

.speed-menu-item .speed-val {
  font-family: var(--font-modern);
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
  text-align: left;
}

.speed-menu-item .speed-check {
  font-size: 11px;
  font-weight: 800;
  color: var(--marigold-bright);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-left: 6px;
}

.speed-menu-item:hover {
  background: rgba(255, 184, 77, 0.18);
  border-color: rgba(255, 184, 77, 0.3);
  color: #ffffff;
  transform: translateX(2px);
}

.speed-menu-item.active {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.32) 0%, rgba(216, 27, 96, 0.28) 100%);
  border-color: rgba(255, 184, 77, 0.55);
  box-shadow: 0 0 10px rgba(255, 184, 77, 0.25);
}

.speed-menu-item.active .speed-val {
  color: var(--marigold-bright);
  font-weight: 800;
}

.speed-menu-item.active .speed-check {
  opacity: 1;
  transform: scale(1);
}

/* Volume Control */
.offline-volume {
  display: flex;
  align-items: center;
  gap: 6px;
}

.offline-volume-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.offline-volume-btn:hover {
  color: var(--marigold-bright);
  background: rgba(255, 255, 255, 0.08);
}

.offline-volume-btn svg {
  fill: currentColor;
}

.offline-volume-slider {
  --vol-percent: 100%;
  width: 96px;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, #ff8f00 0%, #ffb84d var(--vol-percent, 100%), rgba(255, 255, 255, 0.18) var(--vol-percent, 100%), rgba(255, 255, 255, 0.18) 100%);
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  transition: width 0.2s ease;
}

.offline-volume-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.offline-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.offline-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.offline-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
}

/* Equalizer */
.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.equalizer-bar {
  width: 2.5px;
  background-color: var(--marigold-bright);
  border-radius: 2px;
  height: 40%;
}

.playing .equalizer-bar:nth-child(1) { animation: bounce 0.8s ease-in-out infinite alternate 0.1s; }
.playing .equalizer-bar:nth-child(2) { animation: bounce 0.8s ease-in-out infinite alternate 0.3s; }
.playing .equalizer-bar:nth-child(3) { animation: bounce 0.8s ease-in-out infinite alternate 0.2s; }
.playing .equalizer-bar:nth-child(4) { animation: bounce 0.8s ease-in-out infinite alternate 0.4s; }

@keyframes bounce {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* =========================================================
   PLAYLIST MODAL DRAWER
   ========================================================= */
.playlist-modal {
  position: fixed;
  bottom: calc(132px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(560px, 94vw);
  max-height: min(440px, calc(100dvh - 220px));
  background: linear-gradient(135deg, rgba(38, 10, 16, 0.98) 0%, rgba(18, 5, 9, 0.98) 100%);
  border: 1px solid rgba(255, 184, 77, 0.4);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.playlist-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.playlist-title-wrap {
  display: flex;
  flex-direction: column;
}

.playlist-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--marigold-bright);
}

.playlist-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--marigold-bright);
  flex-shrink: 0;
}

.playlist-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playlist-close:hover {
  background: rgba(211, 47, 47, 0.3);
  color: #ffffff;
}

/* Playlist Search */
.playlist-search-wrap {
  position: relative;
  padding: 10px 18px 6px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 30px;
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.playlist-search-wrap:focus-within .search-icon {
  color: var(--marigold-bright);
  transform: scale(1.08);
}

.playlist-search-input {
  width: 100%;
  padding: 8px 34px 8px 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 184, 77, 0.25);
  border-radius: 20px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.playlist-search-input:focus {
  border-color: var(--marigold-bright);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(255, 184, 77, 0.2);
}

.search-clear-btn {
  position: absolute;
  right: 28px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 13px;
}

/* Playlist List */
.playlist-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px 14px;
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}

.playlist-list::-webkit-scrollbar {
  width: 5px;
}

.playlist-list::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 77, 0.3);
  border-radius: 10px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.playlist-item.active {
  background: rgba(255, 184, 77, 0.18);
  color: var(--marigold-bright);
  font-weight: 600;
  border-left: 4px solid var(--marigold-bright);
}

.playlist-item-num {
  font-size: 12px;
  color: var(--cream-dim);
  min-width: 20px;
  font-family: var(--font-modern);
}

.playlist-item-details {
  flex: 1;
  min-width: 0;
}

.playlist-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
}

.playlist-item-singer {
  font-size: 11px;
  color: var(--cream-dim);
}

.no-songs-found {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 30px 16px;
  color: var(--cream-dim);
  font-size: 14px;
}

.no-songs-icon {
  width: 18px;
  height: 18px;
  color: var(--marigold-bright);
  opacity: 0.85;
  flex-shrink: 0;
}

/* =========================================================
   4-DAYS FESTIVE RITUALS SECTION
   ========================================================= */
.festive-guide-section {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 32px));
  margin: 48px auto 24px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.section-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--marigold-bright);
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.15) 0%, rgba(211, 47, 47, 0.15) 100%);
  border: 1px solid rgba(255, 184, 77, 0.4);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-title-wrap h2 {
  font-family: var(--font-festive);
  font-size: clamp(26px, 5vw, 40px);
  color: var(--marigold-bright);
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 184, 77, 0.45);
}

.section-subtitle {
  font-size: clamp(13.5px, 2.5vw, 16px);
  color: var(--cream-dim);
}

.rituals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.ritual-card {
  position: relative;
  background: linear-gradient(135deg, rgba(42, 12, 19, 0.92) 0%, rgba(20, 5, 9, 0.95) 100%);
  border: 1px solid rgba(255, 184, 77, 0.32);
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 1.5px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.ritual-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--marigold-bright), transparent);
  opacity: 0.6;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.ritual-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 215, 0, 0.65);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 184, 77, 0.25);
}

.ritual-card:hover::before {
  opacity: 1;
  height: 4px;
}

.ritual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ritual-day-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff8f00 0%, #d32f2f 100%);
  padding: 4px 10px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

.ritual-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 6px rgba(255, 184, 77, 0.4));
  transition: transform 0.25s ease;
}

.ritual-card:hover .ritual-icon {
  transform: scale(1.2) rotate(6deg);
}

.ritual-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--marigold-bright);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.ritual-desc {
  font-size: 13.5px;
  color: rgba(255, 248, 236, 0.88);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}

.ritual-highlight {
  font-size: 12px;
  font-weight: 600;
  color: #fff9e6;
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  padding: 8px 12px;
  border-radius: 12px;
  border-left: 3.5px solid var(--marigold-bright);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   SURYA GAYATRI MANTRA & AARTI SECTION
   ========================================================= */
.devotional-mantra-section {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 32px));
  margin: 28px auto;
}

.mantra-card {
  position: relative;
  background: linear-gradient(135deg, rgba(48, 14, 22, 0.94) 0%, rgba(22, 5, 10, 0.96) 100%);
  border: 1px solid rgba(255, 215, 0, 0.42);
  border-radius: 26px;
  padding: 28px clamp(18px, 4vw, 36px);
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 143, 0, 0.16), inset 0 1px 1.5px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.mantra-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mantra-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}



.mantra-header h3 {
  font-family: var(--font-festive);
  font-size: clamp(20px, 4vw, 26px);
  color: var(--marigold-bright);
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.mantra-text {
  font-family: var(--font-festive);
  font-size: clamp(17px, 3.2vw, 22px);
  color: #ffffff;
  line-height: 1.85;
  margin: 14px 0 20px;
  letter-spacing: 0.6px;
  text-shadow: 0 0 18px rgba(255, 184, 77, 0.35);
}

.mantra-translation {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(13.5px, 2.2vw, 15.5px);
  font-style: italic;
  color: var(--cream-dim);
  margin-top: 12px;
  line-height: 1.65;
  text-shadow: none;
  font-weight: 500;
}

.mantra-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-copy-mantra,
.btn-share-mantra {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.btn-copy-mantra {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 184, 77, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-copy-mantra:hover {
  background: rgba(255, 184, 77, 0.25);
  border-color: var(--marigold-bright);
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(255, 184, 77, 0.3);
}

.btn-copy-mantra:active {
  transform: scale(0.95);
}

.btn-share-mantra {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-share-mantra:hover {
  background: linear-gradient(135deg, #2ae772 0%, #17a090 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
}

.btn-share-mantra:active {
  transform: scale(0.95);
}

/* =========================================================
   SEO CONTENT SECTION
   ========================================================= */
.seo-content {
  position: relative;
  z-index: 2;
  width: min(1020px, calc(100% - 32px));
  margin: 30px auto 40px;
  padding: 32px clamp(18px, 4vw, 42px);
  color: var(--cream);
  background: linear-gradient(135deg, rgba(38, 10, 16, 0.92) 0%, rgba(18, 5, 9, 0.95) 100%);
  border: 1px solid rgba(255, 184, 77, 0.28);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.seo-badge-wrap {
  margin-bottom: 8px;
}

.seo-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--marigold-bright);
  background: rgba(255, 184, 77, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 184, 77, 0.3);
}

.seo-content h2 {
  margin: 0 0 10px;
  color: var(--marigold-bright);
  font-size: clamp(20px, 3.5vw, 28px);
  line-height: 1.3;
}

.seo-content h2:not(:first-of-type) {
  margin-top: 28px;
}

.seo-content p {
  margin: 0 0 12px;
  color: rgba(255, 248, 236, 0.88);
  font-size: clamp(14px, 2vw, 16.5px);
  line-height: 1.75;
}

.seo-song-list {
  margin: 12px 0 16px;
  padding-left: 20px;
  color: rgba(255, 248, 236, 0.88);
  line-height: 1.8;
  columns: 2;
  column-gap: 36px;
}

.seo-song-list li {
  break-inside: avoid;
  margin-bottom: 6px;
  font-size: 14.5px;
}

.seo-faq-block {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-faq-block h3 {
  font-family: var(--font-modern);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--marigold-bright);
  margin: 8px 0 4px;
}

.seo-faq-block p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 248, 236, 0.9);
  margin-bottom: 8px;
}

.seo-footer-credit {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.seo-note {
  font-weight: 600;
  color: var(--marigold-bright) !important;
}

/* =========================================================
   DIVINE FESTIVE FOOTER
   ========================================================= */
.app-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 36px 18px calc(40px + var(--safe-bottom));
  margin-top: 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 3, 5, 0.85) 30%, rgba(12, 1, 2, 0.98) 100%);
  border-top: none;
  text-align: center;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 4px;
}

.footer-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 77, 0.45), transparent);
}

.footer-divider .divider-icon {
  font-size: 16px;
  color: var(--marigold-bright);
  filter: drop-shadow(0 0 6px rgba(255, 184, 77, 0.6));
}

.made-with-love {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cream-soft);
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.footer-heart-icon {
  fill: #ff2d46;
  filter: drop-shadow(0 0 8px rgba(255, 45, 70, 0.75));
  animation: heartPulse 1.4s ease-in-out infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.22);
  }
}

.author-name {
  color: var(--marigold-bright);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.copyright-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--cream-dim);
  letter-spacing: 0.4px;
  line-height: 1.6;
}

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */
.toast-notification {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #ff8f00, #d32f2f);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
  max-width: 90vw;
}

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

/* =========================================================
   RESPONSIVE DESIGN BREAKPOINTS FOR ALL DEVICES
   (Vivo V60 / V60e, Nothing Phone 3a / 2a, iPhone 12/13/14/15/16/SE,
    Samsung Galaxy, Tablets & All Screen Sizes)
   ========================================================= */

/* Tablets & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
  .rituals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .seo-song-list {
    column-gap: 24px;
  }
}

/* Medium Tablets & Mobile Landscape / Phablets (601px - 860px) */
@media (max-width: 860px) {
  .top-navbar-wrapper {
    padding: calc(6px + var(--safe-top)) clamp(10px, 3vw, 16px) 6px;
  }

  .top-navbar-wrapper .top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .time-widget {
    order: 1;
    padding: 6px 14px;
  }

  .top-actions {
    order: 2;
    margin-left: auto;
  }

  .top-center {
    order: 3;
    position: static;
    transform: none;
    width: 100%;
    max-width: 540px;
    margin: 2px auto 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 6px;
    z-index: 2;
  }

  .btn-nav-item,
  .btn-mode-toggle,
  .btn-lang-toggle {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    text-align: center;
    box-sizing: border-box;
  }

  .btn-nav-item span,
  .btn-mode-toggle .mode-text,
  .btn-lang-toggle .lang-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .share-dropdown-menu {
    left: auto;
    right: 0;
    transform: translateY(-8px) scale(0.92);
    transform-origin: top right;
  }

  .share-dropdown:hover .share-dropdown-menu,
  .share-dropdown:focus-within .share-dropdown-menu,
  .share-dropdown.open .share-dropdown-menu {
    transform: translateY(0) scale(1);
  }

  .app-container {
    padding-top: calc(88px + var(--safe-top));
    padding-bottom: calc(20px + var(--safe-bottom));
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .logo-container {
    margin: auto 0;
    padding: 10px 0;
    flex-shrink: 0;
  }

  .player-wrapper {
    margin-top: auto;
    margin-bottom: calc(8px + var(--safe-bottom));
    width: 100%;
    flex-shrink: 0;
  }

  #offlinePlayer {
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto auto;
    padding: 12px 14px;
    border-radius: 24px;
    gap: 8px 12px;
  }

  .offline-cover-wrapper {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 46px;
    height: 46px;
  }

  .offline-info {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .offline-controls {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
  }

  .offline-play-btn {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }
  .offline-play-btn #playIcon {
    font-size: 19px;
  }

  .offline-control-btn,
  .playlist-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .offline-speed-btn {
    min-width: 38px;
    height: 26px;
    font-size: 10.5px;
    padding: 1px 6px;
    gap: 3px;
  }

  .speed-dropdown-menu {
    min-width: 160px;
    padding: 5px;
  }

  .speed-menu-item {
    padding: 5px 8px;
    font-size: 11.5px;
  }

  .offline-volume-slider {
    width: clamp(65px, 12vw, 90px);
    height: 7px;
  }

  .offline-volume-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
  }

  .offline-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
  }

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

  .playlist-modal {
    bottom: calc(140px + var(--safe-bottom));
    max-height: min(420px, calc(100dvh - 220px));
  }

  .seo-song-list {
    columns: 1;
  }
}

/* Standard Mobile Devices (Vivo V60, Vivo V60e, Nothing Phone 3a/2a, iPhone 12/13/14/15/16) (<= 600px) */
@media (max-width: 600px) {
  .top-navbar-wrapper {
    padding: calc(6px + var(--safe-top)) clamp(8px, 2.5vw, 12px) 6px;
  }

  .top-navbar-wrapper .top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
  }

  .time-widget {
    order: 1;
    padding: 5px 11px;
    gap: 6px;
    border-radius: 30px;
  }

  .time-main {
    font-size: 13.5px;
    font-weight: 700;
  }

  .date-sub {
    font-size: 11px;
    padding-left: 6px;
  }

  .top-actions {
    order: 2;
    margin-left: auto;
  }

  .btn-action,
  .btn-share-main {
    padding: 5px 12px;
    font-size: 12px;
    gap: 5px;
    border-radius: 30px;
  }

  .share-dropdown-menu {
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    padding: 5px 6px;
    gap: 5px;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 30px;
    background: rgba(30, 8, 12, 0.96);
    border: 1px solid rgba(255, 184, 77, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  }

  .share-menu-item {
    padding: 6px 10px;
    font-size: 11.5px;
    gap: 4px;
    border-radius: 20px;
    flex-shrink: 0;
  }



  .top-center {
    order: 3;
    position: static;
    transform: none;
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 5px;
    margin: 1px 0 0;
  }

  .btn-nav-item,
  .btn-mode-toggle,
  .btn-lang-toggle {
    width: 100%;
    min-width: 0;
    height: 33px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 700;
    gap: 3px;
    border-radius: 24px;
  }

  .btn-nav-item .nav-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .btn-nav-item span,
  .btn-mode-toggle .mode-text,
  .btn-lang-toggle .lang-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .app-container {
    padding-top: calc(82px + var(--safe-top));
    padding-bottom: calc(16px + var(--safe-bottom));
    padding-left: clamp(8px, 2.5vw, 14px);
    padding-right: clamp(8px, 2.5vw, 14px);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
  }

  .logo-container {
    margin: auto 0;
    padding: 8px 0;
  }

  .logo {
    font-size: clamp(40px, 13vw, 74px);
    line-height: 1.2;
    letter-spacing: 0.6px;
    margin-bottom: 0;
    padding-bottom: 4px;
  }

  .tagline-wrapper {
    margin-top: 15px;
    padding: 7px 22px;
  }

  .tagline {
    font-size: clamp(15.5px, 4.6vw, 22px);
    line-height: 1;
  }

  .festive-pills {
    gap: 5px;
    margin-top: 10px;
  }

  .festive-pill {
    padding: 4px 10px;
    font-size: 11px;
  }

  .player-wrapper {
    width: 100%;
    margin-top: auto;
    margin-bottom: calc(6px + var(--safe-bottom));
  }

  #offlinePlayer {
    padding: 10px 12px;
    border-radius: 22px;
    gap: 6px 10px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
  }

  .offline-cover-wrapper {
    width: 42px;
    height: 42px;
  }

  .offline-song-title {
    font-size: 13.5px;
    line-height: 1.2;
  }

  .offline-subtitle {
    font-size: 10.5px;
    margin-bottom: 2px;
  }

  .offline-progress-row {
    gap: 6px;
  }

  .offline-time {
    font-size: 10px;
    min-width: 24px;
  }

  .offline-controls {
    gap: 3px;
    padding-top: 6px;
    justify-content: space-between;
  }

  .offline-play-btn {
    width: 38px;
    height: 38px;
    font-size: 17px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }
  .offline-play-btn #playIcon {
    font-size: 17px;
  }

  .offline-control-btn,
  .playlist-toggle-btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .offline-speed-btn {
    min-width: 32px;
    height: 24px;
    font-size: 9.5px;
    padding: 1px 4px;
    border-radius: 12px;
    gap: 2px;
  }

  .speed-caret-icon {
    width: 7.5px;
    height: 7.5px;
  }

  .speed-dropdown-menu {
    min-width: 82px;
    bottom: calc(100% + 8px);
    top: auto;
    left: auto;
    right: -10px;
    transform: translateY(8px) scale(0.95);
    transform-origin: bottom right;
  }

  .speed-dropdown.open .speed-dropdown-menu {
    transform: translateY(0) scale(1);
  }

  .offline-volume {
    gap: 4px;
    align-items: center;
    flex-grow: 1;
    max-width: 140px;
  }

  .offline-volume-btn {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .offline-volume-slider {
    width: 100%;
    min-width: 85px;
    max-width: 135px;
    height: 6px;
    touch-action: manipulation;
  }

  .offline-volume-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  }

  .offline-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  }

  .rituals-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mantra-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .mantra-actions {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 8px;
  }

  .btn-copy-mantra,
  .btn-share-mantra {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 24px;
  }

  .playlist-modal {
    position: fixed;
    left: 50%;
    right: auto;
    width: min(520px, calc(100vw - 18px));
    bottom: calc(165px + var(--safe-bottom));
    max-height: min(440px, calc(100dvh - 195px));
    border-radius: 22px;
    transform: translateX(-50%) translateY(20px);
    z-index: 200;
  }

  .playlist-modal.open {
    transform: translateX(-50%) translateY(0);
  }

  .seo-content {
    padding: 22px 14px;
    border-radius: 20px;
    margin: 20px auto 30px;
  }

  .toast-notification {
    bottom: calc(85px + var(--safe-bottom));
    padding: 8px 18px;
    font-size: 12.5px;
  }
}

/* Compact Mobile Screens & Narrow Viewports (iPhone SE, Small Androids) (<= 380px) */
@media (max-width: 380px) {
  .top-navbar-wrapper {
    padding: calc(4px + var(--safe-top)) 6px 4px;
  }

  .top-navbar-wrapper .top-bar {
    gap: 4px;
  }

  .top-center {
    gap: 3px;
  }

  .btn-nav-item,
  .btn-mode-toggle,
  .btn-lang-toggle {
    height: 30px;
    padding: 0 2px;
    font-size: 10px;
    gap: 2px;
  }

  .time-widget {
    padding: 4px 8px;
    gap: 4px;
  }

  .time-main {
    font-size: 12px;
  }

  .date-sub {
    font-size: 10px;
    padding-left: 4px;
  }

  .btn-action,
  .btn-share-main {
    padding: 4px 8px;
    font-size: 11px;
    gap: 3px;
  }

  .share-menu-item {
    padding: 5px 7px;
    font-size: 10px;
    gap: 3px;
  }

  .offline-play-btn {
    width: 35px;
    height: 35px;
    font-size: 15px;
  }

  .offline-control-btn,
  .playlist-toggle-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .offline-speed-btn {
    min-width: 26px;
    height: 22px;
    font-size: 9.5px;
    padding: 0 2px;
  }

  .offline-volume {
    flex-grow: 1;
    max-width: 110px;
  }

  .offline-volume-slider {
    width: 100%;
    min-width: 70px;
    max-width: 105px;
    height: 5px;
    touch-action: manipulation;
  }

  .offline-volume-slider::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
  }

  .offline-volume-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
  }

  .logo-container {
    margin: auto 0;
    padding: 6px 0;
  }

  .logo {
    font-size: clamp(34px, 10.5vw, 50px);
    line-height: 1.2;
    padding-bottom: 4px;
  }

  .tagline-wrapper {
    margin-top: 13px;
    padding: 6px 16px;
  }

  .tagline {
    font-size: 14px;
    line-height: 1;
  }

  .playlist-modal {
    width: calc(100vw - 12px);
    bottom: calc(150px + var(--safe-bottom));
    max-height: min(420px, calc(100dvh - 175px));
    border-radius: 18px;
  }

  .player-wrapper {
    margin-top: auto;
    margin-bottom: calc(4px + var(--safe-bottom));
  }
}