        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            /* タップ時のズーム防止 */
            touch-action: manipulation;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Yu Gothic', sans-serif;
            background: #000000;
            height: 100vh;
            color: #fff;
            overflow: hidden;
            position: relative;
            -webkit-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
            /* 全体的なズームを防ぐ */
            touch-action: pan-y;
        }
        
        .container {
            max-width: 500px;
            margin: 0 auto;
            height: calc(100vh - 45px);
            display: flex;
            flex-direction: column;
            padding: 10px 10px 0 10px;
        }
        
        /* ヘッダー */
        .header {
            flex-shrink: 0;
            height: 45px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }
        
        .logo {
            height: 36px;
        }
        
        .logo img {
            height: 100%;
            width: auto;
            object-fit: contain;
        }
        
        .settings-btn {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.5);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
            /* ボタンのズーム防止 */
            touch-action: manipulation;
        }
        
        .settings-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }
        
/* CM広告エリア */
.cm-container {
    flex-shrink: 0;
    min-height: 50px;
    height: auto;
    max-height: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 6px 10px;  /* padding: 0 10px から変更 - 上下パディングを追加 */
}
        
.cm-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    line-height: 1.4;  /* 行間を追加 */
    opacity: 0;
    transform: translateY(10px);
    position: absolute;
    width: calc(100% - 20px);
    display: flex;      /* flexboxに変更 */
    align-items: center;  /* 垂直中央揃え */
    flex-wrap: wrap;    /* 長いテキストは折り返し */
    line-height: 17px;
    
}
        
        .cm-text.active {
            animation: fadeInOut 6s;
        }
        
        
        /* CM広告エリアのリンクスタイル */
.cm-text a {
    color: #10b981;  /* エメラルドグリーン - 黒背景で見やすく目立つ */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 1px;
}

.cm-text a:hover {
    color: #34d399;  /* ホバー時に明るくなる */
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);  /* 光る演出 */
}

/* リンクの下線アニメーション */
.cm-text a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.3s ease;
}

.cm-text a:hover::after {
    width: 100%;
}

/* クリック時のアニメーション */
.cm-text a:active {
    transform: scale(0.98);
    color: #6ee7b7;
}

/* 訪問済みリンクの色 */
.cm-text a:visited {
    color: #059669;  /* 少し暗めの緑 */
}

.cm-text a:visited:hover {
    color: #10b981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}
        
        

        
.cm-label {
    background: rgba(139, 92, 246, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    font-size: 8px;
    font-weight: 600;
    margin-right: 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    white-space: nowrap;  /* ラベルは改行しない */
    flex-shrink: 0;       /* ラベルは縮小しない */
}

/* 作者名のスタイル */
.cm-author {
    font-size: 9px;
    opacity: 0.7;
    margin-left: 8px;
    font-style: italic;  /* イタリック体で区別 */
    white-space: nowrap;
}

        
/* 通常のフェードアニメーション（6秒） */
@keyframes fadeInOut {
    0% { 
        opacity: 0;
        transform: translateY(10px);
    }
    15% { 
        opacity: 1;
        transform: translateY(0);
    }
    85% { 
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 短歌用の長いアニメーション（20秒） */
@keyframes fadeInOutLong {
    0% { 
        opacity: 0;
        transform: translateY(10px);
    }
    5% {  /* 1秒でフェードイン */
        opacity: 1;
        transform: translateY(0);
    }
    95% {  /* 19秒まで表示維持 */
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 短歌用のクラス */
.cm-text.active.long-display {
    animation: fadeInOutLong 20s;
}
        
        /* メインコンテンツエリア */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-height: 0;
            margin-bottom: 0;
            padding-bottom: 6px;
        }
        
        /* お知らせセクション */
        .notice-section {
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 8px 10px;
        }
        
        .notice-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }
        
        .notice-title {
            font-size: 9px;
            font-weight: 500;
            letter-spacing: 1.5px;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
        }
        
        .notice-more {
            font-size: 10px;
            color: rgba(139, 92, 246, 0.8);
            text-decoration: none;
            transition: all 0.2s;
        }
        
        .notice-more:hover {
            color: rgba(139, 92, 246, 1);
            text-decoration: underline;
        }
        
        .notice-content {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.3;
        }
        
        /* みんなの活動フィード */
        .activity-section {
            flex: 1;
            background: rgba(255, 255, 255, 0.02);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 10px;
            display: flex;
            flex-direction: column;
            min-height: 0;
            max-height: 290px;
        }
        
        .activity-header {
            flex-shrink: 0;
            font-size: 9px;
            font-weight: 500;
            letter-spacing: 1.5px;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 6px;
            text-transform: uppercase;
        }
        
        .activity-feed {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            min-height: 0;
            padding-right: 2px;
        }
        
        .activity-feed::-webkit-scrollbar {
            width: 2px;
        }
        
        .activity-feed::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 1px;
        }
        
        .activity-feed::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 1px;
        }
        
        .activity-item {
            background: transparent;
            padding: 6px 8px;
            margin: 4px 0;
            border-radius: 4px;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.6);
            animation: slideIn 0.5s ease-out;
            transition: all 0.2s;
            position: relative;
            padding-left: 20px;
        }
        
        .activity-item::before {
            content: '💭';
            position: absolute;
            left: 4px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 10px;
            opacity: 0.4;
        }
        
        .activity-item:hover {
            background: rgba(255, 255, 255, 0.04);
            color: rgba(255, 255, 255, 0.8);
        }
        
        .activity-item.win {
            background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, transparent 100%);
            color: rgba(16, 185, 129, 0.9);
        }
        
        .activity-item.win::before {
            content: '🎯';
            opacity: 0.8;
        }
        
        .activity-item.special {
            background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, transparent 100%);
            color: rgba(139, 92, 246, 0.9);
        }
        
        .activity-item.special::before {
            content: '📢';
            opacity: 0.8;
        }
        
        .activity-item.mood::before {
            content: '😖';
            opacity: 0.8;
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        /* くじ引きエリア */
        .lottery-section {
            flex-shrink: 0;
            padding: 12px 0;
            text-align: center;
            position: relative;
        }
        
        .lottery-btn {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: rgba(255, 255, 255, 0.8);
            padding: 12px 36px;
            font-size: 13px;
            font-weight: 300;
            letter-spacing: 1.5px;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-block;
            position: relative;
            overflow: hidden;
            /* ボタンのズーム防止 */
            touch-action: manipulation;
        }
        
        .lottery-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
            transform: scale(1.05);
        }
        
        .lottery-btn:active {
            transform: scale(0.95);
        }
        
        .lottery-btn.bonus {
            background: rgba(16, 185, 129, 0.15);
            border-color: rgba(16, 185, 129, 0.4);
            color: rgba(16, 185, 129, 1);
            animation: pulse 2s infinite;
        }
        
        .lottery-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        
        /* くじボタンのアニメーション */
        .lottery-emoji-burst {
            position: absolute;
            font-size: 24px;
            animation: burstOut 0.8s ease-out forwards;
            pointer-events: none;
            z-index: 100;
        }
        
        
        /* くじ引きステータスのアニメーション */
.lottery-status.can-draw {
    animation: statusPulse 1.5s ease-in-out infinite;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}
        
        
        @keyframes burstOut {
            0% {
                transform: translate(-50%, -50%) scale(0) rotate(0deg);
                opacity: 1;
            }
            50% {
                opacity: 1;
            }
            100% {
                transform: translate(
                    calc(-50% + var(--x)), 
                    calc(-50% + var(--y))
                ) scale(1.5) rotate(var(--rotate));
                opacity: 0;
            }
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        
        .lottery-status {
            margin-top: 8px;
            font-size: 10px;
            color: rgba(255, 255, 255, 0.4);
            letter-spacing: 0.5px;
        }
        
        .lottery-timer {
            font-size: 14px;
            color: rgba(139, 92, 246, 0.9);
            font-weight: 500;
            margin-top: 4px;
        }
        
        /* フッター広告 */
        .footer-ad {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 45px;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 50;
        }
        

        /* リアクションボタン */
        .reaction-buttons {
            position: fixed;
            bottom: 64px;
            right: 15px;
            display: flex;
            gap: 6px;
            z-index: 100;
        }
        
        .reaction-btn {
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            width: 34px;
            height: 34px;
            border-radius: 50%;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.2s;
            /* リアクションボタンのズーム防止 */
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .reaction-btn:hover {
            transform: scale(1.15);
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        .reaction-btn:active {
            transform: scale(0.9);
        }
        
        /* フローティングリアクション */
        .floating-reactions {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 500;
        }
        
        .floating-emoji {
            position: absolute;
            font-size: 24px;
            animation: floatUp 3s ease-out forwards;
            pointer-events: none;
        }
        
        @keyframes floatUp {
            0% {
                opacity: 0;
                transform: translateY(100vh) scale(0.5);
            }
            20% {
                opacity: 1;
                transform: translateY(80vh) scale(1);
            }
            100% {
                opacity: 0;
                transform: translateY(-50px) scale(0.8) translateX(var(--drift));
            }
        }
        
        /* 設定モーダル */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
        }
        
        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s;
        }
        
        .modal-content {
            background: rgba(15, 15, 15, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 90%;
            max-width: 350px;
            border-radius: 16px;
            padding: 24px;
            animation: slideUp 0.3s ease-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        .modal-header {
            font-size: 12px;
            font-weight: 300;
            letter-spacing: 2px;
            margin-bottom: 20px;
            color: rgba(255, 255, 255, 0.8);
            text-transform: uppercase;
        }
        
        .modal-close {
            float: right;
            font-size: 18px;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.4);
            transition: color 0.2s;
            /* クローズボタンのズーム防止 */
            touch-action: manipulation;
        }
        
        .modal-close:hover {
            color: rgba(255, 255, 255, 0.7);
        }
        
        .setting-item {
            margin: 20px 0;
        }
        
        .setting-item label {
            display: block;
            margin-bottom: 8px;
            font-size: 9px;
            font-weight: 400;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
        }
        
        .setting-item input {
            width: 100%;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 6px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.9);
            transition: all 0.2s;
        }
        
        .setting-item input:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        .save-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: rgba(255, 255, 255, 0.7);
            padding: 10px 24px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 300;
            letter-spacing: 1.5px;
            cursor: pointer;
            margin-top: 16px;
            width: 100%;
            transition: all 0.2s;
            text-transform: uppercase;
            /* 保存ボタンのズーム防止 */
            touch-action: manipulation;
        }
        
        .save-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.25);
        }
        
        /* くじ引きモーダル */
        .lottery-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
        }
        
        .lottery-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s;
        }
        
        .lottery-modal-content {
            background: rgba(15, 15, 15, 0.98);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            width: 90%;
            max-width: 400px;
            border-radius: 16px;
            padding: 20px;
            animation: slideUp 0.3s ease-out;
            text-align: center;
        }
        
        /* ハズレ画面 */
        .lose-title {
            font-size: 20px;
            color: rgba(255, 255, 255, 0.6);
            margin: 20px 0;
        }
        
        .lose-emoji {
            font-size: 48px;
            margin: 20px 0;
        }
        
        .lottery-ad {
            width: 100%;
            max-width: 320px;
            height: 250px;
            background: rgba(255, 255, 255, 0.05);
            margin: 20px auto;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.3);
            letter-spacing: 1px;
        }
        
        .close-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: rgba(255, 255, 255, 0.7);
            padding: 10px 28px;
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            margin: 15px auto;
            transition: all 0.2s;
            /* 閉じるボタンのズーム防止 */
            touch-action: manipulation;
        }
        
        .close-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        
        .interview-prompt {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 20px 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}



/* 動画コンテナ */
#videoContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    position: relative;
}

#lotteryVideo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}


/* 当選結果のスタイル */
#winResult {
    text-align: center;
    padding: 20px;
    animation: winAnimation 0.5s ease-out;
}

@keyframes winAnimation {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#winAmount {
    color: #10b981;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(16, 185, 129, 0.8),
                     0 0 40px rgba(16, 185, 129, 0.6);
    }
}

#winIdDisplay {
    font-family: 'Courier New', monospace;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ハズレ結果のアニメーション */
#loseResult {
    animation: loseAnimation 0.5s ease-out;
}

@keyframes loseAnimation {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 閉じるボタンのアニメーション */
#lotteryCloseBtn {
    animation: fadeIn 0.5s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 申請ボタンのスタイル */
#applyButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

#applyButton:active {
    transform: translateY(0);
}

/* モーダル表示中は背景スクロール無効 */
body.modal-open {
    overflow: hidden;
}

/* 動画読み込み中の表示 */
#videoContainer.loading::before {
    content: '読み込み中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}


/* 当選履歴のスタイル */
.win-history-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-title {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.history-stats {
    font-size: 10px;
    color: rgba(16, 185, 129, 0.8);
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.history-list::-webkit-scrollbar {
    width: 2px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    position: relative;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.history-date {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.history-amount {
    font-size: 14px;
    color: rgba(16, 185, 129, 0.9);
    font-weight: 500;
    margin-bottom: 4px;
}

.history-id-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.history-id {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
    letter-spacing: 0.5px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: rgba(139, 92, 246, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: rgba(16, 185, 129, 1);
}

.history-empty {
    text-align: center;
    padding: 30px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.history-loading {
    text-align: center;
    padding: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}



/* ===== 音楽プレーヤー用スタイル ===== */

/* 音楽ボタン（ヘッダー） */
.music-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    margin-right: 8px;
}

.music-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: scale(1.1);
}

/* 音楽モーダルコンテンツ */
.music-modal-content {
    max-width: 450px;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.98), rgba(10, 10, 15, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.music-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* 音楽プレーヤー本体 */
.music-player {
    padding: 0;
}

/* 現在再生中の曲情報 */
.now-playing {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.album-art {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.album-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(16, 185, 129, 0.3));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-note {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.track-info {
    flex: 1;
}

.track-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    font-weight: 500;
}

.track-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* プレーヤーコントロール */
.player-controls {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* プログレスバー */
.progress-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.time-current, .time-total {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 35px;
}

.time-current {
    text-align: right;
    margin-right: 10px;
}

.time-total {
    margin-left: 10px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.8), rgba(16, 185, 129, 0.8));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

/* コントロールボタン */
.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.play-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.play-btn:hover {
    background: rgba(139, 92, 246, 0.3);
}

/* タブメニュー */
.music-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.music-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.music-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

.music-tab.active {
    color: rgba(139, 92, 246, 0.9);
    background: rgba(139, 92, 246, 0.1);
}

.music-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.8), rgba(16, 185, 129, 0.8));
}

#lyricModal .modal-header {
    text-transform: none;
}

/* プレイリスト */
.playlist-container {
    max-height: 250px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
}

.playlist-header {
    padding: 10px 15px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    background: rgb(27 27 27 / 90%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.playlist {
    padding: 5px 0;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
    background: rgba(139, 92, 246, 0.1);
    border-left-color: rgba(139, 92, 246, 0.8);
}

.playlist-number {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    margin-right: 12px;
    min-width: 20px;
}

.playlist-info {
    flex: 1;
}

.playlist-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.playlist-artist {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.playlist-playing {
    color: rgba(16, 185, 129, 0.8);
    animation: musicPulse 1.5s ease-in-out infinite;
}

/* スクロールバー */
.playlist-container::-webkit-scrollbar {
    width: 4px;
}

.playlist-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.playlist-container::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 2px;
}

/* ヒーリング音楽のサブスク案内 */
.healing-subscription {
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.healing-subscription-title {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.subscription-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.subscription-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s;
}

.subscription-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.subscription-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.subscription-link.tunecore {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: rgba(139, 92, 246, 1);
}

.subscription-link.tunecore:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(16, 185, 129, 0.5));
    border-color: rgba(139, 92, 246, 0.7);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .music-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .playlist-container {
        max-height: 200px;
    }
    
    .subscription-links {
        flex-direction: column;
        align-items: center;
    }
    
    .subscription-link {
        width: 80%;
        justify-content: center;
    }
}



/* モーダル表示中の本体スクロール防止 */
body.modal-active {
    position: fixed;
    width: 100%;
    overflow: hidden;
}



/* ヘルプボタン */
.help-btn {
    background: rgba(139, 92, 246, 0.1);  /* 紫系で目立たせる */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: rgba(139, 92, 246, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    touch-action: manipulation;
    margin-right: 8px;
}

.help-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}