/* ==========================================================================
   EPIC FM — style.css
   ========================================================================== */

/* ==========================================================================
   1) main.min.css
   ========================================================================== */
:root {
    --primary: #6c6fc6;
    --bg-body: #262626;
    --bg-app: #0a0a0a;
    --bg-inset: #404040;
    --bg-transparent: rgb(255 255 255 / 10%);
    --bg-modal: rgb(255 255 255 / 20%);
    --bg-dark: rgb(0 0 0 / 75%);
    --bg-gradient: linear-gradient(140deg, #2b9acd, #2c18ad);
    --color-title: #ffffff;
    --color-text: rgb(255 255 255 / 50%);
    --duration: 0.3s;
    --container: 1480px;
    --spacer: 1rem;
    --shadow-l: 0px 8px 17px 2px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12), 0px 5px 5px -3px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12), 0px 8px 10px -7px rgba(0, 0, 0, 0.2);
    --scrollbar-color: rgb(255 255 255 / 50%);
    --main-padding: 1rem;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

*,
::after,
::before {
    box-sizing: border-box;
}

body,
html {
    height: 100%;
}

* {
    margin: 0;
}

fieldset,
legend {
    padding: 0;
}

fieldset,
iframe {
    border-width: 0;
}

a {
    color: inherit;
    text-decoration: none;
    color: var(--primary);
    transition: color var(--duration);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
    overflow-wrap: break-word;
}

address {
    font-style: normal;
    line-height: inherit;
}

abbr[title] {
    text-decoration: underline dotted;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

button,
input,
optgroup,
select,
textarea {
    padding: 0;
    border-width: 0;
    font-size: 100%;
    font-family: inherit;
    line-height: inherit;
    color: inherit;
}

input:focus,
textarea:focus {
    outline: 0;
}

textarea {
    resize: vertical;
}

button,
select {
    text-transform: none;
}

[type="button"],
[type="reset"],
[type="submit"],
button {
    -webkit-appearance: button;
    background-color: transparent;
    display: inline-block;
    vertical-align: middle;
}

[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled),
button:not(:disabled) {
    cursor: pointer;
}

progress {
    vertical-align: baseline;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

summary {
    display: list-item;
}

[hidden] {
    display: none;
}

dd,
dl,
ol,
ul {
    list-style: none;
    padding: 0;
}

table {
    border-collapse: collapse;
    max-width: 100%;
}

tbody,
td,
th,
thead,
tr {
    border-width: 0;
    text-align: inherit;
}

tr>* {
    padding: 0.75rem;
    word-break: normal;
}

canvas,
img,
svg,
video {
    height: auto;
}

source {
    display: none;
}

canvas,
embed,
iframe,
img,
object,
svg,
video {
    display: block;
    max-width: 100%;
}

audio,
video {
    width: 100%;
}

body {
    background-size: cover;
    background-color: var(--bg-body);
    color: var(--color-text);
    font-family: Montserrat, sans-serif;
    transition: background-color var(--duration);
}

body.preload * {
    transition: none !important;
}

@media (max-width: 575px) {

    body,
    html {
        overflow: hidden;
    }
}

::-webkit-resizer {
    display: none;
}

b,
strong {
    font-weight: 700;
    color: var(--color-title);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: var(--btn-gap, 0.5rem);
    background-color: var(--btn-bg, var(--bg-transparent));
    padding: var(--btn-padding, 0.75rem);
    color: var(--btn-color, var(--color-title));
    font-size: var(--btn-fs, 0.875rem);
    font-weight: 700;
    border-radius: 999px;
    line-height: 1.5;
    transition-property: box-shadow, background-color, color;
    transition-duration: var(--duration);
    text-transform: uppercase;
}

.btn:hover {
    color: var(--btn-color-hover, var(--color-title));
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truncate-line {
    display: -webkit-box;
    -webkit-line-clamp: var(--line-clamp, 2);
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app {
    background-color: var(--bg-app);
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.app::after {
    content: "";
    inset: 0;
    position: absolute;
    background-image: linear-gradient(transparent 70%, #000);
    z-index: 5;
    pointer-events: none;
}

.header {
    position: absolute;
    width: 100%;
    z-index: 50;
}

.header-wrapper {
    padding: var(--main-padding);
}

.header-logo-img {
    height: 80px;
    width: auto;
}

.toggle-options {
    gap: 0.5rem;
}

@media (min-width: 992px) {
    :root {
        --main-padding: 3vw;
    }

    .btn {
        --btn-fs: 0.875vw;
        --btn-padding: 0.75vw;
        --i-size: 1.25vw;
        --btn-gap: 0.5vw;
    }

    .header-logo-img {
        max-width: 10vw;
        height: auto;
    }

    .toggle-options {
        gap: 0.5vw;
    }
}

@media (max-width: 991px) {
    .header {
        box-shadow: var(--shadow-l);
    }

    .toggle-options {
        --btn-fs: 0;
        --btn-gap: 0;
        --i-size: 16px;
    }
}

.main>*+* {
    margin-top: 3rem;
}

.scrollbar {
    overflow: auto;
    scrollbar-color: var(--scrollbar-color) transparent;
    scrollbar-width: thin;
}

.scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: transparent;
}

.scrollbar::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 5px;
}

.scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-color);
    border-radius: 10px;
}

.dropdown {
    position: absolute;
    width: 140px;
    background-color: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 1rem;
    left: 50%;
    box-shadow: var(--shadow-l);
    transform: translateX(-50%);
    bottom: calc(100% + 0.5rem);
    transition: opacity var(--duration), transform var(--duration);
}

.dropdown:not(.is-active) {
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(-1rem);
}

@media (min-width: 992px) {
    .footer {
        position: absolute;
        padding: var(--main-padding);
        bottom: 0;
        left: 0;
        display: inline-flex;
        z-index: 10;
    }

    .footer-wrapper {
        gap: 1.25vw;
    }
}

.footer small {
    font-size: 1rem;
}

@media (max-width: 991px) {
    .footer-app {
        padding: var(--main-padding);
        border-top: 1px solid;
        border-bottom: 1px solid;
        justify-content: center;
    }

    .footer-copyright {
        padding: var(--main-padding);
        text-align: center;
    }

    .footer-tv {
        padding-bottom: 1rem;
        text-align: center;
    }

    .mobile-menu {
        position: fixed;
        height: 100vh;
        padding-top: calc(2rem + 72px);
        z-index: 40;
        transition: transform var(--duration);
        width: 100%;
    }

    .mobile-menu:not(.is-active) {
        pointer-events: none;
        transform: translateY(-100%);
    }

    .player-social {
        justify-content: center;
        padding: var(--main-padding);
    }
}

.i {
    stroke-width: var(--i-stroke, 2);
    width: var(--i-size, 24px);
    height: var(--i-size, 24px);
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

@keyframes pulse {
    from {
        opacity: 0;
    }

    50% {
        opacity: 0.2;
    }

    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

.player {
    padding: 2rem;
    position: fixed;
    inset: 0;
    z-index: 10;
    overflow-y: auto;
}

@media (max-width: 991px) {
    .player {
        padding-top: calc(2rem + 72px);
    }
}

.player-cover-title {
    text-shadow: 0 0.052vw 0.052vw #000;
}

.player-cover-image {
    --cover-blurred: 1rem;
    position: absolute;
    z-index: 0;
    object-fit: cover;
    object-position: center;
    transition: opacity calc(var(--duration) * 3);
    filter: blur(var(--cover-blurred));
    max-width: initial;
    inset: calc(var(--cover-blurred) * -5);
    width: calc(100% + var(--cover-blurred) * 10);
    height: calc(100% + var(--cover-blurred) * 10);
}

.player-wrapper {
    margin-top: auto;
    margin-bottom: auto;
    position: relative;
    z-index: 10;
}

.player-artwork {
    background-color: var(--primary);
    border-radius: calc(1rem + 1vw);
    box-shadow: var(--shadow-l);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    display: flex;
}

.player-artwork img {
    transition: transform calc(var(--duration) * 3);
}

.player-progress-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    display: block;
    overflow: visible;
}

.player-progress-ring path {
    fill: none;
    stroke-linecap: round;
}

.player-progress-fill {
    transition: stroke-dashoffset 0.2s linear;
    filter: drop-shadow(0 0 6px var(--accent, #ff5a4d));
}

.player-controller {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-volume {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.player-range-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: background-color var(--duration);
    background-color: var(--accent, var(--primary));
}

.player-range-wrapper {
    position: relative;
    height: 2px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.25);
}

.player-range-thumb {
    width: 15px;
    height: 15px;
    transition: background-color var(--duration);
    background-color: var(--accent, var(--primary));
    border-radius: 5rem;
    top: 50%;
    position: absolute;
    transform: translateY(-50%);
    cursor: pointer;
}

.player-button {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--duration), background-color var(--duration);
    position: relative;
}

@media (min-width: 992px) {
    .footer small {
        font-size: 0.8vw;
    }

    .player-controller {
        padding-top: 1.5rem;
        gap: 2rem;
    }

    .player-button {
        --i-size: 1.5vw;
    }

    .player-section-audio {
        max-width: 390px;
    }
}

.player-button-volume {
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .player-button-volume {
        opacity: 0.25;
        pointer-events: none;
    }
}

.player-button.is-active,
.player-button:hover {
    color: #fff;
}

.player-button-play {
    padding: 1rem;
    border-radius: 999px;
    transition: background-color var(--duration);
    background-color: var(--accent, var(--bg-transparent));
}

.player-button-play::after,
.player-button-play::before {
    pointer-events: none;
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #fff;
    border-radius: 50%;
    z-index: -1;
    inset: 0;
    opacity: 0;
    animation: 2s ease-out infinite pulse;
    display: var(--pulse-state, none);
}

.player-button-play:after {
    animation-delay: 1s;
}

.player-button-play:active,
.player-button-play:focus {
    outline: 0;
}

.player-button-play.is-active {
    --pulse-state: block;
}

.player-section-audio {
    flex: none;
}

.player-section-meta {
    width: 100%;
}

.player-social {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 3px 1px rgba(0, 0, 0, 0.075));
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .player-social {
        position: absolute;
        padding: var(--main-padding);
        z-index: 50;
        max-width: 40vw;
        bottom: 1vw;
        right: 0;
        gap: 1.125vw;
    }
}

.player-social-item {
    border: 1px solid #fff;
    border-radius: 999px;
    padding: 0.75rem;
    --i-size: 20px;
}

.player-social-item:not(:hover) {
    color: #fff;
}

.player-apps-item {
    transition: filter var(--duration);
}

@media (min-width: 992px) {
    .player-social-item {
        padding: 0.75vw;
        --i-size: 1.25vw;
    }

    .player-apps-item img {
        width: auto;
        height: 3vw;
    }
}

.player-apps-item:hover {
    filter: drop-shadow(0 0px 10px white);
}

.player-program {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem;
    color: #fff;
    text-transform: uppercase;
    background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    z-index: 10;
    inset: auto 0 0;
}

.player-program-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background-color: #c62828;
    border-radius: 0.5rem;
}

.player-program-time-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-program-name {
    font-weight: 700;
    font-family: "Akira Expanded", sans-serif;
}

.player-program-description {
    font-size: 0.875rem;
}

.station {
    transition: opacity var(--duration);
}

.station-img {
    width: 120px;
    aspect-ratio: 1/1;
    box-shadow: var(--shadow-l);
    border-radius: 0.5rem;
    object-fit: cover;
}

.station:not(.is-active) {
    opacity: 0.5;
}

.station:hover {
    opacity: 1;
}

.history {
    --cols-min: 20rem;
}

.history-item {
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-l);
    width: 100%;
    position: relative;
    padding-right: calc(0.75rem + 35px);
    max-width: 290px;
    overflow: hidden;
    z-index: 1;
}

.history-item::before {
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
    background: var(--accent);
    opacity: 0.5;
}

.history-spotify {
    bottom: 0.75rem;
    right: 0.75rem;
    position: absolute;
    color: #fff;
    transition: opacity var(--duration);
}

.history-spotify:not(:hover) {
    opacity: 0.5;
}

.history-spotify[href="#not-found"] {
    opacity: 0.1;
    pointer-events: none;
}

.history-image {
    width: 64px;
    aspect-ratio: 1/1;
}

.history-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 0.5rem;
}

.visualizer {
    position: absolute;
    filter: url(#gooey);
    inset: auto -20px -20px;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    opacity: 0.5;
}

.visualizer-filter {
    display: none;
}

.modal {
    position: fixed;
    max-width: 900px;
    margin: 0 auto;
    z-index: 120;
    inset: 1rem;
    transition: opacity var(--duration);
    display: flex;
}

.modal:not(.is-active) {
    pointer-events: none;
    opacity: 0;
}

.modal-content {
    max-height: 100%;
    width: 100%;
    background-color: var(--bg-dark);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    padding: var(--main-padding);
    margin: auto;
}

.modal-title {
    margin-bottom: 1.5rem;
    line-height: 1;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-body {
    font-size: 1.125rem;
    flex: 1;
    overflow-y: auto;
}

.modal-overlay {
    opacity: var(--modal-overlay-opacity, 0);
    z-index: 100;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(1rem);
    transition: opacity var(--duration);
}

.modal.is-active~* {
    --modal-overlay-opacity: 1;
}

.modal-video {
    inset: 50% auto auto 50%;
    position: absolute;
    margin: auto;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 880px;
    padding: 1rem;
    background-color: var(--bg-modal);
    border-radius: 0.5rem;
    z-index: 150;
    box-shadow: var(--shadow-xl);
    transition: opacity var(--duration);
}

.modal-video [data-close] {
    position: absolute;
    right: -1.25rem;
    top: -1.25rem;
}

.modal-video:not(.is-active) {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.modal-video iframe {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
}

.modal-video.is-active~* {
    --modal-overlay-opacity: 1;
}

.offcanvas {
    background-color: var(--bg-modal);
    inset: 0 0 0 auto;
    position: absolute;
    padding: 1.5rem;
    z-index: 120;
    box-shadow: var(--shadow-xl);
    transition: transform var(--duration), opacity var(--duration);
    backdrop-filter: blur(1rem);
}

.offcanvas:not(.is-active) {
    transform: translateX(110%);
    pointer-events: none;
    opacity: 0;
}

.offcanvas [data-close] {
    margin-bottom: 1rem;
}

.absolute {
    position: absolute
}

.relative {
    position: relative
}

.fixed {
    position: fixed
}

.sticky {
    position: sticky
}

.z-10 {
    z-index: 10
}

.z-20 {
    z-index: 20
}

.z-30 {
    z-index: 30
}

.z-40 {
    z-index: 40
}

.z-50 {
    z-index: 50
}

.z-60 {
    z-index: 60
}

.z-70 {
    z-index: 70
}

.z-80 {
    z-index: 80
}

.z-90 {
    z-index: 90
}

.z-100 {
    z-index: 100
}

.g-0\.25 {
    gap: .25rem
}

.g-0\.5 {
    gap: .5rem
}

.g-0\.75 {
    gap: .75rem
}

.g-0\.875 {
    gap: .875rem
}

.g-1 {
    gap: 1rem
}

.g-1\.25 {
    gap: 1.25rem
}

.g-1\.5 {
    gap: 1.5rem
}

.g-1\.75 {
    gap: 1.75rem
}

.g-2 {
    gap: 2rem
}

.block {
    display: block
}

.inline-block {
    display: inline-block
}

.inline {
    display: inline
}

.flex {
    display: flex
}

.inline-flex {
    display: inline-flex
}

.grid {
    display: grid
}

.inline-grid {
    display: inline-grid
}

.none {
    display: none
}

.items-start {
    align-items: flex-start
}

.items-end {
    align-items: flex-end
}

.items-center {
    align-items: center
}

.justify-start {
    justify-content: flex-start
}

.justify-end {
    justify-content: flex-end
}

.justify-center {
    justify-content: center
}

.justify-between {
    justify-content: space-between
}

.justify-around {
    justify-content: space-around
}

.justify-evenly {
    justify-content: space-evenly
}

.row {
    flex-direction: row
}

.column {
    flex-direction: column
}

.wrap {
    flex-wrap: wrap
}

.wrap-reverse {
    flex-wrap: wrap-reverse
}

.nowrap {
    flex-wrap: nowrap
}

.flex-1 {
    flex: 1 1 0
}

.flex-auto {
    flex: auto
}

.flex-initial {
    flex: initial
}

.flex-none {
    flex: none
}

.o-auto {
    overflow: auto
}

.o-hidden {
    overflow: hidden
}

.ox-auto {
    overflow-x: auto
}

.ox-hidden {
    overflow-x: hidden
}

.oy-auto {
    overflow-y: auto
}

.oy-hidden {
    overflow-y: hidden
}

.events-none {
    pointer-events: none
}

.events-auto {
    pointer-events: auto
}

.color-primary {
    color: var(--primary)
}

.color-text {
    color: var(--color-text)
}

.color-title {
    color: var(--color-title)
}

.fs-1 {
    font-size: 2.5rem
}

.fs-2 {
    font-size: 1.75rem
}

.fs-3 {
    font-size: 1.5rem
}

.fs-4 {
    font-size: 1.25rem
}

.fs-5 {
    font-size: 1.125rem
}

.fs-6 {
    font-size: 1rem
}

.fs-7 {
    font-size: .875rem
}

.fs-8 {
    font-size: .75rem
}

.fw-100 {
    font-weight: 100
}

.fw-200 {
    font-weight: 200
}

.fw-300 {
    font-weight: 300
}

.fw-400 {
    font-weight: 400
}

.fw-500 {
    font-weight: 500
}

.fw-600 {
    font-weight: 600
}

.fw-700 {
    font-weight: 700
}

.fw-800 {
    font-weight: 800
}

.fw-900 {
    font-weight: 900
}

.text-center {
    text-align: center
}

.text-left {
    text-align: left
}

.text-right {
    text-align: right
}

.text-justify {
    text-align: justify
}

.capitalize {
    text-transform: capitalize
}

.uppercase {
    text-transform: uppercase
}

.lowercase {
    text-transform: lowercase
}


/* ==========================================================================
   2) rp-redesign.css
   ========================================================================== */
:root {
    --rp-amber: #ffb23e;
    --rp-vu: #34e3c2;
    --accent: #ff5a4d;
    --rp-sleeve: 236px;
    --rp-disc-inset: 8px;
}

body {
    font-family: "Manrope", "Vazir", "Vazirmatn", Montserrat, system-ui, sans-serif;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

.app {
    background: #0a0a0a;
}

.app::after {
    display: none;
}

.player-cover-image {
    filter: blur(28px) saturate(120%);
}

.rp-tint {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--rp-amber) 40%, transparent), transparent 55%), radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%), linear-gradient(150deg, rgba(20, 4, 40, .55), rgba(10, 4, 20, .25) 50%, rgba(40, 10, 10, .55));
}

.rp-blob {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
    opacity: .5;
}

.rp-blob-1 {
    width: 46vw;
    height: 46vw;
    left: -12vw;
    top: -16vw;
    background: radial-gradient(circle, var(--rp-amber), transparent 68%);
    animation: rp-drift 15s ease-in-out infinite;
}

.rp-blob-2 {
    width: 44vw;
    height: 44vw;
    right: -14vw;
    bottom: -18vw;
    background: radial-gradient(circle, var(--accent), transparent 68%);
    animation: rp-drift 19s ease-in-out infinite reverse;
}

@keyframes rp-drift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(4%, -3%) scale(1.15);
    }
}

.header {
    background: transparent !important;
    box-shadow: none !important;
}

.header-logo-img {
    height: 60px;
    width: auto;
}

@media (min-width: 992px) {
    .header-logo-img {
        max-width: 132px;
        height: auto;
    }
}

@media (max-width: 991px) {
    .toggle-options {
        --btn-fs: 0.75rem;
        --i-size: 18px;
    }
}

@media (max-width: 520px) {
    .toggle-options {
        --btn-fs: 0;
        --btn-gap: .35rem;
    }
}

.player.song-now {
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 32px 120px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.rp-unit {
    margin: auto;
}

@media (min-width: 992px) {
    .footer {
        padding-bottom: 14px;
    }

    .player-social {
        bottom: 0;
        padding-bottom: 14px;
    }

    .footer-copyright {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        z-index: 10;
        white-space: nowrap;
    }
}

.rp-unit {
    width: min(1080px, 100%);
    border-radius: 28px;
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 40px 90px rgba(0, 0, 0, .45);
    padding: 24px 32px 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.view-toggle-wrap {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10005 !important;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    display: flex;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.epic-modal-open .view-toggle-wrap,
body:has(.offcanvas.is-active) .view-toggle-wrap,
body:has(#modal-lyrics.is-active) .view-toggle-wrap {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}

.view-toggle {
    position: relative;
    display: flex;
    width: 200px;
    direction: rtl;
}

.view-toggle button {
    flex: 1;
    padding: 8px 0;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Vazir", "Vazirmatn", sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.view-toggle button.active {
    color: #fff;
}

body.epic-light .view-toggle button {
    color: rgba(43, 33, 32, 0.6);
}

body.epic-light .view-toggle button.active {
    color: #fff;
}

body.epic-light .view-toggle-wrap {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

.toggle-slider {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .view-toggle-wrap {
        top: 70px;
    }
}

@media (min-width: 992px) {
    .view-toggle-wrap {
        transition: transform 0.35s cubic-bezier(.2, .75, .2, 1), opacity 0.25s ease !important;
        will-change: transform, opacity;
    }

    body.header-hidden.podcast-active .view-toggle-wrap {
        transform: translate(-50%, -150%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

.rp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rp-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.rp-brand b {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    letter-spacing: -.01em;
}

.rp-brand span {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--rp-amber);
}

.rp-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rp-onair {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .14);
    white-space: nowrap;
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: .2em;
}

.rp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: rp-blink 1.6s steps(1) infinite;
}

@keyframes rp-blink {

    0%,
    60% {
        opacity: 1;
    }

    61%,
    100% {
        opacity: .25;
    }
}

.rp-clock {
    font-family: "Space Mono", monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

.rp-main {
    display: flex;
    gap: 32px;
    margin-top: 18px;
}

.rp-left {
    width: 340px;
    flex: none;
    display: flex;
    flex-direction: column;
}

.rp-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rp-artwrap {
    position: relative;
    height: var(--rp-sleeve);
}

.rp-vinyl {
    position: absolute;
    top: var(--rp-disc-inset);
    left: 118px;
    z-index: 1;
    width: calc(var(--rp-sleeve) - var(--rp-disc-inset) * 2);
    height: calc(var(--rp-sleeve) - var(--rp-disc-inset) * 2);
    animation: rp-slide 1.5s cubic-bezier(.2, .75, .2, 1) .35s both;
}

.rp-vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(circle at 50% 50%, #0d0d0f 0 2px, #191a1f 2px 4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rp-spin 6s linear infinite;
}

.rp-vinyl-label {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .4s;
}

.rp-vinyl-hole {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d0d0f;
}

@keyframes rp-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rp-slide {
    from {
        transform: translateX(-118px);
    }

    to {
        transform: translateX(0);
    }
}

body:not(.is-playing) .rp-vinyl-disc {
    animation-play-state: paused;
}

.rp-unit .player-artwork {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: var(--rp-sleeve);
    height: var(--rp-sleeve);
    max-width: none;
    aspect-ratio: auto;
    padding: var(--rp-disc-inset);
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
    overflow: hidden;
    display: flex;
}

.rp-unit .player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    flex: none;
}

.rp-nowplaying {
    margin-top: 24px;
}

.rp-np-label {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: .24em;
    color: var(--rp-amber);
    text-transform: uppercase;
}

.rp-unit .song-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Bricolage Grotesque", "Vazir", "Vazirmatn", sans-serif;
    font-weight: 800;
    font-size: 26px;
    line-height: 1.1;
    min-height: 2.2em;
    margin-top: 8px;
    letter-spacing: -.01em;
    color: #fff;
}

.rp-unit .song-artist {
    display: block;
    font-size: 15px;
    color: rgba(255, 255, 255, .72);
    margin-top: 6px;
    font-weight: 600;
    opacity: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-unit .player-program {
    position: static;
    inset: auto;
    width: auto;
    padding: 0;
    background-image: none;
    color: inherit;
    text-transform: none;
    z-index: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.rp-unit .player-program:empty {
    display: none;
}

.rp-unit .player-program-time-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rp-unit .player-program-badge {
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--rp-amber);
    font-family: "Space Mono", monospace;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

.rp-unit .player-program-time {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

.rp-unit .player-program-name {
    font-family: "Bricolage Grotesque", "Vazir", "Vazirmatn", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}

.rp-unit .player-program-description {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

.rp-dial {
    border-radius: 16px;
    padding: 16px 20px 12px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f6ecd2, #e7d3a8);
    box-shadow: inset 0 2px 12px rgba(120, 80, 10, .28), 0 8px 20px rgba(0, 0, 0, .25);
}

.rp-dial-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: #7a5518;
}

.rp-dial-head .u {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: .2em;
}

.rp-dial-head .f {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: #3a2708;
}

.rp-ruler {
    position: relative;
    height: 34px;
    margin-top: 8px;
    border-top: 1px solid rgba(120, 80, 10, .3);
}

.rp-tick {
    position: absolute;
    top: 0;
    width: 1px;
    background: rgba(120, 80, 10, .28);
    height: 8px;
}

.rp-tick.major {
    height: 14px;
    background: rgba(120, 80, 10, .5);
}

.rp-needle {
    position: absolute;
    top: -8px;
    bottom: 0;
    width: 2px;
    left: 32.5%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: left .5s cubic-bezier(.2, .75, .2, 1);
}

.rp-needle::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.rp-scale {
    display: flex;
    justify-content: space-between;
    font-family: "Space Mono", monospace;
    font-size: 10px;
    color: #9a7a3a;
    margin-top: 2px;
}

.rp-presets {
    display: flex;
    gap: 10px;
    margin: 14px 0;
    min-height: 60px;
}

.rp-preset {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background .2s, border-color .2s, transform .1s;
}

.rp-preset:hover {
    background: rgba(255, 255, 255, .14);
}

.rp-preset:active {
    transform: translateY(1px);
}

.rp-preset.is-active {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 24%, rgba(255, 255, 255, .06));
}

.rp-preset .p {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--rp-amber);
    white-space: nowrap;
}

.rp-preset .n {
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-vu {
    margin-top: auto;
    background: rgba(0, 0, 0, .24);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 14px 18px;
}

.rp-vu-head {
    display: flex;
    justify-content: space-between;
    font-family: "Space Mono", monospace;
    font-size: 10px;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 10px;
}

.rp-vu-body {
    position: relative;
    height: 56px;
}

.rp-vu-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.rp-vu-fallback i {
    flex: 1;
    border-radius: 3px;
    height: 20%;
    opacity: .9;
    background: linear-gradient(180deg, var(--accent), var(--rp-amber) 55%, var(--rp-vu));
    animation: rp-bar 1s ease-in-out infinite alternate;
}

@keyframes rp-bar {
    from {
        height: 12%;
    }

    to {
        height: 100%;
    }
}

.rp-vu-body .visualizer {
    position: absolute;
    inset: 0;
    filter: none;
    opacity: 1;
    height: 100%;
    display: block;
    z-index: 2;
}

.rp-vu-body .visualizer canvas {
    width: 100%;
    height: 100%;
}

body.is-playing .rp-vu-fallback {
    opacity: 0;
}

@media (max-width: 767px) {
    .rp-vu {
        display: none;
    }
}

.rp-unit .player-controller {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 0;
    gap: 1rem;
}

.rp-transport {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rp-unit .player-button-backward-step,
.rp-unit .player-button-forward-step {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-unit .player-button-backward-step:hover,
.rp-unit .player-button-forward-step:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.rp-unit .player-button-play {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 55%, transparent);
}

.rp-unit .player-button-play .i {
    --i-size: 30px;
}

.rp-unit .player-button-play:hover {
    color: #fff;
}

.rp-unit .player-button-volume {
    display: none;
}

.rp-unit .dropdown {
    width: 190px;
    background: rgba(0, 0, 0, .75);
    padding: 18px 16px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.rp-unit .player-range-wrapper {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .2);
}

.rp-unit .player-range-fill {
    border-radius: 3px;
    background: var(--rp-amber);
}

.rp-unit .player-range-thumb {
    width: 16px;
    height: 16px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.rp-unit .player-button-lyrics {
    color: rgba(255, 255, 255, .7);
    display: flex;
}

.rp-unit .player-button-lyrics:hover {
    color: #fff;
}

.rp-ctrl-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rp-knob-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rp-knob-ico {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: rgba(255, 255, 255, .7);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rp-knob {
    position: relative;
    width: 68px;
    height: 68px;
    flex: none;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.rp-knob:active {
    cursor: grabbing;
}

.rp-knob:focus-visible {
    outline: 2px solid var(--rp-amber);
    outline-offset: 3px;
    border-radius: 50%;
}

.rp-knob>svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rp-knob circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
}

.rp-knob circle.tr {
    stroke: rgba(255, 255, 255, .15);
}

.rp-knob circle.fi {
    stroke: var(--rp-amber);
}

.rp-knob-body {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 30%, #3a3a44, #141418);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.rp-knob-body i {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--rp-amber);
}

.rp-knob-val {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    min-width: 38px;
}

@media (max-width: 860px) {
    .player.song-now {
        padding: 120px 16px 24px;
        align-items: flex-start;
    }

    .rp-unit {
        padding: 20px;
        border-radius: 22px;
    }

    .rp-main {
        flex-direction: column;
        gap: 22px;
    }

    .rp-left {
        width: 100%;
        align-items: center;
    }

    :root {
        --rp-sleeve: 210px;
    }

    .rp-vinyl {
        left: 92px;
    }

    @keyframes rp-slide {
        from {
            transform: translateX(-92px);
        }

        to {
            transform: translateX(0);
        }
    }

    .rp-artwrap {
        width: 302px;
    }

    .rp-nowplaying {
        text-align: center;
    }

    .rp-unit .song-name {
        font-size: 24px;
    }

    .rp-right {
        width: 100%;
    }

    .rp-vu {
        margin-top: 0;
    }

    .rp-knob-group {
        display: none;
    }

    .rp-topbar {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .rp-status {
        flex-wrap: wrap;
        gap: 8px;
    }

    .rp-onair {
        padding: 6px 10px;
        letter-spacing: .12em;
    }
}

@media (max-width: 420px) {
    .rp-brand b {
        font-size: 18px;
    }

    .rp-onair span {
        font-size: 9px;
    }
}

@media (max-width: 767px) {
    .layout-link {
        display: none;
    }
}

.rp-unit .player-controller {
    margin-top: auto;
    padding-top: 16px;
}

@media (max-width: 991px) {
    .mobile-menu {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        height: auto !important;
        width: 100% !important;
        padding: .75rem 1rem 1rem !important;
        transform: none !important;
        pointer-events: auto !important;
        z-index: 20;
        background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55) 45%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: flex;
        flex-direction: column;
        gap: .4rem;
        transition: none;
    }

    .mobile-menu:not(.is-active) {
        transform: none !important;
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .mobile-menu .footer {
        position: static;
        padding: 0;
        display: block;
    }

    .mobile-menu .footer-wrapper {
        align-items: center;
        gap: .35rem;
    }

    .mobile-menu .footer-app,
    .mobile-menu .footer-copyright,
    .mobile-menu .footer-tv {
        padding: 0;
        border: 0;
        text-align: center;
    }

    .mobile-menu .player-social {
        position: static;
        padding: 0;
        justify-content: center;
        max-width: none;
        gap: .6rem;
    }

    .player.song-now {
        padding-bottom: 150px !important;
    }
}

[hidden] {
    display: none !important;
}

.dropdown:not(.is-active),
.dropdown:not(.is-active) * {
    pointer-events: none;
}

.dropdown:not(.is-active) .player-volume {
    visibility: hidden;
}

.offcanvas:not(.is-active),
.offcanvas:not(.is-active) * {
    pointer-events: none;
}

.offcanvas:not(.is-active) button,
.offcanvas:not(.is-active) input,
.offcanvas:not(.is-active) a {
    visibility: hidden;
}

.modal:not(.is-active),
.modal:not(.is-active) * {
    pointer-events: none;
}

.modal:not(.is-active) button,
.modal:not(.is-active) a,
.modal:not(.is-active) input {
    visibility: hidden;
}

.modal-video:not(.is-active),
.modal-video:not(.is-active) * {
    pointer-events: none;
}

.modal-video:not(.is-active) button {
    visibility: hidden;
}

.offcanvas:not(.is-active),
.offcanvas:not(.is-active) *,
.modal:not(.is-active),
.modal:not(.is-active) * {
    visibility: hidden;
}

.rp-preset {
    position: relative;
}

.rp-preset-listeners {
    position: absolute;
    left: 8px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: "Vazir", "Vazirmatn", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    pointer-events: none;
    white-space: nowrap;
}

body.epic-light .rp-preset-listeners {
    color: rgba(0, 0, 0, .75);
}

body.epic-light .rp-preset-listeners b {
    color: #111;
}

body.epic-light .rp-preset-listeners svg {
    stroke: rgba(0, 0, 0, .7);
    opacity: .9;
}

body.epic-light .rp-preset.is-active .rp-preset-listeners {
    color: rgba(0, 0, 0, .85);
}

body.epic-light .rp-preset.is-active .rp-preset-listeners b {
    color: #000;
}

.rp-preset-listeners svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .85;
}

.rp-preset-listeners b {
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.rp-preset.is-active .rp-preset-listeners {
    color: rgba(255, 255, 255, .95);
}

.rp-mobile-controls {
    display: none;
}

@media (max-width: 991px) {

    #epic-downloads,
    .mobile-menu .footer-app {
        display: none !important;
    }

    .rp-mobile-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 18px;
        padding: 8px 0 10px;
        width: 100%;
    }

    .rp-mob-btn {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .22);
        color: #fff;
        cursor: pointer;
        transition: transform .15s, background .2s;
    }

    .rp-mob-btn svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .rp-mob-btn:active {
        transform: scale(.94);
        background: rgba(255, 255, 255, .2);
    }

    .rp-mob-play {
        width: 64px;
        height: 64px;
        background: var(--accent);
        border-color: transparent;
        box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 55%, transparent);
    }

    .rp-mob-play svg {
        width: 28px;
        height: 28px;
    }

    .rp-mob-btn[hidden] {
        display: none;
    }
}

@media (max-width: 991px) {
    body>.header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: transparent !important;
        transform: none !important;
        filter: none !important;
        will-change: auto !important;
    }

    body>.header .header-wrapper {
        padding: 12px 16px !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    body>.header .header-logo-img {
        height: 42px;
        width: auto;
        max-width: 40vw;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35));
    }

    body>.header .toggle-options {
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .18);
        backdrop-filter: blur(14px) saturate(140%);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        border-radius: 999px;
        padding: 5px 8px;
        gap: .35rem !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, .2);
    }

    body>.header .toggle-options .btn {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        height: 36px;
        padding: 0 .7rem;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body>.header .toggle-options .btn .i {
        --i-size: 18px;
    }
}

@media (max-width: 991px) {
    .toggle-options {
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .18);
        backdrop-filter: blur(14px) saturate(140%);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        border-radius: 999px;
        padding: 5px 8px;
        gap: .35rem !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, .2);
    }

    .toggle-options .btn {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        height: 36px;
        padding: 0 .7rem;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .toggle-options .btn:hover {
        background: rgba(255, 255, 255, .14) !important;
    }

    .toggle-options .btn .i {
        --i-size: 18px;
    }
}


/* ==========================================================================
   3) epic.css
   ========================================================================== */
body {
    font-family: "Manrope", "Vazir", "Vazirmatn", system-ui, sans-serif;
}

.rp-unit .song-name,
.rp-unit .player-program-name,
.rp-brand b {
    font-family: "Bricolage Grotesque", "Vazir", "Vazirmatn", sans-serif;
}

.rp-unit .song-name,
.rp-unit .song-artist,
.rp-preset .n,
.rp-unit .player-program-name,
.rp-unit .player-program-description,
.programacao-item,
.btn,
.epic-next,
.epic-ded,
.epic-modal,
.epic-downloads,
.epic-chart {
    letter-spacing: 0 !important;
}

.rp-unit .song-name,
.rp-unit .song-artist {
    unicode-bidi: plaintext;
    text-align: start;
}

.rp-presets {
    flex-wrap: wrap;
    gap: 8px;
}

.rp-preset {
    flex: 1 1 calc(20% - 8px);
    min-width: 0;
    direction: rtl;
    text-align: right;
}

.rp-preset .p {
    direction: ltr;
    text-align: left;
}

.rp-preset .n {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    min-height: 3.8em;
    font-size: 13px;
}

@media (max-width: 767px) {
    .rp-preset {
        flex-basis: calc(25% - 8px);
    }
}

@media (max-width: 520px) {
    .rp-preset {
        flex-basis: calc(50% - 8px);
    }
}

.epic-sleep.is-timer {
    color: var(--accent);
}

.epic-sleep .epic-lbl {
    font-variant-numeric: tabular-nums;
}

.epic-theme .epic-ico {
    display: inline-flex;
}

@media (max-width: 520px) {
    .epic-lbl {
        display: none;
    }

    .epic-sleep.is-timer .epic-lbl {
        display: inline;
        font-size: .7rem;
    }
}

.epic-chart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    direction: rtl;
}

.epic-chart[hidden],
.epic-ded[hidden],
.epic-od[hidden],
.epic-ded-btn[hidden] {
    display: none;
}

.epic-rank {
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 8px;
}

.epic-diff {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
}

.epic-diff.up {
    background: rgba(46, 204, 113, .22);
    color: #5df09b;
}

.epic-diff.down {
    background: rgba(255, 90, 80, .22);
    color: #ff8f86;
}

.epic-diff.same {
    background: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .7);
}

.epic-next {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    direction: rtl;
    background: rgba(0, 0, 0, .22);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    padding: 8px 12px;
}

.epic-next small {
    font-size: 11px;
    color: var(--rp-amber);
    font-weight: 700;
}

.epic-next span {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, .88);
}

.epic-od {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    direction: ltr;
    background: rgba(0, 0, 0, .24);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 12px 16px;
}

.epic-seekrow {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.epic-t {
    font-family: "Space Mono", monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, .65);
    min-width: 34px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.epic-seek {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 0;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .2);
    outline: 0;
    cursor: pointer;
}

.epic-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.epic-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
}

.epic-odbtns {
    display: flex;
    gap: 8px;
}

.epic-odbtn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    display: grid;
    place-items: center;
    transition: .2s;
}

.epic-odbtn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

.epic-odbtn.on {
    color: var(--accent);
    border-color: var(--accent);
}

.epic-odbtn .i {
    --i-size: 18px;
}

.epic-odbtn b {
    display: none;
    position: absolute;
    top: -3px;
    right: -3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    line-height: 15px;
    text-align: center;
}

.epic-odbtn.one b {
    display: block;
}

@media (max-width: 767px) {
    .epic-od {
        flex-direction: column;
        align-items: stretch;
        margin-top: 16px;
    }

    .epic-odbtns {
        justify-content: center;
    }
}

body.epic-ondemand .rp-vu {
    display: none;
}

.epic-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    direction: rtl;
}

.epic-downloads[hidden] {
    display: none;
}

.epic-downloads a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    transition: .2s;
}

.epic-downloads a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.epic-downloads .i {
    --i-size: 16px;
}

@media (min-width: 992px) {
    .footer-wrapper {
        align-items: flex-start;
    }
}

body.epic-modal-open {
    overflow: hidden;
}

.epic-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    animation: epic-fade .2s;
}

.epic-overlay[hidden] {
    display: none;
}

@keyframes epic-fade {
    from {
        opacity: 0;
    }
}

.epic-modal {
    width: min(420px, 100%);
    max-height: 90vh;
    overflow: auto;
    color: #fff;
    padding: 22px;
    border-radius: 24px;
    background: rgba(30, 24, 28, .88);
    backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    animation: epic-up .3s;
    font-family: "Vazir", "Vazirmatn", "Manrope", sans-serif;
}

@keyframes epic-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
}

.epic-modal h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
}

.epic-modal h3 .i {
    --i-size: 20px;
    color: var(--accent);
}

.epic-modal .sub,
.epic-modal .note {
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.epic-modal .note {
    background: rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
}

.epic-modal label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.epic-modal input {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 6px;
    padding: 0 14px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: inherit;
    outline: 0;
}

.epic-modal input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

.epic-grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.epic-grid2 button {
    height: 48px;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.epic-grid2 button:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 25%, transparent);
}

.epic-grid2 button.off {
    color: #ff8f86;
}

.epic-grid2 .i {
    --i-size: 16px;
}

.epic-primary,
.epic-ghost {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    border: 0;
}

.epic-primary {
    color: #fff;
    background: var(--accent);
    margin-top: 4px;
}

.epic-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.epic-ghost {
    margin-top: 8px;
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .08);
}

.epic-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1100;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    direction: rtl;
    max-width: 90%;
    text-align: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #1d1b1a;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    font-family: "Vazir", "Vazirmatn", sans-serif;
}

.epic-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.history-spotify[href="#not-found"] {
    display: none;
}

.history-meta {
    text-align: start;
    unicode-bidi: plaintext;
}

body.epic-light .app {
    background: #f7ebe1;
}

body.epic-light .rp-tint {
    background: radial-gradient(120% 90% at 15% 0%, rgba(255, 178, 62, .28), transparent 55%), radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 55%), linear-gradient(150deg, rgba(255, 248, 242, .85), rgba(255, 240, 230, .7));
}

body.epic-light .rp-blob {
    opacity: .35;
}

body.epic-light .rp-unit {
    background: rgba(255, 255, 255, .58);
    border-color: rgba(255, 255, 255, .9);
    color: #2b2120;
    box-shadow: inset 0 1px 0 #fff, 0 30px 70px rgba(150, 100, 70, .28);
}

body.epic-light .rp-brand b,
body.epic-light .rp-unit .song-name,
body.epic-light .rp-unit .player-program-name {
    color: #2b2120;
}

body.epic-light .rp-brand span,
body.epic-light .rp-np-label,
body.epic-light .epic-next small {
    color: #c0561b;
}

body.epic-light .rp-clock,
body.epic-light .rp-unit .song-artist,
body.epic-light .rp-knob-val,
body.epic-light .rp-unit .player-program-time,
body.epic-light .rp-unit .player-program-description,
body.epic-light .rp-vu-head,
body.epic-light .epic-t {
    color: rgba(43, 33, 32, .68);
}

body.epic-light .rp-onair,
body.epic-light .rp-unit .player-program-badge {
    background: rgba(255, 255, 255, .7);
    border-color: rgba(0, 0, 0, .1);
    color: #2b2120;
}

body.epic-light .rp-preset {
    color: #2b2120;
    background: rgba(255, 255, 255, .6);
    border-color: rgba(0, 0, 0, .1);
}

body.epic-light .rp-preset:hover {
    background: rgba(255, 255, 255, .9);
}

body.epic-light .rp-preset.is-active {
    background: color-mix(in srgb, var(--accent) 22%, #fff);
}

body.epic-light .rp-vu,
body.epic-light .epic-od,
body.epic-light .epic-next {
    background: rgba(255, 255, 255, .55);
    border-color: rgba(0, 0, 0, .08);
}

body.epic-light .epic-next span {
    color: #2b2120;
}

body.epic-light .rp-unit .player-button-backward-step,
body.epic-light .rp-unit .player-button-forward-step {
    color: #2b2120;
    background: rgba(255, 255, 255, .7);
    border-color: rgba(0, 0, 0, .12);
}

body.epic-light .rp-unit .player-button-backward-step:hover,
body.epic-light .rp-unit .player-button-forward-step:hover {
    color: #2b2120;
    background: #fff;
}

body.epic-light .rp-unit .player-button-lyrics {
    color: rgba(43, 33, 32, .7);
}

body.epic-light .rp-unit .player-button-lyrics:hover {
    color: #2b2120;
}

body.epic-light .rp-knob-ico {
    stroke: rgba(43, 33, 32, .7);
}

body.epic-light .rp-knob circle.tr {
    stroke: rgba(0, 0, 0, .12);
}

body.epic-light .epic-ded-btn {
    color: #2b2120;
    background: rgba(255, 255, 255, .6);
}

body.epic-light .epic-ded-btn:hover {
    color: #fff;
}

body.epic-light .epic-odbtn {
    color: rgba(43, 33, 32, .6);
    background: rgba(255, 255, 255, .7);
    border-color: rgba(0, 0, 0, .12);
}

body.epic-light .epic-seek,
body.epic-light .rp-unit .player-range-wrapper {
    background: rgba(0, 0, 0, .15);
}

body.epic-light .epic-diff.same {
    background: rgba(0, 0, 0, .08);
    color: rgba(43, 33, 32, .7);
}

body.epic-light .epic-diff.up {
    color: #1e8f4e;
}

body.epic-light .epic-diff.down {
    color: #c0392b;
}

body.epic-light .header .btn,
body.epic-light .header-logo {
    color: #2b2120;
}

body.epic-light .epic-downloads a,
body.epic-light .footer small,
body.epic-light .footer-copyright {
    color: #2b2120;
}

body.epic-light .epic-downloads a {
    background: rgba(255, 255, 255, .7);
    border-color: rgba(0, 0, 0, .1);
}

body.epic-light .epic-downloads a:hover {
    color: #fff;
}

@media (max-width: 860px) {
    .rp-nowplaying {
        width: 100%;
    }

    .epic-chart {
        justify-content: center;
    }
}


/* ==========================================================================
   4) MOBILE FIX + BOTTOM BAR
   ========================================================================== */
body>.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

@media (max-width: 991px) {
    .rp-unit .player-controller {
        display: none !important;
    }

    .player.song-now {
        padding-bottom: 180px !important;
    }

    .mobile-menu {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        height: auto !important;
        width: 100% !important;
        padding: 6px 16px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 45%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        z-index: 100 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        transition: none !important;
    }

    .mobile-menu:not(.is-active) {
        transform: none !important;
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .mobile-menu .footer {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        position: static !important;
        order: -1;
    }

    .mobile-menu .footer-wrapper {
        display: block !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .mobile-menu .footer-tv,
    .mobile-menu .footer-app,
    .mobile-menu .player-social {
        display: none !important;
    }

    .mobile-menu .footer-copyright {
        display: none !important;
    }

    .rp-mobile-controls {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 460px !important;
        margin: 0 auto !important;
        padding: 8px 10px !important;
        border-radius: 999px !important;
        background: rgba(22, 16, 20, 0.72) !important;
        backdrop-filter: blur(22px) saturate(170%) !important;
        -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    }

    body.epic-light .rp-mobile-controls {
        background: rgba(255, 255, 255, 0.72) !important;
        border-color: rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 14px 44px rgba(150, 100, 70, 0.28), 0 2px 8px rgba(150, 100, 70, 0.15), inset 0 1px 0 #fff !important;
    }

    .rp-mob-btn {
        width: 46px !important;
        height: 46px !important;
        flex: none !important;
        border-radius: 50% !important;
        background: transparent !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.82) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: transform .15s ease, color .2s ease, background .2s ease !important;
        -webkit-tap-highlight-color: transparent;
    }

    .rp-mob-btn svg {
        width: 22px !important;
        height: 22px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 2 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
        display: block !important;
    }

    .rp-mob-btn:hover,
    .rp-mob-btn:active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.12) !important;
    }

    body.epic-light .rp-mob-btn {
        color: rgba(43, 33, 32, 0.75) !important;
    }

    body.epic-light .rp-mob-btn:hover,
    body.epic-light .rp-mob-btn:active {
        color: #2b2120 !important;
        background: rgba(0, 0, 0, 0.06) !important;
    }

    .rp-mob-play {
        width: 60px !important;
        height: 60px !important;
        background: var(--accent) !important;
        color: #fff !important;
        margin: 0 4px !important;
        box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 60%, transparent), 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
    }

    .rp-mob-timer.is-timer {
        color: var(--accent) !important;
        background: rgba(255, 255, 255, 0.14) !important;
    }

    body.epic-light .rp-mob-timer.is-timer {
        color: var(--accent) !important;
        background: rgba(0, 0, 0, 0.06) !important;
    }

    @media (max-width: 991px) {
        .toggle-options .epic-sleep {
            display: none !important;
        }
    }

    .rp-mob-play svg {
        width: 26px !important;
        height: 26px !important;
    }

    .rp-mob-play:hover,
    .rp-mob-play:active {
        background: var(--accent) !important;
        color: #fff !important;
        transform: scale(0.95);
    }

    .rp-mob-btn[hidden] {
        display: none !important;
    }

    .rp-mobile-controls:has(.rp-mob-btn[hidden]) {
        justify-content: center !important;
        gap: 24px !important;
    }
}

@supports not selector(:has(*)) {
    @media (max-width: 991px) {
        .rp-mobile-controls {
            justify-content: space-evenly !important;
        }
    }
}

#modal-lyrics.is-active~.modal-overlay {
    z-index: 10000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#modal-lyrics.is-active {
    z-index: 10001 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#modal-lyrics.is-active~*,
body:has(#modal-lyrics.is-active)>.header {
    pointer-events: none;
}

#modal-lyrics.is-active,
#modal-lyrics.is-active * {
    pointer-events: auto;
}

@media (max-width: 991px) {
    body>.header {
        transition: transform .35s cubic-bezier(.2, .75, .2, 1), opacity .25s ease !important;
        will-change: transform, opacity;
    }

    body.header-hidden>.header {
        transform: translateY(-130%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .view-toggle-wrap {
        transition: transform 0.35s cubic-bezier(.2, .75, .2, 1), opacity 0.25s ease !important;
    }

    body.header-hidden .view-toggle-wrap {
        transform: translate(-50%, -150%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 991px) {
    .player.song-now {
        padding-bottom: 110px !important;
    }
}

.epic-overlay {
    z-index: 10000 !important;
}

body.epic-modal-open>.header {
    pointer-events: none !important;
}

.offcanvas.is-active {
    z-index: 10002 !important;
}

body:has(.offcanvas.is-active)>.header {
    pointer-events: none !important;
}

body:has(.offcanvas.is-active)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
    animation: epic-fade 0.2s;
}

#modal-lyrics.is-active {
    z-index: 10003 !important;
}

#modal-lyrics.is-active~.modal-overlay {
    z-index: 10002 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}


/* ==========================================================================
   بخش پادکست‌ها و پلیر اختصاصی
   ========================================================================== */
.podcast-view {
    z-index: 15;
    display: flex;
    justify-content: center;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
}

.podcast-view[hidden] {
    display: none !important;
}

.podcast-wrap {
    width: min(1000px, 100%);
    margin: auto;
    padding: 140px 20px 140px;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (max-width: 767px) {
    .podcast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .podcast-card {
        padding: 10px;
        border-radius: 14px;
    }

    .podcast-cover {
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .podcast-info h3 {
        font-size: 13px;
        line-height: 1.3;
    }

    .podcast-info p {
        font-size: 10px;
        line-height: 1.35;
    }
}

.podcast-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    direction: rtl;
    color: #fff;
}

.podcast-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.podcast-cover {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M13 41v-9a19 19 0 0 1 38 0v9' stroke='%23e2574b' stroke-width='5' stroke-linecap='round'/%3E%3Crect x='7' y='36' width='13' height='21' rx='6.5' fill='%23e2574b'/%3E%3Crect x='44' y='36' width='13' height='21' rx='6.5' fill='%23e2574b'/%3E%3C/svg%3E") center/48% no-repeat,
        linear-gradient(140deg, #3a1512, #141017 55%, #0b0b0e);
}

.podcast-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: "Vazir", "Vazirmatn", sans-serif;
}

.podcast-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

body.epic-light .podcast-view {
    background: rgba(255, 255, 255, 0.6);
}

body.epic-light .podcast-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    color: #2b2120;
}

body.epic-light .podcast-card:hover {
    background: rgba(255, 255, 255, 0.9);
}

body.epic-light .podcast-info p {
    color: rgba(43, 33, 32, 0.6);
}

@media (max-width: 991px) {
    .podcast-wrap {
        padding-top: 110px;
        padding-bottom: 180px;
    }
}


/* ==========================================================================
   پلیر شیشه‌ای پایین صفحه برای پادکست
   ========================================================================== */
.podcast-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10005;
    background: rgba(22, 16, 20, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 12px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.75, 0.2, 1);
    direction: rtl;
}

.podcast-player-bar[hidden] {
    display: none !important;
}

.podcast-player-bar.is-active {
    transform: translateY(0);
}

.podcast-pb-seekwrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 2;
    direction: ltr;
    --thumb-r: 7px;
}

.podcast-pb-seekfill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(var(--podcast-progress, 0) * (100% - var(--thumb-r) * 2) + var(--thumb-r));
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    pointer-events: none;
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}

.podcast-pb-seek {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    z-index: 3;
    direction: ltr;
}

.podcast-pb-seek::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: none;
}

.podcast-pb-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px var(--accent), 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    margin-top: -5px;
    transition: transform 0.15s;
}

.podcast-pb-seek:hover::-webkit-slider-thumb,
.podcast-pb-seek:active::-webkit-slider-thumb {
    transform: scale(1.25);
}

.podcast-pb-seek::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}

.podcast-pb-seek::-moz-range-progress {
    height: 4px;
    background: var(--accent);
}

.podcast-pb-seek::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 0 10px var(--accent);
    cursor: pointer;
}

.podcast-pb-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.podcast-pb-art {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    flex: none;
}

.podcast-pb-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 3px;
}

.podcast-pb-title {
    font-family: "Vazir", "Vazirmatn", sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.podcast-pb-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.podcast-pb-play {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--accent) 50%, transparent);
    transition: transform 0.15s;
}

.podcast-pb-play:active {
    transform: scale(0.92);
}

.podcast-pb-play svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.podcast-pb-time {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-family: "Space Mono", monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    direction: ltr;
    font-variant-numeric: tabular-nums;
    unicode-bidi: isolate;
}

.podcast-pb-time-sep {
    opacity: 0.4;
    margin: 0 1px;
}

body.epic-light .podcast-player-bar {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -10px 40px rgba(150, 100, 70, 0.2);
}

body.epic-light .podcast-pb-seekwrap {
    background: rgba(0, 0, 0, 0.1);
}

body.epic-light .podcast-pb-title {
    color: #2b2120;
}

body.epic-light .podcast-pb-sub {
    color: rgba(43, 33, 32, 0.6);
}

body.epic-light .podcast-pb-time {
    color: rgba(43, 33, 32, 0.65);
}

@media (max-width: 767px) {
    .podcast-player-bar {
        padding: 14px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
    }

    .podcast-pb-art {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .podcast-pb-play {
        width: 54px;
        height: 54px;
    }

    .podcast-pb-play svg {
        width: 24px;
        height: 24px;
    }

    .podcast-pb-title {
        font-size: 13px;
    }

    .podcast-pb-sub {
        font-size: 10px;
    }

    .podcast-pb-time {
        font-size: 10px;
        gap: 3px;
    }

    .podcast-pb-meta {
        gap: 8px;
    }
}

@media (max-width: 380px) {

    #podcast-pb-current,
    .podcast-pb-time-sep {
        display: none;
    }
}

@media (max-width: 991px) {
    body.podcast-active .mobile-menu {
        display: none !important;
    }
}


/* ==========================================================================
   ✅ دکمه ساخت کارت تصویری از متن ترانه
   ========================================================================== */
.lyrics-share-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
}

.lyrics-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--accent, #ff5a4d);
    color: #fff;
    border: none;
    font-family: "Vazir", "Vazirmatn", sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--accent, #ff5a4d) 50%, transparent);
    transition: transform 0.15s, box-shadow 0.2s;
}

.lyrics-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--accent, #ff5a4d) 60%, transparent);
}

.lyrics-share-btn:active {
    transform: scale(0.97);
}

.lyrics-share-btn:disabled,
.lyrics-share-btn.is-loading {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.lyrics-share-btn .i {
    --i-size: 18px;
}

body.epic-light .lyrics-share-btn {
    color: #fff;
}


/* ==========================================================================
   ✅ قالب مخفی کارت تصویری (1080x1350)
   ========================================================================== */
#lsc-template {
    position: fixed;
    top: 0;
    left: -10000px;
    width: 1080px;
    height: 1350px;
    pointer-events: none;
    z-index: -1;
}

.lsc-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0a0a;
    font-family: "Vazir", "Vazirmatn", sans-serif;
    direction: rtl;
    color: #fff;
}

.lsc-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: blur(85px) saturate(140%);
    opacity: 0.62;
    z-index: 0;
    transform: scale(1.2);
}

.lsc-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.18) 45%,
            rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
}

.lsc-top {
    position: absolute;
    top: 56px;
    left: 64px;
    right: 64px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
    justify-content: flex-end;
}

.lsc-logo {
    height: 100px;
    width: auto;
    display: block;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.55));
}

.lsc-brand {
    font-family: "Bricolage Grotesque", "Vazir", "Vazirmatn", sans-serif;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
    line-height: 1;
    display: none;
}

.lsc-lyric {
    position: absolute;
    top: 50%;
    left: 88px;
    right: 88px;
    transform: translateY(-50%);
    z-index: 2;
    max-height: 58%;
    overflow: hidden;
}

.lsc-lyric-text {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
    padding: 0;
    font-family: "Vazir", "Vazirmatn", sans-serif;
    font-size: 68px;
    line-height: 1.5;
    font-weight: 700;
    color: #fff;
    text-align: start;
    text-shadow:
        0 4px 28px rgba(0, 0, 0, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.45);
}

.lsc-lyric-line {
    display: block;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.5;
    color: inherit;
    text-align: inherit;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    unicode-bidi: plaintext;
}

.lsc-lyric-line+.lsc-lyric-line {
    margin-top: 0.25em;
}

.lsc-bottom {
    position: absolute;
    bottom: 64px;
    left: 64px;
    right: 64px;
    display: flex;
    align-items: center;
    gap: 28px;
    z-index: 2;
    direction: ltr;
}

.lsc-bottom img {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    flex: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lsc-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1;
    align-items: flex-start;
    text-align: left;
}

.lsc-title {
    font-family: "Bricolage Grotesque", "Vazir", "Vazirmatn", sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}

.lsc-artist {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}

.lsc-tag {
    margin-top: 8px;
    font-family: "Space Mono", monospace;
    font-size: 20px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    text-align: left;
    unicode-bidi: plaintext;
}


/* ==========================================================================
   ✅ انتخابگر خطوط (Range-based Picker)
   ========================================================================== */
.lsc-picker {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    font-family: "Vazir", "Vazirmatn", sans-serif;
}

.lsc-picker[hidden] {
    display: none !important;
}

.lsc-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lsc-picker-panel {
    position: relative;
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: rgba(22, 16, 20, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    color: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.lsc-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lsc-picker-head h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
}

.lsc-picker-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lsc-picker-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lsc-picker-body {
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
}

.lsc-picker-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}

.lsc-picker-line:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lsc-picker-line .lsc-line-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: start;
    unicode-bidi: plaintext;
}

.lsc-check {
    display: none !important;
}

.lsc-picker-line.is-in-range {
    border-color: color-mix(in srgb, var(--accent, #ff5a4d) 50%, rgba(255, 255, 255, 0.08));
    background: color-mix(in srgb, var(--accent, #ff5a4d) 15%, rgba(255, 255, 255, 0.06));
}

.lsc-picker-line.is-start,
.lsc-picker-line.is-end {
    background: color-mix(in srgb, var(--accent, #ff5a4d) 30%, rgba(255, 255, 255, 0.06));
    border-color: var(--accent, #ff5a4d);
    box-shadow: 0 0 0 2px var(--accent, #ff5a4d);
}

.lsc-picker-line.is-start {
    border-start-start-radius: 12px;
    border-start-end-radius: 12px;
}

.lsc-picker-line.is-end {
    border-end-start-radius: 12px;
    border-end-end-radius: 12px;
}

.lsc-picker-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
}

.lsc-picker-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Space Mono", monospace;
}

.lsc-picker-actions {
    display: flex;
    gap: 8px;
}

.lsc-picker-btn {
    padding: 10px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: 0;
}

.lsc-picker-btn.ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lsc-picker-btn.primary {
    background: var(--accent, #ff5a4d);
    color: #fff;
}

.lsc-picker-btn.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (min-width: 992px) {
    body>.header {
        transition: transform .35s cubic-bezier(.2, .75, .2, 1), opacity .25s ease !important;
    }

    body.header-hidden.podcast-active>.header {
        transform: translateY(-130%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ==========================================================================
   دسترس‌پذیری و بهینه‌سازی نهایی
   ========================================================================== */

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.station-img,
.player-artwork img,
.player-cover-image,
.podcast-cover,
.history-image img {
    object-fit: cover;
}

:focus-visible {
    outline: 2px solid var(--accent, #e17055);
    outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
    outline: none;
}

@supports (height: 100dvh) {
    .app {
        height: 100dvh;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .rp-blob,
    .rp-vinyl-disc,
    .rp-vu-fallback i {
        animation: none !important;
    }
}

@media (max-width: 767px) {

    .podcast-view,
    #podcast-player-bar,
    .epic-overlay .epic-modal {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

body.podcast-active .toggle-options [data-outside="offcanvas-history"] {
    display: none !important;
}


/* ==========================================================================
   ✅ کاور زنده برای باکس‌های ایستگاه (Preset)
   ========================================================================== */
.rp-preset {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 96px;
}

.rp-preset-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0;
    transition: opacity .55s ease, transform .5s ease;
    pointer-events: none;
    transform: scale(1.03);
}

.rp-preset-bg.has-image {
    opacity: .9;
}

.rp-preset:hover .rp-preset-bg.has-image {
    transform: scale(1.1);
}

.rp-preset-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, .18) 0%,
            rgba(0, 0, 0, .45) 55%,
            rgba(0, 0, 0, .75) 100%);
    transition: background .3s ease;
}

.rp-preset>.p,
.rp-preset>.n {
    position: relative;
    z-index: 2;
}

.rp-preset>.rp-preset-listeners {
    z-index: 2;
}

.rp-preset.is-active .rp-preset-overlay {
    background: linear-gradient(180deg,
            color-mix(in srgb, var(--accent) 38%, transparent) 0%,
            rgba(0, 0, 0, .55) 60%,
            rgba(0, 0, 0, .78) 100%);
}

.rp-preset .p {
    text-shadow: 0 1px 4px rgba(0, 0, 0, .65);
}

.rp-preset .n {
    text-shadow: 0 1px 6px rgba(0, 0, 0, .75);
}

.rp-preset-listeners {
    background: rgba(0, 0, 0, .38);
    padding: 2px 7px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
}

/* Light theme */
body.epic-light .rp-preset-bg.has-image {
    opacity: .75;
}

body.epic-light .rp-preset-overlay {
    background: linear-gradient(180deg,
            rgba(255, 255, 255, .30) 0%,
            rgba(255, 255, 255, .55) 55%,
            rgba(255, 255, 255, .85) 100%);
}

body.epic-light .rp-preset.is-active .rp-preset-overlay {
    background: linear-gradient(180deg,
            color-mix(in srgb, var(--accent) 32%, rgba(255, 255, 255, .45)) 0%,
            rgba(255, 255, 255, .6) 60%,
            rgba(255, 255, 255, .88) 100%);
}

body.epic-light .rp-preset .p,
body.epic-light .rp-preset .n,
body.epic-light .rp-preset-listeners {
    text-shadow: none;
}

body.epic-light .rp-preset-listeners {
    background: rgba(255, 255, 255, .6);
}


/* ==========================================================================
   ✅ نور درخشان و پالس برای ایستگاه در حال پخش
   ========================================================================== */

/* درخشش پالسی اطراف کادر ایستگاه فعال */
.rp-preset.is-active {
    animation: preset-glow 2.2s ease-in-out infinite;
    z-index: 2;
}

@keyframes preset-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 2px color-mix(in srgb, var(--accent) 65%, transparent),
            /* ← استروک کم‌رنگ */
            0 0 12px color-mix(in srgb, var(--accent) 50%, transparent),
            0 0 28px color-mix(in srgb, var(--accent) 25%, transparent),
            inset 0 0 8px color-mix(in srgb, var(--accent) 15%, transparent);
    }

    50% {
        box-shadow:
            0 0 0 2px var(--accent),
            /* ← استروک کامل */
            0 0 24px color-mix(in srgb, var(--accent) 90%, transparent),
            0 0 52px color-mix(in srgb, var(--accent) 55%, transparent),
            inset 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent);
    }
}


/* در حالت روشن (Light theme) نور ملایم‌تر */
body.epic-light .rp-preset.is-active {
    animation: preset-glow-light 2.2s ease-in-out infinite;
}

@keyframes preset-glow-light {

    0%,
    100% {
        box-shadow:
            0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent),
            0 0 8px color-mix(in srgb, var(--accent) 35%, transparent),
            0 0 18px color-mix(in srgb, var(--accent) 18%, transparent);
    }

    50% {
        box-shadow:
            0 0 0 2px var(--accent),
            0 0 18px color-mix(in srgb, var(--accent) 70%, transparent),
            0 0 36px color-mix(in srgb, var(--accent) 40%, transparent);
    }
}

/* احترام به تنظیم کاهش انیمیشن سیستم */
@media (prefers-reduced-motion: reduce) {
    .rp-preset.is-active {
        animation: none !important;
        box-shadow:
            0 0 0 2px var(--accent),
            0 0 16px color-mix(in srgb, var(--accent) 60%, transparent),
            0 0 32px color-mix(in srgb, var(--accent) 30%, transparent);
    }
}

/* نام ایستگاه در کارت تصویری — لوگو سمت چپ، متن سمت راستش */
.lsc-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    direction: ltr;
}

#lsc-template .lsc-station-name {
    display: inline-block !important;
    color: #ffffff !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 35px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.85) !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: right !important;
    max-width: none !important;
    width: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    order: 2 !important;
}