/* ============================================
   フレンのうた - メインCSS
   ============================================ */

/* CSS変数（ライトモード） */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e8e8e8;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #dddddd;
    --accent-color: #EC1D2F;
    --accent-hover: #c41927;
    --highlight-bg: #fff0f0;
    --highlight-border: #EC1D2F;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --modal-bg: rgba(0, 0, 0, 0.5);
    --navbar-bg: #ffffff;
    --tab-bg: #f0f0f0;
    --tab-active-bg: #EC1D2F;
    --tab-active-text: #ffffff;
    --song-item-hover: #fff5f5;
    --song-selected-bg: #fff0f0;
    --song-selected-border: #EC1D2F;
    --counter-label: #666666;
    --counter-number: #333333;
    --counter-icon: #EC1D2F;
    --suggestion-tag-bg: #f0f0f0;
    --suggestion-tag-hover: #d0d0d0;
    --suggestion-tag-text: #555555;
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #ffe0e3;
    --bg-radial-1-position: 20% 20%;
    --bg-radial-1-color: rgba(255, 245, 247, 0.9);
    --bg-radial-1-transparent: 50%;
    --bg-radial-2-position: 80% 80%;
    --bg-radial-2-color: rgba(250, 218, 221, 0.7);
    --bg-radial-2-transparent: 55%;
    --bg-linear-1: #FFF5F7;
    --bg-linear-2: #FDF2F4;
    --bg-linear-3: #FCE4E8;
    --bg-linear-4: #FADADD;
}

/* ダークモード */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #3a3a3a;
    --text-primary: #e4e4e4;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #444444;
    --accent-color: #EC1D2F;
    --accent-hover: #ff3344;
    --highlight-bg: #2a1515;
    --highlight-border: #EC1D2F;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --modal-bg: rgba(0, 0, 0, 0.7);
    --navbar-bg: #2a2a2a;
    --tab-bg: #3a3a3a;
    --tab-active-bg: #EC1D2F;
    --tab-active-text: #ffffff;
    --song-item-hover: #2a1a1a;
    --song-selected-bg: #2a1515;
    --song-selected-border: #EC1D2F;
    --counter-label: #aaaaaa;
    --counter-number: #e4e4e4;
    --counter-icon: #EC1D2F;
    --suggestion-tag-bg: #3a3a3a;
    --suggestion-tag-hover: #4a4a4a;
    --suggestion-tag-text: #b0b0b0;
    --bg-gradient-start: #1a1a1a;
    --bg-gradient-end: #3a1518;
    --bg-radial-1-position: 20% 20%;
    --bg-radial-1-color: rgba(60, 20, 25, 0.8);
    --bg-radial-1-transparent: 50%;
    --bg-radial-2-position: 80% 80%;
    --bg-radial-2-color: rgba(58, 21, 24, 0.6);
    --bg-radial-2-transparent: 55%;
    --bg-linear-1: #1a1a1a;
    --bg-linear-2: #201015;
    --bg-linear-3: #2a1518;
    --bg-linear-4: #3a1518;
}

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

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    background:
        radial-gradient(
            ellipse at var(--bg-radial-1-position),
            var(--bg-radial-1-color) 0%,
            transparent var(--bg-radial-1-transparent)
        ),
        radial-gradient(
            ellipse at var(--bg-radial-2-position),
            var(--bg-radial-2-color) 0%,
            transparent var(--bg-radial-2-transparent)
        ),
        linear-gradient(
            145deg,
            var(--bg-linear-1) 0%,
            var(--bg-linear-2) 30%,
            var(--bg-linear-3) 60%,
            var(--bg-linear-4) 100%
        );
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
   スプラッシュ画面
   ============================================ */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;
}

.splash-container {
    width: 400px;
    max-width: 90%;
}

.splash-logo {
    width: 100%;
    height: auto;
}

/* ============================================
   ナビバー
   ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 224, 227, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.navbar-logo img {
    height: 32px;
    width: 32px;
}

.navbar-logo h1 {
    font-size: 1.2rem;
    font-weight: bold;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.navbar-icon-btn:hover {
    color: var(--accent-color);
}

/* テーマ切替スイッチ */
.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.theme-switch i {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ライトモード有効時（デフォルト）は太陽アイコンをオレンジに */
#icon-light {
    color: #ff8c00;
}

/* ダークモード有効時は月アイコンをゴールドに、太陽アイコンは色を消す */
[data-theme="dark"] #icon-light {
    color: var(--text-secondary);
}

[data-theme="dark"] #icon-dark {
    color: #ffd700;
}

.theme-switch input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 20px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

.theme-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.theme-switch input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

.theme-switch input[type="checkbox"]:checked {
    background-color: var(--accent-color);
}

.switch-label {
    display: none;
}

/* カウントダウン */
.navbar-countdown {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.counter-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.counter-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.counter-icon {
    font-size: 1.2rem;
    color: var(--counter-icon);
}

.counter-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    line-height: 1.2;
}

.counter-label {
    font-size: 0.7rem;
    color: var(--counter-label);
}

.counter-number {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--counter-number);
    line-height: 1;
}

.counter-unit {
    font-size: 0.7rem;
    color: var(--counter-label);
}

/* ============================================
   メインコンテナ
   ============================================ */
.main-container {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* ============================================
   プレイヤーエリア
   ============================================ */
.player-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* カテゴリタブ */
.category-tabs {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-item {
    padding: 0.5rem 0.5rem;
    margin-bottom: -3px;
    background-color: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-item:hover {
    color: #2196F3;
}

.tab-item.active {
    border-bottom: 3px solid #000000;
    font-weight: bold;
}

.tab-item.search-hit {
    background-color: #7ec8f3;
    color: #000000;
    border-radius: 20px;
    margin-bottom: 0;
    border-bottom: 3px solid transparent;
}

.tab-item.search-hit.active {
    background-color: #7ec8f3;
    color: #000000;
    border-bottom: 3px solid #000000;
}

/* YouTubeプレイヤー */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-container > #player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Twitterプレイヤー */
.tweet-container {
    width: 100%;
    min-height: 200px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* プレイヤーコントロール */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.control-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease;
}

.control-btn:hover {
    opacity: 0.7;
}

.control-btn img {
    height: 48px;
    width: 48px;
}

.control-btn i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* シークバー */
.seek-bar-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
}

.seek-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
    min-width: 40px;
    text-align: center;
}

.seek-bar {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.seek-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.seek-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.seek-bar::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* シークボタン（10秒戻る/進む） */
.seek-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    min-width: 40px;
    min-height: 32px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-primary);
}

.seek-btn:hover {
    background: var(--bg-tertiary);
}


/* ============================================
   曲リストエリア
   ============================================ */
.song-list-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 検索バー */
.search-bar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-settings-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.search-settings-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-color);
}

.search-settings-btn.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-muted);
}

#searchInput {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

#searchInput:focus {
    border-color: var(--accent-color);
}

.clear-search-btn {
    position: absolute;
    right: 60px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    font-size: 1rem;
}

.clear-search-btn:hover {
    color: var(--text-primary);
}

/* 候補タグ */
.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

.suggestion-tags.hidden {
    display: none;
}

.suggestion-tag {
    padding: 0.25rem 0.75rem;
    background-color: var(--suggestion-tag-bg);
    border-radius: 20px;
    color: var(--suggestion-tag-text);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-tag:hover {
    background-color: var(--suggestion-tag-hover);
}

/* 曲リストコンテナ */
.song-list-container {
    flex: 1;
    min-height: 250px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
}

.song-list {
    padding: 0;
}

.song-item {
    display: flex;
    align-items: center;
    padding: 0.15rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.song-item:last-child {
    border-bottom: none;
}

.song-item:hover {
    background-color: var(--song-item-hover);
}

.song-item.selected {
    background-color: var(--song-selected-bg);
    border-left: 3px solid var(--song-selected-border);
}

.song-item.hidden {
    display: none;
}

.song-thumb {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.song-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.song-separator {
    font-size: 0.8rem;
    color: var(--text-muted);
    user-select: none;
    flex-shrink: 0;
}

.song-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Twitterツイートアイテム */
.tweet-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tweet-item:last-child {
    border-bottom: none;
}

.tweet-item:hover {
    background-color: var(--song-item-hover);
}

.tweet-item.selected {
    background-color: var(--song-selected-bg);
    border-left: 3px solid var(--song-selected-border);
}

.tweet-item.hidden {
    display: none;
}

.tweet-info {
    flex: 1;
    min-width: 0;
}

.tweet-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 検索結果なしメッセージ */
#noResultsMessage {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   暗転オーバーレイ
   ============================================ */
#blackout {
    position: fixed;
    inset: 0;
    background: #000;
    opacity: 1;
    z-index: 99999;
    pointer-events: auto;
    touch-action: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: white;
}

#blackout-exit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    z-index: 100000;
}

#blackout label {
    font-size: 0.9rem;
    text-align: center;
}

#myTimer {
    width: 100%;
    max-width: 300px;
}

#slider-remaining-text {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: monospace;
}

#blackout .buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

#blackout .button {
    padding: 0.5rem 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#blackout .button:hover {
    background-color: #555;
}

/* ============================================
   モーダル
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--modal-bg);
}

.modal-background {
    position: absolute;
    inset: 0;
}

.modal-card {
    position: relative;
    background-color: var(--bg-primary);
    border-radius: 8px;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px var(--shadow-color);
    z-index: 1;
}

.modal-card-body {
    padding: 1.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.25rem;
}

.close-btn:hover {
    color: var(--accent-color);
}

.modal-card-image {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    height: auto;
}

.modal-card-image img {
    height: auto;
    max-width: 100%;
}

.modal-card .content {
    font-size: 0.9rem;
    line-height: 1.8;
}

.modal-card .content h2 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-card .content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-card .content li {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.modal-card .content a {
    color: var(--accent-color);
    text-decoration: none;
}

.modal-card .content a:hover {
    text-decoration: underline;
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.modal-close-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-close-btn:hover {
    background-color: var(--accent-hover-color, #d4567a);
}

/* テーブル */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    text-align: left;
    font-size: 0.8rem;
}

.table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.table td {
    color: var(--text-secondary);
}

.table.is-striped tbody tr:nth-child(odd) {
    background-color: var(--bg-secondary);
}

.has-text-right {
    text-align: right;
}

.has-text-grey-light {
    color: var(--text-muted);
}

.is-size-7 {
    font-size: 0.7rem;
}

/* ============================================
   スクロールトップボタン
   ============================================ */
.scroll-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.scroll-button:hover {
    opacity: 1;
}

/* ダークモード用ナビバー */
[data-theme="dark"] .navbar {
    background-color: rgba(58, 21, 24, 0.9);
}

/* ============================================
   レスポンシブ対応
   ============================================ */

/* モバイル（768px以下） */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .player-area,
    .song-list-area {
        flex: 0 0 100%;
    }

    .navbar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .navbar-brand {
        width: 100%;
        justify-content: space-between;
    }

    /* ナビバーのカウンターをモバイルでは非表示 */
    .navbar-countdown.desktop-only {
        display: none !important;
    }

    .navbar-countdown {
        width: 100%;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .counter-box {
        padding: 0.25rem 0.5rem;
    }

    .counter-label {
        font-size: 0.6rem;
    }

    .counter-number {
        font-size: 0.8rem;
    }

    .counter-unit {
        font-size: 0.6rem;
    }

    .category-tabs {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .tab-btn {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }

    .tab-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .song-list-container {
        max-height: calc(100vh - 300px);
    }

    .song-thumb {
        width: 80px;
        height: 45px;
    }

    .modal-card {
        max-width: 95%;
        max-height: 90vh;
    }

    .splash-container {
        width: 300px;
    }

    /* モーダル内カウンターをモバイルでのみ表示 */
    .modal-counters {
        display: flex !important;
        justify-content: space-around;
        flex-wrap: wrap;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }
}

/* モーダル内カウンター（デフォルト非表示） */
.modal-counters {
    display: none;
}

/* PC（1024px以上） */
@media (min-width: 1024px) {
    .video-container {
        height: 360px;
        padding-bottom: 0;
    }

    .video-container > #player {
        height: 360px;
    }
}

/* ============================================
   スクロールバーカスタマイズ
   ============================================ */
.song-list-container::-webkit-scrollbar {
    width: 8px;
}

.song-list-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.song-list-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.song-list-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}

/* ============================================
   アニメーション
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* ============================================
   ユーティリティクラス
   ============================================ */

/* テキスト揃え */
.has-text-right {
    text-align: right;
}

/* テキスト色 */
.has-text-white {
    color: #ffffff !important;
}

.has-text-success {
    color: #23d160;
}

.has-text-danger {
    color: #ff3860;
}

/* 背景色 */
.has-background-danger {
    background-color: #ff3860;
}

.has-background-info {
    background-color: #3e8ed0;
}

/* ============================================
   リンクモーダル
   ============================================ */

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0.5rem;
}

.links-column {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.links-column-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-primary);
    padding: 0.375rem 0.5rem;
    margin-bottom: 0;
    border-bottom: 2px solid var(--accent-color);
}

.links-item {
    display: block;
    padding: 0.375rem 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.links-item:hover {
    background-color: var(--highlight-bg);
    color: var(--accent-color);
    text-decoration: none;
}

.links-item i {
    margin-right: 0.25rem;
    width: 16px;
    text-align: center;
}

.links-content p {
    margin: 0;
    line-height: 1.3;
}

.links-content small {
    display: block;
    margin-bottom: 0.1rem;
}

/* モバイル対応 */
@media (max-width: 1024px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
}
