/*# sourceMappingURL=main.css.map */
/* ===========================
   KÖ-RADIO – Home Card / Page
   =========================== */

/* کانتینر رادیو داخل صفحه (نه فول‌اسکرین) */
.radio-page-main {
    padding: 32px 0 40px;   /* فقط فاصله بالا/پایین */
    width: 100%;
}

/* رادیو وسط صفحه با حاشیه کناری روی موبایل */
.radio-page-wrapper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;        /* حاشیه از طرفین برای موبایل */
    box-sizing: border-box;
}

/* ----- کارت اصلی رادیو ----- */

.radio-page-card {
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 28px;
    border-radius: 24px;
    background: #b30024; /* قرمز ثابت برای کل کارت */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* متن بالای کارت */

.radio-page-kicker {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4px;
}

.radio-page-title {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}

/* اسم رادیو وسط کادر */

.radio-page-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin: 4px 0 8px;
    opacity: 0.9;
}

/* توضیح زیرعنوان */

.radio-page-sub {
    font-size: 14px;
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ===========================
   کنترل‌ها و دکمه
   =========================== */

.radio-page-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.radio-page-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: #ffffff;      /* دکمه سفید */
    color: #b30024;           /* متن قرمز */
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.radio-page-play-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.radio-page-play-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* حالت پخش (is-playing) → دکمه برعکس */

.radio-page-play-btn.is-playing {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.radio-page-play-icon {
    font-size: 16px;
}

/* وضعیت زیر دکمه */

.radio-page-status {
    font-size: 12px;
    opacity: 0.9;
}

/* ===========================
   Equalizer Animation
   =========================== */

.radio-page-eq {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 26px;
    margin: 10px auto 4px;
    opacity: 0.35;
    transition: opacity 0.18s ease;
}

.radio-page-eq span {
    display: block;
    width: 3px;
    border-radius: 999px;
    background: #ffffff;
    height: 6px;
    animation: radio-eq-bounce 1s ease-in-out infinite;
    animation-play-state: paused; /* تا وقتی is-active نیاد، خاموش */
}

/* فازهای مختلف برای هر ستون */

.radio-page-eq span:nth-child(1) { animation-delay: 0s; }
.radio-page-eq span:nth-child(2) { animation-delay: 0.1s; }
.radio-page-eq span:nth-child(3) { animation-delay: 0.2s; }
.radio-page-eq span:nth-child(4) { animation-delay: 0.3s; }
.radio-page-eq span:nth-child(5) { animation-delay: 0.4s; }

.radio-page-eq.is-active {
    opacity: 0.85;
}

.radio-page-eq.is-active span {
    animation-play-state: running;
}

@keyframes radio-eq-bounce {
    0%, 100% {
        height: 6px;
    }
    40% {
        height: 24px;
    }
    60% {
        height: 14px;
    }
}

/* ===========================
   Note پایین کارت
   =========================== */

.radio-page-note {
    font-size: 12px;
    line-height: 1.6;
    max-width: 520px;
    margin: 8px auto 0;
    opacity: 0.9;
}

/* ===========================
   Responsive
   =========================== */

@media (min-width: 768px) {
    .radio-page-card {
        padding: 40px 40px 32px;
        gap: 18px;
    }

    .radio-page-title {
        font-size: 32px;
    }

    .radio-page-name {
        font-size: 24px;
    }

    .radio-page-sub {
        font-size: 15px;
    }

    .radio-page-controls {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .radio-page-status {
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .radio-page-card {
        border-radius: 20px;
        padding: 24px 18px 22px;
    }

    .radio-page-title {
        font-size: 22px;
    }

    .radio-page-name {
        font-size: 18px;
        letter-spacing: 0.18em;
    }

    .radio-page-sub {
        font-size: 13px;
    }

    .radio-page-play-btn {
        width: 100%;
        max-width: 260px;
    }
}



/* ---------------- KO-RADIO — Base ---------------- */

.ko-radio-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 32px;          /* دسکتاپ: کمی بالاتر از لبه پایین */
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.ko-radio-inner {
    pointer-events: auto;
}

/* دکمه: همیشه وسط، باریک‌تر، داخل صفحه */
.ko-radio-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: min(340px, 80vw); /* حداکثر 340px، حداقل 10% فاصله از هر طرف */
    padding: 12px 20px;

    background: #c8001f;
    color: #fff;
    border: none;
    border-radius: 999px;

    font-weight: 700;
    font-size: clamp(13px, 1.5vw, 17px);
    text-transform: uppercase;

    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* دایره پلی چپ */
.ko-radio-icon-circle {
    width: clamp(26px, 2.2vw, 30px);
    height: clamp(26px, 2.2vw, 30px);
    border-radius: 999px;
    border: 2px solid #fff;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;
}

.ko-radio-icon {
    font-size: clamp(12px, 1.4vw, 16px);
}

/* متن KÖ-RADIO وسط */
.ko-radio-label {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 2px;
    letter-spacing: 1.3px;
}

.ko-radio-label span {
    display: inline-block;
    animation: wave 1.4s ease-in-out infinite;
}

.ko-radio-label span:nth-child(1) { animation-delay: 0s; }
.ko-radio-label span:nth-child(2) { animation-delay: 0.1s; }
.ko-radio-label span:nth-child(3) { animation-delay: 0.2s; }
.ko-radio-label span:nth-child(4) { animation-delay: 0.3s; }
.ko-radio-label span:nth-child(5) { animation-delay: 0.4s; }
.ko-radio-label span:nth-child(6) { animation-delay: 0.5s; }
.ko-radio-label span:nth-child(7) { animation-delay: 0.6s; }
.ko-radio-label span:nth-child(8) { animation-delay: 0.7s; }

@keyframes wave {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(-2px); opacity: 0.9; }
}

/* متن Offline مخفی */
.ko-radio-status {
    display: none;
}

/* ---------------- Breakpoints برای پوزیشن و عرض ---------------- */

/* لپ‌تاپ کوچیک / تبلت افقی */
@media (max-width: 1200px) {
    .ko-radio-bar {
        bottom: 36px;
    }
}

/* تبلت / iPad عمودی */
@media (max-width: 992px) {
    .ko-radio-bar {
        bottom: 48px;
    }
    .ko-radio-play {
        width: min(320px, 82vw);   /* کمی باریک‌تر */
    }
}

/* موبایل‌های متوسط (S20, iPhone 14, ...) */
@media (max-width: 768px) {
    .ko-radio-bar {
        bottom: 68px;              /* بالاتر، از نوار مرورگر فاصله می‌گیرد */
    }
    .ko-radio-play {
        width: min(310px, 85vw);   /* باز هم باریک‌تر، همیشه فاصله از کناره‌ها */
        padding: 11px 18px;
    }
}

/* موبایل‌های کوچک (مثل iPhone SE، S8) */
@media (max-width: 480px) {
    .ko-radio-bar {
        bottom: 82px;              /* بیشتر می‌آد بالا */
    }
    .ko-radio-play {
        width: min(280px, 88vw);
        padding: 10px 16px;
        font-size: clamp(12px, 3.4vw, 15px);
    }
    .ko-radio-icon-circle {
        width: 26px;
        height: 26px;
    }
}
