:root {
    color-scheme: dark;
    --page-bg: #1b1b1f;
    --surface: #252529;
    --surface-raised: #303035;
    --surface-hover: #393940;
    --text: #d0d0cc;
    --muted: #a1a19d;
    --accent: #a7a7d2;
    --border: #ffffff1c;
    --content-width: 72rem;
    --shadow: 0 0.5rem 1.5rem #0005;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: var(--accent);
    text-underline-offset: 0.2em;
}

a:hover {
    color: #d0d0ff;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
th[onclick]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 4.5rem;
    padding: 0.5rem clamp(0.75rem, 2vw, 1.5rem);
    border-bottom: 1px solid var(--border);
    background: #171719ed;
    box-shadow: 0 0.25rem 1rem #0003;
    backdrop-filter: blur(0.75rem);
}

.site-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.top-img {
    display: block;
    width: clamp(4rem, 8vw, 6.25rem);
    border-radius: 0.25rem;
}

.site-navigation {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.nav-menu,
.language-menu {
    position: relative;
}

.nav-menu > summary,
.language-menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.35rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.nav-menu > summary::-webkit-details-marker,
.language-menu > summary::-webkit-details-marker {
    display: none;
}

.nav-menu > summary::after {
    margin-left: 0.45rem;
    color: var(--muted);
    content: "▾";
    font-size: 0.75em;
}

.nav-menu:hover > summary,
.nav-menu[open] > summary,
.language-menu:hover > summary,
.language-menu[open] > summary {
    background: var(--surface-hover);
}

.nav-menu-items,
.language-menu-items {
    position: absolute;
    z-index: 11;
    top: calc(100% + 0.35rem);
    left: 0;
    display: none;
    min-width: 11rem;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: #202024;
    box-shadow: var(--shadow);
}

.nav-menu[open] > .nav-menu-items,
.language-menu[open] > .language-menu-items {
    display: grid;
}

.nav-menu-items a,
.language-menu-items a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 0.3rem;
    color: var(--text);
    text-decoration: none;
}

.nav-menu-items a:hover,
.language-menu-items a:hover {
    background: var(--surface-hover);
}

.language-menu {
    flex: 0 0 auto;
}

.editor-login {
    position: relative;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.editor-login:disabled::after {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.5rem);
    right: 0;
    width: max-content;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    background: #202024;
    box-shadow: var(--shadow);
    color: var(--text);
    content: attr(data-tooltip);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.2rem);
    transition: opacity 140ms ease, transform 140ms ease;
    visibility: hidden;
}

.editor-login:disabled:hover::after,
.editor-login:disabled:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.editor-login:hover:not(:disabled) {
    background: var(--surface-hover);
    color: #fff;
}

.editor-login:disabled {
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.65;
}

.editor-login-icon {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.language-menu > summary {
    padding: 0.35rem;
}

.settings-img {
    display: block;
    width: 2.5rem;
    max-height: 2.5rem;
    object-fit: contain;
}

.language-menu-items {
    right: 0;
    left: auto;
    min-width: 4rem;
}

.language-menu-items a {
    display: flex;
    justify-content: center;
}

.lang-img {
    display: block;
    width: 2.75rem;
    height: 2.25rem;
    object-fit: contain;
}

.site-main {
    width: min(100% - 2rem, var(--content-width));
    min-height: calc(100vh - 7rem);
    margin-inline: auto;
    padding-block: clamp(1.5rem, 4vw, 3.5rem);
}

.main-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: clamp(0.75rem, 2vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.main-icon {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: clamp(1rem, 3vw, 1.75rem);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    background: var(--surface);
    text-align: center;
    transition: background-color 160ms ease, transform 160ms ease;
}

.main-icon:hover {
    transform: translateY(-2px);
    background: var(--surface-raised);
}

.main-icon a {
    display: grid;
    min-height: 8rem;
    place-items: center;
}

.main-img {
    width: clamp(5rem, 12vw, 8rem);
    height: clamp(5rem, 12vw, 8rem);
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #ffffff0a;
    object-fit: contain;
}

.main-text {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.info-container,
.header-container {
    position: relative;
    margin-block: 1.5rem;
    border-radius: 0.6rem;
    background: var(--surface);
}

.info-container {
    padding: clamp(1rem, 3vw, 2rem);
    text-align: center;
}

.about-page,
.section-page {
    width: min(100%, 54rem);
    margin-inline: auto;
}

.about-page .header-container,
.section-page .header-container {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}

.about-page .header-container h1,
.section-page .header-container h1 {
    margin: 0;
}

.about-page .smallprint {
    max-width: 60ch;
    margin: 0.75rem auto 0;
    color: var(--muted);
}

.about-page .info-container,
.section-page .info-container {
    margin-block: 1rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.about-page .info-container h2,
.section-page .info-container h2 {
    margin: 0 0 0.75rem;
    color: #e4e4df;
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    line-height: 1.3;
}

.about-page .info-container p,
.section-page .info-container p {
    max-width: 60ch;
    margin: 0 auto;
}

.info-text {
    width: min(100%, 68ch);
    margin-inline: auto;
    color: var(--text);
}

.info-text h1,
.header-container h1 {
    color: #e4e4df;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.25;
}

.header-container h1 {
    text-align: center;
}

.info-link {
    display: block;
    width: min(100%, 48rem);
    margin: 0.15rem auto;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0.25rem;
    color: var(--accent);
    text-align: left;
    overflow-wrap: anywhere;
}

.info-link:hover {
    background: var(--surface-raised);
}

.bottom-text {
    margin-top: 2rem;
    color: var(--muted);
    text-align: center;
}

.cookie-popup {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: none;
    place-items: center;
    padding: 1rem;
    background: #000b;
    color: var(--text);
}

.cookie-popup-content {
    width: min(100%, 30rem);
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: var(--surface);
    box-shadow: 0 1rem 3rem #0008;
    text-align: center;
}

.cookie-popup-content > p {
    margin-top: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.cookies {
    display: block;
    margin: 0.4rem;
    color: var(--muted);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cookie-btn0,
.cookie-btn1 {
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    background: #45458a;
    color: white;
    cursor: pointer;
}

.cookie-btn0:hover,
.cookie-btn1:hover {
    background: #5555a8;
}

.return-button {
    width: fit-content;
    max-width: 100%;
    margin: 1.5rem auto;
    padding: 0.7rem 1rem;
    border-radius: 0.35rem;
    background: var(--surface-raised);
    box-shadow: var(--shadow);
    text-align: center;
}

.return-button .info-text {
    width: auto;
    margin: 0;
}

.jana-container {
    margin-block: clamp(4rem, 15vh, 12rem);
    color: var(--text);
    font-size: clamp(2.25rem, 8vw, 5rem);
    text-align: center;
}

.smallprint {
    color: var(--muted);
    font-size: 0.9rem;
}

.qna-container {
    width: min(100% - 2rem, 62rem);
    margin: 2rem auto;
}

.qna-content {
    position: relative;
    width: 100%;
    min-height: 3rem;
    margin-block: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    background: var(--surface);
    color: var(--text);
    text-align: center;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.qna-content:hover,
.qna-content.active {
    background: var(--surface-raised);
}

.qna-content > p:first-child {
    margin: 0;
    cursor: pointer;
}

.qna-expand {
    max-height: 0;
    overflow: hidden;
    color: var(--muted);
    visibility: hidden;
    opacity: 0;
    transition: max-height 220ms ease, opacity 180ms ease;
}

.qna-expand.active {
    max-height: 70vh;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
}

table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: collapse;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.books-page {
    width: min(100%, 60rem);
    margin-inline: auto;
}

.books-page > h1 {
    color: #e4e4df;
    text-align: center;
}

.book-cover-link,
.book-entry-link {
    color: inherit;
    text-decoration: none;
}

.book-entry-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.book-cover-link {
    display: block;
}

.book-detail-page {
    width: min(100%, 58rem);
    margin: 0 auto;
    padding-block: clamp(1rem, 3vw, 2rem);
}

.book-detail-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--muted);
    text-decoration: none;
}

.book-detail-back:hover {
    color: var(--text);
    text-decoration: underline;
}

.book-detail-card {
    display: grid;
    grid-template-columns: minmax(10rem, 0.75fr) minmax(0, 1.5fr);
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.25rem, 4vw, 3rem);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.book-detail-cover-wrap {
    width: min(100%, 18rem);
    margin-inline: auto;
}

.book-gallery {
    position: relative;
}

.book-detail-cover,
.book-detail-cover-placeholder {
    display: grid;
    width: 100%;
    aspect-ratio: 2 / 3;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface-hover);
    object-fit: cover;
}

.book-detail-cover[hidden] {
    display: none;
}

.book-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.book-gallery-controls button {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--text);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.book-gallery-controls button:hover {
    background: var(--surface-hover);
}

.book-gallery-controls button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.book-gallery-count {
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

.book-detail-cover-placeholder {
    padding: 1rem;
    color: var(--muted);
    text-align: center;
}

.book-detail-eyebrow {
    margin: 0 0 0.4rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-detail-content h1 {
    margin: 0;
    color: #e4e4df;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.book-detail-description {
    margin-block: 1rem 1.5rem;
    line-height: 1.75;
    white-space: pre-line;
}

.book-detail-facts {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.book-detail-facts > div {
    display: grid;
    grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1fr);
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.book-detail-facts dt {
    color: var(--muted);
}

.book-detail-facts dd {
    margin: 0;
}

.book-detail-facts .book-status {
    justify-content: flex-start;
}

.book-detail-purchase {
    margin-top: 1.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid currentColor;
    border-radius: 0.4rem;
    text-decoration: none;
}

.book-detail-purchase:hover {
    background: var(--surface-hover);
}

.book-editor-link {
    margin: -0.5rem 0 1rem;
    text-align: center;
}

.shop-page {
    width: min(100%, 68rem);
    margin-inline: auto;
}

.shop-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.shop-header h1 {
    margin-bottom: 0.4rem;
    color: #e4e4df;
}

.shop-header p {
    margin: 0 auto;
    color: var(--muted);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1rem;
}

.shop-item {
    display: grid;
    grid-template-columns: minmax(5.5rem, 0.65fr) minmax(0, 1.35fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
}

.shop-item:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.shop-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.shop-item-cover-link {
    display: block;
    color: inherit;
}

.shop-item-cover,
.shop-item-cover-placeholder {
    display: grid;
    width: 100%;
    aspect-ratio: 2 / 3;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    background: var(--surface-raised);
    object-fit: cover;
}

.shop-item-cover-placeholder {
    padding: 0.5rem;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.shop-item-content {
    min-width: 0;
}

.shop-item-content h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.shop-item-content h2 a {
    color: #e4e4df;
    text-decoration: none;
}

.shop-item-content h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.shop-item-genre,
.shop-item-date,
.shop-item-price-note,
.shop-item-unavailable {
    color: var(--muted);
    font-size: 0.85rem;
}

.shop-item-genre {
    margin: 0.25rem 0 0;
    font-style: italic;
}

.shop-item-description {
    margin: 0.65rem 0;
    font-size: 0.9rem;
}

.shop-item-date {
    margin: 0;
}

.shop-item-date span {
    color: var(--text);
    font-weight: 600;
}

.shop-item-price {
    margin: 0.6rem 0 0;
    color: #e4e4df;
    font-size: 1.1rem;
    font-weight: 700;
}

.shop-item-price-note {
    margin: 0.1rem 0 0;
    font-size: 0.75rem;
}

.shop-item .book-status {
    justify-content: flex-start;
    margin-top: 0.55rem;
}

.shop-item-purchase {
    position: relative;
    z-index: 1;
}

.shop-item-checkout {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.65rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--accent);
    border-radius: 0.4rem;
    background: #54548f;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.shop-item-checkout:hover:not(:disabled) {
    background: #6565a5;
}

.shop-item-checkout:disabled {
    cursor: wait;
    opacity: 0.7;
}

.shop-checkout-message {
    min-height: 1.6em;
    margin: 0 0 0.75rem;
    color: var(--accent);
    text-align: center;
}

.shop-item-unavailable {
    margin: 0.7rem 0 0;
}

.book-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-align: left;
}

.book-sort-button:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.book-sort-indicator {
    display: inline-block;
    min-width: 1ch;
    color: var(--accent);
}

.book-sort-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.books-table {
    border-radius: 0.6rem;
    overflow: hidden;
}

.books-table th:first-child,
.books-table td:first-child {
    width: 12rem;
}

.books-table th:nth-child(3),
.books-table .book-release-date {
    width: 12rem;
}

.books-table th:last-child,
.books-table .book-status {
    width: 8rem;
}

.books-table .book-entry > td {
    vertical-align: middle;
}

.books-table .book-entry[data-detail-href] {
    cursor: pointer;
}

.books-table .book-entry[data-detail-href]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.books-table .book-entry > td:nth-child(2) {
    padding: clamp(1rem, 3vw, 2rem);
}

.books-table .book-release-date {
    color: var(--muted);
    font-size: 0.9rem;
}

.books-table .book-status {
    margin: 0;
}

.books-table .book-entry h2 {
    margin: 0 0 0.5rem;
    color: #e4e4df;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.books-table .book-entry p {
    max-width: 65ch;
    margin: 0;
}

.books-table .book-entry .book-genre {
    margin-top: 0.65rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}

.book-purchase-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    background: var(--surface-raised);
    text-decoration: none;
}

.book-cover,
.book-cover-placeholder {
    width: min(100%, 9rem);
    aspect-ratio: 2 / 3;
    margin-inline: auto;
    border-radius: 0.4rem;
}

.book-cover {
    display: block;
    object-fit: cover;
}

.book-cover-placeholder {
    display: grid;
    padding: 0.75rem;
    place-items: center;
    border: 1px dashed #ffffff40;
    background: var(--surface-raised);
    color: var(--muted);
    text-align: center;
}

.book-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.book-status-dot {
    width: 0.65rem;
    height: 0.65rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
}

.book-status--planned {
    color: #a1a19d;
}

.book-status--begun {
    color: #9be7a8;
}

.book-status--active {
    color: #72d989;
}

.book-status--paused {
    color: #f0bd62;
}

.book-status--finished {
    color: #3f9b58;
}

thead {
    background: var(--surface-raised);
    color: #e4e4df;
}

th,
td {
    padding: 0.65rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th[onclick],
td[onclick] {
    cursor: pointer;
}

th:hover,
td:hover,
tr:hover {
    background: var(--surface-hover);
}

.table-content {
    display: none;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.expanded .table-content {
    display: block;
}

.sorted-asc::after {
    content: " ˄";
}

.sorted-desc::after {
    content: " ˅";
}

.active-cell {
    background: var(--surface-hover);
}

.active-row {
    box-shadow: var(--shadow);
}

.gt-status0,
.gt-comp0 {
    color: var(--text);
}

.gt-status1,
.gt-comp1 {
    color: #ff7777;
}

.gt-status2,
.gt-comp3 {
    color: #e5d768;
}

.gt-status3,
.gt-comp5 {
    color: #7fce8a;
}

.gt-comp2 {
    color: #e5a65d;
}

.gt-comp4 {
    color: #a7d486;
}

.gt-comp6 {
    color: #82a9e8;
}

@media (max-width: 48rem) {
    .site-header {
        flex-wrap: wrap;
        gap: 0.25rem 0.5rem;
        padding-block: 0.35rem;
    }

    .site-brand {
        margin-right: auto;
    }

    .site-navigation {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .nav-menu > summary {
        padding-inline: 0.6rem;
    }

    .nav-menu-items {
        position: fixed;
        top: auto;
        left: auto;
        max-width: calc(100vw - 1.5rem);
    }

    .site-main {
        width: min(100% - 1.25rem, var(--content-width));
    }

    .info-container {
        padding: 1rem;
    }

    .book-detail-card {
        grid-template-columns: 1fr;
    }

    .book-detail-cover-wrap {
        width: min(100%, 14rem);
    }

    .book-detail-facts > div {
        grid-template-columns: minmax(6rem, 0.7fr) minmax(0, 1fr);
        gap: 0.65rem;
    }

    .books-table {
        display: table;
        white-space: normal;
    }

    .books-table th:first-child,
    .books-table td:first-child {
        width: 7rem;
    }

    .books-table th:nth-child(3),
    .books-table .book-release-date {
        width: 9rem;
    }

    .books-table th:last-child,
    .books-table .book-status {
        width: 6rem;
    }

    .books-table .book-cover,
    .books-table .book-cover-placeholder {
        width: min(100%, 5rem);
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
