/* ===== 主题变量 ===== */
:root {
    --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --bg: #faf9f7;
    --surface: #ffffff;
    --ink: #2c2c2c;
    --ink-contrast: #faf9f7;
    --ink-contrast-dim: rgba(250, 249, 247, 0.6);
    --ink-hover-bg: rgba(255, 255, 255, 0.12);
    --text-strong: #333333;
    --text-2: #555555;
    --text-3: #666666;
    --text-4: #888888;
    --text-5: #999999;
    --text-fade: #cccccc;
    --border: #e8e6e1;
    --border-input: #dddddd;
    --danger: #b54a4a;
    --danger-contrast: #ffffff;
    --danger-bg: #fdecea;
    --success-text: #2a6b4a;
    --success-bg: #e8f5e9;
    --warning-text: #8a6d3b;
    --warning-bg: #fff8e1;
    --info-text: #316a9c;
    --info-bg: #e3f2fd;
    --badge-private-bg: #f5f5f5;
}

[data-theme="dark"] {
    --bg: #17171b;
    --surface: #202027;
    --ink: #e8e6e1;
    --ink-contrast: #17171b;
    --ink-contrast-dim: rgba(23, 23, 27, 0.6);
    --ink-hover-bg: rgba(0, 0, 0, 0.15);
    --text-strong: #f2f0eb;
    --text-2: #c2beb6;
    --text-3: #b0aca4;
    --text-4: #8f8b83;
    --text-5: #757169;
    --text-fade: #3d3d45;
    --border: #2d2d34;
    --border-input: #3b3b44;
    --danger: #d67a7a;
    --danger-contrast: #1a1a1a;
    --danger-bg: #2b1d1d;
    --success-text: #86c9a0;
    --success-bg: #1c2a20;
    --warning-text: #d4b979;
    --warning-bg: #2a2518;
    --info-text: #86b7e3;
    --info-bg: #19252f;
    --badge-private-bg: #2d2d34;
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    background-color: var(--bg);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 容器 ===== */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 24px 120px;
}

/* ===== 首页头部 ===== */
.site-header {
    margin-bottom: 64px;
    text-align: center;
}

.site-header h1 {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.site-header h1 a:hover {
    color: var(--text-3);
}

.site-desc {
    color: var(--text-4);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

/* ===== 月份标题 ===== */
.month-heading {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-2);
    margin: 48px 0 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.month-heading:first-of-type {
    margin-top: 0;
}

/* ===== 日记列表条目 ===== */
.diary-entry {
    margin-bottom: 24px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.diary-entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.entry-link {
    display: block;
    padding: 20px 22px;
    transition: opacity 0.2s ease;
}

.entry-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-5);
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}

.entry-title {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
}

.entry-summary {
    font-size: 0.9rem;
    color: var(--text-3);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty {
    text-align: center;
    color: var(--text-4);
    margin-top: 80px;
}

/* ===== 详情页 ===== */
.diary-detail {
    max-width: 620px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-4);
    margin-bottom: 40px;
}

.back-link:hover {
    color: var(--text-strong);
}

.detail-date {
    display: block;
    font-size: 0.9rem;
    color: var(--text-5);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.detail-title {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.5;
}

.detail-image {
    position: relative;
    margin-bottom: 24px;
    border-radius: 4px;
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.float-left {
    float: left;
    margin-right: 20px;
    margin-bottom: 16px;
}

.float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 16px;
}

.float-none {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.diary-detail::after {
    content: "";
    display: table;
    clear: both;
}



.detail-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-strong);
}

.detail-content p {
    margin-bottom: 1.5em;
}

/* ===== 404 ===== */
.not-found {
    text-align: center;
    padding-top: 80px;
}

.not-found h1 {
    font-size: 4rem;
    font-weight: 300;
    color: var(--text-fade);
    margin-bottom: 16px;
}

.not-found p {
    color: var(--text-4);
    margin-bottom: 32px;
}

/* ===== 后台管理 ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h1 {
    font-size: 1.6rem;
    font-weight: 400;
}

.admin-actions {
    display: flex;
    gap: 12px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    color: var(--text-4);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.admin-table .date {
    white-space: nowrap;
    color: var(--text-4);
    width: 140px;
}

.admin-table .title {
    color: var(--text-strong);
}

.admin-table .status {
    width: 80px;
}

.admin-table .actions {
    white-space: nowrap;
    width: 200px;
}

.inline-form {
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.badge-public {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.badge-private {
    background-color: var(--badge-private-bg);
    color: var(--text-4);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    opacity: 0.85;
}

.btn-primary {
    background-color: var(--ink);
    color: var(--ink-contrast);
}

.btn-secondary {
    background-color: var(--border);
    color: var(--text-2);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--danger-contrast);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ===== 表单 ===== */
.login-box {
    max-width: 360px;
    margin: 80px auto 0;
    text-align: center;
}

.login-box h1 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 32px;
}

.login-hint {
    margin-top: 24px;
    color: var(--text-5);
    font-size: 0.85rem;
}

.diary-form {
    max-width: 620px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label,
.form-group .form-check-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-2);
    font-size: 0.9rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.form-check-label {
    margin-bottom: 0 !important;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-input);
    border-radius: 4px;
    background-color: var(--surface);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-strong);
}

.form-control:focus {
    outline: none;
    border-color: var(--text-5);
}

.form-control-file {
    padding: 8px 0;
    font-size: 0.95rem;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-5);
    margin-top: 6px;
}

.error {
    display: block;
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* ===== 提示消息 ===== */
.flash-messages {
    margin-bottom: 24px;
}

.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.alert-danger {
    background-color: var(--danger-bg);
    color: var(--danger);
}

.alert-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

.alert-info {
    background-color: var(--info-bg);
    color: var(--info-text);
}

/* ===== 当前图片预览 ===== */
.current-image {
    margin-bottom: 24px;
}

.current-image p {
    font-size: 0.9rem;
    color: var(--text-2);
    margin-bottom: 10px;
}

.current-image img {
    max-width: 300px;
    border-radius: 4px;
}

/* ===== 搜索框 ===== */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto 48px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-input);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-strong);
    background-color: var(--surface);
}

.search-input:focus {
    outline: none;
    border-color: var(--text-5);
}

.search-result-info {
    text-align: center;
    color: var(--text-4);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ===== 右下角搜索按钮 ===== */
.search-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 56px;
    height: 56px;
    background-color: var(--ink);
    border-radius: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease,
        transform 0.5s ease;
}

.search-fab.open {
    width: min(300px, calc(100vw - 48px));
}

.search-fab-toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    border: none;
    background: transparent;
    color: var(--ink-contrast);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.search-fab-toggle:hover {
    opacity: 0.8;
}

.search-fab-toggle:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.search-fab-form {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 10px 0 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease 0.15s;
}

.search-fab-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--ink-contrast);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    padding: 0;
}

.search-fab-input::placeholder {
    color: var(--ink-contrast-dim);
}

.search-fab-submit {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--ink-contrast);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.search-fab-submit:hover {
    background-color: var(--ink-hover-bg);
}

.search-fab.open .search-fab-toggle {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.search-fab.open .search-fab-form {
    opacity: 1;
    pointer-events: auto;
}

html.splash-active .search-fab {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

html.splash-leaving .search-fab {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0s, 0.35s, 0.35s;
}

/* ===== 背景音乐开关 ===== */
.bgm-wrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.bgm-name {
    background-color: var(--ink);
    color: var(--ink-contrast);
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bgm-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background-color: var(--ink);
    color: var(--ink-contrast);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.bgm-toggle:hover {
    opacity: 0.85;
}

.bgm-toggle:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.bgm-icon-off {
    display: none;
}

.bgm-toggle.is-muted .bgm-icon-on {
    display: none;
}

.bgm-toggle.is-muted .bgm-icon-off {
    display: block;
}

/* ===== 日夜模式切换按钮 ===== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: var(--surface);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.06);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.theme-toggle .icon-moon,
.theme-toggle .icon-auto {
    display: none;
}

.theme-toggle[data-mode="dark"] .icon-sun,
.theme-toggle[data-mode="auto"] .icon-sun {
    display: none;
}

.theme-toggle[data-mode="dark"] .icon-moon {
    display: block;
}

.theme-toggle[data-mode="auto"] .icon-auto {
    display: block;
}

/* ===== 封面设置页 ===== */
.settings-intro {
    color: var(--text-4);
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 620px;
}

/* ===== 开屏封面 ===== */
.splash {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: var(--bg);
    padding: 24px;
    transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

html.splash-active .splash {
    display: block;
}

html.splash-active .page-content {
    opacity: 0;
    transform: translateY(24px);
}

html.splash-leaving .splash {
    display: flex;
    transform: translateY(-100%);
}

html.splash-leaving .page-content {
    opacity: 1;
    transform: translateY(0);
}

.page-content {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.splash-inner {
    position: absolute;
    left: var(--sx, 50%);
    top: var(--sy, 50%);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    text-align: center;
}

.splash-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    color: var(--text-4);
}

.splash-title {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 11vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--ink);
    line-height: 1.2;
}

.splash-rule {
    width: 64px;
    height: 1px;
    background-color: var(--ink);
}

.splash-enter {
    margin-top: 10px;
    padding: 12px 44px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.splash-enter:hover {
    background-color: var(--ink);
    color: var(--ink-contrast);
}

.splash-enter:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

@keyframes splash-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splash-rule-grow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

html.splash-active .splash-kicker {
    animation: splash-fade-up 0.8s ease both;
    animation-delay: 0.1s;
}

html.splash-active .splash-title {
    animation: splash-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.35s;
}

html.splash-active .splash-rule {
    animation: splash-rule-grow 0.8s ease both;
    animation-delay: 1s;
}

html.splash-active .splash-enter {
    animation: splash-fade-up 0.8s ease both;
    animation-delay: 1.4s;
}

@media (prefers-reduced-motion: reduce) {
    .splash,
    .page-content {
        transition: none;
    }

    html.splash-active .splash-kicker,
    html.splash-active .splash-title,
    html.splash-active .splash-rule,
    html.splash-active .splash-enter {
        animation: none;
    }
}

/* ===== 文字位置 ===== */
.site-header.align-left {
    text-align: left;
}

.site-header.align-right {
    text-align: right;
}

.site-header.align-center {
    text-align: center;
}

.splash.align-left {
    justify-content: flex-start;
    text-align: left;
    padding-left: 12vw;
}

.splash.align-right {
    justify-content: flex-end;
    text-align: right;
    padding-right: 12vw;
}

.splash.align-left .splash-inner {
    align-items: flex-start;
}

.splash.align-right .splash-inner {
    align-items: flex-end;
}

/* ===== 设置页分区标题 ===== */
.settings-section {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-strong);
    margin: 36px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.settings-section:first-of-type {
    margin-top: 0;
}

/* ===== 后台缩略图 & 滑块 ===== */
.admin-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    vertical-align: middle;
    margin-right: 8px;
}

.form-range {
    width: 100%;
    cursor: pointer;
}

/* ===== 编辑器（所见即所得） ===== */
.editor-field {
    max-width: 620px;
    margin: 0 auto;
}

.editor-title {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--ink);
    padding: 0;
    margin-bottom: 12px;
    outline: none;
}

.editor-title::placeholder {
    color: var(--text-5);
}

.editor-date {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text-5);
    padding: 0;
    margin-bottom: 32px;
    outline: none;
    font-family: inherit;
}

.editor-content {
    max-width: 620px;
    margin: 0 auto 40px;
    min-height: 300px;
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-strong);
    outline: none;
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 20px;
}

.editor-content:focus {
    border-color: var(--text-5);
}

.editor-content:empty::before {
    content: attr(data-placeholder);
    color: var(--text-5);
}

.editor-meta {
    max-width: 620px;
    margin: 0 auto;
}

.editor-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.editor-img-wrap {
    position: relative;
    display: block;
    margin: 16px auto;
    width: 100%;
}

.editor-img-wrap.float-left {
    float: left;
    margin: 4px 16px 16px 0;
}

.editor-img-wrap.float-right {
    float: right;
    margin: 4px 0 16px 16px;
}

.editor-img-wrap.float-none {
    float: none;
    margin: 16px auto;
}

.detail-content::after,
.editor-content::after {
    content: "";
    display: table;
    clear: both;
}

.detail-content .editor-img-handle {
    display: none;
}

.detail-content,
.editor-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.detail-content > div,
.editor-content > div {
    margin-bottom: 0.8em;
}

.editor-img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.editor-img-handle {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 16px;
    height: 16px;
    background-color: var(--ink);
    border: 2px solid var(--bg);
    border-radius: 50%;
    cursor: nwse-resize;
    z-index: 5;
}

.add-image-btn {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: var(--surface);
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.add-image-btn:hover {
    transform: scale(1.08);
}

.add-image-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* ===== 响应式：手机 ===== */
@media (max-width: 600px) {
    .container {
        padding: 48px 20px 80px;
    }

    .site-header {
        margin-bottom: 48px;
    }

    .site-header h1 {
        font-size: 1.5rem;
    }

    .month-heading {
        font-size: 1.1rem;
        margin: 36px 0 20px;
    }

    .entry-title {
        font-size: 1.15rem;
    }

    .detail-title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .detail-content {
        font-size: 1rem;
        line-height: 1.9;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }

    .admin-table .date {
        width: 90px;
    }

    .admin-table .actions {
        width: auto;
    }

    .btn-small {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .search-fab {
        right: 16px;
        bottom: 16px;
    }

    .bgm-wrap {
        right: 16px;
        bottom: 16px;
    }

    .bgm-name {
        max-width: 60vw;
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .bgm-toggle {
        width: 48px;
        height: 48px;
    }

    .splash-title {
        letter-spacing: 0.1em;
    }
}
