* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #0b0e14;
    color: #e0e4ec;
    min-height: 100vh;
    padding: 30px 20px;
    direction: rtl;
    overflow-x: hidden;
}

/* ===== CANVAS BACKGROUND ===== */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* همه چیز بالای کانواس */
.header,
.player-container,
.footer {
    position: relative;
    z-index: 1;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 30px;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header a {
    color: #6c8cff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.header a:hover {
    color: #fff;
}

.logo {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.player-container {
    margin-top: 80px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.player-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.player-title span {
    color: #6c8cff;
}

.player-sub {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 30px;
}

/* ===== IFRAME PLAYER ===== */
.iframe-wrapper {
    background: rgba(20, 26, 36, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    margin-bottom: 30px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 80px;
    border: none;
    border-radius: 10px;
    background: transparent;
}

.no-iframe-msg {
    color: #64748b;
    font-size: 14px;
    padding: 20px;
}

.radio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-height: 380px;
    overflow-y: auto;
    padding-left: 6px;
}

.radio-list::-webkit-scrollbar {
    width: 4px;
}
.radio-list::-webkit-scrollbar-track {
    background: #141a24;
    border-radius: 10px;
}
.radio-list::-webkit-scrollbar-thumb {
    background: #6c8cff;
    border-radius: 10px;
}

.radio-item {
    background: rgba(20, 26, 36, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s;
}

.radio-item:hover {
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(37, 99, 235, 0.08);
    transform: translateX(-4px);
}

.radio-item.active {
    border-color: #6c8cff;
    background: rgba(37, 99, 235, 0.15);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.radio-item .info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.radio-item .name {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
}

.radio-item .genre {
    font-size: 11px;
    color: #64748b;
    font-weight: 400;
}

.radio-item .status {
    font-size: 12px;
    color: #64748b;
    background: rgba(100, 116, 139, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(100, 116, 139, 0.15);
    transition: all 0.3s;
}

.radio-item.active .status {
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.08);
    animation: blinkStatus 1.5s ease-in-out infinite;
}

@keyframes blinkStatus {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.footer {
    margin-top: 30px;
    color: #475569;
    font-size: 12px;
    text-align: center;
}

.footer a {
    color: #6c8cff;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .player-title {
        font-size: 22px;
    }
    .radio-item {
        padding: 12px 16px;
    }
    .header {
        padding: 12px 16px;
    }
    .logo {
        font-size: 15px;
    }
}