:root {
    --bg: #0b0d10;
    --card: #12151a;
    --ink: #e8edf2;
    --muted: #a9b3be;
    --pri: #38bdf8;
    --pri-weak: #0ea5e9;
    --ring: rgba(56, 189, 248, 0.35);
}
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
/* body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
} */

.wrap {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px;
}

.card {
    background: var(--card);
    border: 1px solid #1c2128;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #1c2128;
}
.head h1 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.player-box {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}
.player-box iframe {
    position: absolute;
    inset: 0;
    width: 800px;
    height: 100%;
    border: 0;
}

.chapters {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}
@media (min-width: 720px) {
    .chapters {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 719.98px) {
    .chapters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .foot {
        flex-wrap: wrap;
    }
}

.chapters button {
    appearance: none;
    border: 2px solid #0362c7;
    background: white;
    color: #0362c7;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    line-height: 1.2;
    position: relative;
    transition: transform 0.06s ease, border-color 0.15s ease, background 0.15s ease;
}
.chapters button:hover {
    border-color: #c92857;
    color: #c92857;
    /*transform: translateY(-1px);*/
}
.chapters button:focus-visible {
    outline: 2px solid var(--pri);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--ring);
}
.chapters button[aria-current="true"] {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.1));
    border-color: var(--pri-weak);
}

.t {
    display: block;
    font-weight: 600;
    font-size: 13px;
}
.s {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.bar {
    height: 3px;
    background: #f9e0e6;
    position: relative;
}
.bar .p {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: #c92857;
    transition: width 0.25s linear;
}

.foot {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    color: black;
    font-size: 13px;
    border-top: 0px solid #1c2128;
}
.foot .kbd {
    border: 1px solid #34424f;
    border-bottom-width: 2px;
    padding: 1px 6px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: black;
}
.spacer {
    flex: 1;
}
