/* ==========================================
   Modern UI Design - Refined & Accessible
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette - Lighter & More Accessible */
    --primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --primary-solid: #6366f1;
    --secondary: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    --accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    /* Glassmorphism - Lighter */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Background - Lighter Gradient */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    
    /* Text - Dark on Light */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #fce7f3 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Subtle Animated Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    animation: rotate 40s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   Container
   ========================================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   Header - Clean & Modern
   ========================================== */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-left h1 i {
    font-size: 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* User Email - Subtle Top Right Display */
.user-email {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.user-email:hover {
    opacity: 1;
}

.user-email i {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ==========================================
   Modern Buttons - Clear Hierarchy
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

/* Standard Action Buttons */
.btn-header {
    background: white;
    color: var(--text-secondary);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.btn-header:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-primary);
}

/* Grouped Buttons - Help & Save */
.btn-group-help {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    margin-left: var(--spacing-md);
}

.btn-group-help:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ==========================================
   Modern Tabs - Clean Design
   ========================================== */
.tabs {
    display: flex;
    background: white;
    border-bottom: 2px solid #e2e8f0;
    padding: 0;
    gap: 0;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.tab-button {
    flex: 1;
    min-width: 200px;
    background: transparent;
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: #f8fafc;
    color: var(--text-primary);
}

.tab-button.active {
    background: white;
    color: var(--primary-solid);
    font-weight: 600;
    border-bottom-color: var(--primary-solid);
}

.tab-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.tab-button.active .tab-number {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
}

.tab-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ==========================================
   Main Content - Clean & Bright
   ========================================== */
.main-content {
    flex: 1;
    padding: var(--spacing-2xl);
    background: transparent;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Form Section - Clean Card
   ========================================== */
.form-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid #f1f5f9;
}

.section-title i {
    font-size: 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================
   Modern Form Elements
   ========================================== */
.form-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 800px;
}

.form-grid-material {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.form-group:hover {
    border-color: #cbd5e1;
    background: white;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.form-group label.required::after {
    content: ' *';
    color: #ef4444;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: white;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-control:read-only {
    background: #f1f5f9;
    color: var(--text-tertiary);
    cursor: not-allowed;
    border-color: #e2e8f0;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

select.form-control:not([value=""]) option:not(:first-child) {
    color: var(--text-primary);
}

select.form-control option {
    color: var(--text-primary);
}

.form-control-inline {
    display: inline-block;
    width: 150px;
    padding: 8px 12px;
    font-size: 0.875rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    margin-left: var(--spacing-sm);
}

.form-control-small {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.875rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

/* ==========================================
   Metadata Header
   ========================================== */
.metadata-header {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid #f1f5f9;
}

/* ==========================================
   Checkbox & Radio
   ========================================== */
.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.95rem;
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.checkbox-label:hover,
.radio-label:hover {
    background: #f8fafc;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6366f1;
}

/* ==========================================
   Audio Channels Container & Grouping
   ========================================== */
.audio-ch-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.audio-ch-group {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
}

.audio-ch-group:hover {
    border-color: var(--primary-solid);
    box-shadow: var(--shadow-sm);
}

.audio-ch-group-header {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-solid);
    text-align: center;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-bottom: 2px solid #e2e8f0;
}

.audio-ch-group-content {
    display: flex;
    gap: var(--spacing-sm);
}

.audio-ch-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.audio-ch-item label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   Loudness Input
   ========================================== */
.loudness-input {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.loudness-input input {
    flex: 1;
}

.loudness-unit {
    font-weight: 700;
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* ==========================================
   Block Actions
   ========================================== */
.block-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.total-duration {
    margin-left: auto;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: var(--radius-full);
    font-size: 1rem;
}

.total-duration strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.total-duration span {
    color: #059669;
    font-weight: 800;
    font-size: 1.3rem;
    margin-left: var(--spacing-sm);
}

/* ==========================================
   Modern Table
   ========================================== */
.block-table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 2px solid #e2e8f0;
    background: white;
}

.block-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.block-table thead {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.block-table th {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    border: none;
    color: white;
}

.block-table tbody tr {
    background: white;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.block-table tbody tr:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.block-table tbody tr.empty-row:hover {
    background: white;
    transform: none;
}

.block-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
}

.block-table td.text-center {
    text-align: center;
    color: var(--text-tertiary);
    padding: var(--spacing-2xl);
}

.block-type-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.block-type-op {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.block-type-honpen {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.block-type-cm {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
}

.block-type-lineup {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: white;
}

.btn-icon {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    margin: 0 4px;
}

.btn-icon:hover {
    background: white;
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

/* ==========================================
   Inline Edit Table (Excel-like)
   ========================================== */
.block-table-inline {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    table-layout: fixed;
}

.block-table-inline thead {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.block-table-inline th {
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid #cbd5e1;
    color: white;
}

.block-table-inline tbody tr {
    background: white;
    transition: all 0.2s ease;
}

.block-table-inline tbody tr:hover {
    background: #fef3c7;
}

.block-table-inline td {
    padding: var(--spacing-xs);
    border: 1px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
}

.block-table-inline td:first-child {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-secondary);
}

/* インライン入力要素 */
.block-table-inline select,
.block-table-inline input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
}

.block-table-inline select:focus,
.block-table-inline input:focus {
    outline: none;
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.block-table-inline input[readonly] {
    background: #f1f5f9;
    cursor: not-allowed;
}

/* 削除ボタン */
.btn-delete-row {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-delete-row:hover {
    background: #fecaca;
    border-color: #dc2626;
    transform: scale(1.05);
}

.btn-delete-row:active {
    transform: scale(0.95);
}

.btn-icon.danger:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    color: #dc2626;
}

/* ==========================================
   Preview
   ========================================== */
.preview-container {
    display: flex;
    justify-content: center;
    padding: var(--spacing-xl);
    background: #f8fafc;
    border-radius: var(--radius-xl);
    border: 2px solid #e2e8f0;
}

.preview-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   Modal
   ========================================== */
/* ==========================================
   Toast
   ========================================== */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    border: 2px solid #e2e8f0;
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    display: none;
    align-items: center;
    gap: var(--spacing-md);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.active {
    display: flex;
}

.toast.error {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.toast.success {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .form-grid-material {
        grid-template-columns: 1fr;
    }
    
    .audio-ch-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: var(--spacing-lg);
    }
    
    .header {
        flex-direction: column;
        align-items: stretch;
        padding-top: var(--spacing-2xl);
    }
    
    .user-email {
        top: var(--spacing-sm);
        right: var(--spacing-md);
        font-size: 0.7rem;
    }
    
    .header-right {
        flex-direction: column;
    }
    
    .header-right .btn {
        width: 100%;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        min-width: 100%;
        justify-content: flex-start;
    }
    
    .form-section {
        padding: var(--spacing-lg);
    }
    
    .block-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .total-duration {
        margin-left: 0;
        text-align: center;
    }
    
    .audio-ch-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-left h1 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .audio-ch-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Scrollbar Styling
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}
