@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html { font-size: 80%; }

*, *::before, *::after { box-sizing: border-box; }

body {
    background: #efefef;
    color: #000;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 1rem;
    margin: 0;
    padding: 10px;
    line-height: 1.9;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

button, input, textarea, select { font-family: inherit; }

a { color: #0000cc; }
a:hover { color: #ff0000; background: #ffffcc; }

.wrap { max-width: 860px; margin: 0 auto; }

.site-header,
.panel,
.subscribe {
    border: 2px solid #000080;
    background: #fff;
    margin-bottom: 10px;
}

.site-header {
    background: #d4d0c8;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand:hover { background: transparent; color: inherit; }
.brand img { width: 50px; height: 50px; object-fit: cover; display: block; }
.brand h1 { margin: 0; font-size: 1.375rem; color: #000080; }
.tagline { display: block; font-size: 0.9375rem; font-weight: normal; color: #000; }

.panel-head,
.list-head {
    background: #000080;
    color: #fff;
    font-weight: bold;
    padding: 4px 8px;
}

.panel-body,
.subscribe { padding: 10px; }
.subscribe { background: #d4d0c8; }

.now-title { margin: 0 0 6px; color: #000080; font-size: 1.25rem; }
.now-text { margin: 0 0 8px; color: #333; white-space: pre-wrap; }

audio.player { width: 100%; margin: 8px 0; }

.controls,
.speeds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.speeds { margin-top: 8px; }

.btn {
    background: #d4d0c8;
    color: #000;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
}
.btn:active { border-color: #808080 #fff #fff #808080; }
.btn:disabled { color: #888; cursor: default; }
.btn.is-active { background: #000080; color: #fff; border-color: #000080; }

.table-scroll { overflow-x: auto; margin-bottom: 10px; border: 2px solid #000080; background: #fff; }
.episode-list { width: 100%; border-collapse: collapse; background: #fff; margin-bottom: 0; border: 0; }
.episode-list th {
    background: #000080;
    color: #fff;
    text-align: right;
    padding: 4px 6px;
    font-size: 0.9375rem;
}
.episode-list td { border-top: 1px solid #d4d0c8; padding: 6px; vertical-align: top; }
.episode-list tr.is-current { background: #ffffcc; }
.episode-list button.linkish {
    background: none;
    border: 0;
    color: #0000cc;
    text-decoration: underline;
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-align: right;
}
.episode-list button.linkish:hover { color: #ff0000; background: #ffffcc; }

.feed-url {
    width: 100%;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 4px 6px;
    font-family: inherit;
    font-size: 1rem;
}

.note { font-size: 0.9375rem; color: #333; margin: 6px 0 0; }
.footer { text-align: center; color: #666; font-size: 0.875rem; }
#play-error { color: #cc0000; margin: 8px 0 0; }

@media (max-width: 900px) {
    html { font-size: 100%; }
}

@media (max-width: 640px) {
    .site-header { flex-wrap: wrap; }
    .episode-list { min-width: 520px; }
    .controls .btn { min-width: 72px; }
}
.empty { padding: 16px; text-align: center; color: #555; }
