/* ===== CSS Variables for Theme Support ===== */
:root {
    /* Light Mode Colors - Eye-friendly for Children */
    --bg-primary: #fef7f0;        /* Warm off-white, reduces eye strain */
    --bg-secondary: #ffffff;       /* Pure white for cards */
    --bg-card: #ffffff;            /* White card background */
    --text-primary: #2d3748;       /* Soft black, easier on eyes than pure black */
    --text-secondary: #718096;     /* Muted gray for secondary text */
    --border-color: #e2e8f0;       /* Light gray border */
    --accent-color: #4299e1;       /* Calm blue - less aggressive than pure blue */
    --accent-hover: #3182ce;       /* Darker blue for hover states */
    --danger-color: #f56565;       /* Soft red, less harsh */
    --success-color: #48bb78;      /* Gentle green */
    --warning-color: #ed8936;      /* Warm orange for warnings */
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);  /* Lighter shadows */
    --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.10);

    /* AB Loop Colors - Child-friendly */
    --marker-a-color: #48bb78;     /* Soft green */
    --marker-b-color: #f6ad55;     /* Warm orange */
    --ab-region-color: rgba(72, 187, 120, 0.12);

    /* Subtle Background Gradients */
    --bg-gradient: linear-gradient(135deg, #fef7f0 0%, #fffcf9 100%);
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);

    /* Font Family - Apple System Fonts */
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
}

/* Dark Mode - Eye-friendly for Children */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1f2e;        /* Warm dark blue-gray, easier on eyes */
        --bg-secondary: #2d3748;      /* Slightly lighter for content areas */
        --bg-card: #2d3748;           /* Dark card background */
        --text-primary: #f7fafc;      /* Warm white, less harsh than pure white */
        --text-secondary: #cbd5e0;    /* Light gray for secondary text */
        --border-color: #4a5568;      /* Medium gray border */
        --accent-color: #63b3ed;      /* Soft blue for dark mode */
        --accent-hover: #4299e1;      /* Lighter blue for hover */
        --danger-color: #fc8181;      /* Soft red in dark mode */
        --success-color: #68d391;     /* Soft green */
        --warning-color: #f6ad55;     /* Warm orange */
        --shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
        --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.5);
        --ab-region-color: rgba(104, 211, 145, 0.15);

        /* Dark Mode Gradients */
        --bg-gradient: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
        --card-gradient: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    }
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-system);
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Container ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
}

/* Optimized for iPad */
@media (min-width: 768px) {
    .container {
        padding: 24px 40px;
    }
}

/* ===== Header ===== */
.header {
    text-align: center;
    margin-bottom: 16px;
    padding: 12px 0;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .header h1 {
        font-size: 28px;
    }
    
    .header {
        margin-bottom: 16px;
        padding: 8px 0;
    }
}

/* ===== Card Layout ===== */
.card {
    background: var(--card-gradient);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .card {
        padding: 20px;
        margin-bottom: 12px;
    }
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

/* ===== Progress Bar ===== */
.progress-container {
    margin-bottom: 24px;
    padding: 8px 8px 0 8px; /* 增加上padding为AB标示按钮提供空间 */
    position: relative;
}

.progress-bar {
    position: relative;
    height: 24px; /* 从 12px 提高到 24px */
    background: linear-gradient(90deg, var(--border-color) 0%, #e2e8f0 100%);
    border-radius: 12px; /* 相应调整圆角 */
    cursor: pointer;
    margin-bottom: 12px;
    touch-action: none;
    overflow: visible; /* 改为visible让AB标示按钮可见 */
}

/* Larger touch target for iPad and Desktop */
@media (min-width: 768px) {
    .progress-container {
        padding: 0 12px; /* 桌面端显著增加空间给30px游标按钮 */
    }

    .progress-bar {
        height: 28px; /* 从 14px 提高到 28px */
        border-radius: 14px; /* 相应调整圆角 */
    }

    .progress-thumb {
        width: 30px; /* 桌面端更大，便于鼠标操作 */
        height: 30px; /* 桌面端更大，便于鼠标操作 */
        border: 3px solid var(--bg-card);
        box-shadow: 0 3px 12px rgba(66, 153, 225, 0.4);
    }
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    bottom: -12px;
}

.progress-filled {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-radius: 12px; /* 匹配进度条圆角 */
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px rgba(66, 153, 225, 0.3);
}

.ab-region {
    position: absolute;
    height: 100%;
    background: var(--ab-region-color);
    border-radius: 12px; /* 匹配进度条圆角 */
    display: none;
    pointer-events: none;
}

.ab-region.active {
    display: block;
}

.progress-thumb {
    position: absolute;
    width: 26px; /* 调整为更合适的操作尺寸 */
    height: 26px; /* 调整为更合适的操作尺寸 */
    background: var(--accent-color);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
    transition: transform 0.2s ease;
    cursor: grab;
}

.progress-thumb:active {
    transform: translate(-50%, -50%) scale(1.1);
    cursor: grabbing;
}

/* AB Markers */
.marker {
    position: absolute;
    top: -12px; /* 进一步减少距离，让笔尖刚好指到滚动条上方 */
    transform: translateX(-50%);
    display: none;
    pointer-events: auto;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    z-index: 30;
    width: 0;
    height: 0;
    background: none;
    padding: 0;
    border: none;
    font-size: 0; /* 隐藏原始文本内容 */
    color: transparent;
}

/* 铅笔主体形状 */
.marker::before {
    content: 'A'; /* 默认显示A */
    position: absolute;
    top: -24px; /* 保持标签位置不变 */
    left: 50%;
    transform: translateX(-50%);
    background: var(--marker-a-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.marker-b::before {
    content: 'B'; /* B marker显示B */
    background: var(--marker-b-color);
}

/* 铅笔尖头朝下 */
.marker::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--marker-a-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.marker-b::after {
    border-top-color: var(--marker-b-color);
}

.marker:active {
    cursor: grabbing;
}

.marker-a {
    background: var(--marker-a-color);
    left: 0%;
}

.marker-b {
    background: var(--marker-b-color);
    left: 100%;
}

.marker.active {
    display: block;
}

.marker-time {
    position: absolute;
    top: -72px; /* 相对于marker容器向上移动，避免与标签重叠 */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 40; /* 提高z-index确保在最上层 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.marker-time.visible {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 768px) {
    .marker-time {
        top: -60px; /* 修改媒体查询中的值，避免重叠 */
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Time Display */
.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .time-display {
        font-size: 16px;
    }
}

/* ===== AB Controls ===== */
.ab-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* iPhone 上也使用 4 列 */
    gap: 8px; /* 缩小间距以适应小屏幕 */
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .ab-controls {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.btn-ab, .btn-loop, .btn-clear {
    padding: 12px 8px; /* 减少左右内边距以适应 4 列 */
    border: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(248, 250, 252, 0.8) 100%);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 14px; /* 稍微减小字体 */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-system);
    min-height: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .btn-ab, .btn-loop, .btn-clear {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 52px;
    }
}

.btn-ab:active, .btn-loop:active, .btn-clear:active {
    transform: scale(0.96);
}

.btn-ab:hover, .btn-loop:hover, .btn-clear:hover {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(237, 242, 247, 0.9) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.btn-ab.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.btn-loop {
    grid-column: span 1; /* 所有设备都占 1 列 */
}

.btn-loop.active {
    background: linear-gradient(135deg, var(--success-color) 0%, #38a169 100%);
    color: white;
    border-color: var(--success-color);
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.btn-clear {
    border-color: var(--danger-color);
    color: var(--danger-color);
    grid-column: span 1; /* 所有设备都占 1 列 */
}

.btn-clear:hover {
    background: rgba(245, 101, 101, 0.1);
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.2);
}

.btn-clear:active {
    background: var(--danger-color);
    color: white;
    transform: scale(0.96);
}

/* ===== Main Controls ===== */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .controls {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .controls {
        gap: 8px;
    }
}

.btn-control {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-control:active {
    transform: scale(0.9);
}

.btn-control:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(237, 242, 247, 0.9) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.btn-skip {
    width: 56px;
    height: 56px;
}

.btn-skip svg {
    width: 32px;
    height: 32px;
}

.btn-subtitle-toggle {
    width: 56px;
    height: 56px;
    margin-left: 8px;
}

.btn-subtitle-toggle svg {
    width: 32px;
    height: 32px;
}

.btn-subtitle-toggle.active {
    color: var(--accent-color);
}

.btn-play {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(66, 153, 225, 0.3);
    border: none;
}

.btn-play:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #2b6cb0 100%);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
    transform: translateY(-1px);
}

.btn-play svg {
    width: 40px;
    height: 40px;
}

@media (min-width: 768px) {
    .btn-skip {
        width: 64px;
        height: 64px;
    }
    
    .btn-skip svg {
        width: 36px;
        height: 36px;
    }
    
    .btn-subtitle-toggle {
        width: 64px;
        height: 64px;
    }
    
    .btn-subtitle-toggle svg {
        width: 36px;
        height: 36px;
    }
    
    .btn-play {
        width: 96px;
        height: 96px;
    }
    
    .btn-play svg {
        width: 48px;
        height: 48px;
    }
}

.skip-time {
    position: absolute;
    bottom: -20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== History Section ===== */


.select-speed, .select-skip {
    padding: 8px 10px; /* 更紧凑的内边距 */
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px; /* 稍小的字体 */
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-system);
    min-width: 100%; /* 充满容器宽度 */
    text-align: center;
}

@media (min-width: 768px) {
    .select-speed, .select-skip {
        padding: 10px 12px;
        font-size: 15px;
    }
}

/* Speed and Skip Controls in Main Controls Area */
.select-speed-controls, .select-skip-controls {
    padding: 6px 8px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(248, 250, 252, 0.8) 100%);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-system);
    min-width: 65px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.select-speed-controls:hover, .select-skip-controls:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(237, 242, 247, 0.9) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.select-speed-controls:focus, .select-skip-controls:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

@media (min-width: 768px) {
    .select-speed-controls, .select-skip-controls {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 75px;
    }
}

@media (max-width: 480px) {
    .select-speed-controls, .select-skip-controls {
        padding: 5px 6px;
        font-size: 12px;
        min-width: 55px;
    }
}


/* Custom Slider */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
    flex: 1;
    touch-action: none; /* 防止滚动干扰 */
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent; /* 移除 iOS 点击高亮 */
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

#volumeValue {
    min-width: 45px;
    text-align: right;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== File Selection ===== */
.file-selection {
    text-align: center;
}

.file-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .file-buttons {
        flex-direction: column;
    }
}

.btn-file {
    flex: 1;
    padding: 18px;
    border-radius: 14px;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2);
}

@media (min-width: 768px) {
    .btn-file {
        padding: 22px;
        font-size: 20px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-system);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.2);
    border-radius: 14px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #2b6cb0 100%);
    box-shadow: 0 4px 16px rgba(66, 153, 225, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(248, 250, 252, 0.8) 100%);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-system);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 14px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(237, 242, 247, 0.9) 100%);
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: scale(0.96);
}

.hint {
    margin-top: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .hint {
        font-size: 14px;
    }
}

.hint strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== Subtitle Display ===== */
.subtitle-display {
    min-height: 122px; /* Height for 3 lines: 22px × 1.5 × 3 lines + 20px padding */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(255, 251, 245, 0.8) 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    padding: 10px; /* Slightly reduced to accommodate larger text */
    transition: height 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.subtitle-display.hidden {
    visibility: hidden;
}

.subtitle-content {
    width: 100%;
    text-align: center;
    transition: opacity 0.1s ease; /* Faster transition for subtle effect */
}

.subtitle-content.fade-out {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.subtitle-content.fade-in {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.subtitle-content.fade-in-fast {
    opacity: 1;
    transition: opacity 0.1s ease;
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.subtitle-text {
    font-size: 22px; /* Increased from 18px for better readability */
    line-height: 1.5; /* Slightly reduced to fit 3 lines */
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease, font-weight 0.3s ease, opacity 0.3s ease;
    font-weight: 500; /* Slightly bolder for better legibility */
}

.subtitle-content.preview-mode .subtitle-text {
    color: var(--accent-color);
    font-style: italic;
    opacity: 0.8;
}

.subtitle-content.active .subtitle-text {
    font-weight: 500;
    color: var(--accent-color);
}

.subtitle-empty {
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.5;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .subtitle-display {
        min-height: 140px; /* Height for 3 lines: 26px × 1.5 × 3 lines + 24px padding */
        padding: 12px; /* Optimized padding for larger text */
    }

    .subtitle-text {
        font-size: 26px; /* Increased from 20px for better desktop readability */
        line-height: 1.5; /* Consistent line height across devices */
    }
}

/* Small mobile devices optimization */
@media (max-width: 375px) {
    .subtitle-text {
        font-size: 20px; /* Slightly smaller for very small screens */
        line-height: 1.4; /* Tighter line height for small screens */
    }

    .subtitle-display {
        min-height: 116px; /* Adjusted for smaller font: 20px × 1.4 × 3 lines + 18px padding */
        padding: 9px;
    }

    .progress-thumb {
        width: 24px; /* 小屏设备也要有足够的大小便于触摸 */
        height: 24px; /* 小屏设备也要有足够的大小便于触摸 */
        border: 2px solid var(--bg-card);
    }
}

/* Dark mode subtitle adjustments */
@media (prefers-color-scheme: dark) {
    .subtitle-display {
        background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(74, 85, 104, 0.3) 100%);
        border-color: var(--border-color);
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.4s ease;
}

/* ===== Scrollbar Styling ===== */
.history-list::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

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

.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
