﻿:root {
    --primary: #6f0f12;
    --gold: #d9a441;
    --glass: rgba(255,255,255,.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    height: 100vh;
    overflow: hidden;
    font-family: Arial,sans-serif;
    background: linear-gradient(rgba(255,248,235,.82),rgba(255,248,235,.82)), url('../images/temple.jpg') center/cover fixed;
}

.main-container {
    display: flex;
    height: 100vh
}

.trishul-container {
    text-align: center;
    margin-top: 10px;
    margin-bottom: -10px;
    position: relative;
    z-index: 20;
}

.trishul {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(217,164,65,.8)) drop-shadow(0 0 20px rgba(217,164,65,.5));
}

.sidebar {
    width: 300px;
    overflow-y: auto;
    backdrop-filter: blur(12px);
    background: var(--glass);
    border-right: 1px solid rgba(255,255,255,.3);
}

.sidebar-header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 16px;
    text-align: center;
    background: linear-gradient(90deg,#6f0f12,#a61a1a,#6f0f12);
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 10px;
}

.gallery {
    padding: 10px
}

.thumb {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
    transition: .25s
}

    .thumb:hover {
        transform: translateY(-3px)
    }

    .thumb.active {
        border: 3px solid var(--gold);
        box-shadow: 0 0 15px rgba(217,164,65,.7)
    }

    .thumb img {
        width: 100%;
        height: 130px;
        object-fit: cover
    }

.thumb-title {
    padding: 10px;
    text-align: center;
    font-weight: bold
}

.video-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.video-header {
    background: linear-gradient(90deg,#6f0f12,#a61a1a,#6f0f12);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 24px;
    font-weight: bold;
    width: 100%;
    border-radius: 10px;
}

.mantra {
    background: #fff6d5;
    padding: 8px;
    text-align: center;
    border-bottom: 2px solid var(--gold);
    font-weight: bold;
    color: #6f0f12
}

.prb-credit {
    margin-top: 4px;
    font-size: 12px;
    color: #7b1113;
    letter-spacing: 1px;
    opacity: .9;
}

.player-container {
    flex: 1;
    padding: 10px;
    overflow: auto;
}

.player-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    height: 100%;
    max-width: none;
    max-width: 1400px;
    background: #fff;
    border: 6px solid var(--gold);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(217,164,65,.5),0 10px 35px rgba(0,0,0,.2)
}

.video-wrapper {
    position: relative;
    height: calc(100% - 55px);
    padding-top: 0;
    flex: 1;
}

    .video-wrapper iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: none
    }

.current-title {
    padding: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: bold
}

.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: red;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 1.5s infinite
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,0,0,.7)
    }

    70% {
        box-shadow: 0 0 0 12px rgba(255,0,0,0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255,0,0,0)
    }
}

.diya {
    position: fixed;
    bottom: 15px;
    font-size: 42px;
    z-index: 1000;
    animation: flicker 2s infinite alternate
}

.diya-left {
    left: 15px
}

.diya-right {
    right: 15px
}

@keyframes flicker {
    from {
        filter: drop-shadow(0 0 4px orange)
    }

    to {
        filter: drop-shadow(0 0 14px orange);
        transform: scale(1.08)
    }
}

.petal {
    position: fixed;
    top: -100px;
    pointer-events: none;
    z-index: 9999;
    filter: drop-shadow(0 0 4px rgba(0,0,0,.3)) saturate(1.5)
}

@keyframes fall {
    0% {
        transform: translateY(-50px) translateX(0) rotate(0)
    }

    100% {
        transform: translateY(120vh) translateX(120px) rotate(720deg);
        opacity: 0
    }
}

@media(max-width:768px) {
    .trishul {
        height: 60px;
    }

    .video-section {
        order: 1;
        height: 45vh;
        flex: none;
    }

    .sidebar {
        order: 2;
        height: 50vh;
    }

    .main-container {
        flex-direction: column
    }

    .video-section {
        height: 45vh;
        flex: none
    }

    .sidebar {
        width: 100%;
        height: 50vh;
        border-right: none
    }

    .sidebar-header {
        display: none
    }

    .thumb {
        display: flex;
        align-items: center
    }

        .thumb img {
            width: 30vw;
            min-width: 30vw;
            height: 72px
        }

    .thumb-title {
        text-align: left;
        padding: 10px
    }

    .current-title {
        display: none
    }
}
