/* =========================================================
   RADIO VOLOM BEDE - MODERN METALLIC UI
   Visual redesign only. Existing player IDs preserved.
========================================================= */

:root {
    --bg-0: #050608;
    --bg-1: #0b0d10;
    --panel-0: #14171b;
    --panel-1: #1d2126;
    --panel-2: #252a30;
    --steel-0: #6d737a;
    --steel-1: #9da3a9;
    --steel-2: #c9cdd1;
    --text: #f2f3f4;
    --muted: #9299a1;
    --soft: #656b73;
    --accent: #e54755;
    --accent-2: #ff6974;
    --accent-dark: #7d202a;
    --green: #55d7b2;
    --line: rgba(214, 220, 226, .13);
    --glass: rgba(12, 14, 17, .72);
    --shadow: rgba(0, 0, 0, .64);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% -15%, #3a4148 0%, #171a1e 30%, #08090b 72%, #050608 100%);
    color: var(--text);
    font-family: Arial, "Segoe UI", Tahoma, sans-serif;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 36px 36px;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 100%, rgba(229,71,85,.08), transparent 35%),
        radial-gradient(circle at 0% 50%, rgba(255,255,255,.035), transparent 28%);
}

.radio {
    position: relative;
    width: min(96vw, 980px);
    height: min(92vh, 780px);
    min-height: 0;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(145deg, #50555a 0%, #262a2f 16%, #171a1e 48%, #0b0d10 100%);
    border: 1px solid #777d83;
    box-shadow:
        0 32px 90px var(--shadow),
        0 8px 28px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.30),
        inset 0 -2px 0 rgba(0,0,0,.86);
}

.radio::before,
.radio::after {
    content: "";
    position: absolute;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, #eef0f2 0%, #8b9298 32%, #454a4f 64%, #181a1d 100%);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.4),
        0 2px 3px rgba(0,0,0,.6);
    z-index: 10;
}

.radio::before { left: 11px; }
.radio::after { right: 11px; }

.cover-background {
    position: absolute;
    inset: -28px;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .055;
    filter: blur(28px) saturate(.65) grayscale(.25);
    transform: scale(1.08);
    pointer-events: none;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(3,5,7,.08), rgba(3,5,7,.72)),
        linear-gradient(90deg, rgba(229,71,85,.035), transparent 40%, rgba(255,255,255,.018));
}

.radio-shell {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 17px 18px 11px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    gap: 10px;
}

/* ---------- HEADER ---------- */

.radio-header {
    min-height: 66px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(215px, 255px);
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    border: 1px solid rgba(205, 212, 218, .17);
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(37,41,46,.86), rgba(16,19,23,.94));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.09),
        inset 0 -8px 20px rgba(0,0,0,.24),
        0 8px 20px rgba(0,0,0,.20);
}

.brand-block {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-light {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
    background: #464b50;
    border: 1px solid #757b81;
    box-shadow: inset 0 1px 2px rgba(255,255,255,.14);
    transition: background .25s, box-shadow .25s;
}

.brand-light.live {
    background: var(--accent);
    border-color: #ff7a84;
    box-shadow:
        0 0 10px rgba(229,71,85,.72),
        0 0 22px rgba(229,71,85,.24);
}

.brand-text {
    min-width: 0;
}

.brand-name {
    color: #f4f5f6;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 2.6px;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0,0,0,.6);
}

.brand-subtitle {
    margin-top: 6px;
    color: #858c93;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}

.radio-model {
    min-width: 112px;
    text-align: center;
    padding: 7px 12px;
    border: 1px solid rgba(211,217,222,.17);
    border-radius: 9px;
    background: linear-gradient(180deg, #30353a, #171a1e);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}

.model-kicker {
    display: block;
    color: #7e858c;
    font-size: 7px;
    letter-spacing: 2px;
    line-height: 1;
}

.model-main {
    display: block;
    margin-top: 4px;
    color: #d3d7da;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.radio-user-button {
    min-width: 0;
    height: 48px;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid #676e75;
    border-radius: 11px;
    background:
        linear-gradient(180deg, #41474d 0%, #252a30 46%, #171a1e 100%);
    color: #eef0f2;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.15),
        inset 0 -8px 13px rgba(0,0,0,.20),
        0 4px 12px rgba(0,0,0,.25);
    transition: border-color .18s, background .18s, transform .16s, box-shadow .18s;
}

.radio-user-button:hover {
    border-color: #9298a0;
    background: linear-gradient(180deg, #50565c 0%, #2b3036 48%, #191c20 100%);
    transform: translateY(-1px);
}

.user-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #686f75;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.16);
}

.radio-user-button[data-logged-in="1"] .user-led {
    background: var(--accent);
    box-shadow: 0 0 9px rgba(229,71,85,.55);
}

.user-icon {
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #6d747b;
    border-radius: 8px;
    background: #15181c;
    color: #e3e6e8;
}

.user-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: right;
}

.user-caption {
    color: #8f969d;
    font-size: 7px;
    letter-spacing: 1.2px;
    line-height: 1;
}

.user-name {
    margin-top: 3px;
    color: #fafafa;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-nickname-label {
    margin-top: 1px;
    color: #777f86;
    font-size: 7px;
    line-height: 1;
}

.radio-credit-display {
    display: block !important;
    margin: 2px 0 0 !important;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--green) !important;
    font-family: Arial, "Segoe UI", Tahoma, sans-serif !important;
    font-size: 9px !important;
    font-weight: 800;
    line-height: 1.1 !important;
    letter-spacing: .1px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
    text-align: right;
}

/* ---------- TUNER ---------- */

.tuner-panel {
    padding: 7px 10px 8px;
    border: 1px solid rgba(205,212,218,.14);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(22,25,29,.94), rgba(12,14,17,.97));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 5px 16px rgba(0,0,0,.22);
}

.tuner-status {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    min-height: 20px;
}

.live-status {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #777f86;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.live-status.active {
    color: var(--accent-2);
}

.live-dot {
    font-size: 9px;
    line-height: 1;
}

.tehran-clock {
    justify-self: center;
    padding: 3px 14px;
    border-left: 1px solid rgba(214,220,226,.12);
    border-right: 1px solid rgba(214,220,226,.12);
    color: #dfe2e5;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    direction: ltr;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(0,0,0,.8);
}

.signal-label {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #747b82;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.signal-label i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(229,71,85,.4);
}

.frequency-display {
    position: relative;
    margin-top: 5px;
    padding: 2px 3px 0;
    overflow: hidden;
}

.frequency-numbers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #7d858d;
    font-family: "Courier New", monospace;
    font-size: 8px;
    font-weight: 700;
}

.frequency-numbers span {
    min-width: 16px;
    text-align: center;
}

.frequency-line {
    margin-top: 4px;
    height: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-top: 1px solid #5b6269;
    direction: ltr;
}

.freq-tick {
    width: 1px;
    height: 5px;
    background: #737a81;
}

.freq-tick:nth-child(5n + 1) {
    height: 9px;
    background: #a8afb5;
}

.frequency-marker {
    position: absolute;
    top: 18px;
    left: 57%;
    width: 2px;
    height: 13px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(229,71,85,.68);
}

.frequency-marker::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    width: 8px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent-2);
}

/* ---------- MAIN ---------- */

.main-console {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(255px, .85fr);
    gap: 10px;
}

.current-panel,
.next-panel {
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(205,212,218,.14);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(39,43,48,.93), rgba(12,14,17,.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 10px 24px rgba(0,0,0,.22);
}

.current-panel {
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.next-panel {
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.panel-heading {
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #a9afb5;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
    white-space: nowrap;
}

.heading-dot,
.heading-mark {
    color: var(--accent-2);
}

.heading-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 7px rgba(229,71,85,.48);
}

.heading-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(214,220,226,.18), transparent);
}

.current-track-card {
    min-height: 0;
    flex: 1;
    margin-top: 8px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(200px, 41%) minmax(0,1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(204,211,217,.12);
    border-radius: 13px;
    background:
        linear-gradient(145deg, rgba(17,20,24,.90), rgba(30,34,39,.78));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        inset 0 0 38px rgba(0,0,0,.20),
        0 8px 20px rgba(0,0,0,.20);
}

.current-cover-wrap {
    position: relative;
    min-width: 0;
    height: 100%;
    display: grid;
    place-items: center;
}

.current-cover-glow {
    position: absolute;
    width: 82%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229,71,85,.12), transparent 68%);
    filter: blur(16px);
}

.cover-frame {
    position: relative;
    z-index: 2;
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
    padding: 7px;
    border-radius: 18px;
    background: linear-gradient(145deg, #8d949a, #3d4349 34%, #1b1e22 72%, #111317 100%);
    border: 1px solid #a9afb5;
    box-shadow:
        0 18px 34px rgba(0,0,0,.48),
        inset 0 1px 0 rgba(255,255,255,.30),
        inset 0 -6px 12px rgba(0,0,0,.40);
}

.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 13px;
    background: radial-gradient(circle, #353a40, #111418 75%);
    border: 1px solid rgba(240,244,247,.16);
    box-shadow: inset 0 0 30px rgba(0,0,0,.55);
}

.cover.off {
    opacity: .42;
    filter: grayscale(.6) brightness(.58);
}

.cover-hilite {
    position: absolute;
    inset: 7px;
    border-radius: 13px;
    pointer-events: none;
    background: linear-gradient(130deg, rgba(255,255,255,.16), transparent 32%, transparent 72%, rgba(0,0,0,.08));
}

.cover-badge {
    position: absolute;
    z-index: 5;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid rgba(229,71,85,.45);
    border-radius: 999px;
    background: rgba(8,10,12,.88);
    color: #f1dfe1;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.4px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
}

.badge-dot,
.next-led,
.status-mini-dot,
.control-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(229,71,85,.48);
}

.current-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.on-air-label {
    color: #7f878f;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2.3px;
}

.on-air-label.active {
    color: var(--accent-2);
}

.title {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    direction: rtl;
}

.title-link {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    width: 0;
    color: #f8f9fa;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    direction: rtl;
    text-shadow: 0 2px 2px rgba(0,0,0,.55);
}

.title-link:hover {
    color: #ffffff;
}

.title-link:focus-visible {
    outline: 1px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 3px;
}

.title-download-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(229,71,85,.35);
    border-radius: 7px;
    background: rgba(8,10,12,.72);
    color: #d8b2b6;
}

.title-download-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.track-divider {
    width: 100%;
    height: 1px;
    margin: 9px 0 8px;
    background: linear-gradient(90deg, rgba(229,71,85,.42), rgba(214,220,226,.10), transparent);
}

.meta-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 25px;
}

.meta-label {
    color: #6e767e;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.artist,
.featuring,
.genre {
    min-width: 0;
    color: #d4d8dc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
}

.artist {
    font-size: 14px;
    font-weight: 800;
}

.featuring {
    color: #9da4aa;
    font-size: 11px;
}

.genre {
    color: #777f87;
    font-size: 9px;
}

/* ---------- NEXT ---------- */

.next-box {
    margin-top: 8px;
    padding: 11px;
    border: 1px solid rgba(204,211,217,.12);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(20,23,27,.98), rgba(8,10,12,.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 26px rgba(0,0,0,.30);
}

.next-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #777f87;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.9px;
}

.next-led {
    width: 5px;
    height: 5px;
}

.next-row {
    min-width: 0;
    margin-top: 10px;
    display: grid;
    grid-template-columns: 94px minmax(0,1fr);
    gap: 11px;
    align-items: center;
}

.next-cover-wrap {
    width: 94px;
    height: 94px;
    padding: 4px;
    border-radius: 12px;
    background: linear-gradient(145deg, #747a80, #24282d 55%, #121417);
    border: 1px solid #7d848b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px rgba(0,0,0,.38);
}

.next-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    background: #111418;
}

.next-cover.off {
    opacity: .35;
    filter: grayscale(.65) brightness(.58);
}

.next-details {
    min-width: 0;
    text-align: right;
    overflow: hidden;
}

.next-title {
    width: 100%;
    min-width: 0;
    color: #f0f2f3;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
}

.next-meta-grid {
    min-width: 0;
    margin-top: 8px;
    display: grid;
    gap: 3px;
}

.next-meta {
    min-width: 0;
    color: #888f96;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
}

.next-genre {
    color: #656d75;
}

.side-status-card {
    margin-top: auto;
    padding: 11px;
    border: 1px solid rgba(204,211,217,.11);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(29,33,38,.95), rgba(11,13,16,.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.side-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #777f87;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.status-mini-dot {
    width: 5px;
    height: 5px;
}

.status-readout {
    margin-top: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.status-readout span {
    color: #646c73;
    font-size: 7px;
    letter-spacing: 1.4px;
}

.status-readout strong {
    color: #d3d8dc;
    font-size: 11px;
    letter-spacing: 1px;
}

.status-scanline {
    height: 2px;
    margin-top: 10px;
    background: linear-gradient(90deg, transparent, rgba(229,71,85,.62), transparent);
    box-shadow: 0 0 10px rgba(229,71,85,.18);
}

/* ---------- CONTROL ---------- */

.control-panel {
    display: grid;
    grid-template-columns: 108px minmax(0,1fr) 88px;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    border: 1px solid rgba(205,212,218,.14);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(33,37,42,.94), rgba(13,16,19,.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.control-left {
    min-width: 0;
}

.control-caption {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #aab0b5;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.control-dot {
    width: 5px;
    height: 5px;
}

.control-description {
    margin-top: 4px;
    color: #686f76;
    font-size: 8px;
    letter-spacing: 1.1px;
}

.timeline-area {
    min-width: 0;
}

.timeline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #7b8289;
    font-family: "Courier New", monospace;
    font-size: 9px;
    font-weight: 700;
    direction: ltr;
}

.timeline-track {
    width: 100%;
    height: 8px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: #080a0c;
    border: 1px solid #343a40;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.75);
    pointer-events: none;
    direction: ltr;
}

.timeline-progress {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #841f29, var(--accent), #ff818a);
    box-shadow: 0 0 10px rgba(229,71,85,.30);
    transition: width .15s linear;
}

.time-separator {
    color: #4e555c;
    padding: 0 4px;
}

.power-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.power-caption {
    margin-bottom: 4px;
    color: #646c73;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.power {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #8a9198;
    background:
        radial-gradient(circle at 32% 25%, #7a8086 0%, #464c52 30%, #22262b 63%, #121417 100%);
    color: #7e868e;
    cursor: pointer;
    outline: none;
    box-shadow:
        inset 0 2px 5px rgba(255,255,255,.10),
        inset 0 -8px 12px rgba(0,0,0,.65),
        0 6px 14px rgba(0,0,0,.38);
    transition: transform .15s, color .2s, border-color .2s, box-shadow .2s;
}

.power:hover {
    transform: translateY(-1px);
    border-color: #b1b7bd;
}

.power:active {
    transform: scale(.96);
}

.power::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 9px;
    width: 3px;
    height: 14px;
    margin-left: -1.5px;
    border-radius: 5px;
    background: currentColor;
}

.power::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    width: 21px;
    height: 21px;
    margin-left: -10.5px;
    border: 3px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
}

.power.active {
    color: #ff707b;
    border-color: #b63a47;
    box-shadow:
        inset 0 2px 5px rgba(255,255,255,.08),
        0 0 20px rgba(229,71,85,.24),
        0 6px 14px rgba(0,0,0,.38);
}

.power-text {
    margin-top: 4px;
    color: #7b8288;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.radio-footer {
    min-height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #656c73;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.footer-separator {
    color: var(--accent-2);
}

audio {
    display: none;
}

/* ---------- TABLET / SMALL DESKTOP ---------- */

@media (max-width: 820px) {
    .radio {
        width: min(97vw, 760px);
    }

    .radio-header {
        grid-template-columns: minmax(0,1fr) minmax(180px, 215px);
    }

    .radio-model {
        display: none;
    }

    .current-track-card {
        grid-template-columns: minmax(180px, 39%) minmax(0,1fr);
        gap: 12px;
        padding: 10px;
    }

    .cover-frame {
        width: min(100%, 255px);
    }
}

/* ---------- MOBILE: EVERYTHING REMAINS ON ONE SCREEN ---------- */

@media (max-width: 650px) {
    body {
        padding: 7px;
    }

    .radio {
        width: 100%;
        height: calc(100vh - 14px);
        border-radius: 18px;
    }

    .radio-shell {
        padding: 9px;
        gap: 7px;
    }

    .radio-header {
        min-height: 55px;
        grid-template-columns: minmax(0,1fr) minmax(150px, 44%);
        gap: 7px;
        padding: 7px;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 15px;
        letter-spacing: 1.7px;
    }

    .brand-subtitle {
        margin-top: 4px;
        font-size: 6px;
        letter-spacing: 1.3px;
    }

    .radio-user-button {
        height: 42px;
        padding: 4px 7px;
        gap: 6px;
        border-radius: 9px;
    }

    .user-icon {
        width: 25px;
        height: 25px;
    }

    .user-icon svg {
        width: 15px;
        height: 15px;
    }

    .user-caption {
        font-size: 6px;
    }

    .user-name {
        font-size: 10px;
    }

    .user-nickname-label {
        font-size: 6px;
    }

    .radio-credit-display {
        font-size: 8px !important;
    }

    .tuner-panel {
        padding: 6px 8px 7px;
        border-radius: 10px;
    }

    .tehran-clock {
        font-size: 12px;
        padding: 2px 8px;
    }

    .frequency-numbers {
        font-size: 7px;
    }

    .frequency-line {
        height: 10px;
    }

    .frequency-marker {
        top: 16px;
        height: 11px;
    }

    .main-console {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 7px;
    }

    .current-panel {
        padding: 8px;
        border-radius: 13px;
    }

    .current-track-card {
        grid-template-columns: 30% minmax(0,1fr);
        gap: 8px;
        padding: 8px;
        margin-top: 6px;
        border-radius: 11px;
    }

    .current-cover-glow {
        width: 90%;
    }

    .cover-frame {
        width: min(100%, 180px);
        padding: 5px;
        border-radius: 13px;
    }

    .cover {
        border-radius: 9px;
    }

    .cover-hilite {
        inset: 5px;
        border-radius: 9px;
    }

    .cover-badge {
        bottom: 3px;
        padding: 4px 7px;
        font-size: 6px;
    }

    .on-air-label {
        font-size: 7px;
        letter-spacing: 1.7px;
    }

    .title {
        margin-top: 6px;
        min-height: 27px;
        gap: 5px;
    }

    .title-link {
        font-size: 24px;
    }

    .title-download-icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .title-download-icon svg {
        width: 12px;
        height: 12px;
    }

    .track-divider {
        margin: 6px 0 5px;
    }

    .meta-row {
        grid-template-columns: 40px minmax(0,1fr);
        gap: 6px;
        min-height: 20px;
    }

    .meta-label {
        font-size: 6px;
        letter-spacing: 1.3px;
    }

    .artist {
        font-size: 11px;
    }

    .featuring {
        font-size: 9px;
    }

    .genre {
        font-size: 7px;
    }

    .next-panel {
        padding: 8px;
        border-radius: 13px;
    }

    .next-panel .panel-heading {
        min-height: 12px;
    }

    .next-box {
        margin-top: 5px;
        padding: 7px;
        border-radius: 10px;
    }

    .next-row {
        margin-top: 6px;
        grid-template-columns: 58px minmax(0,1fr);
        gap: 8px;
    }

    .next-cover-wrap {
        width: 58px;
        height: 58px;
        padding: 3px;
        border-radius: 8px;
    }

    .next-cover {
        border-radius: 5px;
    }

    .next-title {
        font-size: 17px;
    }

    .next-meta-grid {
        margin-top: 4px;
        gap: 2px;
    }

    .next-meta {
        font-size: 7px;
    }

    .side-status-card {
        display: none;
    }

    .control-panel {
        grid-template-columns: minmax(0,1fr) 60px;
        gap: 8px;
        padding: 6px 7px;
        border-radius: 11px;
    }

    .control-left {
        display: none;
    }

    .timeline-top {
        font-size: 8px;
    }

    .timeline-track {
        height: 7px;
        margin-top: 5px;
    }

    .power {
        width: 42px;
        height: 42px;
    }

    .power::before {
        top: 8px;
        height: 12px;
    }

    .power::after {
        top: 9px;
        width: 18px;
        height: 18px;
        margin-left: -9px;
    }

    .power-caption,
    .power-text {
        font-size: 6px;
    }

    .radio-footer {
        min-height: 11px;
        font-size: 5px;
    }
}

/* ---------- VERY SMALL PHONES ---------- */

@media (max-width: 420px) {
    .radio-shell {
        padding: 7px;
        gap: 5px;
    }

    .radio-header {
        min-height: 49px;
        padding: 6px;
    }

    .brand-light {
        width: 9px;
        height: 9px;
        flex-basis: 9px;
    }

    .brand-name {
        font-size: 13px;
        letter-spacing: 1.2px;
    }

    .brand-subtitle {
        font-size: 5px;
    }

    .radio-user-button {
        height: 38px;
    }

    .user-icon {
        width: 22px;
        height: 22px;
    }

    .user-name {
        font-size: 9px;
    }

    .user-credit-display,
    .radio-credit-display {
        font-size: 7px !important;
    }

    .tuner-panel {
        padding: 5px 7px 6px;
    }

    .tehran-clock {
        font-size: 10px;
    }

    .signal-label {
        font-size: 6px;
    }

    .current-panel,
    .next-panel {
        padding: 6px;
        border-radius: 11px;
    }

    .current-track-card {
        grid-template-columns: 27% minmax(0,1fr);
        gap: 7px;
        padding: 6px;
    }

    .title-link {
        font-size: 21px;
    }

    .title-download-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .meta-row {
        min-height: 18px;
        grid-template-columns: 36px minmax(0,1fr);
    }

    .artist {
        font-size: 10px;
    }

    .featuring {
        font-size: 8px;
    }

    .genre {
        font-size: 6px;
    }

    .next-cover-wrap {
        width: 50px;
        height: 50px;
    }

    .next-row {
        grid-template-columns: 50px minmax(0,1fr);
        gap: 6px;
    }

    .next-title {
        font-size: 15px;
    }

    .next-meta {
        font-size: 6px;
    }

    .control-panel {
        grid-template-columns: minmax(0,1fr) 54px;
        padding: 5px 6px;
    }

    .power {
        width: 38px;
        height: 38px;
    }

    .radio-footer {
        font-size: 4.5px;
    }
}

/* ---------- SHORT DESKTOP VIEWPORTS ---------- */

@media (max-height: 650px) and (min-width: 651px) {
    .radio-shell {
        padding: 11px 13px 8px;
        gap: 7px;
    }

    .radio-header {
        min-height: 54px;
        padding: 7px 9px;
    }

    .brand-name {
        font-size: 16px;
    }

    .tuner-panel {
        padding: 5px 8px 6px;
    }

    .main-console {
        gap: 8px;
    }

    .current-panel,
    .next-panel {
        padding: 9px;
    }

    .current-track-card {
        grid-template-columns: minmax(155px, 36%) minmax(0,1fr);
        gap: 10px;
        padding: 9px;
    }

    .cover-frame {
        width: min(100%, 205px);
    }

    .title-link {
        font-size: 26px;
    }

    .next-row {
        grid-template-columns: 76px minmax(0,1fr);
    }

    .next-cover-wrap {
        width: 76px;
        height: 76px;
    }

    .next-title {
        font-size: 17px;
    }

    .control-panel {
        padding: 6px 9px;
    }

    .power {
        width: 42px;
        height: 42px;
    }

    .radio-footer {
        min-height: 11px;
    }
}
