/* =====================================================
   POOJASERVICE - PREMIUM DEVOTIONAL MUSIC EXPERIENCE
   Isolated styles: category page + song player page
===================================================== */

.song-category-section,
.song-section {
    --bh-maroon: #681522;
    --bh-deep: #260b12;
    --bh-gold: #d6ad50;
    --bh-cream: #fff7ec;
    --bh-ink: #321b1b;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Animated devotional hero */
.bhajan-hero {
    --bh-glow: rgba(225,174,77,.18);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 340px;
    padding: 76px 20px 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff7e8;
    background:
        radial-gradient(ellipse at 50% 110%, rgba(195,119,40,.36), transparent 55%),
        radial-gradient(circle at 15% 15%, rgba(211,157,63,.15), transparent 30%),
        linear-gradient(125deg,#210910,#601522 48%,#2c0b13);
}

.bhajan-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -50%;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg 9deg,
        rgba(224,184,102,.10) 10deg,
        transparent 11deg 20deg
    );
    opacity: .35;
    animation: bhajanMandala 90s linear infinite;
}

.bhajan-hero::after {
    content: "ॐ";
    position: absolute;
    z-index: -1;
    font-family: serif;
    font-size: clamp(230px,38vw,420px);
    line-height: 1;
    color: rgba(255,220,151,.045);
    animation: bhajanOm 7s ease-in-out infinite;
}

.bhajan-hero-content {
    width: min(850px,100%);
    position: relative;
    z-index: 2;
    animation: bhajanHeroEnter 1.1s ease both;
}

.bhajan-hero-symbol {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(232,194,112,.8);
    border-radius: 50%;
    color: #f5d58d;
    font-size: 31px;
    box-shadow: 0 0 25px rgba(226,180,84,.2),
                inset 0 0 18px rgba(226,180,84,.12);
    animation: bhajanPulse 3s ease-in-out infinite;
}

.bhajan-hero h1 {
    color: #ffe5ad;
    font-family: 'Yatra One', cursive;
    font-size: clamp(35px,6vw, sixty);
    font-size: clamp(35px,6vw,60px);
    line-height: 1.2;
    margin: 0 0 14px;
    text-shadow: 0 4px 25px rgba(0,0,0,.4);
}

.bhajan-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: #f1d9c9;
    font-size: clamp(13px,2vw,16px);
    line-height: 1.8;
}

.bhajan-hero-ornament {
    margin-top: 24px;
    color: #e8c276;
    letter-spacing: 9px;
    animation: bhajanGlow 3s ease-in-out infinite;
}

.bhajan-floating {
    position: absolute;
    color: rgba(255,213,135,.55);
    pointer-events: none;
    animation: bhajanFloat 7s ease-in-out infinite;
}

.bhajan-floating.one { left: 9%; top: 25%; font-size: 24px; }
.bhajan-floating.two { right: 12%; top: 20%; font-size: 19px; animation-delay: -2s; }
.bhajan-floating.three { left: 19%; bottom: 15%; font-size: 16px; animation-delay: -4s; }
.bhajan-floating.four { right: 20%; bottom: 18%; font-size: 25px; animation-delay: -1s; }

/* Category section */
.song-category-section {
    background:
        radial-gradient(ellipse at 50% 0%,#fff 0%,transparent 60%),
        #fff7ec;
    padding: 55px 18px 75px;
}

.song-category-section .song-category-heading {
    margin-bottom: 38px;
}

.song-category-section .section-heading {
    color: #741c2c;
}

.category-grid {
    max-width: 1160px;
    gap: 24px;
}

.category-card {
    animation: bhajanCardEnter .75s both;
}

.category-card:nth-child(2n) { animation-delay: .08s; }
.category-card:nth-child(3n) { animation-delay: .16s; }
.category-card:nth-child(4n) { animation-delay: .24s; }

.category-frame {
    position: relative;
    height: 100%;
    background: linear-gradient(150deg,#fff,#fff9ef);
    border: 1px solid rgba(190,148,65,.32);
    border-radius: 19px;
    box-shadow: 0 7px 24px rgba(75,24,29,.07);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.category-card:hover .category-frame {
    transform: translateY(-9px);
    border-color: #c99b39;
    box-shadow: 0 16px 35px rgba(106,27,40,.16);
}

.category-image-wrap {
    border-color: #c99b39;
    box-shadow: 0 0 0 5px rgba(201,155,57,.09);
    transition: box-shadow .4s ease, transform .4s ease;
}

.category-card:hover .category-image-wrap {
    transform: scale(1.035);
    box-shadow: 0 0 0 7px rgba(201,155,57,.15),
                0 0 25px rgba(201,155,57,.25);
}

.category-image-wrap img {
    transition: transform .65s ease;
}

.category-card:hover .category-image-wrap img {
    transform: scale(1.09);
}

.category-name {
    color: #421c20;
    font-family: 'Poppins',sans-serif;
}

.category-view-btn {
    background: linear-gradient(120deg,#d8ae56,#9c5726,#721b2b);
    box-shadow: 0 4px 12px rgba(114,27,43,.2);
    transition: box-shadow .3s ease, transform .3s ease;
}

.category-card:hover .category-view-btn {
    transform: translateY(-2px);
    box-shadow: 0 7px 17px rgba(114,27,43,.3);
}

/* Song listing */
.song-section {
    margin-top: 0;
    min-height: 65vh;
    padding: 52px 18px 125px;
    background:
        radial-gradient(ellipse at 50% 0%,#fff 0%,transparent 55%),
        #fff7ec;
}

.song-section .section-heading {
    color: #741c2c;
    margin-bottom: 38px;
    position: relative;
    animation: bhajanHeroEnter .7s ease both;
}

.song-section .section-heading::after {
    content: "✦ ━━━━━ ✦";
    display: block;
    color: #c49a45;
    font-size: 13px;
    letter-spacing: 4px;
    margin-top: 9px;
}

.song-grid {
    max-width: 1160px;
    gap: 25px 20px;
}

.song-card {
    overflow: hidden;
    border: 1px solid rgba(195,153,68,.3);
    border-radius: 18px;
    background: linear-gradient(145deg,#fff,#fffaf1);
    box-shadow: 0 6px 22px rgba(80,27,32,.07);
    animation: bhajanCardEnter .7s both;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.song-card:nth-child(2n) { animation-delay: .08s; }
.song-card:nth-child(3n) { animation-delay: .16s; }

.song-card:hover {
    transform: translateY(-7px);
    border-color: #c99b39;
    box-shadow: 0 15px 32px rgba(80,27,32,.14);
}

.song-art-wrap {
    overflow: hidden;
    background: #f0dfc5;
}

.song-art-wrap img {
    transition: transform .65s ease, filter .4s ease;
}

.song-card:hover .song-art-wrap img {
    transform: scale(1.07);
}

.song-card.is-active {
    border-color: #c99b39;
    box-shadow: 0 0 0 2px rgba(201,155,57,.13),
                0 12px 28px rgba(80,27,32,.13);
}

.song-card.is-active .song-art-wrap::after {
    background: rgba(50,12,22,.35);
}

.play-badge {
    background: linear-gradient(135deg,#e6bd67,#a65c2b,#751b2b);
    box-shadow: 0 4px 16px rgba(103,26,41,.32);
    transition: transform .3s ease, box-shadow .3s ease;
}

.song-card:hover .play-badge {
    box-shadow: 0 0 0 6px rgba(207,165,81,.18),
                0 5px 20px rgba(103,26,41,.4);
}

.song-name {
    color: #421c20;
}

.now-playing-tag {
    color: #a16b22;
}

.equalizer span {
    background: #f2cc76;
}

/* Premium mini player */
#miniPlayer {
    background:
        radial-gradient(ellipse at 10% 0%,rgba(211,168,87,.15),transparent 50%),
        linear-gradient(110deg,#230b12,#51131f 55%,#270b12);
    border-top: 1px solid rgba(218,180,99,.65);
    box-shadow: 0 -8px 30px rgba(40,8,17,.25);
}

.mini-progress {
    background: rgba(255,255,255,.15);
}

.mini-progress-fill {
    background: linear-gradient(90deg,#bd8735,#f8d78e);
    box-shadow: 0 0 9px rgba(246,206,121,.6);
}

.mini-player-art {
    border: 1px solid rgba(221,185,105,.7);
    box-shadow: 0 0 12px rgba(221,185,105,.2);
}

.mini-btn.mini-toggle {
    background: linear-gradient(135deg,#f5d88d,#c18c39);
    color: #34131a;
    box-shadow: 0 3px 13px rgba(0,0,0,.2);
    transition: transform .2s ease;
}

.mini-btn.mini-toggle:active {
    transform: scale(.9);
}

/* Full-screen player */
#nowPlaying {
    background:
        radial-gradient(ellipse at 50% 35%,rgba(151,72,44,.22),transparent 55%),
        radial-gradient(circle at 50% 0%,rgba(214,172,91,.1),transparent 35%),
        linear-gradient(155deg,#210910,#52131f 55%,#16080d);
}

#nowPlaying::before {
    content: "ॐ";
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-family: serif;
    font-size: 330px;
    color: rgba(238,196,120,.035);
    pointer-events: none;
    animation: bhajanOm 12s ease-in-out infinite;
}

.np-art {
    border: 2px solid rgba(222,185,106,.75);
    box-shadow: 0 0 0 8px rgba(218,175,90,.08),
                0 20px 55px rgba(0,0,0,.5);
    animation: bhajanArtwork 5s ease-in-out infinite;
}

.np-toggle {
    background: linear-gradient(135deg,#f6dc9c,#c28d3d) !important;
    color: #36131b !important;
    box-shadow: 0 0 24px rgba(225,180,88,.2);
    transition: transform .25s ease;
}

.np-toggle:active {
    transform: scale(.92);
}

.np-title {
    color: #ffe2a5;
}

/* Animation definitions */
@keyframes bhajanMandala {
    to { transform: rotate(360deg); }
}

@keyframes bhajanOm {
    0%,100% { opacity: .55; }
    50% { opacity: 1; }
}

@keyframes bhajanPulse {
    0%,100% { box-shadow: 0 0 15px rgba(226,180,84,.16); }
    50% { box-shadow: 0 0 35px rgba(226,180,84,.48),inset 0 0 18px rgba(226,180,84,.2); }
}

@keyframes bhajanGlow {
    0%,100% { opacity: .65; }
    50% { opacity: 1; text-shadow: 0 0 16px #eac878; }
}

@keyframes bhajanFloat {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-19px) rotate(10deg); }
}

@keyframes bhajanHeroEnter {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bhajanCardEnter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bhajanArtwork {
    0%,100% { box-shadow: 0 0 0 8px rgba(218,175,90,.08),0 20px 55px rgba(0,0,0,.5); }
    50% { box-shadow: 0 0 0 12px rgba(218,175,90,.13),0 20px 55px rgba(0,0,0,.5); }
}

@media(max-width:576px) {
    .bhajan-hero {
        min-height: 285px;
        padding: 58px 17px 52px;
    }

    .bhajan-hero-symbol {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .bhajan-floating.one { left: 5%; }
    .bhajan-floating.two { right: 5%; }

    .song-category-section {
        padding: 38px 12px 55px;
    }

    .category-grid {
        gap: 15px;
    }

    .category-body {
        padding: 10px 7px 13px;
    }

    .category-name {
        font-size: .85rem;
    }

    .category-view-btn {
        padding: 7px 15px;
    }

    .song-section {
        padding: 38px 12px 125px;
    }

    .song-grid {
        gap: 17px 12px;
    }

    .song-card {
        border-radius: 14px;
    }

    .song-card-body {
        padding-left: 8px;
        padding-right: 8px;
    }

    .song-name {
        font-size: .82rem;
    }

    .np-art {
        animation: none;
    }
}

@media(prefers-reduced-motion:reduce) {
    .bhajan-hero *,
    .bhajan-hero::before,
    .bhajan-hero::after,
    .song-category-section *,
    .song-section *,
    #nowPlaying::before {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================
   BHajan PLAYER UPGRADE - BUTTON FIX + ANIMATED PLAYER
===================================================== */

/* FIX: Keep the complete card play button inside artwork */
.song-card {
    overflow: hidden;
}

.song-art-wrap {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.song-art-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-badge {
    position: absolute;
    left: 50%;
    bottom: 12px;
    top: auto;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    padding: 0;
    margin: 0;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border: 2px solid rgba(255,245,215,.9);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 0 5px rgba(220,178,91,.2),
                0 7px 22px rgba(35,7,14,.45);
    transition: transform .3s ease, box-shadow .3s ease;
}

.play-badge svg {
    width: 20px;
    height: 20px;
}

.song-card:hover .play-badge {
    transform: translateX(-50%) scale(1.12);
    box-shadow: 0 0 0 8px rgba(220,178,91,.22),
                0 8px 28px rgba(35,7,14,.5);
}

.play-badge:active {
    transform: translateX(-50%) scale(.94);
}

/* Full-screen player ambient atmosphere */
#nowPlaying {
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 50% 38%, rgba(186,112,55,.27), transparent 48%),
        radial-gradient(circle at 8% 85%, rgba(201,155,57,.12), transparent 32%),
        radial-gradient(circle at 92% 12%, rgba(155,49,63,.2), transparent 32%),
        linear-gradient(145deg,#17070d,#521321 48%,#1c080f);
}

#nowPlaying::after {
    content: "";
    position: absolute;
    inset: -50%;
    z-index: -1;
    pointer-events: none;
    opacity: .22;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg 14deg,
        rgba(231,190,111,.12) 15deg,
        transparent 16deg 30deg
    );
    animation: bhPlayerMandala 100s linear infinite;
}

#nowPlaying > * {
    position: relative;
    z-index: 1;
}

/* Animated golden artwork frame */
.np-art-wrap {
    position: relative;
    isolation: isolate;
}

.np-art-wrap::before,
.np-art-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(83vw,350px);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
}

.np-art-wrap::before {
    transform: translate(-50%,-50%);
    border: 1px solid rgba(247,211,133,.65);
    box-shadow: 0 0 20px rgba(225,180,88,.2),
                inset 0 0 20px rgba(225,180,88,.12);
    animation: bhPlayerRing 8s linear infinite;
}

.np-art-wrap::after {
    width: min(88vw,370px);
    transform: translate(-50%,-50%);
    border: 1px dashed rgba(238,199,120,.35);
    animation: bhPlayerRing 28s linear infinite reverse;
}

.np-art {
    position: relative;
    z-index: 2;
    width: min(70vw,290px);
    height: min(70vw,290px);
    max-width: 100%;
    border-radius: 20px;
    border: 3px solid rgba(242,207,130,.9);
    box-shadow: 0 0 0 7px rgba(226,181,91,.1),
                0 0 35px rgba(228,174,75,.25),
                0 22px 60px rgba(0,0,0,.55);
    animation: bhPlayerArtwork 5s ease-in-out infinite;
}

/* Song title and devotional label */
.np-meta {
    position: relative;
    z-index: 2;
}

.np-eyebrow {
    color: #f2d18c;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.np-title {
    text-shadow: 0 2px 15px rgba(242,194,104,.25);
}

/* Glowing seek bar */
.np-seek {
    cursor: pointer;
    accent-color: #f3cc79;
    filter: drop-shadow(0 0 5px rgba(246,202,113,.45));
}

.np-progress-row {
    position: relative;
}

.np-time {
    color: #ead5b7;
    font-variant-numeric: tabular-nums;
}

/* Premium circular playback controls */
.np-controls {
    gap: clamp(8px,2vw,18px);
    padding-bottom: 8px;
}

.np-controls > .np-btn:not(.np-toggle) {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 1px solid rgba(232,196,120,.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.055);
    color: #f8e8c9;
    transition: transform .25s ease, background .25s ease,
                box-shadow .25s ease, border-color .25s ease;
}

.np-controls > .np-btn:not(.np-toggle):hover {
    transform: translateY(-3px);
    border-color: #e4bd6d;
    background: rgba(218,172,87,.16);
    box-shadow: 0 0 18px rgba(218,172,87,.18);
}

.np-btn.np-toggle {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border: 3px solid rgba(255,239,197,.9);
    background: linear-gradient(145deg,#ffe8a9,#d29a42 65%,#a96b2b) !important;
    color: #42151d !important;
    box-shadow: 0 0 0 7px rgba(222,178,91,.12),
                0 0 30px rgba(235,185,85,.32);
    transition: transform .25s ease, box-shadow .25s ease;
}

.np-btn.np-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(222,178,91,.15),
                0 0 38px rgba(235,185,85,.5);
}

.np-btn.np-toggle:active {
    transform: scale(.94);
}

/* Mini-player refinements */
#miniPlayer {
    background:
        radial-gradient(ellipse at 50% 0%,rgba(222,177,89,.18),transparent 60%),
        linear-gradient(110deg,#1d080f,#571522 55%,#260a12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.mini-player-art {
    border-radius: 10px;
    animation: bhMiniArtwork 4s ease-in-out infinite;
}

.mini-btn {
    transition: transform .2s ease, color .2s ease;
}

.mini-btn:hover {
    transform: scale(1.12);
    color: #f4d18a;
}

.mini-btn.mini-toggle {
    border: 2px solid rgba(255,244,211,.8);
}

.mini-progress {
    height: 4px;
}

.mini-progress-fill {
    border-radius: 10px;
    transition: width .15s linear;
}

/* Animation definitions */
@keyframes bhPlayerMandala {
    to { transform: rotate(360deg); }
}

@keyframes bhPlayerRing {
    0% { transform: translate(-50%,-50%) rotate(0deg); }
    100% { transform: translate(-50%,-50%) rotate(360deg); }
}

@keyframes bhPlayerArtwork {
    0%,100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 7px rgba(226,181,91,.1),
                    0 0 25px rgba(228,174,75,.22),
                    0 22px 60px rgba(0,0,0,.55);
    }
    50% {
        transform: translateY(-5px) scale(1.015);
        box-shadow: 0 0 0 11px rgba(226,181,91,.16),
                    0 0 42px rgba(228,174,75,.38),
                    0 25px 65px rgba(0,0,0,.58);
    }
}

@keyframes bhMiniArtwork {
    0%,100% { box-shadow: 0 0 10px rgba(221,185,105,.2); }
    50% { box-shadow: 0 0 19px rgba(221,185,105,.55); }
}

/* Mobile player sizing */
@media(max-width:576px) {
    #nowPlaying {
        padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
    }

    .np-top {
        margin-bottom: 12px;
    }

    .np-art {
        width: min(66vw,260px);
        height: min(66vw,260px);
    }

    .np-art-wrap::before {
        width: min(77vw,290px);
    }

    .np-art-wrap::after {
        width: min(82vw,310px);
    }

    .np-meta {
        margin-top: 17px;
    }

    .np-controls {
        gap: clamp(5px,1.7vw,12px);
        margin-top: 20px;
    }

    .np-btn.np-toggle {
        width: 58px;
        height: 58px;
    }

    .np-controls > .np-btn:not(.np-toggle) {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .np-extra-controls .np-control-icon {
        width: 36px;
        height: 36px;
    }

    .np-extra-controls .np-btn {
        width: 40px;
    }

    .np-extra-controls .np-control-label {
        font-size: .5rem;
    }
}

@media(max-height:650px) {
    .np-top { margin-bottom: 8px; }
    .np-art { width: min(48vh,220px); height: min(48vh,220px); }
    .np-art-wrap::before { width: min(55vh,250px); }
    .np-art-wrap::after { width: min(59vh,270px); }
    .np-meta { margin-top: 10px; }
    .np-controls { margin-top: 12px; }
}

@media(prefers-reduced-motion:reduce) {
    .np-art,
    .np-art-wrap::before,
    .np-art-wrap::after,
    #nowPlaying::after,
    .mini-player-art {
        animation: none !important;
    }
}


/* ===== PHASE 4G.2: BHAJAN ICONS ===== */

.bhajan-hero .bh-custom-icon,
.song-category-section .bh-custom-icon,
.song-section .bh-custom-icon {
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
}

.bhajan-hero .bh-hero-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
}

.song-category-section .song-category-heading-icon .bh-category-icon {
    display: block;
    width: 32px;
    height: 32px;
}

.song-section .section-heading .bh-songs-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
}

@media (max-width: 576px) {
    .bhajan-hero .bh-hero-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .song-category-section .song-category-heading-icon .bh-category-icon {
        width: 26px;
        height: 26px;
    }

    .song-section .section-heading .bh-songs-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }
}

/* ===== END PHASE 4G.2 ICONS ===== */
