@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+Gurmukhi:wght@400;500;600;700&display=swap');

:root {
    --primary-navy: #0B2240;
    --primary-navy-rgb: 11, 34, 64;
    --accent-gold: #C5A85A;
    --accent-gold-hover: #AA8B3E;
    --bg-cream: #FAF7F0;
    --white: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-gold-light: #EADFC9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --font-outfit: 'Outfit', sans-serif;
    --font-gurmukhi: 'Noto Sans Gurmukhi', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --player-height: 90px;
}

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

body {
    font-family: var(--font-outfit);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-navy);
}

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

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--border-gold-light);
}

.top-bar {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.top-bar .gurmukhi-heading {
    font-family: var(--font-gurmukhi);
    font-size: 0.9rem;
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-gold);
}

.lang-selector {
    display: flex;
    gap: 10px;
    font-weight: 500;
}

.lang-selector span {
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.lang-selector span.active, .lang-selector span:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.logo-text h1 {
    font-size: 1.4rem;
    letter-spacing: 1px;
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 24px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-donate {
    background-color: var(--accent-gold);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(197, 168, 90, 0.3);
}

.btn-donate:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197, 168, 90, 0.4);
}

/* Layout App View */
main {
    flex-grow: 1;
    margin-bottom: var(--player-height); /* spacing for bottom player */
    position: relative;
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

.page-transition {
    opacity: 0;
}

/* Footer */
footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 60px 5% 40px;
    margin-top: auto;
    border-top: 4px solid var(--accent-gold);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
}

.footer-column h3 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 15px;
    border-radius: 20px;
    color: var(--white);
    flex-grow: 1;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form button {
    background-color: var(--accent-gold);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--accent-gold-hover);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Floating Audio Player */
.persistent-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--player-height);
    background-color: rgba(11, 34, 64, 0.95);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--accent-gold);
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 0 30px;
    z-index: 999;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.25);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-cover svg {
    color: var(--accent-gold);
    width: 24px;
    height: 24px;
}

.player-track-details h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.player-track-details p {
    color: var(--accent-gold);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.player-controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.player-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    color: var(--white);
}

.player-btn.active {
    color: var(--accent-gold);
}

.player-btn-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(197, 168, 90, 0.4);
}

.player-btn-play:hover {
    background-color: var(--white);
    color: var(--primary-navy);
    transform: scale(1.05);
}

.player-progress-bar-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    gap: 12px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.player-progress-wrapper {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: height 0.15s ease;
}

.player-progress-wrapper:hover {
    height: 6px;
}

.player-progress-fill {
    height: 100%;
    background-color: var(--accent-gold);
    width: 0%;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

.player-right-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    width: 100%;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background-color: var(--white);
    width: 80%;
    border-radius: 2px;
}

/* Home Page Custom Layout */
.hero-section {
    position: relative;
    height: 580px;
    overflow: hidden;
    background: radial-gradient(120% 120% at 85% 45%, #fdf6e6 0%, #faf3e6 35%, var(--bg-cream) 70%);
    display: flex;
    align-items: center;
    padding: 0 10%;
    border-bottom: 5px solid var(--accent-gold);
}

/* Sri Guru Granth Sahib Ji visual on the right, with light effects */
.hero-visual {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 56%;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%);
            mask-image: linear-gradient(to right, transparent 0%, #000 26%);
}
.hero-rays {
    position: absolute;
    width: 760px; height: 760px;
    background: conic-gradient(from 0deg,
        transparent 0deg, rgba(213,178,78,0.16) 14deg, transparent 28deg,
        transparent 60deg, rgba(213,178,78,0.10) 74deg, transparent 88deg,
        transparent 120deg, rgba(213,178,78,0.16) 134deg, transparent 148deg,
        transparent 180deg, rgba(213,178,78,0.10) 194deg, transparent 208deg,
        transparent 240deg, rgba(213,178,78,0.16) 254deg, transparent 268deg,
        transparent 300deg, rgba(213,178,78,0.10) 314deg, transparent 328deg);
    border-radius: 50%;
    animation: hero-spin 60s linear infinite;
}
.hero-glow {
    position: absolute;
    width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(246,217,121,0.55) 0%, rgba(246,217,121,0.18) 45%, transparent 70%);
    animation: hero-glow-pulse 5s ease-in-out infinite;
}
.hero-ggs {
    position: relative; z-index: 1;
    height: 90%; width: auto; max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 34px rgba(168,125,36,0.45));
    animation: hero-float 7s ease-in-out infinite, fadeInUp 1.1s ease;
}
@keyframes hero-spin { to { transform: rotate(360deg); } }
@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.65; transform: scale(0.96); }
    50%      { opacity: 1;    transform: scale(1.04); }
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-rays, .hero-glow, .hero-ggs { animation: none; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    color: var(--accent-gold-hover);
    background-color: rgba(197, 168, 90, 0.12);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
}

.hero-content h2 {
    color: var(--primary-navy);
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-dark);
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--white);
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(197, 168, 90, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 12px 26px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: #1a3c68;
    transform: translateY(-2px);
}

/* Overlapping Avatars Row */
.hero-blessings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-top: 15px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--white);
    overflow: hidden;
    margin-right: -10px;
    box-shadow: var(--shadow-sm);
    background-color: var(--white);
    transition: var(--transition);
}

.avatar-item:hover {
    transform: translateY(-3px);
    z-index: 5;
}

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

.avatar-sewa {
    object-position: 15% 35%;
}

.avatar-harnam {
    object-position: 85% 40%;
}

.quick-bar {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: -50px 10% 50px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border-gold-light);
    overflow: hidden;
}

.quick-item {
    padding: 25px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid var(--border-gold-light);
    transition: var(--transition);
    cursor: pointer;
}

.quick-item:last-child {
    border-right: none;
}

.quick-item:hover {
    background-color: rgba(197, 168, 90, 0.05);
}

.quick-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(197, 168, 90, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    flex-shrink: 0;
    transition: var(--transition);
}

.quick-item:hover .quick-icon {
    background-color: var(--accent-gold);
    color: var(--white);
    transform: scale(1.05);
}

.quick-icon svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.quick-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.quick-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
    line-height: 1.25;
}

.quick-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.quick-desc.link-style {
    color: var(--accent-gold-hover);
    font-weight: 600;
}

/* Explore Grid */
.section-title {
    text-align: center;
    margin: 50px 0 35px;
}

.section-title span {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-top: 5px;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 0 10% 60px;
}

.explore-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-gold-light);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.explore-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.explore-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(197, 168, 90, 0.1);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    transition: var(--transition);
}

.explore-card:hover .explore-card-icon {
    background-color: var(--accent-gold);
    color: var(--white);
}

.explore-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.explore-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Live Kirtan & Videos block */
.media-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 0 10% 60px;
}

.live-kirtan-box {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-gold-light);
    padding: 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.live-badge {
    background-color: #EF4444;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.live-icon-wave {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(197, 168, 90, 0.05);
    border: 2px dashed var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-gold);
    font-size: 2.5rem;
}

.live-kirtan-box h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.live-kirtan-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-listen {
    width: 100%;
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 12px 0;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-listen:hover {
    background-color: var(--accent-gold);
}

.video-gallery {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-gold-light);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

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

.video-header h3 {
    font-size: 1.4rem;
}

.video-header a {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    background-color: var(--primary-navy);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.9);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding-left: 3px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.video-card:hover .play-overlay {
    background-color: var(--accent-gold);
    color: var(--white);
    transform: scale(1.1);
}

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

.video-card h4 {
    font-size: 0.9rem;
    margin-top: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Samagam and Sewa block */
.activities-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 0 10% 60px;
}

.events-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-gold-light);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.events-card h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.event-date-badge {
    min-width: 55px;
    height: 55px;
    border-radius: 8px;
    background-color: rgba(197, 168, 90, 0.1);
    border: 1px solid var(--border-gold-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-gold);
}

.event-date-badge .day {
    font-size: 1.1rem;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 0.65rem;
    text-transform: uppercase;
}

.event-detail h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.event-detail p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sewa-banner {
    background: linear-gradient(rgba(11, 34, 64, 0.6), rgba(11, 34, 64, 0.8)), url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?q=80&w=1200&auto=format&fit=crop') no-repeat center center/cover;
    border-radius: 16px;
    border: 1px solid var(--accent-gold);
    padding: 40px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}

.sewa-banner-content h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.sewa-banner-content p {
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 500px;
}

.sewa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.sewa-subcard {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: var(--transition);
}

.sewa-subcard:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent-gold);
}

.sewa-subcard-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.sewa-subcard span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 50px 10%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    border-top: 2px solid var(--accent-gold);
}

.stat-item h3 {
    color: var(--accent-gold);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kirtan Page Layout */
.kirtan-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar-folders {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-gold-light);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    align-self: start;
}

.sidebar-folders h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-gold-light);
}

.folder-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.folder-item {
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.folder-item:hover, .folder-item.active {
    background-color: rgba(197, 168, 90, 0.1);
    color: var(--accent-gold-hover);
    font-weight: 600;
}

.folder-icon {
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.tracks-panel {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-gold-light);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

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

.tracks-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-gold-light);
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: rgba(197, 168, 90, 0.1);
    border-color: var(--accent-gold);
}

.tracks-table {
    width: 100%;
    border-collapse: collapse;
}

.tracks-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--border-gold-light);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tracks-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border-gold-light);
    font-size: 0.95rem;
}

.tracks-table tr:hover {
    background-color: rgba(197, 168, 90, 0.02);
}

.btn-play-track {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-play-track:hover {
    transform: scale(1.1);
    background-color: var(--primary-navy);
}

/* Publications Page Split View */
.publications-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 5%;
    max-width: 1500px;
    margin: 0 auto;
    height: calc(100vh - 120px - var(--player-height));
    min-height: 500px;
}

.books-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 15px;
}

.filter-bar {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-gold-light);
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.filter-bar input, .filter-bar select {
    padding: 10px 15px;
    border: 1px solid var(--border-gold-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
    max-width: 100%;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.book-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-gold-light);
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.book-cover-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: var(--primary-navy);
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 15px;
}

.book-cover-placeholder svg {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.book-cover-placeholder h4 {
    color: var(--white);
    font-size: 0.85rem;
    line-height: 1.3;
}

.book-card h3 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.btn-read {
    background-color: var(--accent-gold);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-read:hover {
    background-color: var(--primary-navy);
}

.pdf-column {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-gold-light);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.pdf-viewer-header {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-gold);
}

.pdf-viewer-header h3 {
    color: var(--white);
    font-size: 1rem;
}

.pdf-viewer-body {
    flex-grow: 1;
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.pdf-placeholder svg {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

/* Projects page layout */
.projects-layout {
    padding: 40px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-gold-light);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 220px;
    background-color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 3rem;
}

.project-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.project-body h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.funding-progress {
    margin-bottom: 20px;
}

.funding-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.funding-text span:first-child {
    color: var(--accent-gold);
}

.progress-bar-wrapper {
    height: 8px;
    background-color: var(--bg-cream);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-gold-light);
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-gold);
    border-radius: 4px;
}

/* Samagam list timeline */
.samagams-layout {
    padding: 40px 10%;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding-left: 40px;
    margin-top: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 2px;
    height: 100%;
    background-color: var(--border-gold-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--accent-gold);
    z-index: 10;
}

.timeline-item.completed .timeline-dot {
    border-color: var(--text-muted);
}

.timeline-content {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-gold-light);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

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

.timeline-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 10px;
}

.timeline-status.upcoming {
    background-color: rgba(197, 168, 90, 0.15);
    color: var(--accent-gold-hover);
}

.timeline-status.completed {
    background-color: #E2E8F0;
    color: var(--text-muted);
}

.timeline-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.timeline-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Admin Dashboard layout */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 30px 20px;
}

.admin-sidebar h2 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-menu-item {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-menu-item:hover, .admin-menu-item.active {
    background-color: rgba(255,255,255,0.08);
    color: var(--accent-gold);
}

.admin-content {
    background-color: var(--bg-cream);
    padding: 40px;
    overflow-y: auto;
}

.admin-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-gold-light);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-gold-light);
}

/* Login box style */
.login-container {
    max-width: 450px;
    width: 100%;
    margin: 100px auto;
    background: var(--white);
    border: 1px solid var(--border-gold-light);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 1.8rem;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--primary-navy);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-gold-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.btn-block {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Form Helper & List Panel elements */
.alert-error {
    background-color: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.admin-list-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-list-table th, .admin-list-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-gold-light);
}

.admin-list-table th {
    font-weight: 600;
    color: var(--text-muted);
}

.btn-danger {
    background-color: #EF4444;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}

.btn-danger:hover {
    background-color: #DC2626;
}

/* Keyframes animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--border-gold-light);
    border-radius: 4px;
}

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

/* Responsiveness */
@media (max-width: 1024px) {
    .quick-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-item {
        border-bottom: 1px solid var(--border-gold-light);
    }
    .quick-item:nth-child(even) {
        border-right: none;
    }
    .explore-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .media-section, .activities-section {
        grid-template-columns: 1fr;
    }
    .publications-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 8px;
    }
    .main-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .quick-bar {
        grid-template-columns: 1fr;
        margin: -50px 5% 30px;
    }
    .quick-item {
        border-right: none;
    }
    .explore-grid {
        grid-template-columns: 1fr;
        padding: 0 5% 40px;
    }
    .persistent-player {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        padding: 15px;
        gap: 12px;
    }
    .player-track-info {
        justify-content: center;
    }
    .player-right-controls {
        display: none;
    }
    .kirtan-layout {
        grid-template-columns: 1fr;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        display: none; /* simple toggle would be added */
    }
    .filter-bar {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Gurbani Sewa — service-driven library + app-style home grid
   ============================================================ */

/* ---- App-style category grid (home) ---- */
.cat-page { max-width: 1100px; margin: 0 auto; padding: 28px 5% 60px; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.cat-tile {
    position: relative;
    border: none;
    cursor: pointer;
    text-align: left;
    border-radius: 16px;
    min-height: 150px;
    padding: 22px;
    color: #fff;
    background: var(--tile-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-tile-en {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1px;
    position: absolute;
    left: 16px;
    bottom: 20px;
}
.cat-tile-pa {
    font-family: var(--font-gurmukhi);
    font-weight: 700;
    font-size: 1.5rem;
    align-self: flex-end;
}
.cat-tile-icon {
    font-size: 3.2rem;
    align-self: center;
    margin-top: auto;
    opacity: .92;
    font-family: var(--font-gurmukhi);
}

/* ---- Announcements strip ---- */
.cat-announce {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-navy);
    color: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 22px;
    overflow: hidden;
}
.cat-announce-label { font-size: 1.1rem; }
.cat-announce-track {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .95rem;
}
.cat-announce-dot { margin: 0 12px; color: var(--accent-gold); }

/* ---- Library (drill-down) pages ---- */
.lib-page { max-width: 1100px; margin: 0 auto; padding: 28px 5% 60px; }
.lib-header { margin-bottom: 22px; border-bottom: 1px solid var(--border-gold-light); padding-bottom: 16px; }
.lib-title-wrap { display: flex; align-items: baseline; gap: 14px; }
.lib-title { font-size: 2rem; color: var(--primary-navy); }
.lib-title-pa { font-family: var(--font-gurmukhi); font-size: 1.4rem; color: var(--lib-accent); font-weight: 700; }
.lib-breadcrumb { margin-top: 10px; font-size: .92rem; color: var(--text-muted); }
.lib-crumb-sep { margin: 0 8px; color: var(--border-gold-light); }
.lib-crumb-link { color: var(--lib-accent); cursor: pointer; font-weight: 600; }
.lib-crumb-link:hover { text-decoration: underline; }

.lib-loading { display: flex; justify-content: center; padding: 80px 0; }
.lib-spinner {
    width: 42px; height: 42px; border-radius: 50%;
    border: 4px solid var(--border-gold-light);
    border-top-color: var(--accent-gold);
    animation: lib-spin 0.8s linear infinite;
}
@keyframes lib-spin { to { transform: rotate(360deg); } }
.lib-empty { text-align: center; color: var(--text-muted); padding: 60px 0; }

/* Card grid (drillable levels) */
.lib-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}
.lib-card {
    border: 1px solid var(--border-gold-light);
    background: var(--white);
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.lib-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lib-card-media { position: relative; aspect-ratio: 16/10; background: var(--bg-cream); }
.lib-card-img { width: 100%; height: 100%; object-fit: cover; }
.lib-card-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; font-weight: 700; color: #fff;
    background: var(--lib-accent);
}
.lib-card-body { padding: 12px 14px; }
.lib-card-title { font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.lib-card-sub { font-family: var(--font-gurmukhi); color: var(--lib-accent); font-size: .95rem; margin-top: 2px; }
.lib-card-count { color: var(--text-muted); font-size: .8rem; margin-top: 6px; }

/* Track list */
.lib-tracklist { display: flex; flex-direction: column; gap: 8px; }
.lib-track {
    display: flex; align-items: center; gap: 14px;
    background: var(--white);
    border: 1px solid var(--border-gold-light);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, border-color .15s ease;
}
.lib-track:hover { background: var(--bg-cream); border-color: var(--accent-gold); }
.lib-track-num { color: var(--text-muted); width: 24px; font-size: .9rem; }
.lib-track-play { color: var(--lib-accent); font-size: .9rem; }
.lib-track-title { font-weight: 500; color: var(--text-dark); flex: 1; }
.lib-track-missing { opacity: .5; }
.lib-track-missing .lib-track-title::after { content: ' (no audio)'; color: var(--text-muted); font-size: .8rem; }

/* PDF grid */
.lib-pdf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.lib-pdf-card {
    border: 1px solid var(--border-gold-light);
    border-radius: 12px; padding: 22px 16px; text-align: center;
    background: var(--white); transition: transform .2s ease, box-shadow .2s ease;
}
.lib-pdf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lib-pdf-icon { font-size: 2.6rem; }
.lib-pdf-title { font-weight: 600; margin: 10px 0 6px; color: var(--text-dark); }
.lib-pdf-open { color: var(--lib-accent); font-size: .85rem; font-weight: 600; }

/* Radio grid */
.lib-radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.lib-radio-card {
    border: none; cursor: pointer; border-radius: 14px; padding: 26px 18px; text-align: center;
    color: #fff; background: var(--lib-accent); box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.lib-radio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lib-radio-icon { font-size: 2.4rem; }
.lib-radio-name { font-weight: 700; margin-top: 8px; }
.lib-radio-live { font-size: .72rem; letter-spacing: 1px; margin-top: 6px; opacity: .85; }

@media (max-width: 640px) {
    .cat-tile-en { font-size: 1rem; }
    .cat-tile-pa { font-size: 1.2rem; }
    .lib-title { font-size: 1.5rem; }
}

/* Fit the expanded app-category tab bar (Naam Simran, Keertan, ... Books) */
.main-nav { gap: 16px; }
.nav-menu { flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; row-gap: 6px; }
.nav-menu .nav-link { font-size: 0.85rem; white-space: nowrap; padding: 6px 0; }
@media (min-width: 1100px) {
    .nav-menu { flex-wrap: nowrap; }
}

/* ============================================================
   Library player experience — toolbar, search, fav/wishlist,
   fuller track rows, play-all, now-playing
   ============================================================ */
.lib-page { max-width: 1200px; }
.lib-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.lib-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; margin: 4px 0 22px;
}
.lib-search-wrap { position: relative; flex: 1 1 280px; max-width: 460px; }
.lib-search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .5; }
.lib-search {
    width: 100%; padding: 11px 14px 11px 40px;
    border: 1px solid var(--border-gold-light); border-radius: 30px;
    background: var(--white); font-size: .95rem; color: var(--text-dark);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.lib-search:focus { outline: none; border-color: var(--lib-accent); box-shadow: 0 0 0 3px rgba(197,168,90,.18); }
.lib-tabs { display: flex; gap: 8px; }
.lib-tab {
    border: 1px solid var(--border-gold-light); background: var(--white);
    color: var(--text-muted); padding: 9px 16px; border-radius: 30px;
    font-size: .88rem; font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.lib-tab:hover { color: var(--lib-accent); border-color: var(--lib-accent); }
.lib-tab.active { background: var(--lib-accent); color: #fff; border-color: var(--lib-accent); }

.lib-collection-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lib-collection-head h2 { font-size: 1.25rem; color: var(--primary-navy); }
.lib-collection-head h2 span { color: var(--text-muted); font-weight: 500; font-size: 1rem; }
.lib-playall {
    border: none; cursor: pointer; background: var(--lib-accent); color: #fff;
    padding: 10px 20px; border-radius: 30px; font-weight: 700; font-size: .9rem;
    box-shadow: var(--shadow-sm); transition: transform .15s ease, filter .15s ease;
}
.lib-playall:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* Track rows (override earlier simple style) */
.lib-tracklist { display: flex; flex-direction: column; gap: 10px; }
.lib-track {
    display: flex; align-items: center; gap: 16px;
    background: var(--white); border: 1px solid var(--border-gold-light);
    border-radius: 12px; padding: 14px 18px; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lib-track:hover { border-color: var(--lib-accent); box-shadow: var(--shadow-sm); }
.lib-track-num { color: var(--text-muted); width: 26px; text-align: center; font-size: .9rem; font-variant-numeric: tabular-nums; }
.lib-track-play {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; cursor: pointer;
    border: none; background: var(--bg-cream); color: var(--lib-accent);
    display: flex; align-items: center; justify-content: center; font-size: .8rem;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.lib-track-play:hover { background: var(--lib-accent); color: #fff; transform: scale(1.06); }
.lib-track-title { font-weight: 500; color: var(--text-dark); flex: 1; line-height: 1.35; }
.lib-track-actions { display: flex; gap: 6px; }
.lib-act {
    width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
    background: transparent; color: var(--text-muted); font-size: 1rem; line-height: 1;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.lib-act:hover { background: var(--bg-cream); transform: scale(1.1); }
.lib-fav.on { color: #e0245e; }
.lib-wish.on { color: var(--accent-gold); }

.lib-track.lib-now { border-color: var(--lib-accent); background: rgba(197,168,90,.08); }
.lib-track.lib-now .lib-track-play { background: var(--lib-accent); color: #fff; }
.lib-track.lib-now .lib-track-title { color: var(--lib-accent); font-weight: 700; }

.lib-track-missing { opacity: .55; }
.lib-track-missing .lib-track-title::after { content: ' · no audio'; color: var(--text-muted); font-size: .8rem; }

@media (max-width: 600px) {
    .lib-toolbar { flex-direction: column; align-items: stretch; }
    .lib-tabs { justify-content: center; }
    .lib-track { padding: 12px 14px; gap: 12px; }
}

/* ============================================================
   Library beautification — gradient hero + polished media cards
   ============================================================ */
.lib-hero {
    position: relative;
    background: linear-gradient(135deg, var(--lib-accent) 0%, var(--primary-navy) 130%);
    color: #fff;
    border-radius: 20px;
    padding: 30px 34px;
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.lib-hero::after {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.lib-hero-text { position: relative; z-index: 1; }
.lib-hero .lib-title { color: #fff; font-size: 2.1rem; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lib-hero .lib-title-pa { font-family: var(--font-gurmukhi); font-size: 1.4rem; color: rgba(255,255,255,.85); font-weight: 700; }
.lib-hero-desc { margin-top: 8px; color: rgba(255,255,255,.9); font-size: 1rem; max-width: 640px; }
.lib-hero-emblem { font-size: 4.5rem; opacity: .35; position: relative; z-index: 1; }
.lib-hero .lib-breadcrumb { margin-top: 12px; color: rgba(255,255,255,.75); }
.lib-hero .lib-crumb-sep { color: rgba(255,255,255,.45); }
.lib-hero .lib-crumb-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Denser, uniform card grid */
.lib-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 20px;
}
.lib-card {
    border: 1px solid var(--border-gold-light);
    background: var(--white);
    border-radius: 16px;
    cursor: pointer; text-align: left; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}
.lib-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.lib-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-cream); overflow: hidden; }
.lib-card-img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .35s ease; }
.lib-card:hover .lib-card-img { transform: scale(1.06); }
.lib-card-fallback {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; font-weight: 700; color: #fff;
    background: linear-gradient(150deg, var(--lib-accent), var(--primary-navy));
    font-family: var(--font-gurmukhi);
}
.lib-card-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(11,34,64,.82); color: #fff; backdrop-filter: blur(3px);
    font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 20px;
}
.lib-card-hover {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(0deg, rgba(11,34,64,.55), rgba(11,34,64,.15));
    color: #fff; font-size: 1.6rem; opacity: 0; transition: opacity .22s ease;
}
.lib-card:hover .lib-card-hover { opacity: 1; }
.lib-card-body { padding: 13px 14px 16px; }
.lib-card-title { font-weight: 600; color: var(--text-dark); line-height: 1.34; font-size: .95rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-card-count { color: var(--lib-accent); font-size: .8rem; margin-top: 6px; font-weight: 600; }

/* Polish the persistent bottom player */
.persistent-player { background: linear-gradient(90deg, var(--primary-navy), #14315a); border-top: 1px solid rgba(255,255,255,.08); }
.player-progress-fill, .volume-fill { background: var(--accent-gold) !important; }
.player-btn-play { background: var(--accent-gold) !important; color: var(--primary-navy) !important; }

@media (max-width: 600px) {
    .lib-hero { padding: 22px; flex-direction: column; align-items: flex-start; }
    .lib-hero .lib-title { font-size: 1.6rem; }
    .lib-hero-emblem { display: none; }
    .lib-card-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
}

/* ============================================================
   Two-pane explorer — directory (left) + sub-folders/tracks (right)
   ============================================================ */
.lib-spinner { border-top-color: var(--lib-accent, var(--accent-gold)); }
.lib-main { margin-top: 4px; }
.lib-split { display: flex; align-items: flex-start; gap: 22px; }

.lib-sidebar {
    flex: 0 0 300px; width: 300px;
    background: var(--white); border: 1px solid var(--border-gold-light);
    border-radius: 14px; padding: 8px; max-height: 72vh; overflow-y: auto;
    position: sticky; top: 16px;
}
.lib-side-item {
    display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 9px 10px; border: none; background: transparent; border-radius: 10px;
    cursor: pointer; text-align: left; border-left: 3px solid transparent; transition: background .15s ease;
}
.lib-side-item:hover { background: var(--bg-cream); }
.lib-side-item.active { background: rgba(197,168,90,.12); border-left-color: var(--lib-accent); }
.lib-side-thumb {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 9px; object-fit: cover; object-position: center 22%;
}
.lib-side-fallback {
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-family: var(--font-gurmukhi);
    background: linear-gradient(150deg, var(--lib-accent), var(--primary-navy));
}
.lib-side-name { flex: 1; font-size: .88rem; line-height: 1.3; color: var(--text-dark);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-side-item.active .lib-side-name { color: var(--lib-accent); font-weight: 600; }
.lib-side-count {
    flex: 0 0 auto; font-size: .72rem; font-weight: 700; color: var(--text-muted);
    background: var(--bg-cream); border-radius: 20px; padding: 2px 8px;
}

.lib-detail { flex: 1; min-width: 0; }
.lib-detail .lib-breadcrumb { margin: 0 0 16px; font-size: .92rem; color: var(--text-muted); }
.lib-detail-body { animation: lib-fade .25s ease; }
@keyframes lib-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
    .lib-split { flex-direction: column; }
    .lib-sidebar {
        width: 100%; flex: none; position: static; max-height: none;
        display: flex; gap: 10px; overflow-x: auto; padding: 10px;
    }
    .lib-side-item { flex: 0 0 auto; width: auto; max-width: 200px; border-left: none; border-bottom: 3px solid transparent; }
    .lib-side-item.active { border-left: none; border-bottom-color: var(--lib-accent); }
    .lib-side-name { -webkit-line-clamp: 1; }
}

/* Books -> Google Play redirect card */
.books-redirect { max-width: 560px; margin: 60px auto; text-align: center;
    background: var(--white); border: 1px solid var(--border-gold-light);
    border-radius: 18px; padding: 48px 32px; box-shadow: var(--shadow-md); }
.books-redirect-icon { font-size: 3.4rem; }
.books-redirect h1 { color: var(--primary-navy); margin: 14px 0 8px; font-size: 1.6rem; }
.books-redirect p { color: var(--text-muted); margin-bottom: 24px; }
.books-redirect-btn { display: inline-block; background: var(--lib-accent, var(--accent-gold)); color: #fff;
    font-weight: 700; padding: 13px 26px; border-radius: 30px; box-shadow: var(--shadow-sm);
    transition: transform .15s ease, filter .15s ease; }
.books-redirect-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ============================================================
   Calmer, lighter palette + full-width layout for library pages
   ============================================================ */
/* Use more of the page */
.lib-page { max-width: 1600px; padding: 26px 3.5% 70px; }
.lib-sidebar { flex: 0 0 320px; width: 320px; }
.lib-card-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 22px; }

/* Soft, light hero (was a saturated gradient) */
.lib-hero {
    background: #f6f2ea;
    background: linear-gradient(135deg, color-mix(in srgb, var(--lib-accent) 14%, #fff) 0%, #fffdf9 88%);
    color: var(--text-dark);
    border: 1px solid var(--border-gold-light);
    box-shadow: var(--shadow-sm);
    padding: 26px 32px;
}
.lib-hero::after { background: var(--lib-accent); opacity: .06; }
.lib-hero .lib-title { color: var(--primary-navy); }
.lib-hero .lib-title-pa { color: var(--lib-accent); }
.lib-hero-desc { color: var(--text-muted); }
.lib-hero-emblem { color: var(--lib-accent); opacity: .2; }

/* Soft tinted tiles instead of vibrant fills */
.lib-card-fallback {
    background: #f1ece2;
    background: linear-gradient(150deg, color-mix(in srgb, var(--lib-accent) 20%, #fff), color-mix(in srgb, var(--lib-accent) 7%, #fff));
    color: var(--lib-accent);
}
.lib-side-fallback {
    background: #f1ece2;
    background: color-mix(in srgb, var(--lib-accent) 16%, #fff);
    color: var(--lib-accent);
}
.lib-card-badge { background: rgba(255,255,255,.85); color: var(--primary-navy); border: 1px solid var(--border-gold-light); }
.lib-card-hover { background: linear-gradient(0deg, rgba(11,34,64,.35), rgba(11,34,64,.05)); }

/* Gentler accent tabs (soft tint instead of bold fill) */
.lib-tab.active {
    background: color-mix(in srgb, var(--lib-accent) 14%, #fff);
    color: var(--lib-accent);
    border-color: var(--lib-accent);
}
.lib-sidebar { background: #fffdfa; }

/* ============================================================
   Track durations + Now-Playing screen (Standard / Driving / Reading)
   ============================================================ */
.lib-track-dur { color: var(--text-muted); font-size: .82rem; font-variant-numeric: tabular-nums;
    min-width: 46px; text-align: right; flex: 0 0 auto; }

/* Expand button on the bottom player */
.player-expand {
    background: rgba(255,255,255,.12); color: #fff; border: none; cursor: pointer;
    width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; margin-left: 14px;
    transition: background .15s ease, transform .15s ease;
}
.player-expand:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }
.player-track-info { cursor: pointer; }

/* Overlay */
.np-overlay { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center;
    background: rgba(11,34,64,.55); backdrop-filter: blur(6px); padding: 20px; }
.np-overlay[hidden] { display: none; }
.np-sheet {
    width: 100%; max-width: 560px; max-height: 92vh; overflow: hidden;
    background: #fffdf9; border-radius: 22px; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
}
.np-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-gold-light); }
.np-tabs { display: flex; gap: 6px; }
.np-tab { border: 1px solid var(--border-gold-light); background: #fff; color: var(--text-muted);
    padding: 8px 14px; border-radius: 30px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.np-tab.active { background: color-mix(in srgb, var(--accent-gold) 18%, #fff); color: var(--accent-gold-hover); border-color: var(--accent-gold); }
.np-close { border: none; background: transparent; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.np-close:hover { background: var(--bg-cream); }

.np-body { padding: 28px 26px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow-y: auto; }
.np-cover { width: 168px; height: 168px; border-radius: 24px; display: flex; align-items: center; justify-content: center;
    font-size: 4rem; font-weight: 700; color: #fff; font-family: var(--font-gurmukhi);
    background: linear-gradient(150deg, var(--accent-gold), var(--primary-navy)); box-shadow: var(--shadow-md); margin-bottom: 22px; }
.np-title { font-size: 1.4rem; color: var(--primary-navy); line-height: 1.3; }
.np-album { color: var(--text-muted); margin-top: 4px; }
.np-progress { width: 100%; height: 8px; background: var(--bg-cream); border-radius: 20px; margin: 22px 0 6px; cursor: pointer; }
.np-fill { height: 100%; width: 0; background: var(--accent-gold); border-radius: 20px; }
.np-times { width: 100%; display: flex; justify-content: space-between; color: var(--text-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.np-controls { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.np-btn { border: none; background: var(--bg-cream); color: var(--primary-navy); cursor: pointer;
    width: 54px; height: 54px; border-radius: 50%; font-size: 1.2rem; transition: transform .15s ease, background .15s ease; }
.np-btn:hover { transform: scale(1.08); }
.np-btn.np-main { width: 76px; height: 76px; font-size: 1.7rem; background: var(--accent-gold); color: var(--primary-navy); box-shadow: var(--shadow-md); }
.np-btn.on { color: var(--accent-gold-hover); background: color-mix(in srgb, var(--accent-gold) 18%, #fff); }
.np-read { display: none; }

/* Reading mode */
.np-overlay[data-mode="reading"] .np-sheet { max-width: 760px; }
.np-overlay[data-mode="reading"] .np-cover { display: none; }
.np-overlay[data-mode="reading"] .np-read {
    display: block; width: 100%; text-align: center; background: #fbf6ea; border: 1px solid var(--border-gold-light);
    border-radius: 16px; padding: 22px; margin-bottom: 16px; max-height: 46vh; overflow-y: auto;
}
.np-read-head { font-family: var(--font-gurmukhi); font-weight: 700; color: var(--accent-gold-hover); font-size: 1.2rem; margin-bottom: 14px; }
.np-read-line { margin: 14px 0; }
.np-gur { font-family: var(--font-gurmukhi); font-size: 1.5rem; line-height: 1.9; color: var(--primary-navy); }
.np-eng { color: var(--text-muted); font-size: .95rem; margin-top: 4px; }
.np-overlay[data-mode="reading"] .np-title { font-size: 1.1rem; order: -1; margin-bottom: 6px; }

/* Driving mode — big, high-contrast, easy targets */
.np-overlay[data-mode="driving"] .np-sheet { max-width: 680px; background: var(--primary-navy); }
.np-overlay[data-mode="driving"] .np-top { border-color: rgba(255,255,255,.12); }
.np-overlay[data-mode="driving"] .np-tab { background: transparent; color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.25); }
.np-overlay[data-mode="driving"] .np-tab.active { background: var(--accent-gold); color: var(--primary-navy); border-color: var(--accent-gold); }
.np-overlay[data-mode="driving"] .np-close { color: #fff; }
.np-overlay[data-mode="driving"] .np-cover { display: none; }
.np-overlay[data-mode="driving"] .np-title { color: #fff; font-size: 2.4rem; margin: 10px 0; }
.np-overlay[data-mode="driving"] .np-album { color: rgba(255,255,255,.7); font-size: 1.1rem; }
.np-overlay[data-mode="driving"] .np-progress { height: 14px; margin: 30px 0 8px; background: rgba(255,255,255,.15); }
.np-overlay[data-mode="driving"] .np-times { color: rgba(255,255,255,.7); font-size: 1rem; }
.np-overlay[data-mode="driving"] .np-controls { gap: 26px; margin-top: 30px; }
.np-overlay[data-mode="driving"] .np-btn { width: 84px; height: 84px; font-size: 1.9rem; background: rgba(255,255,255,.14); color: #fff; }
.np-overlay[data-mode="driving"] .np-btn.np-main { width: 128px; height: 128px; font-size: 3rem; background: var(--accent-gold); color: var(--primary-navy); }
.np-overlay[data-mode="driving"] .np-side { display: none; }   /* hide shuffle/repeat for simplicity while driving */

@media (max-width: 560px) {
    .np-cover { width: 130px; height: 130px; }
    .np-overlay[data-mode="driving"] .np-btn.np-main { width: 100px; height: 100px; }
    .np-gur { font-size: 1.25rem; }
}

/* Driving / Reading buttons beside "Play all" */
.lib-collection-head { flex-wrap: wrap; gap: 12px; }
.lib-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lib-modebtn {
    border: 1px solid var(--lib-accent, var(--accent-gold)); background: #fff;
    color: var(--lib-accent, var(--accent-gold)); cursor: pointer;
    padding: 9px 16px; border-radius: 30px; font-weight: 700; font-size: .85rem;
    transition: background .15s ease, transform .15s ease; white-space: nowrap;
}
.lib-modebtn:hover { background: color-mix(in srgb, var(--lib-accent, var(--accent-gold)) 12%, #fff); transform: translateY(-2px); }
@media (max-width: 560px) { .lib-head-actions { width: 100%; } .lib-modebtn { flex: 1; text-align: center; } }

/* Hero GGS visual on small screens — soft backdrop behind the text */
@media (max-width: 768px) {
    .hero-visual { width: 100%; opacity: 0.22; -webkit-mask-image: none; mask-image: none; }
    .hero-ggs { height: 78%; }
}

/* ===== Realistic GGS photo treatment for the hero ===== */
.hero-visual {
    width: 58%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%);
            mask-image: linear-gradient(to right, transparent 0%, #000 32%);
}
.hero-rays, .hero-glow { display: none; }          /* not used with a photo */
.hero-ggs {
    height: 100%; width: 100%; max-width: none;
    object-fit: cover; object-position: 60% center;
    border-radius: 0;
    filter: saturate(1.06) contrast(1.03) brightness(1.02);
    box-shadow: none;
    animation: hero-kenburns 24s ease-in-out infinite alternate, fadeInUp 1.1s ease;
}
.hero-visual::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(to right, var(--bg-cream) 0%, rgba(250,247,240,0) 28%),
        radial-gradient(130% 100% at 72% 50%, transparent 42%, rgba(11,34,64,0.18) 100%);
}
@keyframes hero-kenburns { from { transform: scale(1.04); } to { transform: scale(1.13); } }
@media (max-width: 768px) {
    .hero-visual { width: 100%; opacity: 0.3; -webkit-mask-image: none; mask-image: none; }
}

/* ===== Enhanced "divine" treatment for the GGS hero photo ===== */
.hero-visual {
    width: 58%; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
            mask-image: linear-gradient(to right, transparent 0%, #000 30%);
}
.hero-ggs {
    position: relative; z-index: 0;
    height: 100%; width: 100%; max-width: none;
    object-fit: cover; object-position: center 46%;
    filter: saturate(1.08) contrast(1.04) brightness(1.03);
    box-shadow: none;
    animation: hero-kenburns 26s ease-in-out infinite alternate, fadeInUp 1.2s ease;
}
/* soft golden aura over the Granth (re-uses .hero-glow element) */
.hero-glow {
    display: block; z-index: 1;
    position: absolute; inset: 0; width: auto; height: auto; border-radius: 0;
    background: radial-gradient(58% 52% at 58% 40%, rgba(255,228,150,0.42), rgba(255,228,150,0.10) 46%, transparent 70%);
    mix-blend-mode: screen;
    animation: hero-glow-pulse 6s ease-in-out infinite;
}
/* slow light sheen sweeping across (re-uses .hero-rays element) */
.hero-rays {
    display: block; z-index: 2;
    position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; border-radius: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.16) 50%, transparent 100%);
    animation: hero-sheen 9s ease-in-out infinite;
}
.hero-visual::after {
    content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background:
        linear-gradient(to right, var(--bg-cream) 0%, rgba(250,247,240,0) 26%),
        radial-gradient(135% 105% at 70% 50%, transparent 48%, rgba(11,34,64,0.20) 100%);
}
@keyframes hero-kenburns { from { transform: scale(1.05); } to { transform: scale(1.13); } }
@keyframes hero-glow-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes hero-sheen { 0% { left: -45%; } 60%, 100% { left: 125%; } }
@media (prefers-reduced-motion: reduce) {
    .hero-ggs, .hero-glow, .hero-rays { animation: none; }
    .hero-rays { display: none; }
}
@media (max-width: 768px) {
    .hero-visual { width: 100%; opacity: 0.3; -webkit-mask-image: none; mask-image: none; }
}

/* Gurbani line as the hero heading */
.hero-content h2.hero-gurbani {
    font-family: var(--font-gurmukhi);
    font-size: 2.9rem;
    line-height: 1.55;
    font-weight: 700;
    color: var(--primary-navy);
}
@media (max-width: 768px) {
    .hero-content h2.hero-gurbani { font-size: 2rem; }
}

/* ============================================================
   Mobile responsiveness + beautified audio player
   ============================================================ */

/* ---- Hamburger toggle (hidden on desktop) ---- */
.nav-toggle {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; padding: 8px;
}
.nav-toggle span {
    display: block; height: 3px; width: 100%; border-radius: 3px;
    background: var(--primary-navy); transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Beautified persistent player (desktop) ---- */
.persistent-player {
    border-radius: 18px 18px 0 0;
    border-top: 1px solid rgba(197,168,90,0.55);
    box-shadow: 0 -10px 36px rgba(0,0,0,0.32);
    background: linear-gradient(100deg, #0b2240 0%, #15375f 55%, #0b2240 100%);
}
.player-cover { border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.player-progress-wrapper { height: 5px; }
.player-progress-fill { box-shadow: 0 0 10px rgba(246,217,121,0.7); }
.player-progress-fill::after {
    content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
    width: 11px; height: 11px; border-radius: 50%; background: var(--accent-gold);
    box-shadow: 0 0 8px rgba(246,217,121,0.9); opacity: 0; transition: opacity .15s ease;
}
.player-progress-wrapper:hover .player-progress-fill::after { opacity: 1; }
.player-btn-play { width: 44px; height: 44px; box-shadow: 0 4px 16px rgba(246,217,121,0.45); }

/* ============ TABLET / MOBILE NAV (<= 980px) ============ */
@media (max-width: 980px) {
    .main-nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 5%; }
    .nav-toggle { display: flex; order: 2; margin-left: auto; }
    .btn-donate { order: 3; }
    .nav-menu {
        order: 4; flex-basis: 100%; width: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        max-height: 0; overflow: hidden; flex-wrap: nowrap;
        transition: max-height .35s ease;
    }
    .nav-menu.open { max-height: 70vh; overflow-y: auto; }
    .nav-menu li { width: 100%; }
    .nav-menu .nav-link {
        display: block; padding: 14px 6px; font-size: 1rem;
        border-bottom: 1px solid var(--border-gold-light); white-space: normal;
    }
    .nav-menu .nav-link::after { display: none; }
}

/* ============ PHONE LAYOUT (<= 768px) ============ */
@media (max-width: 768px) {
    .top-bar { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 8px 5%; justify-content: space-between; }
    .main-nav { flex-direction: row; }            /* override old column rule */
    .gurmukhi-heading { font-size: 0.9rem; }

    .hero-section { height: auto; padding: 36px 7% 44px; }
    .hero-content h2.hero-gurbani { font-size: 1.7rem; }
    .hero-content p { font-size: 0.98rem; }
    .hero-buttons { flex-wrap: wrap; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: 24px; }
    .section-title h2 { font-size: 1.6rem; }

    /* Beautified compact mobile player */
    .persistent-player {
        display: flex; flex-direction: column; height: auto;
        padding: 10px 16px 14px; gap: 8px; border-radius: 16px 16px 0 0;
    }
    .player-track-info { width: 100%; gap: 12px; justify-content: flex-start; }
    .player-cover { width: 44px; height: 44px; }
    .player-track-details h4, .player-track-details p { max-width: 64vw; }
    .player-controls-container { width: 100%; gap: 10px; }
    .player-buttons { gap: 30px; }
    .player-btn { font-size: 1.2rem; }
    .player-progress-bar-container { max-width: 100%; }
    .player-right-controls { display: none; }     /* tap track info to open full player */
}

@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; }
    .lib-card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-content h2.hero-gurbani { font-size: 1.45rem; }
    .player-buttons { gap: 24px; }
}

/* ---- Mobile library/toolbar fixes ---- */
html, body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 768px) {
    .lib-page { padding: 20px 4% 70px; max-width: 100%; }
    .lib-hero { padding: 22px 20px; }
    .lib-hero-desc { max-width: 100%; }
    .lib-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .lib-search-wrap { flex: none !important; width: 100%; max-width: none; }
    .lib-tabs { flex-wrap: wrap; justify-content: flex-start; }
    .lib-collection-head { gap: 10px; }
    .lib-head-actions { width: 100%; }
    .lib-modebtn { flex: 1; text-align: center; }
}

/* ---- Library hero stacks cleanly on mobile ---- */
@media (max-width: 768px) {
    .lib-hero { flex-direction: column; align-items: flex-start; gap: 6px; }
    .lib-hero-emblem { display: none; }
    .lib-hero-text { width: 100%; min-width: 0; }
    .lib-hero .lib-title { font-size: 1.6rem; flex-wrap: wrap; }
    .lib-sidebar { gap: 12px; }
}

/* ---- Force library hero column + overflow guard on mobile ---- */
@media (max-width: 768px) {
    #app-content, .lib-page, .lib-detail, .lib-main { overflow-x: hidden; max-width: 100%; }
    .lib-page .lib-hero { flex-direction: column !important; align-items: flex-start !important; }
    .lib-page .lib-hero-emblem { display: none !important; }
    .lib-hero-text .lib-hero-desc { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
    .lib-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Single-column drill-down header (mobile) ---- */
.lib-colhead { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lib-colhead .lib-breadcrumb { margin: 0; }
.lib-back {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border-gold-light); background: #fff; cursor: pointer;
    font-size: 1.5rem; line-height: 1; color: var(--primary-navy);
    display: flex; align-items: center; justify-content: center;
}
.lib-back:hover { background: var(--bg-cream); border-color: var(--lib-accent); }

/* ---- Full-screen Spotify-style Now Playing on phones ---- */
@media (max-width: 820px) {
    .np-overlay { padding: 0; }
    .np-sheet { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
    .np-top { padding: 16px 18px; }
    .np-body { justify-content: flex-start; padding: 10px 26px 40px; }
    .np-cover {
        width: 74vw; height: 74vw; max-width: 340px; max-height: 340px;
        margin: 3vh auto 28px; border-radius: 20px; font-size: 5rem;
    }
    .np-title { font-size: 1.5rem; }
    .np-album { font-size: 1rem; }
    .np-progress { height: 6px; margin: 26px 0 8px; }
    .np-times { font-size: .85rem; }
    .np-controls { gap: 22px; margin-top: 28px; }
    .np-btn { width: 60px; height: 60px; font-size: 1.4rem; }
    .np-btn.np-main { width: 86px; height: 86px; font-size: 2.1rem; }
    /* Reading mode fills the screen nicely */
    .np-overlay[data-mode="reading"] .np-read { max-height: 56vh; }
}

/* ---- Footer must not overflow on small screens (fixes page-wide clipping) ---- */
.footer-column { min-width: 0; }
.footer-column p, .footer-column a, .footer-links a { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 980px) {
    .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 540px) {
    .footer-content { grid-template-columns: 1fr !important; }
}

/* ---- Now Playing queue (Up Next) ---- */
.np-queue { width: 100%; margin-top: 28px; text-align: left; }
.np-queue-head {
    font-size: .78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 10px; padding: 0 4px;
}
.np-queue-head span { font-weight: 500; }
.np-qrow {
    display: flex; align-items: center; gap: 14px; width: 100%;
    border: none; background: transparent; cursor: pointer; text-align: left;
    padding: 11px 12px; border-radius: 10px; transition: background .15s ease;
}
.np-qrow:hover { background: var(--bg-cream); }
.np-qicon {
    flex: 0 0 24px; text-align: center; color: var(--text-muted);
    font-size: .85rem; font-variant-numeric: tabular-nums;
}
.np-qtitle {
    flex: 1; color: var(--text-dark); font-size: .95rem; line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np-qrow.np-qnow .np-qtitle { color: var(--accent-gold-hover); font-weight: 700; }
.np-qrow.np-qnow .np-qicon { color: var(--accent-gold-hover); }

/* Driving mode stays minimal — hide the queue there */
.np-overlay[data-mode="driving"] .np-queue,
.np-overlay[data-mode="reading"] .np-queue { display: none; }

/* On desktop the sheet is compact, so cap the queue height and scroll it */
@media (min-width: 821px) {
    .np-queue { max-height: 30vh; overflow-y: auto; }
}

/* ---- Compact music-player directory list (mobile drill-down) ---- */
.lib-rowlist { display: flex; flex-direction: column; gap: 8px; }
.lib-row {
    display: flex; align-items: center; gap: 14px; width: 100%;
    background: var(--white); border: 1px solid var(--border-gold-light);
    border-radius: 12px; padding: 10px 14px; cursor: pointer; text-align: left;
    transition: background .15s ease, border-color .15s ease;
}
.lib-row:hover, .lib-row:active { background: var(--bg-cream); border-color: var(--lib-accent); }
.lib-row-thumb { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; object-position: center 22%; }
.lib-row-fallback {
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.4rem; font-family: var(--font-gurmukhi);
    background: linear-gradient(150deg, var(--lib-accent), var(--primary-navy));
}
.lib-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lib-row-name { font-weight: 600; color: var(--text-dark); font-size: .98rem; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-row-count { color: var(--lib-accent); font-size: .8rem; font-weight: 600; }
.lib-row-arrow { flex: 0 0 auto; color: var(--text-muted); font-size: 1.5rem; line-height: 1; }

/* ============================================================
   Announcements — notice board
   ============================================================ */
.notice-board-section { padding: 10px 5% 50px; max-width: 1400px; margin: 0 auto; }
.notice-board {
    background:
        radial-gradient(circle at 20% 0%, rgba(197,168,90,0.12), transparent 60%),
        linear-gradient(160deg, #11294a, #0b2240);
    border: 1px solid rgba(197,168,90,0.35);
    border-radius: 18px;
    padding: 30px 26px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}
.notice-card {
    position: relative;
    background: #fffdf4;
    border-radius: 10px;
    padding: 20px 20px 16px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.28);
    border-top: 4px solid var(--accent-gold);
    transition: transform .2s ease, box-shadow .2s ease;
}
.notice-card:nth-child(odd)  { transform: rotate(-0.7deg); }
.notice-card:nth-child(even) { transform: rotate(0.7deg); }
.notice-card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 14px 26px rgba(0,0,0,0.32); z-index: 1; }
.notice-pin {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    font-size: 1.5rem; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}
.notice-new {
    position: absolute; top: 12px; right: 12px;
    background: #e0245e; color: #fff; font-size: .65rem; font-weight: 800;
    letter-spacing: 1px; padding: 3px 9px; border-radius: 20px;
    box-shadow: 0 2px 6px rgba(224,36,94,0.5);
    animation: notice-pulse 1.8s ease-in-out infinite;
}
@keyframes notice-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.notice-text {
    color: var(--text-dark); line-height: 1.6; font-size: .98rem; margin-top: 6px;
    font-family: var(--font-gurmukhi), var(--font-outfit);
}
.notice-date {
    display: inline-block; margin-top: 14px; color: var(--text-muted);
    font-size: .8rem; font-weight: 600;
    border-top: 1px dashed var(--border-gold-light); padding-top: 10px; width: 100%;
}
@media (prefers-reduced-motion: reduce) {
    .notice-card, .notice-card:nth-child(odd), .notice-card:nth-child(even) { transform: none; }
    .notice-new { animation: none; }
}
@media (max-width: 600px) {
    .notice-board { grid-template-columns: 1fr; padding: 24px 16px; gap: 26px; }
}

/* ============================================================
   Radio — real radio-station look
   ============================================================ */
.radio-head { margin-bottom: 16px; }
.radio-head h2 { font-size: 1.3rem; color: var(--primary-navy); }
.radio-head h2 span { color: var(--text-muted); font-weight: 500; font-size: 1rem; }

.radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.radio-card {
    position: relative; overflow: hidden; text-align: center;
    border-radius: 18px; padding: 18px 18px 20px;
    background: radial-gradient(circle at 50% -10%, #1b3c66 0%, #0b2240 70%);
    color: #fff; border: 1px solid rgba(197,168,90,0.28);
    box-shadow: var(--shadow-md); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.radio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.radio-card-top { display: flex; align-items: center; justify-content: space-between; height: 18px; }
.radio-live { display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 800; letter-spacing: 1.5px; color: #ff5a6e; }
.radio-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5a6e; box-shadow: 0 0 8px #ff5a6e; animation: radio-blink 1.3s infinite; }
.radio-eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; opacity: .5; }
.radio-eq i { width: 3px; height: 5px; background: var(--accent-gold); border-radius: 2px; }
.radio-card.playing .radio-eq { opacity: 1; }
.radio-card.playing .radio-eq i { animation: radio-bars .9s ease-in-out infinite; }
.radio-eq i:nth-child(2) { animation-delay: .12s; }
.radio-eq i:nth-child(3) { animation-delay: .24s; }
.radio-eq i:nth-child(4) { animation-delay: .36s; }
.radio-eq i:nth-child(5) { animation-delay: .48s; }

.radio-disc {
    width: 86px; height: 86px; border-radius: 50%; margin: 12px auto 14px; cursor: pointer;
    background:
        radial-gradient(circle at 50% 50%, #0b2240 16%, transparent 17%),
        radial-gradient(circle at 50% 50%, var(--accent-gold) 0%, #b8923f 60%, #8a6c2c 100%);
    border: 4px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: #0b2240; font-size: 1.3rem; box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    transition: transform .2s ease;
}
.radio-disc:hover { transform: scale(1.06); }
.radio-disc-ic { transform: translateX(1px); }
.radio-card.playing .radio-disc { animation: radio-spin 4s linear infinite; }

.radio-name-pa { font-family: var(--font-gurmukhi); font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.radio-name-en { color: rgba(255,255,255,0.72); font-size: .82rem; margin-top: 3px; min-height: 2.3em; line-height: 1.3; }

.radio-card-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.radio-listen {
    border: none; cursor: pointer; background: var(--accent-gold); color: #0b2240;
    font-weight: 800; font-size: .85rem; padding: 9px 18px; border-radius: 30px;
    box-shadow: 0 4px 12px rgba(197,168,90,0.4); transition: filter .15s ease, transform .15s ease;
}
.radio-listen:hover { filter: brightness(1.06); transform: translateY(-1px); }
.radio-card .lib-act { color: rgba(255,255,255,0.6); }
.radio-card .lib-act:hover { background: rgba(255,255,255,0.12); color: #fff; }
.radio-card .lib-fav.on { color: #ff5a6e; }
.radio-card .lib-wish.on { color: var(--accent-gold); }
.radio-card.playing { border-color: var(--accent-gold); box-shadow: 0 0 0 2px rgba(197,168,90,0.6), var(--shadow-lg); }

@keyframes radio-blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes radio-spin  { to { transform: rotate(360deg); } }
@keyframes radio-bars {
    0%, 100% { height: 5px; }
    50% { height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .radio-dot, .radio-card.playing .radio-disc, .radio-card.playing .radio-eq i { animation: none; }
}

/* ============================================================
   Now Playing — premium "real player" look (Standard / Reading)
   ============================================================ */
.np-sheet {
    background:
        radial-gradient(120% 80% at 50% -8%, rgba(197,168,90,0.30), transparent 55%),
        linear-gradient(180deg, #1d2e4d 0%, #0d1a33 56%, #070f1f 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
}
.np-top { border-bottom-color: rgba(255,255,255,0.08); }
.np-tab { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.85); }
.np-tab.active { background: var(--accent-gold); color: #0c1830; border-color: var(--accent-gold); }
.np-close { color: rgba(255,255,255,0.85); }
.np-close:hover { background: rgba(255,255,255,0.1); }

/* Album cover — glossy, glowing */
.np-cover {
    border-radius: 22px;
    box-shadow: 0 28px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06), 0 0 60px rgba(197,168,90,0.18);
    position: relative; overflow: hidden;
}
.np-cover::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 42%);
}
.np-title { color: #fff; font-weight: 800; letter-spacing: .2px; }
.np-album { color: rgba(255,255,255,0.62); }

/* Progress with draggable knob */
.np-progress { background: rgba(255,255,255,0.16); height: 6px; border-radius: 20px; position: relative; }
.np-fill { background: linear-gradient(90deg, #f7e08c, var(--accent-gold)); border-radius: 20px; position: relative; }
.np-fill::after {
    content: ''; position: absolute; right: -7px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; border-radius: 50%; background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5); opacity: 0; transition: opacity .15s ease;
}
.np-progress:hover .np-fill::after { opacity: 1; }
.np-times { color: rgba(255,255,255,0.6); }

/* Controls with SVG icons */
.np-btn {
    background: rgba(255,255,255,0.08); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.np-btn svg { width: 22px; height: 22px; }
.np-btn:hover { background: rgba(255,255,255,0.16); }
.np-btn.np-main {
    background: linear-gradient(145deg, #f7e08c, var(--accent-gold));
    color: #0c1830; box-shadow: 0 12px 28px rgba(197,168,90,0.5);
}
.np-btn.np-main svg { width: 30px; height: 30px; }
.np-btn.np-main:hover { filter: brightness(1.05); transform: scale(1.04); }
.np-btn.on { color: var(--accent-gold); background: rgba(197,168,90,0.18); }
.np-btn.on::after {
    content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent-gold);
}
.np-btn { position: relative; }

/* Up Next queue (dark) */
.np-queue-head { color: rgba(255,255,255,0.5); }
.np-qrow:hover { background: rgba(255,255,255,0.07); }
.np-qicon { color: rgba(255,255,255,0.45); }
.np-qtitle { color: rgba(255,255,255,0.85); }
.np-qrow.np-qnow .np-qtitle { color: var(--accent-gold); }
.np-qbars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.np-qbars i { width: 3px; background: var(--accent-gold); height: 5px; border-radius: 2px; animation: np-bars .9s ease-in-out infinite; }
.np-qbars i:nth-child(2) { animation-delay: .15s; }
.np-qbars i:nth-child(3) { animation-delay: .3s; }
@keyframes np-bars { 0%,100% { height: 4px; } 50% { height: 14px; } }

/* Reading mode panel stays readable on the dark sheet */
.np-overlay[data-mode="reading"] .np-read { background: #fcf7ea; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

@media (prefers-reduced-motion: reduce) { .np-qbars i { animation: none; } }

/* ---- Now Playing cover: proper square album-art ---- */
.np-cover {
    width: min(72vw, 300px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    border-radius: 26px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    color: #fff;
    font-family: var(--font-gurmukhi);
    font-weight: 700;
    font-size: clamp(3.4rem, 20vw, 6.5rem);
    line-height: 1;
    background: linear-gradient(150deg, #34527f 0%, #18294a 55%, #0a1730 100%) !important;
    box-shadow: 0 26px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.07), 0 0 70px rgba(197,168,90,0.22);
    margin-bottom: 26px;
}
/* warm halo glow behind the letter */
.np-cover::before {
    content: ''; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(247,224,140,0.5) 0%, rgba(197,168,90,0.16) 46%, transparent 70%);
    filter: blur(3px); z-index: 0;
}
/* the letter sits above the glow */
.np-cover { isolation: isolate; }
.np-cover > * { position: relative; z-index: 1; }
/* glossy diagonal sheen on top */
.np-cover::after {
    z-index: 2;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 42%);
}

/* ============================================================
   Now Playing cover — spinning vinyl record with logo label
   ============================================================ */
.np-cover {
    width: min(72vw, 300px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    background: none !important;
    box-shadow: 0 26px 60px rgba(0,0,0,0.6), 0 0 70px rgba(197,168,90,0.18) !important;
    overflow: visible;
    isolation: isolate;
    font-size: 0;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 26px;
}
.np-cover::before, .np-cover::after { content: none !important; }

.np-disc {
    width: 100%; height: 100%; border-radius: 50%; position: relative;
    display: flex; align-items: center; justify-content: center;
    background:
        repeating-radial-gradient(circle at 50% 50%, #141417 0 1.5px, #1e1e23 1.5px 3.5px),
        radial-gradient(circle at 38% 30%, #303036 0%, #0a0a0c 72%);
    box-shadow: inset 0 0 55px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.05);
    animation: np-spin 4.5s linear infinite;
    animation-play-state: paused;
}
.np-cover.spinning .np-disc { animation-play-state: running; }



/* ============================================================
   Now Playing cover — simple spinning vinyl with "Gurbani Sewa"
   ============================================================ */
.np-cover {
    width: min(72vw, 300px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    background: none !important;
    overflow: visible;
    isolation: isolate;
    font-size: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 26px 60px rgba(0,0,0,0.6), 0 0 64px rgba(197,168,90,0.18) !important;
    margin-bottom: 26px;
    animation: none !important;
}
.np-cover::before, .np-cover::after { content: none !important; }
.np-cover .np-art { display: none !important; }

.np-disc {
    width: 100%; height: 100%; border-radius: 50%; position: relative;
    display: flex; align-items: center; justify-content: center;
    background:
        repeating-radial-gradient(circle at 50% 50%, #141417 0 1.5px, #1e1e23 1.5px 3.5px),
        radial-gradient(circle at 38% 30%, #2f2f35 0%, #0a0a0c 72%) !important;
    box-shadow: inset 0 0 55px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.05) !important;
    animation: np-spin 5s linear infinite;
    animation-play-state: paused;
}
.np-cover.playing .np-disc { animation-play-state: running; }

/* Gold center label with the brand text */
.np-label {
    width: 50%; aspect-ratio: 1; border-radius: 50%; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    background: radial-gradient(circle at 50% 34%, #f4dd92 0%, #d4b65f 62%, #a8852f 100%);
    color: var(--primary-navy);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.45), inset 0 0 16px rgba(120,90,30,0.35);
    text-align: center;
}
.np-label-mark { font-family: var(--font-gurmukhi); font-size: clamp(1rem, 5vw, 1.6rem); font-weight: 700; line-height: 1; }
.np-label-text { font-size: clamp(0.72rem, 3.4vw, 1.05rem); font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1.06; }
.np-shine {
    position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2;
    background: linear-gradient(125deg, rgba(255,255,255,0.18) 0%, transparent 32%, transparent 72%, rgba(255,255,255,0.07) 100%);
}

@keyframes np-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .np-disc { animation: none !important; } }

/* ============================================================
   Home placeholders + single-column activities
   ============================================================ */
.quick-placeholder { min-height: 92px; opacity: .55;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(197,168,90,.05) 10px, rgba(197,168,90,.05) 20px); }
.activities-single { grid-template-columns: 1fr !important; }

/* ============================================================
   Add-to-playlist button + modal + toast
   ============================================================ */
.lib-act.lib-add:hover { color: var(--accent-gold-hover); }
.radio-card .lib-add { color: rgba(255,255,255,.6); }

.gs-modal { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center;
    background: rgba(11,34,64,.55); backdrop-filter: blur(5px); padding: 20px; }
.gs-modal-card { width: 100%; max-width: 400px; background: var(--white); border-radius: 18px;
    padding: 24px; box-shadow: var(--shadow-lg); }
.gs-modal-card h3 { color: var(--primary-navy); font-size: 1.2rem; }
.gs-modal-sub { color: var(--text-muted); font-size: .9rem; margin: 4px 0 16px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-pl-list { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; margin-bottom: 14px; }
.gs-pl-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    border: 1px solid var(--border-gold-light); background: var(--white); border-radius: 10px;
    padding: 12px 14px; cursor: pointer; text-align: left; font-weight: 600; color: var(--text-dark); }
.gs-pl-opt:hover { background: var(--bg-cream); border-color: var(--accent-gold); }
.gs-pl-count { color: var(--text-muted); font-weight: 500; font-size: .85rem; }
.gs-muted { color: var(--text-muted); font-size: .9rem; padding: 8px 2px; }
.gs-pl-new { display: flex; gap: 8px; margin-bottom: 12px; }
.gs-pl-input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border-gold-light);
    border-radius: 10px; font-size: .95rem; }
.gs-pl-input:focus { outline: none; border-color: var(--accent-gold); }
.gs-pl-create { border: none; cursor: pointer; background: var(--accent-gold); color: var(--primary-navy);
    font-weight: 700; padding: 11px 16px; border-radius: 10px; white-space: nowrap; }
.gs-modal-close { width: 100%; border: 1px solid var(--border-gold-light); background: var(--white);
    color: var(--text-muted); padding: 11px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.gs-modal-close:hover { background: var(--bg-cream); }
.gs-toast { position: fixed; left: 50%; bottom: calc(var(--player-height) + 20px); transform: translateX(-50%);
    z-index: 6000; background: var(--primary-navy); color: #fff; padding: 12px 22px; border-radius: 30px;
    box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem; animation: gs-toast-in .25s ease; }
@keyframes gs-toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============================================================
   My Library page
   ============================================================ */
.ml-tracklist { display: flex; flex-direction: column; gap: 8px; }
.ml-track { display: flex; align-items: center; gap: 14px; background: var(--white);
    border: 1px solid var(--border-gold-light); border-radius: 12px; padding: 12px 16px;
    transition: background .15s ease, border-color .15s ease; }
.ml-track:hover { border-color: var(--accent-gold); background: var(--bg-cream); }
.ml-num { color: var(--text-muted); width: 24px; text-align: center; font-size: .9rem; }
.ml-drag { cursor: grab; color: var(--text-muted); font-size: 1.1rem; width: 22px; text-align: center; user-select: none; }
.ml-play { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--bg-cream); color: var(--accent-gold-hover); font-size: .8rem; }
.ml-play:hover { background: var(--accent-gold); color: #fff; }
.ml-track-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ml-title { font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-album { color: var(--text-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-row-actions { display: flex; gap: 4px; }
.ml-mini { width: 32px; height: 32px; border: none; background: transparent; border-radius: 8px; cursor: pointer;
    color: var(--text-muted); font-size: .8rem; }
.ml-mini:hover { background: var(--bg-cream); color: var(--primary-navy); }
.ml-danger:hover { background: #fdecec; color: #e0245e; }
.ml-clear { border: 1px solid var(--border-gold-light); background: var(--white); color: var(--text-muted);
    padding: 9px 16px; border-radius: 30px; font-weight: 600; cursor: pointer; }
.ml-clear:hover { background: var(--bg-cream); }
.ml-draggable.ml-dragging { opacity: .4; }
.ml-draggable.ml-drop-target { border-color: var(--accent-gold); box-shadow: 0 -2px 0 var(--accent-gold) inset; }

.ml-pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ml-pl-card { display: flex; align-items: center; gap: 14px; background: var(--white);
    border: 1px solid var(--border-gold-light); border-radius: 14px; padding: 16px; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease; }
.ml-pl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ml-pl-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 1.6rem;
    background: linear-gradient(150deg, var(--accent-gold), var(--primary-navy)); }
.ml-pl-name { font-weight: 700; color: var(--text-dark); }
.ml-pl-count { color: var(--text-muted); font-size: .82rem; margin-top: 2px; }

.ml-pl-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ml-pl-title-wrap { flex: 1; min-width: 0; }
.ml-pl-title { color: var(--primary-navy); font-size: 1.4rem; }
.ml-pl-sub { color: var(--text-muted); font-size: .82rem; }
.ml-pl-detail-actions { display: flex; align-items: center; gap: 8px; }
.ml-pl-detail-actions .ml-mini { width: 40px; height: 40px; border: 1px solid var(--border-gold-light); font-size: 1rem; }

/* ---- Compact notice board (latest 2 only) ---- */
.notice-board-section { max-width: 900px; padding: 6px 5% 36px; }
.notice-board { padding: 20px 18px; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.notice-card { padding: 16px 16px 12px; }
.notice-text { font-size: .9rem; line-height: 1.45; }
.notice-date { margin-top: 10px; padding-top: 8px; font-size: .74rem; }
@media (max-width: 600px) { .notice-board { grid-template-columns: 1fr; } }

/* Donate button disabled for now */
.btn-donate { display: none !important; }
