.listen-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f0d48a, #c9a227);
    color: #1a1208;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.listen-launch:hover {
    filter: brightness(1.06);
}

.listen-launch-card {
    margin: 12px 0 0;
}

body.listen-modal-open {
    overflow: hidden;
}

.listen-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.listen-modal[hidden] {
    display: none;
}

.listen-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 4, 8, 0.72);
}

.listen-modal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(560px, 100%);
    max-height: min(92vh, 820px);
    overflow: hidden;
    padding: 22px 22px 18px;
    border-radius: 22px;
    background: #141018;
    color: #fff;
    border: 1px solid rgba(232, 200, 114, 0.35);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.listen-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.listen-cover {
    width: 88px;
    height: 120px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 8px auto 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.listen-title {
    margin: 0 36px 4px;
    text-align: center;
    font-family: var(--font-playfair, Georgia, serif);
    font-size: 1.45rem;
}

.listen-author {
    margin: 0 0 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.68);
}

.listen-cc {
    min-height: min-content;
    flex: 1 1 auto;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 14px 16px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(232, 200, 114, 0.28);
}

.listen-cc[data-cc-off="1"] .listen-cc-current,
.listen-cc[data-cc-off="1"] .listen-cc-next {
    visibility: hidden;
}

.listen-cc-label {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.listen-cc-toggle {
    border: 1px solid rgba(232, 200, 114, 0.5);
    background: transparent;
    color: #f0d48a;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.listen-cc-toggle[aria-pressed="false"] {
    color: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
}

.listen-cc-current {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    text-align: center;
    font-size: 1.12rem;
    line-height: 1.4;
    color: #fff;
}

.listen-cc-next {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 8px 0 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.92rem;
}

.listen-times {
    display: flex;
    justify-content: space-between;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.listen-seek {
    width: 100%;
    accent-color: #e8c872;
    margin-bottom: 16px;
    cursor: pointer;
}

.listen-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}

.listen-skip,
.listen-play {
    border: 0;
    color: #1a1208;
    background: #f0d48a;
    cursor: pointer;
}

.listen-skip {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(240, 212, 138, 0.16);
    color: #f0d48a;
    font-weight: 700;
}

.listen-play {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    font-size: 1.8rem;
}

.listen-speeds {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.listen-speed {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
}

.listen-speed[aria-pressed="true"] {
    background: #f0d48a;
    color: #1a1208;
    border-color: #f0d48a;
}

@media (max-height: 760px) {
    .listen-cover {
        display: none;
    }

    .listen-title {
        font-size: 1.25rem;
    }

    .listen-author {
        margin-bottom: 8px;
    }

    .listen-controls {
        margin-bottom: 8px;
    }

    .listen-modal-card {
        padding-top: 14px;
        padding-bottom: 12px;
    }
}

@media (max-width: 640px) {
    .listen-modal {
        padding: 10px;
        align-items: end;
    }

    .listen-modal-card {
        border-radius: 18px 18px 12px 12px;
    }
}
