/* ============================================================
   D&D THEMED PERSONAL BLOG — Main Stylesheet
   维尔德 Wilder · 龙与地下城主题个人博客
   ============================================================ */

/* ---------- CSS Custom Properties (Theme) ---------- */
:root {
    /* Background layers */
    --bg-deep: #0a0a0f;
    --bg-surface: #12121a;
    --bg-elevated: #1a1a25;

    /* Gold / Amber — primary accent */
    --gold-primary: #c9a84c;
    --gold-light: #e4cc7a;
    --gold-glow: #f0d68a;

    /* Crimson / Dragon red */
    --crimson: #9b2d30;
    --crimson-light: #c73e41;

    /* Parchment / warm neutrals */
    --parchment: #d4c5a9;
    --parchment-dim: #8a7e6b;
    --parchment-dark: #5c5345;

    /* Magic accents */
    --magic-blue: #4a7db5;
    --magic-purple: #6b4e8d;
    --dragon-green: #3d6b4f;

    /* Glassmorphism */
    --glass-border: rgba(201, 168, 76, 0.15);
    --glass-bg: rgba(18, 18, 26, 0.7);

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(201, 168, 76, 0.15);

    /* Typography scale — fluid */
    --text-xs: clamp(0.65rem, 1.2vw, 0.75rem);
    --text-sm: clamp(0.8rem, 1.4vw, 0.875rem);
    --text-base: clamp(0.95rem, 1.6vw, 1.05rem);
    --text-lg: clamp(1.1rem, 2vw, 1.25rem);
    --text-xl: clamp(1.3rem, 2.5vw, 1.5rem);
    --text-2xl: clamp(1.7rem, 3vw, 2rem);
    --text-3xl: clamp(2rem, 4vw, 2.75rem);

    /* Spacing */
    --space-section: clamp(2rem, 5vw, 4rem);
    --space-card-padding: clamp(1rem, 3vw, 1.75rem);
    --container-max: 720px;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--parchment);
    background: var(--bg-deep);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

a {
    color: var(--magic-blue);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
}

strong {
    color: var(--gold-light);
    font-weight: 600;
}

/* ---------- Canvas Background ---------- */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    position: relative;
    z-index: 1;
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.3);
}

/* ---------- Glass Nav ---------- */
.glass-nav {
    background: rgba(18, 18, 26, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: var(--radius-full);
}

/* ---------- Hero Section ---------- */
.hero {
    text-align: center;
    padding: var(--space-section) 0 calc(var(--space-section) * 0.6);
    position: relative;
}

.hero__avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero__avatar {
    width: clamp(100px, 20vw, 180px);
    height: clamp(100px, 20vw, 180px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-primary);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.25), 0 0 60px rgba(201, 168, 76, 0.1);
    transition: box-shadow 0.5s ease;
}

.hero__avatar:hover {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.4), 0 0 80px rgba(201, 168, 76, 0.2);
}

.hero__avatar-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite;
}

.hero__name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--text-3xl);
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
    background: linear-gradient(
        90deg,
        var(--parchment) 0%,
        var(--gold-light) 25%,
        var(--gold-primary) 50%,
        var(--gold-light) 75%,
        var(--parchment) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

.hero__subtitle {
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--parchment-dim);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero__title {
    font-size: var(--text-sm);
    color: var(--parchment-dim);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.hero__title-icon {
    color: var(--gold-primary);
    margin: 0 0.4rem;
}

.hero__motto {
    font-style: italic;
    color: var(--parchment-dark);
    font-size: var(--text-sm);
    margin-bottom: 1.5rem;
}

/* Decorative d20 in hero */
.hero__d20 {
    width: 50px;
    height: 50px;
    color: var(--gold-primary);
    opacity: 0.5;
    animation: floatSlow 4s ease-in-out infinite;
    margin: 0 auto;
    display: block;
}

/* ---------- Navigation ---------- */
.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem clamp(0.5rem, 2vw, 1rem);
    margin-bottom: var(--space-section);
    position: sticky;
    top: 12px;
    z-index: 100;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: box-shadow 0.3s ease;
}

.nav--scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(201, 168, 76, 0.1);
}

.nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    color: var(--parchment-dim);
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
    min-width: 56px;
    position: relative;
}

.nav__link:hover {
    color: var(--gold-primary);
    background: rgba(201, 168, 76, 0.08);
    text-shadow: 0 0 8px rgba(201, 168, 76, 0.25);
}

.nav__link--active {
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.12);
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 16px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 1px;
}

.nav__zh {
    font-weight: 700;
    font-size: var(--text-sm);
}

.nav__en {
    font-size: var(--text-xs);
    opacity: 0.6;
    text-transform: uppercase;
}

/* ---------- Section Headings ---------- */
.section {
    padding: var(--space-section) 0;
}

.section__heading {
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gold-light);
    text-align: center;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 16px rgba(201, 168, 76, 0.25), 0 0 32px rgba(201, 168, 76, 0.1);
}

.section__ornament {
    font-size: 0.7em;
    vertical-align: middle;
    opacity: 0.7;
}

.section__subtitle {
    text-align: center;
    color: var(--parchment-dim);
    font-size: var(--text-sm);
    font-style: italic;
    margin-bottom: 2rem;
}

/* ---------- About Section ---------- */
.about-card {
    padding: var(--space-card-padding);
    position: relative;
    overflow: hidden;
}

/* Top-left torch illumination */
.about-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, transparent 55%);
    pointer-events: none;
    border-radius: inherit;
}

.about-card__sheet {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Character Stats Block */
.stats-block {
    flex: 0 0 200px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.stats-block__header {
    text-align: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.stats-block__label {
    display: block;
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.06em;
}

.stats-block__sub {
    font-size: var(--text-xs);
    color: var(--parchment-dark);
    font-style: italic;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.35rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.stat:hover {
    border-color: rgba(201, 168, 76, 0.3);
}

.stat__abbr {
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.08em;
}

.stat__value {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--parchment);
    line-height: 1.2;
}

.stat__mod {
    font-size: var(--text-xs);
    color: var(--dragon-green);
    background: rgba(61, 107, 79, 0.2);
    padding: 0 5px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* Skills list */
.skills-list {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--glass-border);
}

.skills-list__header {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.06em;
    text-align: center;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0.3rem;
    border-radius: 2px;
}

.skill-item:nth-child(odd) {
    background: rgba(0, 0, 0, 0.12);
}

.skill-item__name {
    font-size: 0.7rem;
    color: var(--parchment-dim);
}

.skill-item__bonus {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dragon-green);
}

/* Bio area */
.about-card__bio {
    flex: 1 1 280px;
}

.about-card__bio p {
    margin-bottom: 0.2rem;
    color: var(--parchment);
    line-height: 1.6;
}

.about-card__bio p + .about-card__en {
    margin-top: -0.15rem;
}

.about-card__bio .about-card__en + p {
    margin-top: 0.65rem;
}

.about-card__signature {
    font-style: italic;
    color: var(--parchment-dark);
    margin-top: 1rem;
    font-size: var(--text-xs);
    opacity: 0.7;
}

.about-card__en {
    color: var(--parchment-dim);
    font-size: var(--text-xs);
    line-height: 1.65;
    margin-bottom: 0.35rem;
    font-style: italic;
    opacity: 0.6;
}

.about-card__en strong {
    color: var(--gold-primary);
    font-style: normal;
    opacity: 1;
}

.about-card__en--cta {
    margin-bottom: 1rem;
}

/* Skill tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--parchment-dark);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--parchment-dim);
    transition: all 0.25s ease;
}

.tag:hover {
    border-color: var(--gold-primary);
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.08);
}

/* ---------- Blog Cards ---------- */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.blog-loading p {
    text-align: center;
    color: var(--parchment-dim);
    font-style: italic;
    padding: 2rem;
}

.blog-card {
    padding: var(--space-card-padding);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0.4;
}

.blog-card__date {
    display: block;
    font-size: var(--text-xs);
    color: var(--parchment-dim);
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.blog-card__title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card__title a {
    color: var(--gold-primary);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.blog-card__title a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 14px rgba(201, 168, 76, 0.35);
}

.blog-card__excerpt {
    color: var(--parchment-dim);
    font-size: var(--text-sm);
    line-height: 1.65;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.blog-card__tags .tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
}

.blog-card__readmore {
    display: inline-block;
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--magic-blue);
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
}

.blog-card__readmore:hover {
    color: var(--gold-light);
    transform: translateX(4px);
}

.blog-empty {
    text-align: center;
    padding: 2rem;
    color: var(--parchment-dim);
    font-style: italic;
}

/* ---------- Quest / Project Cards ---------- */
.quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.quest-card {
    padding: var(--space-card-padding);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.quest-card__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quest-card__title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.quest-card__status {
    display: inline-block;
    font-size: var(--text-xs);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.quest-card__status--active {
    background: rgba(74, 125, 181, 0.2);
    color: var(--magic-blue);
    border: 1px solid rgba(74, 125, 181, 0.3);
}

.quest-card__status--done {
    background: rgba(61, 107, 79, 0.2);
    color: var(--dragon-green);
    border: 1px solid rgba(61, 107, 79, 0.3);
}

.quest-card__status--planning {
    background: rgba(107, 78, 141, 0.2);
    color: var(--magic-purple);
    border: 1px solid rgba(107, 78, 141, 0.3);
}

.quest-card__desc {
    color: var(--parchment-dim);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ---------- Dice Section ---------- */
.dice-area {
    text-align: center;
    padding: 2rem 0;
}

.dice-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dice-svg {
    width: clamp(80px, 16vw, 120px);
    height: clamp(80px, 16vw, 120px);
    transition: filter 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.3));
}

.dice-container:hover .dice-svg {
    filter: drop-shadow(0 0 16px rgba(201, 168, 76, 0.5));
}

.dice-svg--rolling {
    animation: diceRoll 0.9s ease-out;
}

.dice-svg--crit {
    animation: critGlow 0.6s ease-in-out 3;
}

.dice-svg--fail {
    animation: diceShake 0.4s ease-in-out;
}

.dice-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-light);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 16px rgba(240, 214, 138, 0.6);
}

.dice-result--show {
    opacity: 1;
}

.dice-result--crit {
    color: var(--gold-glow);
    font-size: 2.4rem;
    text-shadow: 0 0 24px rgba(240, 214, 138, 0.8), 0 0 48px rgba(199, 62, 65, 0.5);
}

.dice-result--fail {
    color: var(--crimson);
    text-shadow: 0 0 16px rgba(155, 45, 48, 0.5);
}

.dice-hint {
    margin-top: 0.75rem;
    color: var(--parchment-dark);
    font-size: var(--text-xs);
    font-style: italic;
    letter-spacing: 0.04em;
}

/* ---------- Social Links ---------- */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    color: var(--parchment-dim);
    transition: all 0.3s ease;
    min-width: 72px;
}

.social-link:hover {
    border-color: var(--glass-border);
    background: var(--glass-bg);
    color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.social-link__icon {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
}

.social-link__label {
    font-size: var(--text-xs);
    letter-spacing: 0.04em;
    font-family: 'Cinzel', Georgia, serif;
}

/* Copy toast for email */
.copy-toast {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-primary);
    color: var(--bg-deep);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    pointer-events: none;
    animation: fadeInUp 0.3s ease-out;
    z-index: 10;
}

#email-link {
    position: relative;
}

/* ---------- Floating Music Player ---------- */
.floating-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-width: 260px;
    max-width: 340px;
    transition: box-shadow 0.3s ease;
}

.floating-player:hover {
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(201, 168, 76, 0.12);
}

/* Collapsed bar */
.floating-player__bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    cursor: default;
}

.floating-player__icon {
    font-size: 1rem;
    animation: floatSlow 3s ease-in-out infinite;
    flex-shrink: 0;
}

.floating-player__track {
    flex: 1;
    color: var(--parchment);
    font-size: 0.8rem;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.floating-player__play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.floating-player__play-btn:hover {
    background: rgba(201, 168, 76, 0.25);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.2);
}

.floating-player__play-btn.playing {
    background: rgba(155, 45, 48, 0.2);
    border-color: var(--crimson);
    color: var(--crimson-light);
}

.floating-player__play-btn svg {
    width: 14px;
    height: 14px;
}

.floating-player__toggle {
    width: 22px;
    height: 22px;
    border: none;
    background: none;
    color: var(--parchment-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.floating-player__toggle:hover {
    color: var(--gold-primary);
}

.floating-player__toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.floating-player--open .floating-player__toggle svg {
    transform: rotate(180deg);
}

/* Expanded panel */
.floating-player__panel {
    padding: 0.6rem 0.85rem 0.85rem;
    border-top: 1px solid var(--glass-border);
}

/* Shared button styles (same IDs as before) */
.music-player__btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(201, 168, 76, 0.08);
    color: var(--gold-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
}

.music-player__btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.2);
}

.music-player__btn svg {
    width: 16px;
    height: 16px;
}

.music-player__btn--play {
    width: 38px;
    height: 38px;
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold-primary);
}

.music-player__btn--play:hover {
    background: rgba(201, 168, 76, 0.3);
}

.music-player__btn--play.playing {
    background: rgba(155, 45, 48, 0.2);
    border-color: var(--crimson);
    color: var(--crimson-light);
}

.floating-player__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.floating-player__volume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.music-player__volume-icon {
    width: 18px;
    height: 18px;
    color: var(--parchment-dim);
    flex-shrink: 0;
}

.music-player__volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: var(--parchment-dark);
    outline: none;
    cursor: pointer;
}

.music-player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    border: none;
    transition: box-shadow 0.2s ease;
}

.music-player__volume-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
}

.music-player__volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    border: none;
}

.floating-player__track-full {
    display: block;
    text-align: center;
    color: var(--parchment-dim);
    font-size: 0.75rem;
    font-style: italic;
}

/* Mobile: smaller, bottom center */
@media (max-width: 480px) {
    .floating-player {
        bottom: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        min-width: 0;
    }
}

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: var(--space-section) 0 2rem;
    color: var(--parchment-dark);
}

.footer__divider {
    width: clamp(200px, 50vw, 300px);
    height: auto;
    color: var(--gold-primary);
    margin: 0 auto 1.5rem;
    display: block;
}

.footer__quote {
    font-style: italic;
    font-size: var(--text-sm);
    color: var(--parchment-dim);
    margin-bottom: 0.3rem;
}

.footer__quote-en {
    font-size: var(--text-xs);
    color: var(--parchment-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.footer__copyright {
    font-size: var(--text-xs);
    color: var(--parchment-dark);
    margin-bottom: 0.3rem;
}

.footer__tiny {
    font-size: 0.65rem;
    color: var(--parchment-dark);
    opacity: 0.6;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--gold-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.4);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ---------- Scroll reveal base ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: var(--parchment);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--parchment-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--parchment-dim);
}
