* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    width: 100vw;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

/* 头部样式 */
.header {
    text-align: center;
    margin: 40px 0;
}

.header h1 {
    color: #e74c3c;
    font-size: 96px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

/* 书卷选择区域 */
.book-selection {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.selection-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.selection-label {
    font-weight: bold;
    color: #9b59b6;
    font-size: 72px;
    flex: 0 0 auto;
    min-width: 220px;
}

.selection-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}



/* 选择章节按钮 - 标准尺寸 */
.load-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 24px 30px;
    font-size: 54px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 88px;
    width: 200px;
    display: block;
    margin: 10px auto 0;
}

.load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 90, 82, 0.4);
}

/* 正在播放区域 - 字体超级大，两行显示 */
.now-playing {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-align: center;
}
.playing-book {
    font-size: 66px;              /* 设置为66px */
    color: #f39c12;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
    display: block;
    margin: 5px 0;
}
.playing-chapter-info {
    font-size: 66px;              /* 和第二行一样大 */
    color: #f39c12;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
    display: block;
    margin: 5px 0;
}


.playing-chapter {
    color: #f39c12;
    font-weight: bold;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

/* 两行显示，字体超大 */
.playing-line {
    font-size: 66px;              /* 从44px放大4倍 */
    display: block;
    margin: 15px 0;
    font-weight: bold;
}

/* 上一章下一章按钮 - 和选择章节按钮一样大 */
.nav-buttons {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    gap: 30px;
    justify-content: center;
}

.nav-buttons button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 24px 30px;           /* 和选择章节按钮一样 */
    font-size: 54px;               /* 和选择章节按钮一样 */
    border-radius: 12px;           /* 和选择章节按钮一样 */
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;             /* 和选择章节按钮一样高 */
    min-width: 200px;             /* 和选择章节按钮一样宽 */
    flex: 0 0 auto;
}

.nav-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* 底部控制区域 */
.bottom-controls {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 播放按钮 - 变高，变成正方形 */
#playBtn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 30px 30px;           /* 增加padding让按钮变高 */
    font-size: 54px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;             /* 增加高度 */
    min-width: 200px;             /* 正方形宽度 */
    width: 200px;                 /* 固定宽度 */
    height: 200px;                /* 固定高度，形成正方形 */
    flex: 0 0 auto;
}

#playBtn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

#playBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 进度条 */
.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    width: 100%;
}

.progress-bar {
    position: relative;
    flex: 1;
    height: 32px;
    background: #e0e0e0;
    border-radius: 16x;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 16px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #667eea;
    border-radius: 50%;
    cursor: grab;
    left: 0%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    transition: left 0.1s ease;
}

.progress-handle:active {
    cursor: grabbing;
}

/* 时间显示 */
.time-display {
    color: #666;
    font-size: 40px;
    font-weight: 500;
    flex: 0 0 auto;
    min-width: 200px;
    text-align: center;
}

/* 设置区域 */
.settings {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.play-mode-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-mode-row label {
    font-weight: bold;
    color: #9b59b6;
    font-size: 72px;
    flex: 0 0 auto;
    min-width: 220px;
}
.selection-group select {
    padding: 30px 35px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 56px;
    background: white;
    min-height: 100px;
    color: #2c3e50;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b59b6' stroke-width='3' 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 25px center;
    background-size: 28px;
    padding-right: 70px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
/* 播放模式选择框 - 字体和其他选择框一样大 */
.play-mode-row select {
    padding: 30px 35px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 56px;               /* 和其他选择框一样大 */
    background: white;
    min-height: 100px;
    color: #2c3e50;
    flex: 1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b59b6' stroke-width='3' 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 25px center;
    background-size: 28px;
    padding-right: 70px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* 修复按钮点击卡住问题 */
button {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

button:focus {
    outline: none;
    box-shadow: none;
}

button:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

button:focus:not(:active) {
    outline: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 8px;
        height: 100vh;
        overflow-y: auto;
    }
    
    .header h1 {
        font-size: 48px;
        margin: 20px 0;
    }
    
    .book-selection,
    .now-playing,
    .nav-buttons,
    .bottom-controls,
    .settings {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .selection-label,
    .play-mode-row label {
        font-size: 40px;
        min-width: 120px;
    }
    
    .playing-line {
        font-size: 88px;           /* 移动端稍微小一点 */
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-buttons button {
        width: 100%;
        max-width: 200px;
        font-size: 36px;
    }
    
    .load-btn {
        width: 180px;
        padding: 20px 25px;
        font-size: 36px;
    }
    
    #playBtn {
        width: 200px;
        height: 200px;
        padding: 25px 25px;
        font-size: 50px;
    }
    
    .progress-container {
        gap: 10px;
    }

    .time-display {
        color: #666;
        font-size: 30px;
        font-weight: 500;
        flex: 0 0 auto;
        min-width: 200px;
        text-align: center;
    }

}