:root {
    --bg: #070b14;
    --card: rgba(15, 23, 42, 0.72);
    --card-hover: rgba(20, 32, 55, 0.9);

    --border: rgba(255, 255, 255, 0.09);

    --neon: #c9974a;
    --neon-blue: #eccb84;
    --purple: #c9974a;

    --text: #f8fafc;
    --muted: #94a3b8;

    --radius: 22px;
    --transition: 0.35s cubic-bezier(.2, .8, .2, 1);
}


/* =========================================================
   PAGE
========================================================= */

.ceremony-detail-wrapper {
    position: relative;

    max-width: 1100px;
    margin: 70px auto;
    padding: 40px;

    color: var(--text);

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(0, 255, 213, .08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 100%,
            rgba(139, 92, 246, .08),
            transparent 30%
        ),
        rgba(8, 13, 25, .88);

    border: 1px solid var(--border);
    border-radius: 30px;

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .55),
        inset 0 1px rgba(255, 255, 255, .05);

    overflow: hidden;
}


/* نور پشت کارت */

.ceremony-detail-wrapper::before {
    content: "";

    position: absolute;

    top: -200px;
    left: 50%;

    width: 500px;
    height: 500px;

    transform: translateX(-50%);

    background: var(--neon);

    filter: blur(180px);
    opacity: .06;

    pointer-events: none;
}


/* =========================================================
   HEADER
========================================================= */

.ceremony-header {
    position: relative;

    padding-bottom: 35px;
    margin-bottom: 35px;

    text-align: center;

    border-bottom: 1px solid var(--border);
}


.ceremony-header h2 {
    margin-bottom: 12px;

    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;

    background: linear-gradient(
        90deg,
        var(--neon),
        var(--neon-blue),
        var(--purple)
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 30px rgba(0, 255, 213, .15);
}


.ceremony-header p {
    margin-bottom: 25px;

    color: var(--muted);

    font-size: 1rem;
}


.ceremony-header h4 {
    margin-bottom: 18px;

    color: #e2e8f0;

    font-weight: 700;
}


/* =========================================================
   POSTER
========================================================= */

.ceremony-header > img {
    width: 180px !important;
    height: 240px;

    object-fit: cover;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, .12);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .5),
        0 0 30px rgba(0, 255, 213, .08);

    transition: var(--transition);
}


.ceremony-header > img:hover {
    transform: translateY(-8px) scale(1.03);

    box-shadow:
        0 30px 60px rgba(0, 0, 0, .6),
        0 0 35px rgba(0, 255, 213, .2);
}


/* =========================================================
   FILE GROUP
========================================================= */

.file-type-group {
    position: relative;

    margin-bottom: 40px;
}


.file-type-group h3 {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 22px;

    color: #f8fafc;

    font-size: 1.25rem;
    font-weight: 800;
}


/* خط کنار عنوان */

.file-type-group h3::before {
    content: "";

    width: 5px;
    height: 25px;

    flex-shrink: 0;

    border-radius: 10px;

    background: linear-gradient(
        var(--neon),
        var(--neon-blue)
    );

    box-shadow:
        0 0 15px rgba(0, 255, 213, .5);
}


/* =========================================================
   BOOTSTRAP ROW
========================================================= */

.file-type-group .row {
    align-items: stretch;
}


/* =========================================================
   COLUMN
========================================================= */

.file-type-group .row > [class*="col-"] {
    display: flex;
}


/* =========================================================
   FILE ITEM
========================================================= */

.file-item {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    /*
       مهم:
       همه کارت‌ها دقیقاً یک ارتفاع دارند
    */
    height: 120px;
    min-height: 120px;

    padding: 14px;

    background: rgba(255, 255, 255, .025);

    border: 1px solid transparent;

    border-radius: var(--radius);

    transition: var(--transition);

    overflow: hidden;
}


.file-item:hover {
    background: var(--card-hover);

    border-color: rgba(0, 255, 213, .15);

    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .35),
        0 0 25px rgba(0, 255, 213, .05);
}


/* =========================================================
   IMAGE
========================================================= */

.thumb-img {
    display: block;

    width: 100%;
    height: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 16px;

    cursor: pointer;

    border: 1px solid rgba(255, 255, 255, .08);

    transition: var(--transition);
}


.file-item:hover .thumb-img {
    transform: scale(1.04);

    border-color: rgba(0, 255, 213, .35);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .5),
        0 0 20px rgba(0, 255, 213, .1);
}


/* =========================================================
   FILE BUTTON
========================================================= */

.file-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 48px;

    min-width: 0;

    padding: 10px 15px;

    border: 1px solid rgba(0, 255, 213, .15);

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 255, 213, .12),
            rgba(0, 170, 255, .08)
        );

    color: var(--neon);

    font-size: .9rem;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);

    overflow: hidden;

    /*
       مهم:
       متن از باکس بیرون نمی‌زند
    */
    white-space: nowrap;

    text-overflow: ellipsis;
}


/*
   اگر متن داخل button یک span باشد
   این هم باعث می‌شود ellipsis درست کار کند
*/

.file-link span {
    display: block;

    width: 100%;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.file-link:hover {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            rgba(0, 255, 213, .25),
            rgba(0, 170, 255, .18)
        );

    border-color: rgba(0, 255, 213, .45);

    transform: translateY(-4px);

    box-shadow:
        0 10px 30px rgba(0, 255, 213, .12);
}


/* =========================================================
   BACK BUTTON
========================================================= */

.ceremony-detail-wrapper > button {
    border: 1px solid rgba(0, 255, 213, .25) !important;

    color: var(--neon) !important;

    background: rgba(0, 255, 213, .04);

    border-radius: 12px;

    transition: var(--transition);
}


.ceremony-detail-wrapper > button:hover {
    color: #000 !important;

    background: var(--neon);

    transform: translateX(4px);

    box-shadow:
        0 8px 25px rgba(0, 255, 213, .25);
}


/* =========================================================
   MODAL
========================================================= */

.custom-modal {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 255, 213, .04),
            transparent 40%
        ),
        rgba(2, 6, 15, .94);

    backdrop-filter: blur(15px);
}


.custom-modal.active {
    display: flex;

    animation: modalFade .25s ease;
}


@keyframes modalFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =========================================================
   MODAL CONTENT
========================================================= */

.modal-content {
    position: relative;

    width: auto;

    max-width: 92vw;

    max-height: 90vh;

    padding: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 30, 48, .95),
            rgba(5, 10, 20, .95)
        );

    border: 1px solid rgba(255, 255, 255, .1);

    border-radius: 24px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .7),
        0 0 50px rgba(0, 255, 213, .05);

    animation:
        modalScale .3s cubic-bezier(.2, .8, .2, 1);
}


@keyframes modalScale {

    from {
        opacity: 0;

        transform:
            scale(.92)
            translateY(15px);
    }

    to {
        opacity: 1;

        transform:
            scale(1)
            translateY(0);
    }
}


/* =========================================================
   VIDEO
========================================================= */

#modalVideo {
    display: block;

    width: auto;

    max-width: 85vw;

    max-height: 75vh;

    margin: auto;

    border-radius: 16px;

    background: #000;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, .6);
}


#videoTitle,
#audioTitle {
    margin: 15px 5px 3px;

    color: #f8fafc;

    text-align: center;

    font-size: 1rem;
}


/* =========================================================
   AUDIO
========================================================= */

#modalAudio {
    display: block;

    width: 450px;

    max-width: 80vw;

    margin: 20px auto 5px;
}


/* =========================================================
   IMAGE MODAL
========================================================= */

#modalImage {
    display: block;

    width: auto !important;

    max-width: 85vw !important;

    max-height: 78vh;

    object-fit: contain;

    border-radius: 16px;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.close,
.close-audio,
.close-image {
    position: absolute;

    top: -16px;

    right: -16px;

    z-index: 100000;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    border: 1px solid rgba(255, 255, 255, .15);

    border-radius: 50%;

    background: rgba(10, 15, 25, .95);

    color: #fff;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    transition: var(--transition);
}


.close:hover,
.close-audio:hover,
.close-image:hover {
    color: #000;

    background: var(--neon);

    transform: rotate(90deg);

    box-shadow:
        0 0 25px rgba(0, 255, 213, .4);
}


/* =========================================================
   FADE IN
========================================================= */

.fade-in {
    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity .6s ease,
        transform .6s cubic-bezier(.2, .8, .2, 1);
}


.fade-in.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .ceremony-detail-wrapper {
 
        border-radius: 22px;
    }


    .ceremony-header h2 {
        font-size: 2rem;
    }


    .ceremony-header > img {
        width: 150px !important;

        height: 200px;
    }


    .file-type-group h3 {
        font-size: 1.1rem;
    }


    /*
       کارت‌ها روی موبایل هم ارتفاع ثابت دارند
    */

    .file-item {
        height: 100px;

        min-height: 100px;

        padding: 8px;

        border-radius: 17px;
    }


    .file-link {
        height: 44px;

        min-width: 0;

        padding: 8px 10px;

        font-size: .8rem;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    .thumb-img {
        border-radius: 12px;
    }


    /* Modal */

    .modal-content {
        max-width: 95vw;

        padding: 12px;

        border-radius: 18px;
    }


    #modalVideo {
        max-width: 90vw;

        max-height: 70vh;
    }


    #modalImage {
        max-width: 90vw !important;

        max-height: 75vh;
    }


    #modalAudio {
        width: 100%;
    }


    .close,
    .close-audio,
    .close-image {
        top: -12px;

        right: -8px;

        width: 36px;

        height: 36px;

        font-size: 20px;
    }
}


/* =========================================================
   CENTER CEREMONY POSTER
========================================================= */

.ceremony-header > img {
    display: block !important;

    width: 180px !important;
    height: 240px;

    margin: 20px auto 0 !important;

    object-fit: cover;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, .12);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .5),
        0 0 30px rgba(0, 255, 213, .08);

    transition: var(--transition);
}

.ceremony-header > img:hover {
    transform: translateY(-8px) scale(1.03);

    box-shadow:
        0 30px 60px rgba(0, 0, 0, .6),
        0 0 35px rgba(0, 255, 213, .2);
}



/* =========================================================
   BOTTOM AUDIO PLAYER
========================================================= */

#bottomAudioPlayer {
    position: fixed;

    left: 0;
    right: 0;
    bottom: -130px;

    z-index: 15000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: 100%;

    padding: 12px 25px;

    background: rgba(16, 13, 14, .96);

    border-top: 1px solid var(--border-soft);

    box-shadow:
        0 -10px 40px rgba(0, 0, 0, .45),
        0 -2px 20px rgba(201, 151, 74, .08);

    color: var(--text);

    transition:
        bottom .45s var(--ease);
}


/* وقتی پلیر باز است */

#bottomAudioPlayer.show {
    bottom: 0;
}


/* =========================================================
   CLOSE
========================================================= */

.close-btn {
    position: absolute;

    top: -20px;
    right: 20px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-radius: 50%;

    border: 1px solid var(--border-soft);

    background: rgba(16, 13, 14, .98);

    color: var(--text-muted);

    cursor: pointer;

    transition:
        color .25s var(--ease),
        border-color .25s var(--ease),
        transform .25s var(--ease);
}


.close-btn:hover {
    color: var(--gold-light);

    border-color: var(--gold);

    transform: rotate(90deg);

    box-shadow:
        0 0 15px rgba(201, 151, 74, .3);
}


/* =========================================================
   PLAYER LEFT
========================================================= */

.player-left {
    display: flex;

    align-items: center;

    gap: 12px;

    flex: 0 1 300px;

    min-width: 0;
}


/* کاور */

.cover {
    width: 55px;
    height: 55px;

    flex: 0 0 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(201, 151, 74, .25),
            rgba(110, 27, 38, .35)
        );

    background-size: cover;
    background-position: center;

    border: 1px solid var(--border-soft);

    color: var(--gold-light);

    overflow: hidden;
}


.cover i {
    font-size: 20px;
}


/* اطلاعات */

.info {
    min-width: 0;

    overflow: hidden;
}


.info span {
    display: block;

    color: var(--text);

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.info small {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   CENTER
========================================================= */

.player-center {
    flex: 1;

    width: 100%;

    max-width: 600px;

    min-width: 0;
}


.controls {
    display: flex;

    justify-content: center;

    margin-bottom: 6px;
}


#playPause {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 50%;
    background-color: #00aaff;

    color: #1c1408;

    cursor: pointer;

    transition:
        transform .25s var(--ease),
        box-shadow .25s var(--ease);
}


#playPause:hover {
    transform: scale(1.08);

    box-shadow:
        0 0 20px rgba(201, 151, 74, .4);
}


/* =========================================================
   PROGRESS
========================================================= */

.progress-container {
    display: flex;

    align-items: center;

    gap: 10px;

    direction: ltr;

    color: var(--text-muted);

    font-size: 11px;
}


#progressBar {
    flex: 1;

    min-width: 0;

    height: 4px;

    cursor: pointer;

    accent-color: var(--gold);
}


/* =========================================================
   VOLUME
========================================================= */

.player-right {
    display: flex;

    align-items: center;

    gap: 10px;

    flex: 0 0 140px;

    color: var(--text-muted);
}


#volume {
    width: 90px;

    accent-color: var(--gold);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    #bottomAudioPlayer {
        gap: 10px;

        padding: 10px 12px;
    }


    .player-left {
        flex: 1;

        max-width: 48%;
    }


    .cover {
        width: 42px;
        height: 42px;

        flex: 0 0 42px;
    }


    .player-center {
        flex: 1;
    }


    .player-right {
        display: none;
    }


    #playPause {
        width: 38px;
        height: 38px;
    }


    .close-btn {
        top: -18px;

        right: 12px;

        width: 34px;
        height: 34px;

        font-size: 12px;
    }


    .info span {
        font-size: 12px;
    }


    .info small {
        font-size: 10px;
    }
}


@media (max-width: 400px) {

    #bottomAudioPlayer {
        padding: 8px;
        gap: 7px;
    }


    .player-left {
        max-width: 50%;
    }


    .cover {
        width: 36px;
        height: 36px;

        flex-basis: 36px;
    }


    #playPause {
        width: 34px;
        height: 34px;
    }


    .progress-container {
        gap: 5px;

        font-size: 9px;
    }
}




