/* ===================================================
   remix8d for MP3 - style.css
   Full remix8d Greige Palette & Theme Specification
   =================================================== */

:root {
    /* Greige Palette & Theme Variables (remix8d Official) */
    --bg-color: #e8e6e1;            /* Warm sophisticated greige background */
    --bg-gradient-top: #f3f1ec;     /* Subtle light greige gradient top */
    --card-bg: #f9f8f5;            /* Off-white warm porcelain card background */
    --card-bg-subtle: #f0ede6;     /* Secondary nested card background */
    --surface-border: #dcd8cf;     /* Smooth warm border */
    
    --primary: #4a453e;            /* Deep taupe / dark greige charcoal for elegance */
    --primary-hover: #35312b;      /* Hover state deep charcoal */
    --primary-glow: rgba(74, 69, 62, 0.15);
    
    --accent: #8b7355;             /* Warm bronze / refined amber taupe accent */
    --accent-light: #ab9578;
    --accent-glow: rgba(139, 115, 85, 0.25);
    
    --text-color: #2b2823;         /* Deep rich espresso-charcoal text */
    --text-muted: #7d776d;         /* Soft muted warm grey */
    --text-subtle: #9d968b;        /* Subtle secondary text */
    
    --border-color: rgba(60, 50, 40, 0.12);
    --ad-bg: rgba(60, 50, 40, 0.03);
    
    --share-btn-bg: #3c3730;       /* Elegant dark taupe */
    --share-btn-color: #f7f5f0;

    --font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--bg-gradient-top) 0%, var(--bg-color) 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 40px;
    overflow-y: auto;
}

/* --- Container (remix8d Card Spec) --- */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 25px auto 25px auto;
    padding: 30px 32px 38px 32px;
    border-radius: 26px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 40px rgba(60, 50, 40, 0.08), 0 2px 6px rgba(60, 50, 40, 0.04);
}

/* --- Header & Brand --- */
header {
    text-align: center;
    padding: 10px 0 20px;
    position: relative;
}

/* --- Header Navigation Link --- */
.header-nav-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 50;
    user-select: none;
}
.header-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 18px;
    background: rgba(249, 248, 245, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(139, 115, 85, 0.25);
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(60, 50, 40, 0.06);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-nav-btn:hover {
    background: #ffffff;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 14px rgba(139, 115, 85, 0.18);
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .header-nav-wrapper {
        top: -6px;
        right: 0;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border: 1px solid rgba(139, 115, 85, 0.28);
    border-radius: 999px;
    background: rgba(139, 115, 85, 0.08);
    color: #6b583f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

h1 a.brand-logo {
    text-decoration: none;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.logo-main {
    color: var(--primary);
}
.logo-accent {
    color: var(--accent);
}
.logo-for {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 8px;
    background: none;
    border: none;
    padding: 0;
}

.subtitle {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
    font-weight: 500;
}
.subtitle-cn {
    font-size: clamp(0.8rem, 1.8vw, 0.88rem);
    color: var(--accent);
    margin-top: 5px;
    line-height: 1.5;
    font-weight: 500;
    opacity: 0.92;
}

/* ============================================================
   PLAYER COMPONENT (#app-container)
   ============================================================ */
#app-container {
    width: 100%;
    background: var(--card-bg-subtle);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0 30px 0;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(60, 50, 40, 0.02);
}

/* D&D Overlay */
#dnd-overlay {
    position: absolute;
    inset: 0;
    background: rgba(249, 248, 245, 0.94);
    border: 2.5px dashed var(--accent);
    border-radius: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
#dnd-overlay.active {
    display: flex;
}
#dnd-message {
    text-align: center;
    color: var(--text-color);
}
#dnd-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}
#dnd-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
}

/* Visualizer Section (Light Greige Theme) */
#visualizer-section {
    width: 100%;
    margin-bottom: 16px;
    background: #edeae3;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(139, 115, 85, 0.22);
    box-shadow: inset 0 2px 6px rgba(60, 50, 40, 0.05);
    overflow: hidden;
}
#viz-canvas {
    width: 100%;
    height: 180px;
    display: block;
    border-radius: 8px;
}
#track-info {
    text-align: center;
    margin-top: 10px;
}
#track-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#track-meta {
    font-size: 0.78rem;
    color: var(--accent);
}

/* Progress Bar (Seekbar) */
#progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 6px;
}
.time-display {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    min-width: 38px;
}
#progress-bar-wrapper {
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}
#progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(60, 50, 40, 0.12);
    border-radius: 3px;
    position: relative;
    overflow: visible;
}
#progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 3px;
}
#progress-thumb {
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--accent);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.1s;
}
#progress-bar-wrapper:hover #progress-thumb {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Controls Row */
#controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 4px;
}
.ctrl-btn {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
}
.secondary-btn {
    background: var(--card-bg);
    border: 1px solid var(--surface-border);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(60,50,40,0.04);
}
.secondary-btn:hover {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
}
#playback-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.icon-btn {
    background: none;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 50%;
}
.icon-btn:hover {
    color: var(--text-color);
}
.play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #f7f5f0;
    box-shadow: 0 4px 14px rgba(74, 69, 62, 0.3);
}
.play-btn:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* DIVE Control (Haas Delay Slider) */
#haas-panel {
    background: var(--card-bg);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(60, 50, 40, 0.03);
}
.ctrl-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.ctrl-panel-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}
#haas-value-display {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent);
    background: rgba(139, 115, 85, 0.1);
    padding: 2px 10px;
    border-radius: 8px;
    border: 1px solid rgba(139, 115, 85, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 28px;
}
#haas-digits {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5px;
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
}
.digit-cell {
    display: inline-block;
    width: 9.5px;
    height: 20px;
    overflow: hidden;
    position: relative;
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
}
.digit-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 20px;
    text-align: center;
}
.slider-wrapper-dive {
    display: flex;
    align-items: center;
    gap: 12px;
}
.slider-label-dive {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.haas-styled-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--surface-border);
    outline: none;
    cursor: pointer;
}
.haas-styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.1s;
}
.haas-styled-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Playlist Section */
#playlist-section {
    background: var(--card-bg);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 12px 16px;
}
#playlist-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(60, 50, 40, 0.08);
    padding-bottom: 6px;
}
#playlist {
    list-style: none;
    max-height: 140px;
    overflow-y: auto;
}
#playlist li {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#playlist li:hover {
    background: var(--card-bg-subtle);
    color: var(--accent);
}
#playlist li.active {
    background: rgba(139, 115, 85, 0.12);
    color: var(--accent);
    font-weight: 700;
}
.playlist-empty {
    color: var(--text-muted);
    font-style: italic;
    cursor: default !important;
}

/* ============================================================
   ARTICLE / INTRO SECTION (remix8d Style)
   ============================================================ */
.article-section {
    margin-top: 10px;
    padding: 24px 8px 10px 8px;
    border-top: 1px solid var(--surface-border);
}
.article-section h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-section p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 12px;
}
.article-section .cn-note {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    background: var(--card-bg-subtle);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    margin-bottom: 16px;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.feat-card {
    background: var(--card-bg-subtle);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 16px;
}
.feat-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}
.feat-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   FOOTER (remix8d Exact Spec)
   ============================================================ */
footer {
    padding: 25px 0 10px 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(60, 50, 40, 0.08);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.patent-faint {
    margin-top: 4px;
    display: block;
    margin-left: 0;
    font-size: 0.72rem;
    opacity: 0.75;
}
.footer-support-container {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    max-width: 100%;
    padding: 0 10px;
}
footer button.btn-footer-link {
    background: none;
    border: none;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: inherit;
    transition: color 0.2s;
}
footer button.btn-footer-link:hover {
    color: var(--primary);
}

/* Stripe Support Button (remix8d 2-line clean block button) */
.btn-support {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: #8b6834;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 20px;
    border: 1px dashed rgba(139, 104, 52, 0.4);
    border-radius: 10px;
    background-color: rgba(139, 104, 52, 0.04);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
    text-align: center;
    margin-top: 4px;
}
.btn-support:hover {
    background-color: rgba(139, 104, 52, 0.09);
    border-color: #8b6834;
    transform: translateY(-1px);
}
.support-main-text {
    font-size: 0.85rem;
    font-weight: 700;
}
.support-sub-text {
    font-size: 0.68rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* ============================================================
   MODALS (remix8d Exact Spec)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 21, 18, 0.72);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    contain: paint;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 26px 28px;
    box-shadow: 0 20px 50px rgba(40, 30, 20, 0.25);
    color: var(--text-color);
    position: relative;
    line-height: 1.65;
    font-size: 0.9rem;
}
.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}
.modal-close-btn:hover {
    color: var(--primary);
}
.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.btn-close-modal:hover {
    color: var(--text-color);
}
.modal-content h2 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
}
.modal-content p, .modal-content li {
    font-size: 0.9rem;
    color: #4f4a42;
    margin-bottom: 12px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-color);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--surface-border);
    color: var(--text-color);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}
.btn-submit-contact {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), #35312b);
    border: none;
    color: #f7f5f0;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-submit-contact:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* --- Card Intro & How to Use Trigger (カード内・プレイリスト直下中央) --- */
.card-intro-block {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(139, 115, 85, 0.22);
    text-align: center;
}
.card-slogan {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-color);
    opacity: 0.88;
    margin-bottom: 9px;
}
.btn-howtouse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 18px;
    background: rgba(249, 248, 245, 0.95);
    border: 1px solid rgba(139, 115, 85, 0.28);
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(60, 50, 40, 0.05);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-howtouse:hover {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.16);
}

/* ============================================================
   MOBILE RESPONSIVE OPTIMIZATION (スマホ表示専用の最適化)
   ============================================================ */
@media (max-width: 640px) {
    /* 1. Body & Container: ダブルカードを解消し画面幅をフル活用 */
    body {
        padding: 6px 8px 24px 8px;
    }
    
    .container {
        margin: 0 auto;
        padding: 4px 0 14px 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
    }

    header {
        padding: 4px 4px 12px 4px;
    }
    h1 a.brand-logo {
        font-size: 1.75rem;
    }
    .logo-for {
        font-size: 1.0rem;
        margin-left: 4px;
    }
    .subtitle {
        font-size: 0.78rem;
        margin-top: 3px;
        line-height: 1.35;
    }
    .subtitle-cn {
        font-size: 0.72rem;
        margin-top: 3px;
        line-height: 1.35;
    }

    /* 2. Main Player Panel (#app-container): 単一の広々としたメインカードへ */
    #app-container {
        padding: 12px 10px 14px 10px;
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(60, 50, 40, 0.06);
    }

    #visualizer-section {
        margin-bottom: 10px;
        border-radius: 12px;
    }
    #track-title {
        font-size: 0.82rem;
    }
    #track-meta {
        font-size: 0.68rem;
    }

    /* 3. 各種ボタンのサイズ最適化（大きすぎるのを引き締め） */
    #controls-row {
        margin-bottom: 12px;
        padding: 0 2px;
    }

    .secondary-btn {
        padding: 6px 11px;
        font-size: 0.76rem;
        border-radius: 10px;
        gap: 5px;
    }
    .secondary-btn svg {
        width: 14px;
        height: 14px;
    }

    .play-btn {
        width: 40px;
        height: 40px;
        box-shadow: 0 3px 8px rgba(74, 69, 62, 0.25);
    }
    .play-btn svg {
        width: 16px;
        height: 16px;
    }

    .icon-btn {
        padding: 4px;
    }
    .icon-btn svg {
        width: 16px;
        height: 16px;
    }

    #playback-controls {
        gap: 6px;
    }

    /* 4. スライダー＆プレイリストパネルのコンパクト化 */
    #haas-panel {
        padding: 10px 12px;
        margin-bottom: 10px;
        border-radius: 12px;
    }
    .ctrl-panel-header {
        margin-bottom: 8px;
    }
    .ctrl-panel-title {
        font-size: 0.78rem;
    }
    #haas-value-display {
        height: 24px;
        min-width: 42px;
        padding: 1px 5px;
        font-size: 0.82rem;
    }
    .slider-wrapper-dive {
        gap: 8px;
    }
    .slider-label {
        font-size: 0.64rem;
        letter-spacing: 0.5px;
    }

    #playlist-section {
        padding: 10px 12px;
        border-radius: 12px;
    }
    .playlist-header {
        margin-bottom: 6px;
    }
    .playlist-title {
        font-size: 0.72rem;
    }
    .track-count {
        font-size: 0.72rem;
    }
    .track-item {
        padding: 5px 8px;
        font-size: 0.78rem;
    }

    /* 5. フッター余白の調整 */
    footer {
        padding-top: 14px;
        gap: 6px;
    }
    .footer-links {
        gap: 10px;
        font-size: 0.7rem;
    }
    .footer-copy {
        font-size: 0.66rem;
    }

    /* 6. Card Intro & How to Use (Mobile) */
    .card-intro-block {
        margin-top: 10px;
        padding-top: 10px;
    }
    .card-slogan {
        font-size: 0.88rem;
    }
    .card-desc {
        font-size: 0.74rem;
        margin-bottom: 8px;
    }
    .btn-howtouse {
        padding: 5px 13px;
        font-size: 0.74rem;
    }
}
