@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --c: #8b5cf6;
    --bg: #0f0f1a;
    --card: #1a1a2e;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #2a2a3e;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    min-height: 100vh;
    padding-bottom: 110px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 40px 0 20px;
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.page-title {
    text-align: center;
    color: var(--muted);
    margin-bottom: 40px;
    font-weight: 400;
    font-size: 1rem;
}

/* Stations */
.stations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.station {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.25s;
}

.station:hover {
    border-color: var(--c);
    transform: translateY(-3px);
}

.station-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.station h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.station p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.station .count {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    color: var(--muted);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.play-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--c);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.play-btn:hover:not(:disabled) {
    opacity: 0.85;
}

.play-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Player */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #15152a;
    border-top: 2px solid var(--c);
    padding: 15px 0;
    z-index: 100;
}

.player-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-station {
    display: block;
    font-size: 0.75rem;
    color: var(--c);
    font-weight: 700;
    margin-bottom: 3px;
}

.player-song {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--c);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-toggle:hover {
    opacity: 0.85;
}

.volume {
    width: 100px;
    accent-color: var(--c);
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 600px) {
    .header h1 { font-size: 1.5rem; }
    .volume { display: none; }
    .player-song { font-size: 0.85rem; }
}
/* ============ Footer ============ */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 60px;
}

/* ============ Subtitle ============ */
.subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 10px;
    font-weight: 400;
}

.subtitle strong {
    color: var(--c);
    font-weight: 700;
}

/* ============ Accessibility ============ */
.play-btn:focus-visible,
.btn-toggle:focus-visible {
    outline: 2px solid var(--c);
    outline-offset: 3px;
}