@charset "UTF-8";

/* =========================================
   TimeSync - NIKKO AI Lab Style
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(100, 100, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 100, 150, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(100, 200, 255, 0.03) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(2%, 2%) rotate(1deg);
    }

    50% {
        transform: translate(-1%, 3%) rotate(-1deg);
    }

    75% {
        transform: translate(-2%, 1%) rotate(0.5deg);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #fff;
}

.logo-text {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
}

.logo-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1800px;
    margin: 0 auto;
    padding: 120px 40px 60px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

/* Main Layout */
/* Setup Screen - 縦型レイアウト */
.setup-screen {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.setup-card {
    width: 100%;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    font-size: 18px;
    color: rgba(100, 200, 255, 0.8);
}

/* Sync Screen - 同期モード画面 */
.sync-screen {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    gap: 15px;
}

/* 波形固定エリア（上部に固定表示） */
.sync-wave-fixed {
    flex-shrink: 0;
}

.sync-wave-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

/* エクスポートバー（波形と歌詞の間） */
.export-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-top: 10px;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    gap: 16px;
    flex-wrap: wrap;
}

/* バーグループ共通 */
.bar-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-left {
    flex-shrink: 0;
}

.bar-center {
    flex: 1;
    justify-content: center;
    gap: 20px;
}

.bar-right {
    flex-shrink: 0;
}

/* バーボタン共通 */
.bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.bar-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* 再生ボタン */
.bar-btn-play {
    width: 36px;
    padding: 8px;
    font-size: 14px;
}

/* 書き出しボタンの色分け */
.bar-btn-lrc {
    background: rgba(100, 180, 255, 0.15);
    border-color: rgba(100, 180, 255, 0.3);
    color: rgba(100, 180, 255, 1);
}

.bar-btn-srt {
    background: rgba(255, 180, 100, 0.15);
    border-color: rgba(255, 180, 100, 0.3);
    color: rgba(255, 180, 100, 1);
}

.bar-btn-txt {
    background: rgba(100, 255, 150, 0.15);
    border-color: rgba(100, 255, 150, 0.3);
    color: rgba(100, 255, 150, 1);
}

/* 時間表示 */
.bar-time {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
}

.bar-divider {
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.3);
}

.bar-divider-v {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}

/* ラベル */
.bar-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

/* 設定グループ */
.bar-setting {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 入力フィールド */
.bar-input {
    width: 50px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.bar-input-text {
    width: 150px;
    text-align: left;
}

/* チェックボックス */
.bar-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.bar-checkbox input {
    margin: 0;
}

.bar-hint {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}


/* 文字カウント表示 */
.char-count-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    min-width: 40px;
    flex-shrink: 0;
}

.char-count {
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    text-align: center;
}

.char-count.over-limit {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    font-weight: 600;
}

/* 行の警告表示 */
.lyric-row.char-warning {
    background: rgba(255, 107, 107, 0.08);
    border-left: 3px solid rgba(255, 107, 107, 0.6);
}

/* textareaスタイル調整 */
.text-input {
    flex: 1;
    min-height: 28px;
    resize: none;
    overflow: hidden;
    line-height: 1.8;
    padding: 6px 10px;
}

/* 同期作業カード（スクロール可能） */
.sync-work-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.waveform-container-sync {
    position: relative;
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.lyrics-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.file-upload-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(100, 200, 255, 0.9);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(100, 200, 255, 0.5);
}

.lyrics-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.8;
    resize: none;
    transition: border-color 0.3s;
    height: 200px;
    width: 100%;
}

.lyrics-textarea:focus {
    outline: none;
    border-color: rgba(100, 200, 255, 0.5);
}

.lyrics-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* 音楽ファイル選択ボタン（下部配置） */
.audio-upload-btn-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    margin-top: 15px;
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.audio-upload-btn-bottom:hover {
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%);
    border-color: rgba(100, 200, 255, 0.5);
}

.audio-upload-btn-bottom i {
    font-size: 18px;
}

.start-btn {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Center Panel */
.center-panel {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: calc(100vh - 200px);
}

/* Waveform Container */
.waveform-container {
    position: relative;
    height: 192px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: height 0.3s ease;
    flex-shrink: 0;
}

/* WaveSurferのコンテナ */
.waveform {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* WaveSurferが生成するcanvasのスタイル補正 */
.waveform canvas {
    display: block;
}

.wave-timeline {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
    z-index: 5;
}

/* Hover Guide */
.hover-guide {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 40;
    display: none;
}

.hover-time-label {
    pointer-events: none;
    position: absolute;
    top: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-family: monospace;
    white-space: nowrap;
    z-index: 40;
    display: none;
    transform: translateX(-50%);
}

/* Preview Overlay */
.preview-overlay-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    padding: 20px;
}

.preview-overlay {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1.4;
}

.preview-overlay.visible {
    opacity: 1;
}

/* Waveform Controls */
.waveform-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 20;
}

.waveform-container:hover .waveform-controls,
.waveform-controls.always-visible {
    opacity: 1;
}

.waveform-container:hover .waveform-controls {
    opacity: 1;
}

.height-select {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    cursor: pointer;
}

.height-select option {
    background: #1a1a2e;
    color: #fff;
    padding: 8px;
}

.height-select:focus {
    outline: none;
    border-color: rgba(100, 200, 255, 0.5);
}

.divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 30;
    border-radius: 15px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(100, 200, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 13px;
    color: rgba(100, 200, 255, 0.9);
}

/* Playback Control */
.playback-control {
    position: absolute;
    bottom: 30px;
    left: 15px;
    z-index: 20;
}

.play-btn {
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.8) 0%, rgba(59, 130, 246, 0.9) 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(100, 200, 255, 0.3);
    transition: all 0.3s;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(100, 200, 255, 0.4);
}

.play-btn i {
    margin-left: 2px;
}

/* Audio Upload Button */
.audio-upload-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 20;
}

.audio-upload-btn:hover {
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    border-color: rgba(100, 200, 255, 0.5);
}

/* Sync Workspace */
.sync-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    overflow: hidden;
}

.sync-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

.sync-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(100, 200, 255, 0.9);
    letter-spacing: 1px;
}

.key-hints {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.key-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.key-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 10px;
}

.reset-btn {
    background: transparent;
    border: none;
    color: rgba(239, 68, 68, 0.8);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.reset-btn:hover {
    color: rgba(239, 68, 68, 1);
    text-decoration: underline;
}

/* Lyrics List */
.lyrics-list {
    flex: 1;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 12px 12px;
}

/* Custom Scrollbar */
.lyrics-list::-webkit-scrollbar {
    width: 8px;
}

.lyrics-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.lyrics-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.lyrics-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.empty-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* Lyric Row */
.lyric-row {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.lyric-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.lyric-row.active-line {
    background: rgba(100, 200, 255, 0.1);
    border-left: 4px solid rgba(100, 200, 255, 0.8);
}

.time-input {
    width: 90px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 10px;
    color: rgba(100, 200, 255, 0.9);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 12px;
    transition: all 0.2s;
}

.time-input:focus {
    outline: none;
    border-color: rgba(100, 200, 255, 0.5);
}

.time-input.stamped {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.time-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.text-input {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s;
}

.text-input:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.text-input:focus {
    outline: none;
    border-color: rgba(100, 200, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
}

.actions {
    display: flex;
    gap: 6px;
    margin-left: 10px;
}

.action-btn {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.action-btn.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: rgba(239, 68, 68, 1);
}

.action-btn.add-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    color: rgba(34, 197, 94, 1);
}

/* Initial Placeholder */
.initial-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.drop-zone-inner {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    transition: all 0.3s;
}

.drop-zone-inner:hover {
    border-color: rgba(100, 200, 255, 0.5);
    background: rgba(100, 200, 255, 0.05);
}

.drop-zone-inner i {
    font-size: 40px;
    color: rgba(100, 200, 255, 0.6);
    margin-bottom: 15px;
    display: block;
}

.drop-title {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

.drop-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.drop-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

/* Export Footer */
.export-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.time-display {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.current-time {
    color: #fff;
    font-family: monospace;
    font-weight: 500;
}

.export-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.include-unsynced {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.include-unsynced input {
    accent-color: rgba(100, 200, 255, 0.8);
}

.include-unsynced .hint {
    color: rgba(255, 255, 255, 0.3);
}

.export-buttons {
    display: flex;
    gap: 10px;
}

.btn-export {
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 500;
}

.btn-export.lrc {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(100, 200, 255, 0.8) 100%);
}

.btn-export.srt {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
}

.btn-export.txt {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Drag Overlay */
.drag-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 30, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: 20px;
}

.drag-overlay i {
    font-size: 64px;
    color: rgba(100, 200, 255, 0.8);
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.drag-overlay p {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Disclaimer */
.disclaimer {
    margin-top: 40px;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.7;
}

.disclaimer p {
    margin: 0;
}

.disclaimer i {
    margin-right: 6px;
    color: rgba(100, 200, 255, 0.4);
}

.disclaimer strong {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 200;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: rgba(34, 197, 94, 0.9);
    font-size: 18px;
}

#toastMsg {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   Responsive Styles
   ========================================= */

@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .left-panel {
        height: auto;
        min-height: auto;
    }

    .lyrics-textarea {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .logo-text {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .logo-sub {
        display: none;
    }

    .back-btn {
        padding: 10px;
        width: 38px;
        height: 38px;
        justify-content: center;
    }

    .back-btn-text {
        display: none;
    }

    .container {
        padding: 90px 15px 30px;
    }

    .page-title {
        margin-bottom: 20px;
    }

    .page-title h1 {
        font-size: 22px;
        letter-spacing: 4px;
    }

    .page-title p {
        font-size: 11px;
    }

    .main-layout {
        gap: 15px;
    }

    .card {
        padding: 15px;
        border-radius: 15px;
    }

    .waveform-container {
        border-radius: 12px;
    }

    .sync-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .key-hints {
        display: none;
    }

    .key-hints {
        display: none;
    }

    /* エクスポートバーのモバイル対応（省スペース化） */
    .export-bar {
        flex-direction: row;
        /* 横並びに戻す（折り返し前提） */
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }

    /* 左グループ（再生・時間）と中央グループ（文字制限）を1行目に */
    .bar-group.bar-left {
        order: 1;
        flex: 1 1 auto;
    }

    .bar-group.bar-center {
        order: 2;
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 8px;
    }

    /* 右グループ（ファイル名・書き出し）を2行目以降に（全幅） */
    .bar-group.bar-right {
        order: 3;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* 右グループ内の要素レイアウト */
    .bar-right .bar-setting {
        grid-column: 1 / -1;
        /* ファイル名設定は全幅 */
        width: 100%;
        display: flex;
        align-items: center;
    }

    .bar-right .bar-input-text {
        flex: 1;
        /* 入力欄を最大限広げる */
        width: auto;
    }

    /* 区切り線はモバイルでは不要なら非表示 */
    .bar-right .bar-divider-v {
        display: none;
    }

    /* チェックボックス */
    .bar-right .bar-checkbox {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-bottom: 4px;
    }

    /* 書き出しボタンは3つ横並び */
    .bar-right>button {
        grid-column: auto;
        /* 自動配置 */
        flex: none;
        /* Flex設定をリセット */
        width: 100%;
        height: 36px;
        /* タップしやすい高さ */
        padding: 0;
        /* 文字数が多いと溢れるのでパディング減らす */
        font-size: 11px;
        min-width: 0;
    }

    .drop-zone-inner {
        padding: 40px 30px;
    }

    .drop-zone-inner i {
        font-size: 36px;
    }

    .drop-title {
        font-size: 15px;
    }

    .audio-upload-btn {
        font-size: 11px;
        padding: 8px 12px;
    }
}