:root {
    --bg: #f6f2e9;
    --card: #fffdf8;
    --ink: #1f2a26;
    --muted: #6e756f;
    --green: #426657;
    --green-soft: #dce8df;
    --orange: #d58a57;
    --line: rgba(31,42,38,.11);
    --shadow: 0 18px 50px rgba(39,47,42,.08);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(
            circle at 100% 0,
            #e4eee7 0,
            transparent 28%
        ),
        var(--bg);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
audio {
    font: inherit;
}

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

.app {
    width: min(100% - 28px, 900px);
    margin: auto;
    padding:
        max(24px, env(safe-area-inset-top))
        0
        max(40px, env(safe-area-inset-bottom));
}

.hero {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 8px 0 28px;
}

.brand {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    color: white;
    background: var(--green);
    font-size: 29px;
    box-shadow: var(--shadow);
}

.eyebrow {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.hero h1 {
    margin: 3px 0;
    font-size: clamp(28px, 6vw, 39px);
    letter-spacing: -.045em;
}

.hero p {
    margin: 0;
    color: var(--muted);
}

.player-card {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 23px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 27px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.player-image {
    width: 125px;
    height: 125px;
    object-fit: cover;
    border-radius: 21px;
}

.player-main {
    min-width: 0;
}

.player-main h2 {
    margin: 6px 0 16px;
    font-size: clamp(21px, 4vw, 30px);
    letter-spacing: -.035em;
}

.player-main audio {
    width: 100%;
}

.resume-label {
    margin: -7px 0 12px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
}

.section {
    margin-top: 43px;
}

.section-title {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.section-title > span {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 800;
}

.section-title h2 {
    margin: 3px 0 0;
    font-size: 23px;
    letter-spacing: -.035em;
}

.live-card {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.live-symbol {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: var(--green);
    color: white;
    font-size: 24px;
}

.live-card strong,
.show-card strong {
    display: block;
    font-size: 16px;
}

.live-card span,
.show-card span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.live-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: #e3efe5;
    color: #346146;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}

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

.shows-grid.one {
    grid-template-columns: minmax(0, 1fr);
}

.show-card {
    overflow: hidden;
    padding: 0 0 17px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.show-cover {
    aspect-ratio: 16 / 9;
    margin-bottom: 15px;
    background:
        linear-gradient(135deg, #dbe7df, #f0dfca);
    background-position: center;
    background-size: cover;
}

.show-card strong,
.show-card > span {
    margin-left: 17px;
    margin-right: 17px;
}

.episodes-panel {
    margin-top: 45px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 27px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.episodes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.episodes-header h2 {
    margin: 3px 0 0;
}

.close-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 25px;
}

.episode {
    width: 100%;
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 13px;
    align-items: center;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.episode:last-child {
    border-bottom: 0;
}

.episode img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 13px;
    background: var(--green-soft);
}

.episode-title {
    font-weight: 700;
    line-height: 1.25;
}

.episode-meta {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.episode-play {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 11px;
}

.continue-card {
    display: grid;
    grid-template-columns: 66px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: var(--card);
    cursor: pointer;
}

.continue-card img {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: 14px;
}

.continue-card strong {
    display: block;
}

.continue-card span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

footer {
    padding-top: 42px;
    color: #969b96;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 620px) {
    .player-card {
        grid-template-columns: 82px 1fr;
        gap: 16px;
        padding: 16px;
    }

    .player-image {
        width: 82px;
        height: 82px;
        border-radius: 17px;
    }

    .player-main h2 {
        margin-bottom: 11px;
    }
}

@media (max-width: 460px) {
    .app {
        width: min(100% - 22px, 900px);
    }

    .shows-grid {
        gap: 10px;
    }

    .show-card {
        border-radius: 18px;
    }

    .show-cover {
        aspect-ratio: 1 / 1;
    }

    .episode {
        grid-template-columns: 52px 1fr auto;
    }

    .episode img {
        width: 52px;
        height: 52px;
    }
}
