
:root {
    color-scheme: dark;
    --bg: #070b16;
    --bg-soft: #0b1121;
    --panel: #10182b;
    --panel2: #17223a;
    --panel3: #1d2a45;
    --text: #f4f6ff;
    --muted: #a0aec8;
    --accent: #ffc46b;
    --accent-hover: #ffda94;
    --accent-soft: rgba(255, 196, 107, .12);
    --line: rgba(148, 170, 211, .19);
    --line-strong: rgba(148, 170, 211, .32);
    --success: #79e6aa;
    --danger: #ff929e;
    --radius: 19px;
    --shadow: 0 18px 48px rgba(0, 0, 0, .24);
    --shadow-gold: 0 5px 22px rgba(255, 185, 85, .13);
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: #35415e var(--bg);
    scrollbar-width: thin;
}

body {
    margin: 0;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(61, 70, 137, .17), transparent 38%),
        radial-gradient(ellipse at 92% 30%, rgba(94, 48, 111, .10), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(255, 196, 107, .30);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

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

button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(7, 11, 22, .91);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
}

.nav {
    width: 100%;
    max-width: 1160px;
    min-height: 70px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 900;
    letter-spacing: -.7px;
    white-space: nowrap;
    line-height: 1.2;
}

.brand span {
    color: var(--accent);
    text-shadow: 0 0 22px rgba(255, 196, 107, .20);
}

.nav-label {
    color: var(--muted);
    font-size: 13px;
}

main {
    width: 100%;
    max-width: 1160px;
    margin: auto;
    padding: 26px 20px 60px;
}

/* Hero and search */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(27px, 6vw, 54px);
    border: 1px solid rgba(255, 196, 107, .23);
    border-radius: 27px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(133, 77, 151, .31), transparent 42%),
        radial-gradient(ellipse at 0% 100%, rgba(49, 95, 146, .22), transparent 48%),
        linear-gradient(125deg, #171b36 0%, #111a30 52%, #11172a 100%);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -110px;
    right: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 196, 107, .055);
    filter: blur(5px);
    pointer-events: none;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 11px;
    font-weight: 850;
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(31px, 6vw, 52px);
    line-height: 1.11;
    letter-spacing: -1.4px;
    margin: 13px 0 15px;
}

.hero p {
    max-width: 560px;
    color: #c1cce1;
    margin: 0;
    font-size: 15px;
}

.search {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    max-width: 670px;
}

.search input {
    width: 100%;
    min-width: 0;
    min-height: 51px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(7, 12, 26, .72);
    color: var(--text);
    padding: 0 16px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search input::placeholder {
    color: #8391ad;
}

.search input:focus {
    border-color: rgba(255, 196, 107, .75);
    box-shadow: 0 0 0 4px rgba(255, 196, 107, .09);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffda91, #ffb64e);
    color: #241a12;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 5px 16px rgba(255, 180, 84, .13);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: var(--shadow-gold);
}

.btn:active {
    transform: translateY(0) scale(.985);
}

.btn-secondary {
    background: var(--panel2);
    border: 1px solid var(--line);
    color: var(--text);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--panel3);
    border-color: var(--line-strong);
    box-shadow: none;
}

/* Section headings */

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 32px 0 17px;
}

.section-head h2 {
    font-size: clamp(19px, 3vw, 23px);
    letter-spacing: -.45px;
    margin: 0;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

/* Story cards */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 17px;
}

.card {
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(155deg, rgba(22, 32, 55, .98), rgba(13, 20, 37, .98));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 196, 107, .40);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22), var(--shadow-gold);
}

.cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 13px;
    overflow: hidden;
    background: linear-gradient(140deg, #e8ae5c, #8654a0, #254e73);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    margin-bottom: 13px;
}

.cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.card:hover .cover img {
    transform: scale(1.035);
}

.card h3 {
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -.2px;
    margin: 0 0 7px;
    overflow-wrap: anywhere;
}

.card p {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card .btn {
    width: 100%;
    min-height: 40px;
    font-size: 13px;
    padding: 9px 8px;
}

/* Metadata and story details */

.meta {
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 11px;
}

.back {
    display: inline-block;
    color: var(--accent);
    margin: 0 0 18px;
    transition: color var(--transition);
}

.back:hover {
    color: var(--accent-hover);
}

.story-hero {
    margin-bottom: 25px;
}

.story-poster {
    display: block;
    width: min(165px, 55%);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 17px;
    box-shadow: var(--shadow);
}

.episode {
    background: linear-gradient(145deg, rgba(21, 31, 53, .98), rgba(13, 20, 37, .98));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .10);
}

.episode-title {
    font-weight: 780;
    overflow-wrap: anywhere;
    margin-bottom: 10px;
}

.audio-player-wrap {
    margin: 10px 0;
}

/* Inline custom audio player */

.episode audio.audiosfm-player {
    display: none !important;
}

.audiosfm-custom-player {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(145deg, #1a2741, #111a2e);
    color: var(--text);
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.audiosfm-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audiosfm-play {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    background: linear-gradient(135deg, #ffda91, #ffb64e);
    color: #241a12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 850;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 180, 84, .17);
    transition: transform var(--transition), filter var(--transition);
}

.audiosfm-play:hover {
    filter: brightness(1.06);
}

.audiosfm-play:active {
    transform: scale(.95);
}

.audiosfm-track {
    flex: 1;
    min-width: 0;
}

.audiosfm-time-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    margin-top: 7px;
}

.audiosfm-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.audiosfm-speed-label {
    color: var(--muted);
    font-size: 12px;
}

.audiosfm-speed {
    min-height: 34px;
    max-width: 100px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.audiosfm-progress {
    display: block;
    width: 100%;
    height: 7px;
    margin: 7px 0 0;
    padding: 0;
    accent-color: var(--accent);
    cursor: pointer;
    touch-action: pan-y;
}

.audiosfm-message {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 19px;
    margin-top: 10px;
    color: #ffd18a;
    font-size: 12px;
    line-height: 1.4;
}

.audiosfm-message[hidden] {
    display: none;
}

.audiosfm-message .audio-spinner {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
}

.audiosfm-message.is-error {
    color: var(--danger);
}

.audiosfm-retry {
    display: none;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 12px;
    margin-left: auto;
    cursor: pointer;
}

.audiosfm-message.is-error .audiosfm-retry {
    display: inline-flex;
}

/* Audio loading and error status */

.audio-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(16, 24, 43, .9);
    color: #ffd18a;
    font-size: 13px;
    font-weight: 650;
}

.audio-status[hidden] {
    display: none;
}

.audio-spinner {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 2px solid #485674;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: audio-spin .75s linear infinite;
}

.audio-status.is-error {
    color: var(--danger);
    border-color: rgba(255, 110, 130, .30);
    background: rgba(61, 25, 38, .55);
}

.audio-status.is-playing {
    color: var(--success);
    border-color: rgba(87, 218, 143, .28);
    background: rgba(16, 52, 39, .45);
}

.audio-retry {
    display: none;
    margin-left: auto;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel2);
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
}

.audio-status.is-error .audio-retry {
    display: inline-flex;
}

@keyframes audio-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Episode jump navigation */

.jump-box {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(20, 30, 51, .96), rgba(13, 20, 37, .96));
    margin: 18px 0;
}

.jump-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 13px 0;
}

.jump-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel2);
    color: var(--text);
    font-size: 13px;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.jump-btn:hover {
    border-color: rgba(255, 196, 107, .40);
    background: var(--panel3);
}

.jump-btn.active {
    background: linear-gradient(135deg, #ffda91, #ffb64e);
    border-color: transparent;
    color: #241a12;
    font-weight: 850;
    box-shadow: var(--shadow-gold);
}

.jump-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.empty {
    border: 1px dashed var(--line-strong);
    background: rgba(16, 24, 43, .50);
    padding: 26px;
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
}

.coming {
    margin-top: 22px;
    padding: 22px;
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    background: rgba(16, 24, 43, .35);
    color: var(--muted);
}

/* Footer */

footer {
    border-top: 1px solid var(--line);
    background: rgba(6, 10, 20, .65);
    text-align: center;
    padding: 27px 16px;
    color: var(--muted);
    font-size: 12px;
}

/* Account and Telegram buttons */

.account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel2);
    font-weight: 750;
    font-size: 13px;
    transition: border-color var(--transition), background var(--transition);
}

.account-link:hover {
    border-color: rgba(255, 196, 107, .40);
    background: var(--panel3);
}

.telegram-btn {
    background: rgba(24, 91, 135, .24);
    border-color: rgba(73, 167, 226, .28);
}

.telegram-btn:hover {
    background: rgba(24, 115, 171, .34);
}

/* Notices */

.notice {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 12px 0;
    background: rgba(24, 72, 51, .36);
    border: 1px solid rgba(89, 205, 143, .26);
    color: #c4f8d8;
}

.notice.error {
    background: rgba(76, 29, 42, .45);
    border-color: rgba(255, 110, 130, .30);
    color: #ffc1c8;
}

/* Reviews */

.review-panel {
    margin-top: 15px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(20, 30, 51, .96), rgba(12, 19, 35, .96));
}

.review-panel h3 {
    margin: 0 0 11px;
    font-size: 17px;
}

.review-form {
    display: grid;
    gap: 10px;
}

.review-form textarea,
.review-form select,
.auth-card input {
    width: 100%;
    color: var(--text);
    background: #0c1426;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    padding: 11px 12px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.review-form textarea:focus,
.review-form select:focus,
.auth-card input:focus {
    border-color: rgba(255, 196, 107, .7);
    box-shadow: 0 0 0 3px rgba(255, 196, 107, .08);
}

.review-form textarea {
    min-height: 90px;
    resize: vertical;
}

.review-item {
    border-top: 1px solid var(--line);
    padding: 13px 0;
    overflow-wrap: anywhere;
}

.review-item:first-of-type {
    border-top: 0;
}

.review-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.review-stars {
    color: var(--accent);
    letter-spacing: 1px;
}

.review-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.review-actions button {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 8px;
    padding: 6px 9px;
    cursor: pointer;
    font-size: 12px;
    transition: color var(--transition), border-color var(--transition);
}

.review-actions button:hover {
    color: var(--accent);
    border-color: rgba(255, 196, 107, .35);
}

/* Login and registration */

.auth-main {
    width: 100%;
    max-width: 560px;
    margin: 38px auto;
    padding: 0 16px 55px;
}

.auth-card {
    padding: clamp(21px, 5vw, 30px);
    background: linear-gradient(145deg, rgba(22, 32, 55, .98), rgba(12, 19, 35, .98));
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin-top: 0;
    letter-spacing: -.6px;
}

.auth-card label {
    display: block;
    margin: 13px 0 6px;
    color: var(--muted);
    font-size: 13px;
}

.auth-card .btn {
    width: 100%;
    margin-top: 16px;
}

.auth-switch {
    color: var(--muted);
    margin-top: 15px;
    font-size: 13px;
}

/* Sticky header and fixed global player */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    background: rgba(7, 11, 22, .94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
}

.site-header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    max-width: 1160px;
    min-height: 62px;
    margin: auto;
    padding: 10px 20px;
    box-sizing: border-box;
}

.site-header .brand {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 23px;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.site-header .account-link,
.site-header .telegram-btn,
.account-link,
.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel2);
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.site-header .telegram-btn,
.telegram-btn {
    background: rgba(24, 91, 135, .25);
    border-color: rgba(73, 167, 226, .30);
}

/* Bottom docked player */

.global-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 13px max(16px, calc((100vw - 1120px) / 2)) 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-top: 1px solid rgba(255, 196, 107, .26);
    background: rgba(8, 13, 26, .97);
    box-shadow: 0 -12px 35px rgba(0, 0, 0, .32);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    min-height: 94px;
}

.global-play {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    background: linear-gradient(135deg, #ffda91, #ffb64e);
    color: #241a12;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 17px rgba(255, 180, 84, .17);
    transition: transform var(--transition), filter var(--transition);
}

.global-play:hover {
    filter: brightness(1.06);
}

.global-play:active {
    transform: scale(.95);
}

.global-play:disabled {
    opacity: .45;
    cursor: default;
    box-shadow: none;
}

.global-player-main {
    flex: 1;
    min-width: 0;
}

.global-now-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 780;
    line-height: 1.35;
    margin-bottom: 5px;
}

.global-progress {
    display: block;
    width: 100%;
    height: 12px;
    margin: 4px 0;
    accent-color: var(--accent);
    touch-action: pan-y;
    cursor: pointer;
}

.global-player-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.global-speed {
    max-width: 68px;
    min-height: 33px;
    padding: 4px 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    color: var(--text);
    font-size: 11px;
}

.global-player-status {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 140px;
    min-width: 100px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #8790a5;
}

.global-player[data-state="loading"] .status-dot,
.global-player[data-state="buffering"] .status-dot {
    background: var(--accent);
    animation: statusPulse 1s ease-in-out infinite;
}

.global-player[data-state="playing"] .status-dot {
    background: var(--success);
    box-shadow: 0 0 9px rgba(86, 217, 139, .42);
}

.global-player[data-state="error"] .status-dot {
    background: #ff657a;
}

@keyframes statusPulse {
    50% {
        opacity: .35;
        transform: scale(.78);
    }
}

body:has(#globalPlayer) {
    padding-bottom: 105px;
}

footer:has(#globalPlayer) {
    padding-bottom: 115px;
}

/* Episode list */

.episode-list {
    display: grid;
    gap: 8px;
}

.episode-row {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 11px 12px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(115deg, rgba(20, 30, 51, .98), rgba(13, 20, 37, .98));
    transition: border-color var(--transition), background var(--transition);
}

.episode-row:hover {
    border-color: rgba(255, 196, 107, .30);
    background: linear-gradient(115deg, rgba(26, 39, 64, .98), rgba(15, 24, 43, .98));
}

.episode-row-title {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 720;
}

.episode-row-meta {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}

.episode-select-play {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: linear-gradient(135deg, #ffda91, #ffb64e);
    color: #241a12;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    transition: transform var(--transition), filter var(--transition);
}

.episode-select-play:hover {
    filter: brightness(1.06);
}

.episode-select-play:active {
    transform: scale(.94);
}

.episode-select-play.is-active {
    background: linear-gradient(135deg, #a5f0c3, #61d99a);
    color: #10271b;
}

.episode-audio {
    display: none !important;
}

/* Compact episode navigation */

.jump-box {
    padding: 12px;
    margin: 13px 0;
}

.jump-buttons {
    gap: 7px;
    margin: 9px 0;
}

.jump-btn {
    padding: 7px 10px;
    font-size: 12px;
}

/* Tablet */

@media (max-width: 800px) {
    main {
        padding: 21px 15px 50px;
    }

    .nav {
        padding-left: 15px;
        padding-right: 15px;
    }

    .cards {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 12px;
    }

    .global-player {
        gap: 9px;
    }

    .global-player-status {
        min-width: 85px;
        max-width: 110px;
    }
}

/* Mobile */

@media (max-width: 560px) {
    .nav {
        min-height: 60px;
        padding: 10px 13px;
        flex-wrap: wrap;
        gap: 7px;
    }

    .nav-label {
        display: none;
    }

    .site-header .nav {
        align-items: center;
        flex-wrap: nowrap;
        gap: 5px;
        padding: 9px 10px;
        min-height: 56px;
    }

    .site-header .brand {
        font-size: 18px;
        letter-spacing: -.5px;
    }

    .nav-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 5px;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .site-header .account-link,
    .site-header .telegram-btn,
    .account-link,
    .telegram-btn {
        min-height: 31px;
        padding: 6px 7px;
        font-size: 10px;
        border-radius: 8px;
    }

    main {
        padding: 15px 12px 40px;
    }

    .hero {
        padding: 25px 18px;
        border-radius: 21px;
        margin-bottom: 25px;
    }

    .hero h1 {
        font-size: clamp(29px, 8vw, 39px);
        letter-spacing: -.9px;
    }

    .hero p {
        font-size: 14px;
    }

    .search {
        flex-direction: column;
        gap: 9px;
        margin-top: 20px;
    }

    .search input {
        min-height: 47px;
    }

    .search .btn {
        width: 100%;
    }

    .section-head {
        margin: 26px 0 14px;
        gap: 8px;
    }

    .section-head h2 {
        font-size: 19px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .card {
        padding: 8px;
        border-radius: 15px;
    }

    .card:hover {
        transform: translateY(-2px);
    }

    .cover {
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .card h3 {
        font-size: 14px;
    }

    .card p {
        font-size: 12px;
        line-height: 1.5;
    }

    .card .btn {
        min-height: 38px;
        font-size: 12px;
        padding: 8px 5px;
    }

    .story-hero {
        padding: 17px;
        margin-bottom: 15px;
        overflow: auto;
    }

    .story-poster {
        width: 86px;
        float: left;
        margin: 0 12px 8px 0;
        border-radius: 12px;
    }

    .story-hero h1 {
        font-size: 25px;
        line-height: 1.2;
        margin: 7px 0;
    }

    .story-hero p {
        font-size: 13px;
    }

    .episode {
        padding: 12px;
        border-radius: 13px;
    }

    .episode-row {
        padding: 9px;
        gap: 8px;
        border-radius: 11px;
    }

    .episode-row-title {
        font-size: 12px;
    }

    .episode-select-play {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .jump-box {
        padding: 10px;
        margin: 12px 0;
    }

    .jump-buttons {
        gap: 6px;
    }

    .jump-btn {
        min-width: 32px;
        padding: 6px 8px;
    }

    .audiosfm-custom-player {
        padding: 12px;
    }

    .audiosfm-play {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .audiosfm-progress {
        height: 9px;
    }

    .audiosfm-bottom-row {
        gap: 7px;
    }

    .global-player {
        gap: 7px;
        padding: 10px 9px calc(10px + env(safe-area-inset-bottom));
        min-height: 100px;
    }

    .global-play {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 15px;
    }

    .global-speed {
        max-width: 54px;
        min-height: 30px;
        padding: 3px;
        font-size: 10px;
    }

    .global-player-status {
        display: flex;
        min-width: 0;
        max-width: 76px;
        gap: 4px;
        font-size: 9px;
    }

    .global-player-status .status-text {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 64px;
    }

    .status-dot {
        width: 7px;
        height: 7px;
        flex-basis: 7px;
    }

    .global-now-title {
        font-size: 12px;
    }

    .global-player-meta {
        font-size: 10px;
    }

    body:has(#globalPlayer) {
        padding-bottom: 110px;
    }

    footer:has(#globalPlayer) {
        padding-bottom: 125px;
    }

    .review-panel {
        padding: 11px;
    }

    .auth-main {
        margin: 25px auto;
        padding-bottom: 40px;
    }

    .auth-card {
        padding: 20px;
        border-radius: 16px;
    }

    footer {
        padding: 23px 13px;
    }
}

/* Very narrow mobile screens */

@media (max-width: 360px) {
    .site-header .nav {
        gap: 4px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .site-header .brand {
        font-size: 16px;
    }

    .nav-actions {
        gap: 3px;
    }

    .site-header .account-link,
    .site-header .telegram-btn {
        padding: 5px 5px;
        font-size: 9px;
    }

    .global-player {
        gap: 5px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .global-player-status {
        max-width: 57px;
    }

    .global-player-status .status-text {
        max-width: 47px;
    }

    .global-speed {
        max-width: 47px;
    }

    .cards {
        gap: 8px;
    }
}

/* Respect the user's motion preferences */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .audio-spinner {
        animation: none;
        border-top-color: var(--accent);
    }
}
/* AUDIOS FM - Episode List Dark Pink Play Button */
.episode-select-play {
    background: #c2185b !important;
    color: #ffffff !important;
}

.episode-select-play.is-active {
    background: #880e4f !important;
    color: #ffffff !important;
}


.jump-open-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.jump-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.78);
    padding: 16px;
    align-items: center;
    justify-content: center;
}

.jump-modal.open {
    display: flex;
}

.jump-modal-content {
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.jump-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--line);
}

.jump-close-btn {
    background: transparent;
    color: var(--text);
    border: 0;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.jump-modal-body {
    padding: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.jump-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.jump-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 10px;
    min-height: 34px;
    background: var(--panel2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
}

.jump-btn.active {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
    font-weight: 700;
}

.jump-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 480px) {
    .jump-modal {
        padding: 10px;
    }

    .jump-modal-content {
        max-height: 85vh;
    }

    .jump-buttons {
        gap: 5px;
    }

    .jump-btn {
        padding: 7px 8px;
        font-size: 11px;
    }
}

.episode-tools-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.episode-tools-row .jump-box {
    margin: 0;
}

.episode-search-box {
    margin: 0;
    flex: 1;
    min-width: 220px;
}

.episode-search-box form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.episode-search-box input {
    width: 100%;
    min-width: 0;
    padding: 11px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
}

.episode-search-box button {
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #111;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 480px) {
    .episode-tools-row {
        gap: 8px;
    }

    .episode-search-box {
        min-width: 0;
        flex: 1;
    }

    .episode-search-box form {
        flex-wrap: wrap;
    }
}

/* =========================================================
   PREMIUM BLACK / ORANGE / EMERALD THEME
   Visual refresh overrides — preserves existing component classes
   ========================================================= */
:root {
    color-scheme: dark;
    --bg: #080706;
    --bg-soft: #0c0a08;
    --panel: #120f0c;
    --panel2: #1b140d;
    --panel3: #291b0e;
    --text: #f8f5f1;
    --muted: #a79a8e;
    --accent: #ff850b;
    --accent-hover: #ffa43d;
    --accent-soft: rgba(255, 133, 11, .12);
    --line: rgba(255, 145, 25, 0.40);
    --line-strong: rgba(255, 145, 25, 0.65);
    --success: #10bd8b;
    --danger: #ff7272;
    --radius: 20px;
    --shadow: 0 20px 55px rgba(0, 0, 0, .42);
    --shadow-gold: 0 8px 26px rgba(255, 133, 11, .12);
    --transition: 180ms ease;
}

html {
    background: var(--bg);
    scrollbar-color: #49301a #080706;
}

body {
    background:
        radial-gradient(ellipse at 50% -18%, rgba(255, 133, 11, .075), transparent 48%),
        #080706;
    color: var(--text);
}

::selection {
    background: rgba(255, 133, 11, .32);
    color: #fff;
}

.site-header,
header {
    background: rgba(8, 7, 6, .96);
    border-bottom: 1px solid rgba(255, 133, 11, .16);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.site-header .nav {
    min-height: 72px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-header .brand,
.brand {
    color: #fff;
    font-weight: 950;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.site-header .brand span,
.brand span {
    color: var(--accent);
    text-shadow: 0 0 22px rgba(255, 133, 11, .2);
}

main {
    max-width: 1000px;
    padding-top: 28px;
}

.hero {
    border: 1px solid rgba(255, 133, 11, .28);
    border-radius: 25px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255, 133, 11, .09), transparent 42%),
        linear-gradient(145deg, #17110b 0%, #100d0a 58%, #0d0b09 100%);
    box-shadow: var(--shadow);
}

.hero::before {
    background: rgba(255, 133, 11, .06);
}

.eyebrow {
    color: var(--accent);
    letter-spacing: 2.6px;
    font-size: 11px;
}

.hero h1 {
    letter-spacing: -1.25px;
    font-weight: 900;
}

.hero p {
    color: #b5a79b;
}

.search input,
.episode-search-box input,
.review-form textarea,
.review-form select,
.auth-card input {
    background: #0b0907;
    border-color: rgba(255, 133, 11, .22);
    color: var(--text);
    border-radius: 13px;
}

.search input:focus,
.review-form textarea:focus,
.review-form select:focus,
.auth-card input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 133, 11, .09);
}

.btn {
    background: linear-gradient(135deg, #ff9b25, #ff7900);
    color: #1a1007;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(255, 133, 11, .13);
}

.btn-secondary,
.account-link,
.site-header .account-link {
    background: #17110b;
    border-color: rgba(255, 133, 11, .2);
    color: #f8f5f1;
}

.telegram-btn,
.site-header .telegram-btn {
    background: rgba(19, 116, 167, .15);
    border-color: rgba(67, 170, 224, .25);
}

.section-head h2 {
    font-weight: 850;
}

.cards {
    gap: 15px;
}

.card {
    padding: 10px;
    background: linear-gradient(155deg, #17120d, #0e0b09);
    border-radius: 18px;
    border: 2px solid rgba(255, 145, 25, 0.80);
    box-shadow: 0 0 8px rgba(255, 145, 25, 0.10);
}

.card:hover {
    border-color: rgba(255, 133, 11, .52);
    box-shadow: 0 15px 34px rgba(0, 0, 0, .3), var(--shadow-gold);
}

.cover {
    background: linear-gradient(140deg, #ff850b, #5a2b0b, #17110b);
    border-radius: 13px;
}

.card h3 {
    font-weight: 850;
}

.card p,
.muted,
.meta {
    color: var(--muted);
}

.back {
    color: var(--accent);
}

.story-hero {
    background:
        radial-gradient(ellipse at 100% 0%, rgba(255, 133, 11, .08), transparent 45%),
        linear-gradient(145deg, #17110b, #0e0b09);
}

.story-poster {
    border-color: rgba(255, 133, 11, .24);
}

.episode,
.jump-box,
.review-panel,
.auth-card {
    background: linear-gradient(150deg, #17120d, #0e0b09);
    border-color: rgba(255, 133, 11, .17);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}

.episode-row {
    background: linear-gradient(115deg, #17120d, #100d0a);
    border-color: rgba(255, 133, 11, .15);
}

.episode-row:hover {
    background: linear-gradient(115deg, #21170d, #120e0a);
    border-color: rgba(255, 133, 11, .42);
}

.audiosfm-custom-player {
    background: linear-gradient(145deg, #1b140d, #100d0a);
    border-color: rgba(255, 133, 11, .2);
}

.audiosfm-play,
.global-play,
.episode-select-play {
    background: linear-gradient(135deg, #ff9b25, #ff7900) !important;
    color: #1a1007 !important;
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 4px 16px rgba(255, 133, 11, .18);
}

.episode-select-play.is-active {
    background: linear-gradient(135deg, #19d49b, #0ca879) !important;
    color: #041c13 !important;
}

.audiosfm-progress,
.global-progress {
    accent-color: var(--accent);
}

.audiosfm-speed,
.global-speed,
.jump-open-btn,
.jump-btn {
    background: #17110b;
    color: var(--text);
    border-color: rgba(255, 133, 11, .19);
}

.jump-btn.active {
    background: linear-gradient(135deg, #ff9b25, #ff7900);
    border-color: var(--accent);
    color: #1a1007;
    font-weight: 850;
}

.jump-modal-content {
    background: #100d0a;
    border-color: rgba(255, 133, 11, .3);
}

.jump-modal-header,
.jump-modal-footer {
    border-color: rgba(255, 133, 11, .17);
}

.episode-search-box button {
    background: linear-gradient(135deg, #ff9b25, #ff7900);
    color: #1a1007;
}

.global-player {
    background: rgba(12, 9, 7, .97);
    border-top: 1px solid rgba(255, 133, 11, .28);
    box-shadow: 0 -12px 35px rgba(0, 0, 0, .45);
}

.global-player[data-state="playing"] .status-dot {
    background: var(--success);
    box-shadow: 0 0 9px rgba(16, 189, 139, .4);
}

.notice {
    background: rgba(8, 76, 52, .24);
    border-color: rgba(16, 189, 139, .25);
    color: #aaf3d8;
}

.notice.error {
    background: rgba(76, 20, 27, .3);
    border-color: rgba(255, 114, 114, .28);
    color: #ffc1c1;
}

.empty,
.coming {
    background: rgba(18, 15, 12, .75);
    border-color: rgba(255, 133, 11, .22);
}

footer {
    background: #090706;
    border-top-color: rgba(255, 133, 11, .16);
}

@media (max-width: 560px) {
    main {
        padding: 16px 12px 42px;
    }

    .site-header .nav {
        min-height: 60px;
        padding: 10px 11px;
    }

    .site-header .brand {
        font-size: 17px;
        letter-spacing: 1.2px;
    }

    .hero {
        padding: 25px 18px;
        border-radius: 21px;
    }

    .cards {
        gap: 10px;
    }

    .card {
        padding: 8px;
        border-radius: 15px;
    }

    .episode,
    .jump-box,
    .review-panel {
        border-radius: 14px;
    }

    .global-player {
        background: rgba(10, 8, 6, .985);
    }
}

/* Keep accessibility motion settings intact */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
/* AUDIOS FM — Soft Premium Red Override */
:root {
    --bg: #080607;
    --panel: #120d0f;
    --panel2: #191114;
    --text: #f6f0f1;
    --muted: #aa9ba0;

    --accent: #b83246;
    --accent-hover: #d16a78;
    --accent-soft: rgba(184, 50, 70, .12);

    --line: rgba(184, 50, 70, .16);
    --line-strong: rgba(184, 50, 70, .30);

    --shadow: 0 12px 32px rgba(0, 0, 0, .30);
    --shadow-gold: 0 8px 24px rgba(120, 20, 40, .14);
}

body {
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(120, 24, 42, .07),
            transparent 48%
        ),
        var(--bg);
}

header {
    background: rgba(8, 6, 7, .96);
    border-bottom-color: rgba(184, 50, 70, .14);
}

.hero,
.story-hero {
    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(184, 50, 70, .09),
            transparent 45%
        ),
        linear-gradient(135deg, #170b0e, #0b0708);
    border-color: rgba(184, 50, 70, .20);
}

.hero::before {
    background: rgba(184, 50, 70, .045);
}

.brand span {
    text-shadow: 0 0 14px rgba(184, 50, 70, .16);
}

.btn,
button.btn,
.episode-select-play,
.audiosfm-play,
.global-play,
.jump-btn.active,
.episode-search-box button {
    background: linear-gradient(135deg, #c43b50, #792033) !important;
    color: #fff !important;
    border-color: rgba(255, 220, 225, .10);
    box-shadow: 0 4px 13px rgba(120, 20, 40, .16);
}

.btn:hover,
.audiosfm-play:hover,
.global-play:hover,
.episode-select-play:hover {
    filter: brightness(1.08);
    box-shadow: 0 5px 16px rgba(120, 20, 40, .20);
}

.card,
.episode,
.audiosfm-custom-player,
.jump-modal-content {
    border-color: rgba(184, 50, 70, .15);
}

.card:hover,
.episode:hover {
    border-color: rgba(184, 50, 70, .34);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.cover {
    background: linear-gradient(
        140deg,
        #682331,
        #35141d,
        #17090d
    );
}

.audiosfm-custom-player,
.episode {
    background: linear-gradient(145deg, #170d10, #0d0809);
}

.audiosfm-progress,
.global-progress {
    accent-color: #b83246;
}

.audiosfm-speed,
.global-speed,
.jump-open-btn,
.jump-btn {
    background: #130c0e;
    color: var(--text);
    border-color: rgba(184, 50, 70, .20);
}

.jump-modal-content {
    background: #10090b;
}

.jump-modal-header,
.jump-modal-footer {
    border-color: rgba(184, 50, 70, .16);
}

.global-player {
    background: rgba(10, 7, 8, .97);
    border-top-color: rgba(184, 50, 70, .24);
}

.story-poster {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .30);
}

.back:hover {
    color: #d16a78;
}

::selection {
    background: rgba(184, 50, 70, .24);
    color: #fff;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline-color: #c45a6b;
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.brand-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-compact {
    padding: 16px 20px !important;
    margin-bottom: 16px !important;
    min-height: 0 !important;
}

.hero-compact .eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
}

.hero-compact h1 {
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
    margin: 4px 0 6px;
}

.hero-compact p {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.hero-compact .search {
    margin-top: 8px;
    gap: 8px;
}

.hero-compact .search input,
.hero-compact .search .btn {
    min-height: 36px;
    padding-top: 7px;
    padding-bottom: 7px;
}
.free-story-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 15px;
    border: 1px solid #35c98a;
    border-radius: 20px;
    background: rgba(53, 201, 138, 0.12);
    color: #55e6a5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}