:root {
    --tone-background: #f8f4ef;
    --tone-surface: #f2ece3;
    --tone-surface-strong: #e9dfd3;
    --tone-text: #6b3f21;
    --tone-muted: rgba(107, 63, 33, 0.7);
    --tone-border: rgba(107, 63, 33, 0.2);
    --tone-accent: #b87441;
}

body {
    --primary: var(--tone-text);
    --primary-hover: color-mix(in srgb, var(--tone-text) 90%, white);
    --primary-focus: color-mix(in srgb, var(--tone-text) 75%, black);
    --primary-inverse: #ffffff;
    
    background-color: var(--tone-background);
    color: var(--tone-text);
    min-height: 100vh;
    font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
}

.page-home .cycle-link {
    display: none;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 236, 228, 0.95));
    border: 1px solid var(--tone-border);
    box-shadow: 0 40px 65px rgba(100, 84, 70, 0.15);
}

.player-glow,
.orb,
.orb-primary,
.orb-secondary {
    display: none;
}

.player-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
}

.chip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.chip-left {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.home-link,
.cycle-link {
    font-size: 0.95rem;
    color: var(--tone-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.home-link {
    text-decoration: none;
}

.home-link::after {
    content: "\2197";
    font-size: 0.85rem;
}

a.home-link:focus {
    background: none !important;
}

.home-link:hover,
.home-link:focus-visible {
    color: var(--tone-text);
}

.track-number {
    font-size: 0.85rem;
    color: var(--tone-muted);
    letter-spacing: 0.08em;
}

.group-links {
    margin-top: 1.5rem;
    display: none;
    gap: 0.6rem;
    flex-direction: column;
}

.group-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--tone-border);
    color: var(--tone-text);
    background: rgba(255, 255, 255, 0.85);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.group-links a:hover,
.group-links a:focus-visible {
    border-color: rgba(78, 52, 34, 0.45);
    background: rgba(255, 255, 255, 0.95);
}

.home-navigation {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.enter-exhibition-btn {
    padding: 1rem 2rem;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 500;
}

#track-title {
    margin: 1.2rem 0 0.6rem;
    color: var(--tone-text);
    text-align: center;
}

#player-ui {
    margin-top: 1.25rem;
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--tone-muted);
}

#progress {
    width: 100%;
    margin: 1rem 0 1.5rem;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: rgba(78, 52, 34, 0.2);
    cursor: pointer;
}

#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tone-accent);
    border: none;
    box-shadow: 0 0 15px rgba(194, 137, 88, 0.4);
}

#progress::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tone-accent);
    border: none;
    box-shadow: 0 0 15px rgba(194, 137, 88, 0.4);
}

.primary-control {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.transport {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.circle-button {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 30% 30%, #d8b48b, #b07745);
    box-shadow: 0 25px 45px rgba(103, 78, 54, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.circle-button::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.circle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px rgba(103, 78, 54, 0.35);
}

.circle-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.4);
    outline-offset: 4px;
}

.circle-icon {
    width: 56px;
    height: 56px;
    position: relative;
}

.circle-icon::before,
.circle-icon::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    transition: all 0.2s ease;
}

.circle-button:not(.is-playing) .circle-icon::before {
    left: 10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 28px 0 28px 38px;
    border-color: transparent transparent transparent #fff;
}

.circle-button:not(.is-playing) .circle-icon::after {
    display: none;
}

.circle-button.is-playing .circle-icon::before,
.circle-button.is-playing .circle-icon::after {
    width: 10px;
    height: 52px;
    border-radius: 2px;
    background: #fff;
}

.circle-button.is-playing .circle-icon::before { left: 8px; }
.circle-button.is-playing .circle-icon::after { right: 8px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 640px) {
    .player-inner {
        padding: 1.75rem 1.25rem;
    }
}