/* ==========================================================================
   歌枠リレー特設サイト デザインシステム (新たな和・案M: 夜桜と月明かりの和ファンタジー)
   ========================================================================== */

/* 変数定義 (深夜紫 ＆ 桜ピンク ＆ 月光ゴールド ＆ 幻想ブルー) */
:root {
    --bg-main: #070612; /* 深夜紫 (夜桜を包む深いミッドナイトパープル) */
    --bg-card: rgba(18, 14, 36, 0.48); /* 露硝子 (超極薄で透明度の高いグラスモルフィズム) */
    --bg-card-hover: rgba(28, 22, 54, 0.58);
    --border-color: rgba(255, 158, 187, 0.18); /* 桜ピンクの極薄枠 */
    
    --border-neon-cyan: rgba(114, 239, 221, 0.3); /* 幻想ブルー */
    --border-neon-pink: rgba(255, 158, 187, 0.4); /* 桜ピンクの境界線 */
    
    --color-text: #fffdf6; /* 月光金 (上品な淡いクリームゴールド) */
    --color-text-muted: #9da2c0; /* 星屑灰 (落ち着いたパープルグレー) */
    
    /* 幻想的な夜桜カラー */
    --neon-pink: #ff9ebb; /* 桜ピンク (ぼんぼりのような柔らかい発光) */
    --neon-pink-glow: 0 0 12px rgba(255, 158, 187, 0.4), 0 0 25px rgba(255, 158, 187, 0.2);
    
    --neon-cyan: #72efdd; /* 幻想青緑 (月明かりの反射) */
    --neon-cyan-glow: 0 0 10px rgba(114, 239, 221, 0.4);
    
    --neon-gold: #ffd166; /* 月光金 */
    --neon-gold-glow: 0 0 12px rgba(255, 209, 102, 0.5);
    
    /* フォント設定 */
    --font-primary: 'Outfit', 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', 'Georgia', serif; /* 幻想和風の情緒を出すため、明朝体を優先適用 */
    
    --transition-speed: 0.3s;
}

/* 基本リセット */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--color-text);
    font-family: var(--font-serif);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    letter-spacing: 0.08em;
    
    /* 夜空の微細な星屑をイメージしたドット */
    background-image: 
        radial-gradient(rgba(255, 253, 246, 0.04) 1px, transparent 1px),
        radial-gradient(rgba(255, 158, 187, 0.03) 1.5px, transparent 1.5px);
    background-size: 40px 40px, 80px 80px;
    background-position: 0 0, 20px 20px;
}

/* 背後に輝く大きな「満月（Lunar Glow）」 */
body::before {
    content: '';
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -3;
    pointer-events: none;
    opacity: 0.18;
    background: radial-gradient(circle, var(--neon-gold) 0%, transparent 70%);
    top: 5%;
    right: -100px;
}

/* 左下の桜色バックライト */
body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.15;
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
    bottom: -100px;
    left: -150px;
}

/* 桜の花びらが舞う環境用のCSS浮遊要素 */
.main-content {
    position: relative;
}

/* コンテナ */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* テキストカラーユーティリティ */
.text-neon-pink {
    color: var(--neon-pink);
    text-shadow: var(--neon-pink-glow);
}
.text-neon-cyan {
    color: var(--neon-cyan);
    text-shadow: var(--neon-cyan-glow);
}
.text-neon-gold {
    color: var(--neon-gold);
    text-shadow: var(--neon-gold-glow);
}
.text-center { text-align: center; }
.w-100 { width: 100%; }
.mb-2 { margin-bottom: 8px; }

/* 見出し (幻想的な月光装飾 ＆ 霞ライン) */
.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.22em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 158, 187, 0.3);
    position: relative;
    padding-bottom: 18px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    box-shadow: var(--neon-pink-glow);
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--neon-gold);
    margin-top: 15px;
    margin-bottom: 45px;
    letter-spacing: 0.25em;
    text-shadow: var(--neon-gold-glow);
}

/* ガラスカード (露硝子・極薄グラスモルフィズム) */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.02);
    transition: all var(--transition-speed) cubic-bezier(0.1, 0.8, 0.3, 1);
    position: relative;
}

/* ガラスの四隅に桜の雫をイメージしたドット飾り */
.glass-card::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 4px;
    height: 4px;
    background: var(--neon-pink);
    border-radius: 50%;
    opacity: 0.4;
}
.glass-card::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 4px;
    height: 4px;
    background: var(--neon-pink);
    border-radius: 50%;
    opacity: 0.4;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: rgba(255, 158, 187, 0.3);
    box-shadow: 0 15px 45px rgba(255, 158, 187, 0.1), 0 0 12px rgba(255, 209, 102, 0.1);
}

/* ボタン (桜月グラデーション) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-weight: 700;
    text-decoration: none;
    padding: 13px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 0.98rem;
    text-align: center;
    letter-spacing: 0.1em;
    position: relative;
}

/* 桜ピンクから月光ゴールドへのグラデーションボタン */
.btn-primary {
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-gold) 100%);
    color: #0d0c1b;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(255, 158, 187, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 158, 187, 0.6), 0 0 10px rgba(255, 209, 102, 0.4);
}

/* 幻想エメラルドグリーンボタン */
.btn-gradient {
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-cyan) 100%);
    color: #070612;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(114, 239, 221, 0.3);
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(114, 239, 221, 0.6), 0 0 10px rgba(255, 158, 187, 0.4);
}

/* 月光ゴールド枠線ボタン */
.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--neon-gold);
    color: var(--neon-gold);
    box-shadow: inset 0 0 6px rgba(255, 209, 102, 0.05);
}
.btn-outline:hover {
    background: var(--neon-gold);
    color: #070612;
    box-shadow: var(--neon-gold-glow);
    transform: translateY(-2px);
}
.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn:disabled {
    background: #171526;
    color: #4b4861;
    box-shadow: none;
    cursor: not-allowed;
    border-color: #27243c;
    transform: none !important;
}

/* ヘッダー (極薄ガラスの滑らかな境界) */
.main-header {
    background: rgba(7, 6, 18, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-title {
    display: flex;
    flex-direction: column;
}
.brand-title .sub {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--neon-pink);
    letter-spacing: 0.35em;
    text-shadow: var(--neon-pink-glow);
    text-transform: uppercase;
}
.brand-title .main {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.18em;
    text-shadow: 0 0 6px rgba(255, 158, 187, 0.2);
}

/* メインコンテンツ ＆ セクション共通 */
.section {
    padding: 50px 0;
}

/* クラファンメーター */
.progress-card {
    border-color: rgba(255, 255, 255, 0.08);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-text);
    letter-spacing: 0.1em;
}
.progress-header .update-time {
    font-family: var(--font-primary);
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.progress-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 24px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-label {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.detail-value {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}
.detail-value small {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    margin-left: 2px;
}

/* 進捗バー (桜金グラデーション＆パルスアニメーション) */
.meter-container {
    position: relative;
    margin-bottom: 28px;
}

.meter-track {
    background: rgba(7, 6, 18, 0.6);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

.meter-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-pink) 0%, var(--neon-gold) 100%);
    box-shadow: 0 0 10px rgba(255, 158, 187, 0.4);
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.3, 1);
    position: relative;
}

/* バー内の光が走るパルスエフェクト */
.meter-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: bar-pulse 2.5s infinite linear;
}

@keyframes bar-pulse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.meter-percentage {
    position: absolute;
    right: 0;
    top: -24px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 850;
    color: var(--color-text);
    text-shadow: var(--neon-gold-glow);
}

/* NOW ON AIR (上映中) */
.onair-card {
    border-color: rgba(255, 158, 187, 0.25);
    box-shadow: 0 10px 45px rgba(255, 158, 187, 0.08), 0 5px 15px rgba(255, 255, 255, 0.02);
}

/* カードの角装飾を桜ピンクに */
.onair-card::before, .onair-card::after {
    background: var(--neon-pink);
}

.onair-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: center;
}

/* アバター額縁 (正方形・角丸額縁) */
.onair-avatar-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 8px; /* 正方形・角丸 */
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 158, 187, 0.25), inset 0 0 15px rgba(255, 255, 255, 0.05);
    
    /* 満月と桜のグラデーション背景 */
    background: radial-gradient(circle, rgba(255, 209, 102, 0.12) 0%, rgba(18, 14, 36, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.onair-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 0 10px rgba(255, 158, 187, 0.3)); /* 桜色の発光 */
}

.onair-avatar-fallback {
    font-size: 3rem;
    color: var(--color-text-muted);
}

.onair-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(7, 6, 18, 0.6);
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 0.08em;
    box-shadow: var(--neon-pink-glow);
}

.onair-details h3 {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: 0.1em;
    text-shadow: 0 0 6px rgba(255, 158, 187, 0.2);
}

.onair-time {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--neon-gold);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: var(--neon-gold-glow);
}

.onair-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

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

/* YouTubeプレイヤー */
.onair-player-container {
    margin-top: 28px;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.onair-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 次の配信者プレビュー */
.next-singer-preview {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.next-singer-preview strong {
    color: var(--neon-gold);
    font-family: var(--font-serif);
    text-shadow: var(--neon-gold-glow);
}

/* タイムライン (月光演目日程表) */
.timeline {
    position: relative;
    margin: 40px auto 0;
    padding-left: 35px;
}

/* タイムラインの縦接続線は廃止 (ドットと時間だけでスッキリ見せる) */
.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* タイムラインの接続点 (月光の満ち欠け・ルナフェーズ) */
.timeline-dot {
    position: absolute;
    left: -27px;
    top: 19px;
    width: 8px;
    height: 8px;
    background: transparent;
    border-radius: 50%;
    z-index: 1;
    transition: all var(--transition-speed) ease;
}

.timeline-time {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-muted);
    padding-top: 8px;
}

.timeline-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    position: relative;
}

.timeline-singer-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* スケジュールアバター (大きく見やすく) */
.timeline-singer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px; /* 角丸正方形 */
    background: #141424;
    border: 1px solid rgba(255, 158, 187, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-text-muted);
    overflow: hidden;
    flex-shrink: 0;
}

.timeline-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.timeline-singer-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.timeline-singer-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.timeline-singer-status {
    line-height: 1;
}

/* 状態ごとのタイムラインスタイル */

/* 1. 配信終了 (新月・影の月) */
.timeline-item.past .timeline-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(157, 162, 192, 0.25);
    box-shadow: none;
    left: -27px;
    top: 19px;
}
.timeline-item.past .timeline-card {
    opacity: 0.4;
    border-color: rgba(255, 255, 255, 0.03);
    background: rgba(12, 12, 24, 0.2);
}
.timeline-item.past .timeline-singer-avatar {
    border-color: #3c3b47;
}
.timeline-item.past .timeline-singer-name {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

/* 2. 配信中 (満月・輝く桜ピンク) */
.timeline-item.active::before {
    display: none; /* 縦線廃止 */
}

.timeline-item.active .timeline-dot {
    background: var(--neon-pink);
    border: 1px solid #fff;
    box-shadow: 0 0 15px var(--neon-pink), 0 0 25px rgba(255, 158, 187, 0.4);
    width: 14px;
    height: 14px;
    left: -30px;
    top: 16px;
    animation: active-pulse 1.8s infinite ease-in-out;
}

@keyframes active-pulse {
    0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 10px var(--neon-pink); }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 22px var(--neon-pink), 0 0 35px rgba(255, 158, 187, 0.6); }
    100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 10px var(--neon-pink); }
}

.timeline-item.active .timeline-card {
    background: rgba(255, 158, 187, 0.06);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 158, 187, 0.1), inset 0 0 10px rgba(255, 158, 187, 0.02);
}
.timeline-item.active .timeline-time {
    color: var(--neon-pink);
    text-shadow: var(--neon-pink-glow);
    font-weight: 800;
    position: relative;
    display: inline-block;
}
.timeline-item.active .timeline-time::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-gold) 0%, var(--neon-pink) 100%);
    box-shadow: 0 0 6px var(--neon-pink);
    border-radius: 1px;
}
.timeline-item.active .timeline-singer-avatar {
    border-color: var(--neon-pink);
    box-shadow: 0 0 8px rgba(255, 158, 187, 0.3);
}

/* 3. これから (三日月・月光ゴールド) */
.timeline-item.future .timeline-dot {
    width: 10px;
    height: 10px;
    background: transparent;
    border: none;
    border-radius: 50%;
    box-shadow: -3px 3px 0 0 var(--neon-gold), -3px 3px 10px rgba(255, 209, 102, 0.4);
    transform: rotate(-20deg);
    left: -28px;
    top: 18px;
}
.timeline-item.future .timeline-time {
    color: var(--color-text-muted);
}

/* フッター */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 35px 0;
    margin-top: 70px;
    background: #04030a;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}
.footer-links {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--transition-speed);
}
.footer-links a:hover {
    color: var(--neon-gold);
    text-shadow: var(--neon-gold-glow);
}
.copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* 特別イベント（開会式・閉会式など）のアバター特別装飾 */
.timeline-singer-avatar.special-event,
.onair-avatar-wrapper.special-event {
    background: radial-gradient(circle, var(--neon-gold) 0%, rgba(18, 14, 36, 0.95) 100%) !important;
    border: 2px solid var(--neon-gold) !important;
    box-shadow: 0 0 15px rgba(255, 209, 102, 0.4), inset 0 0 10px rgba(255, 209, 102, 0.1) !important;
    color: var(--neon-gold) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.timeline-singer-avatar.special-event > i,
.onair-avatar-wrapper.special-event .onair-avatar-fallback > i {
    color: var(--neon-gold) !important;
    text-shadow: var(--neon-gold-glow) !important;
    font-size: 1.8rem;
}

.onair-avatar-wrapper.special-event .onair-avatar-fallback > i {
    font-size: 3.5rem;
}

@media (max-width: 768px) {
    .timeline-singer-avatar.special-event i {
        font-size: 1.4rem;
    }
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: 0.06em;
}
.badge-danger {
    background: var(--neon-pink);
    color: #070612;
    box-shadow: var(--neon-pink-glow);
}
.badge-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.badge-outline-cyan {
    background: transparent;
    border: 1px solid var(--neon-gold);
    color: var(--neon-gold);
    text-shadow: var(--neon-gold-glow);
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.blink {
    animation: blink 1.6s infinite ease-in-out;
}

/* ローディング・スピナー */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 45px 0;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}
.loading-spinner i {
    font-size: 2.2rem;
    color: var(--neon-gold);
    text-shadow: var(--neon-gold-glow);
}

/* ==========================================================================
   デバッグテストパネル (夜空ダーク調)
   ========================================================================== */
.debug-panel {
    display: none; /* デフォルト非表示。JSのデバッグ条件を満たした場合のみ表示 */
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 700px;
    background: rgba(10, 8, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 158, 187, 0.1);
    z-index: 9999;
    padding: 16px 20px;
    transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
    color: #fff;
}

.debug-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-gold), var(--neon-pink));
}

.debug-panel.closed {
    transform: translate(-50%, calc(100% - 35px));
}

.debug-toggle-btn {
    position: absolute;
    top: -32px;
    right: 20px;
    background: var(--neon-gold);
    color: #070612;
    border: none;
    padding: 6px 14px;
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 0.78rem;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    box-shadow: 0 -2px 10px rgba(255, 209, 102, 0.2);
}

.debug-content h4 {
    margin-bottom: 8px;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--neon-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: var(--neon-gold-glow);
}

.debug-content p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.debug-time-display {
    background: rgba(255, 209, 102, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    border-left: 3px solid var(--neon-pink);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.debug-time-display span {
    font-weight: 800;
    color: var(--neon-gold);
    text-shadow: var(--neon-gold-glow);
}

.debug-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 8px;
}

.btn-debug {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-debug:hover {
    background: rgba(255, 209, 102, 0.08);
    color: var(--neon-gold);
    border-color: var(--neon-gold);
}
.btn-debug.active {
    background: var(--neon-gold);
    color: #070612;
    font-weight: 900;
    border-color: var(--neon-gold);
    box-shadow: var(--neon-gold-glow);
}

/* ==========================================================================
   レスポンシブ対応 (メディアクエリ)
   ========================================================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
        padding-bottom: 12px;
        letter-spacing: 0.15em;
    }

    .header-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .btn-header-cta {
        width: 100%;
    }

    /* 0. 支援状況メーター（リアルタイム）のスマホ最適化 (1列+2列の2段構造) */
    .progress-details {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .progress-details .detail-item:first-child {
        grid-column: span 2;
        padding: 16px 12px;
    }
    
    .progress-details .detail-item:first-child .detail-value {
        font-size: 1.7rem;
    }

    /* 1. NOW ON AIR (ただいまの配信) エリアのスマホ最適化 */
    .onair-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .onair-avatar-wrapper {
        margin: 0 auto;
    }

    .onair-details h3 {
        font-size: 1.6rem;
    }

    .onair-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .onair-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 0.92rem;
    }

    /* 2. タイムライン (番組日程表) のスマホ最適化 */
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-dot {
        left: -27px;
        top: 14px;
    }
    
    /* 満月のスマホ配置調整 */
    .timeline-item.active .timeline-dot {
        left: -30px;
        top: 11px;
    }

    /* 三日月のスマホ配置調整 */
    .timeline-item.future .timeline-dot {
        left: -28px;
        top: 13px;
    }
    
    .timeline-time {
        padding-top: 4px;
        padding-left: 20px;
        font-size: 1.05rem;
    }
    
    /* タイムラインカードの横並び（1行）最適化 */
    .timeline-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
    }
    
    /* アバターと名前のエリア */
    .timeline-singer-info {
        width: auto;
        flex: 1;
        gap: 10px;
    }
    
    /* スマホ用にアバターを一回りコンパクトにし、正方形・角丸化 */
    .timeline-singer-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        border-radius: 6px;
    }
    
    /* アバターサイズに名前とバッジを合わせる */
    .timeline-singer-meta {
        height: 56px;
        justify-content: center;
        gap: 4px;
    }

    .timeline-singer-name {
        font-size: 1.05rem;
    }

    /* アクションボタンをスリムにして1行で収める */
    .timeline-action {
        width: auto;
        flex-shrink: 0;
    }
    
    .timeline-action .btn {
        width: auto;
        justify-content: center;
        padding: 6px 12px;
        font-size: 0.8rem;
        letter-spacing: 0.05em;
        border-radius: 4px;
    }
    
    .timeline-item.active::before {
        display: none;
    }
}
