/*
 * CHANGSHA RUINS — MAIN SITE
 * HOME / PLACE / ARCHIVE / RECORDS
 * Pure HTML + CSS. Edit the five book entries in index.html.
 * Font files are not included: copy your own licensed fonts into /fonts.
 */

@font-face {
    font-family: "Marfa";
    src: local("ABC Marfa Thin Trial"),
         url("fonts/ABCMarfa-Thin-Trial.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "RotisSans";
    src: local("Agfa Rotis Sans Serif"),
         url("fonts/AgfaRotisSansSerif.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "RotisLight";
    src: local("Agfa Rotis Semisans Light"),
         url("fonts/AgfaRotisSemisansLight.otf") format("opentype");
    font-display: swap;
}

:root {
    --black: #090909;
    --white: #ebebeb;
    --font-body: "RotisLight", Arial, sans-serif;
    --font-label: "RotisSans", Arial, sans-serif;
    --font-display: "Marfa", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--black);
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

a {
    color: inherit;
}

/* -------------- PERSISTENT HEADER AND NAV -------------- */

.site-title-area {
    position: fixed;
    top: 25px;
    left: clamp(20px, 3.5vw, 65px);
    z-index: 100;
    max-width: min(55vw, 620px);
    pointer-events: none;
}

.header-title {
    display: block;
    width: fit-content;
    pointer-events: auto;
    color: #f2f2f2;
    font-family: var(--font-label);
    font-size: clamp(1.85rem, 3.1vw, 3.3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.header-subtitle {
    margin: 31px 0 14px;
    font-size: clamp(0.77rem, 1.16vw, 1rem);
}

.header-credit {
    margin: 0;
    font-size: 0.84rem;
}

.side-header {
    position: fixed;
    top: 16%;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    z-index: 200;
}

.nav-tag {
    display: block;
    width: clamp(138px, 13vw, 208px);
    padding: 15px 18px 15px 26px;
    border: 1px solid #d6d6d6;
    border-right: 0;
    background: rgba(8, 8, 8, 0.9);
    font-family: var(--font-label);
    font-size: clamp(1.02rem, 1.6vw, 1.55rem);
    letter-spacing: 0.055em;
    text-decoration: none;
    transition: background 220ms ease, color 220ms ease, width 220ms ease;
}

.nav-tag:hover,
.nav-tag:focus-visible {
    width: clamp(154px, 14vw, 220px);
    color: #080808;
    background: #eaeaea;
    outline: none;
}

/*
 * -------------- CSS-ONLY VIEW ROUTER --------------
 * :target changes the active section while the sidebar stays persistent.
 * #home also works after returning from PLACE / ARCHIVE / RECORDS.
 */

.page-view {
    display: none;
    min-height: 100vh;
}

#home,
#home:target,
#place:target,
#archive:target,
#records:target {
    display: block;
}

.view-container:has(#place:target) #home,
.view-container:has(#archive:target) #home,
.view-container:has(#records:target) #home {
    display: none;
}

/* -------------- FIVE-BOOK HOME SHELF -------------- */

.home-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 175px 210px 26px 35px;
}

.bookshelf-section {
    width: 100%;
    max-width: 1040px;
    margin-top: auto;
}

.book-list {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: min(65vh, 670px);
    margin: 0;
    padding: 0 8px;
    list-style: none;
    border-bottom: 1px solid #3d3d3d;
}

.book-item {
    flex: 0 0 auto;
    transition: transform 280ms ease, filter 280ms ease;
}

.book-item:hover,
.book-item:focus-within {
    transform: translateY(-14px);
    filter: brightness(1.1);
}

.book-item > a {
    display: block;
    text-decoration: none;
}

.book-item > a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.book-spine {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 22px 10px;
    font-family: var(--font-label);
    box-shadow: inset -5px 0 12px rgba(0, 0, 0, 0.22);
}

.spine-title {
    font-size: clamp(1rem, 1.32vw, 1.48rem);
    font-weight: 400;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -0.025em;
}

/* Scale heights together so the silhouette stays like the reference. */
.book-heishipu .book-spine {
    width: clamp(58px, 5.1vw, 88px);
    height: min(58vh, 525px);
    background: #8d2829;
    color: #141010;
}

.book-zichang .book-spine {
    width: clamp(61px, 5.2vw, 89px);
    height: min(68vh, 613px);
    background: #607f9b;
    color: #f5f5f5;
}

.book-martyrs .book-spine {
    width: clamp(73px, 6.35vw, 110px);
    height: min(46vh, 410px);
    background: #cbbc8b;
    color: #191919;
}

.book-redbuilding .book-spine {
    width: clamp(58px, 4.75vw, 82px);
    height: min(75vh, 670px);
    background: #e7e7e7;
    color: #111;
}

.book-arts .book-spine {
    width: clamp(59px, 5.15vw, 89px);
    height: min(63vh, 568px);
    background: #242424;
    color: #aeaeae;
}

.shelf-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
    color: #696969;
    font-family: var(--font-label);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}

.home-thanks {
    width: 100%;
    max-width: 1040px;
    margin-top: 25px;
    text-align: center;
    color: #b1b1b1;
}

.home-thanks > span {
    display: block;
    font-family: var(--font-label);
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: #636363;
}

.home-thanks p {
    margin: 7px 0 0;
    font-size: 0.71rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* -------------- PLACE MAP -------------- */

.place-main,
.archive-main,
.records-main {
    width: min(1100px, calc(100% - 265px));
    min-height: 100vh;
    margin: 0 auto 0 clamp(25px, 5.5vw, 100px);
    padding: 230px 0 80px;
}

.section-heading {
    max-width: 760px;
    margin: 0 0 28px;
}

.section-heading > span,
.records-heading > span {
    font-family: var(--font-label);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: #999;
}

.section-heading h2,
.records-heading h2 {
    margin: 14px 0 10px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.3vw, 4.8rem);
    line-height: 0.96;
}

.section-heading p,
.records-heading p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #aaa;
}

.map-container {
    position: relative;
    width: min(690px, 100%);
    margin: 5px auto 0;
}

.hunan-map {
    display: block;
    width: 100%;
    height: auto;
    min-height: 350px;
    object-fit: contain;
}

.map-point {
    position: absolute;
    z-index: 10;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    text-decoration: none;
}

.map-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #0b0b0b;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.map-point:hover .map-dot,
.map-point:focus-visible .map-dot {
    transform: translate(-50%, -50%) scale(1.65);
    box-shadow: 0 0 0 2px #080808, 0 0 14px #fff;
}

.map-tooltip {
    position: absolute;
    top: -15px;
    left: 27px;
    display: grid;
    gap: 8px;
    width: min(250px, 45vw);
    padding: 13px;
    background: #101010;
    border: 1px solid #555;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.map-tooltip small,
.map-tooltip span {
    font-family: var(--font-label);
    font-size: 0.59rem;
    letter-spacing: 0.1em;
    color: #a4a4a4;
}

.map-tooltip strong {
    font-family: var(--font-label);
    font-size: 0.9rem;
    font-weight: 400;
}

.map-point:hover .map-tooltip,
.map-point:focus-visible .map-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Illustrative composition only — not physical geographic coordinates. */
.point-heishipu {
    top: 44%;
    left: 48%;
}

.point-zichang {
    top: 60%;
    left: 47%;
}

.point-martyrs {
    top: 35%;
    left: 58%;
}

.point-redbuilding {
    top: 51%;
    left: 62%;
}

.point-arts {
    top: 66%;
    left: 60%;
}

.map-disclaimer {
    max-width: 700px;
    margin: 0 auto 38px;
    font-family: var(--font-label);
    font-size: 0.58rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
    color: #888;
}

.place-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin-bottom: 30px;
}

.place-index a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #454545;
    font-size: 0.8rem;
    text-decoration: none;
}

.place-index a:hover {
    color: #a8bad0;
}

.place-index a span {
    color: #999;
    font-family: var(--font-label);
    font-size: 0.7rem;
}

.place-index a span:last-child {
    margin-left: auto;
}

/* -------------- ARCHIVE / DOSSIERS -------------- */

.archive-main {
    padding-top: 240px;
}

.archive-heading {
    margin-bottom: 45px;
}

.archive-grid {
    display: grid;
    gap: 22px;
    padding-bottom: 60px;
}

.dossier-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr);
    gap: 25px;
    min-height: 264px;
    padding: 24px 25px 24px 54px;
    border: 1px solid #666;
    background: #101010;
}

.binder-line {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 24px;
    width: 8px;
    border-left: 1px solid #777;
    border-right: 1px solid #777;
    background: radial-gradient(circle, #e0e0e0 0 2px, #111 2.2px 100%) center 12px / 8px 80px repeat-y;
}

.dossier-content {
    display: flex;
    flex-direction: column;
}

.dossier-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #555;
    color: #999;
    font-family: var(--font-label);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.dossier-content h3 {
    margin: 17px 0 6px;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.7vw, 2.65rem);
    font-weight: 400;
    line-height: 1.05;
}

.dossier-kind {
    margin: 0 0 12px;
    color: #979797;
    font-family: var(--font-label);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dossier-summary {
    max-width: 58ch;
    margin: 0 0 20px;
    color: #d4d4d4;
    font-size: 0.82rem;
    line-height: 1.55;
}

.dossier-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 15px;
    margin-top: auto;
    font-family: var(--font-label);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.archive-open,
.archive-source {
    text-underline-offset: 4px;
}

.archive-open {
    font-weight: bold;
}

.archive-source,
.archive-pending {
    color: #949494;
}

.dossier-photo {
    display: block;
    min-height: 210px;
    overflow: hidden;
}

.dossier-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
    filter: grayscale(0.12);
    transition: transform 300ms ease;
}

.dossier-photo:hover img {
    transform: scale(1.04);
}

/* -------------- RECORDS -------------- */

.records-main {
    padding-top: 240px;
}

.records-heading h2 {
    margin: 15px 0 10px;
}

.record-layout {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 450px;
    margin-top: 45px;
}

.turntable-container {
    width: min(54vw, 560px);
    min-width: 290px;
    position: relative;
    z-index: 4;
}

.turntable-image {
    display: block;
    width: 100%;
    height: auto;
}

.vinyl-stack {
    position: absolute;
    top: 50%;
    display: flex;
    flex-direction: column;
    transform: translateY(-50%);
    z-index: 5;
}

.stack-left {
    left: -90px;
}

.stack-right {
    right: -20px;
}

.vinyl-disc {
    position: relative;
    width: clamp(155px, 20vw, 250px);
    aspect-ratio: 1;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 14px 14px 30px #000a;
    transition: transform 250ms ease;
}

.vinyl-disc + .vinyl-disc {
    margin-top: -52%;
}

.vinyl-disc:hover {
    transform: translateX(30px);
    z-index: 10;
}

.vinyl-one {
    background-image: url("https://res.cloudinary.com/rgn6gf2e/image/upload/v1791540714/2.webp");
}

.vinyl-two {
    background-image: url("https://res.cloudinary.com/rgn6gf2e/image/upload/v1791540714/3.webp");
}

.vinyl-three {
    background-image: url("https://res.cloudinary.com/rgn6gf2e/image/upload/v1791540714/2.webp");
}

/* -------------- SMALL SCREEN ADAPTATION -------------- */

@media (max-width: 1100px) {
    .home-main {
        padding-right: 160px;
    }

    .side-header {
        gap: 14px;
    }

    .nav-tag {
        width: 140px;
        padding: 12px 15px;
    }

    .place-main,
    .archive-main,
    .records-main {
        width: calc(100% - 220px);
    }
}

@media (max-width: 720px) {
    .site-title-area {
        position: absolute;
        top: 20px;
        left: 18px;
        max-width: calc(100% - 25px);
    }

    .header-title {
        font-size: 2rem;
    }

    .header-subtitle {
        margin: 14px 0 9px;
        font-size: 0.75rem;
    }

    .header-credit {
        font-size: 0.72rem;
    }

    .side-header {
        position: absolute;
        top: 138px;
        left: 18px;
        right: 18px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 7px;
    }

    .nav-tag {
        width: auto;
        flex: 1 1 auto;
        min-width: 70px;
        padding: 10px 9px;
        border-right: 1px solid #d6d6d6;
        font-size: 0.72rem;
        text-align: center;
    }

    .nav-tag:hover,
    .nav-tag:focus-visible {
        width: auto;
    }

    .home-main {
        padding: 245px 18px 25px;
    }

    .book-list {
        min-height: 330px;
        gap: 3px;
        justify-content: center;
        padding: 0;
    }

    .book-heishipu .book-spine {
        width: clamp(38px, 10vw, 60px);
        height: min(42vh, 335px);
    }

    .book-zichang .book-spine {
        width: clamp(42px, 10vw, 60px);
        height: min(49vh, 385px);
    }

    .book-martyrs .book-spine {
        width: clamp(43px, 12vw, 68px);
        height: min(33vh, 265px);
    }

    .book-redbuilding .book-spine {
        width: clamp(40px, 9vw, 55px);
        height: min(53vh, 415px);
    }

    .book-arts .book-spine {
        width: clamp(39px, 10vw, 60px);
        height: min(46vh, 360px);
    }

    .spine-title {
        font-size: clamp(0.65rem, 2.45vw, 0.88rem);
    }

    .book-spine {
        padding: 14px 8px;
    }

    .shelf-meta {
        font-size: 0.52rem;
    }

    .home-thanks {
        margin-top: 30px;
    }

    .home-thanks p {
        font-size: 0.64rem;
    }

    .place-main,
    .archive-main,
    .records-main {
        width: auto;
        margin: 0;
        padding: 245px 20px 45px;
    }

    .section-heading h2,
    .records-heading h2 {
        font-size: 2.7rem;
    }

    .dossier-card {
        grid-template-columns: 1fr;
        padding: 22px 20px 22px 46px;
    }

    .dossier-photo {
        min-height: 200px;
    }

    .place-index {
        grid-template-columns: 1fr;
    }

    .map-tooltip {
        left: -20px;
        top: 22px;
        width: 190px;
        z-index: 50;
    }

    .record-layout {
        min-height: 420px;
    }

    .stack-left {
        left: -28px;
    }

    .stack-right {
        right: -35px;
    }

    .vinyl-disc {
        width: 140px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}


/* ------------ EIGHT-BOOK ADDITIONS ------------ */
.home-main {
    padding-right: clamp(180px, 18vw, 260px);
}

.bookshelf-section {
    max-width: 1150px;
}

.book-list {
    gap: 4px;
}

.book-palace .book-spine {
    width: clamp(56px, 5vw, 84px);
    height: min(52vh, 474px);
    background: #b77d5b;
    color: #231612;
}

.book-wild .book-spine {
    width: clamp(57px, 5vw, 86px);
    height: min(64vh, 566px);
    background: #798972;
    color: #161e14;
}

.book-ring .book-spine {
    width: clamp(52px, 4.5vw, 80px);
    height: min(48vh, 425px);
    background: #51565a;
    color: #f4f3ec;
}

.dossier-location {
    margin: -7px 0 18px;
    font-family: var(--font-label);
    font-size: 0.64rem;
    letter-spacing: 0.07em;
    color: #909090;
}

/* Fixed geographic extents: longitude 112.875–113.035 E, latitude 28.085–28.305 N. */
.geographic-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 28px;
}

.geo-board {
    padding: 18px;
    border: 1px solid #626262;
    background: #121212;
}

.geo-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-label);
    font-size: 0.61rem;
    letter-spacing: 0.1em;
    color: #aaa;
}

.geo-plot {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.04;
    min-height: 360px;
    margin: 18px 0 0;
    border: 1px solid #3e4745;
    background-color: #0b1212;
    background-image: linear-gradient(#60726f38 1px, transparent 1px),
                      linear-gradient(90deg, #60726f38 1px, transparent 1px);
    background-size: 25% 25%;
}

.geo-plot::after {
    content: 'CHANGSHA  /  COORDINATE GRID';
    position: absolute;
    bottom: 12px;
    right: 13px;
    font-size: 0.57rem;
    letter-spacing: 0.17em;
    color: #586965;
    pointer-events: none;
}

.geo-north, .geo-axis-label {
    position: absolute;
    z-index: 1;
    font-family: var(--font-label);
    font-size: 0.55rem;
    color: #7c9790;
    pointer-events: none;
}

.geo-north {
    top: 15px;
    left: 12px;
}
.geo-west {
    bottom: 10px;
    left: 10px;
}
.geo-east {
    bottom: 10px;
    right: 10px;
}
.geo-top {
    top: 12px;
    right: 10px;
}
.geo-bottom {
    bottom: 29px;
    left: 10px;
}

.geo-pin {
    position: absolute;
    z-index: 5;
    width: 23px;
    height: 23px;
    transform: translate(-50%, -50%);
}

.geo-pin-core {
    display: block;
    width: 14px;
    height: 14px;
    margin: 4px;
    border: 2px solid #f4f4f4;
    background: #f4f4f4;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #111;
    transition: transform 180ms ease;
}

.geo-proxy .geo-pin-core {
    background: #0b1212;
    border-color: #fff;
    box-shadow: 0 0 0 2px #0b1212;
}

.geo-pin-tooltip {
    position: absolute;
    z-index: 20;
    left: 24px;
    top: -5px;
    display: none;
    min-width: 180px;
    max-width: 260px;
    padding: 11px;
    border: 1px solid #888;
    background: #070707;
    color: #eee;
}

.geo-pin:hover,
.geo-pin:focus-visible {
    z-index: 30;
}

.geo-pin:hover .geo-pin-tooltip,
.geo-pin:focus-visible .geo-pin-tooltip {
    display: grid;
    gap: 7px;
}

.geo-pin:hover .geo-pin-core {
    transform: scale(1.4);
}

.geo-pin-tooltip strong {
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 400;
}
.geo-pin-tooltip small, .geo-pin-tooltip em {
    font-size: 0.62rem;
    color: #aaa;
    font-style: normal;
}
.geo-method {
    margin: 15px 0 0;
    color: #b1b1b1;
    font-size: 0.7rem;
    line-height: 1.5;
}

.map-outline-box {
    position: relative;
    padding: 28px 11px;
    border: 1px solid #414141;
}

.map-outline-box img {
    min-height: 0;
    max-height: 400px;
}
.map-outline-box span {
    display: block;
    font-size: 0.55rem;
    color: #888;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.place-index a {
    flex-wrap: wrap;
}
.place-index a strong {
    flex: 1 1 54%;
    font-weight: 400;
}
.place-index a small {
    flex: 0 0 100%;
    margin-left: 28px;
    font-size: 0.65rem;
    color: #888;
}

/* Four distinct records: CSS-only radio selection and native audio interface. */
.record-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.record-layout {
    min-height: 410px;
}
.vinyl-stack.stack-left {
    position: absolute;
    left: -30px;
    right: -30px;
    top: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: auto;
    transform: translateY(-50%);
    pointer-events: none;
}

.vinyl-stack .vinyl-disc {
    flex: 0 0 auto;
    width: clamp(110px, 16vw, 190px);
    margin-top: 0;
    cursor: pointer;
    pointer-events: auto;
}

.vinyl-stack .vinyl-disc:nth-child(2),
.vinyl-stack .vinyl-disc:nth-child(4) {
    transform: translateY(100px);
}

.vinyl-stack .vinyl-disc:hover {
    transform: translateY(-14px);
}
.vinyl-stack .vinyl-disc:nth-child(2):hover,
.vinyl-stack .vinyl-disc:nth-child(4):hover {
    transform: translateY(84px);
}

.vinyl-text {
    display: none;
    position: absolute;
    top: 100%;
    width: 100%;
    margin-top: 8px;
    color: #f0f0f0;
    font-size: 0.63rem;
    text-align: center;
}

.vinyl-disc:hover .vinyl-text {
    display: block;
}
.record-player {
    max-width: 670px;
    margin: 40px auto 0;
}
.record-player-panel {
    display: none;
    padding: 20px;
    border: 1px solid #666;
    background: #131313;
}
.record-player-panel audio {
    width: 100%;
    margin: 20px 0 12px;
}
.player-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 9px;
}
.player-row > span {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: #aaa;
}
.player-row strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.7rem;
}
.audio-pending {
    margin: 0;
    color: #b9b9b9;
    font-size: 0.7rem;
    line-height: 1.5;
}

.record-selector:has(#record-1:checked) .panel-1,
.record-selector:has(#record-2:checked) .panel-2,
.record-selector:has(#record-3:checked) .panel-3,
.record-selector:has(#record-4:checked) .panel-4 {
    display: block;
}

.record-selector:has(#record-1:checked) .disc-1,
.record-selector:has(#record-2:checked) .disc-2,
.record-selector:has(#record-3:checked) .disc-3,
.record-selector:has(#record-4:checked) .disc-4 {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .home-main {
        padding-right: 150px;
    }
    .geographic-layout {
        grid-template-columns: 1fr;
    }
    .map-outline-box {
        display: none;
    }
}

@media (max-width: 720px) {
    .home-main {
        padding-right: 18px;
    }
    .book-list {
        min-height: 340px;
        justify-content: flex-start;
        gap: 3px;
        max-width: 100%;
        overflow-x: auto;
        padding: 0 8px;
    }
    .book-palace .book-spine {
        width: 40px;
        height: 315px;
    }
    .book-wild .book-spine {
        width: 40px;
        height: 350px;
    }
    .book-ring .book-spine {
        width: 40px;
        height: 290px;
    }
    .geo-plot {
        min-height: 320px;
    }
    .vinyl-stack.stack-left {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        transform: none;
        flex-wrap: wrap;
        justify-content: center;
    }
    .vinyl-stack .vinyl-disc {
        width: 35%;
    }
    .vinyl-stack .vinyl-disc:nth-child(2), .vinyl-stack .vinyl-disc:nth-child(4) {
        transform: none;
    }
    .record-layout {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }
    .turntable-container {
        width: 100%;
        min-width: 0;
    }
    .record-player {
        margin-top: 20px;
    }
    .geo-pin-tooltip {
        left: -70px;
        top: 22px;
    }
}
