body {
    background-color: #1e1e1e;
    /* Updated background color */
    color: white;
    font-family: sans-serif;
    text-align: center;
}

.container {
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0px;
    }
}

.media-item {
    width: 80%;
    max-width: 800px;
    margin: 40px auto;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.media-item h2 {
    font-size: 1.4em;
    font-weight: 300;
}

video,
img {
    width: 100%;
    display: block;
    margin-top: 10px;
}

img {
    cursor: pointer;
}

h1,
h2 {
    margin-bottom: 20px;
}

.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-top: 10px;
}

.custom-audio-player button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.0em;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.rewind-btn {
    position: relative;
    padding-left: 7px;
}

.rewind-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background-color: white;
}

.custom-audio-player button:hover {
    color: #1e90ff;
}

.rewind-btn:hover::before {
    background-color: #1e90ff;
}

.progress-container {
    flex-grow: 1;
    background: #444;
    border-radius: 5px;
    cursor: pointer;
    height: 8px;
}

.progress-bar {
    background: #1e90ff;
    height: 100%;
    width: 0%;
    border-radius: 5px;
}

.time-display {
    font-size: 0.9em;
    flex-shrink: 0;
    width: 95px;
    text-align: center;
}

.video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.video-header h1 {
    margin: 0 20px;
    font-size: 1.6em;
    font-weight: 300;
    white-space: nowrap;
    /* 1. 命令文字不要换行 */
    overflow: hidden;
    /* 2. 把超出边界的部分藏起来 */
    text-overflow: ellipsis;
    /* 3. 在被藏起来的地方显示省略号 (...) */
}

.nav-arrow {
    font-size: 1.3em;
    color: white;
    text-decoration: none;
    cursor: pointer;
    padding: 0 5px;
    position: relative;
}

.nav-arrow.left-arrow::before {
    content: '◀';
    margin-right: 5px;
}

.nav-arrow.right-arrow::after {
    content: '▶';
    margin-left: 5px;
}

.nav-arrow:hover {
    color: #1e90ff;
}

.nav-arrow.disabled {
    color: #666;
    cursor: default;
    pointer-events: none;
}


.harmonica-chart-container {
    max-width: 800px; /* 将宽度从 800px 修改为 1000px */
    width: 80%;
    margin: 0 auto; /* 保持水平居中 */
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Custom Scrollbar Styling (Optimized for iframe) --- */

/* For Webkit-based browsers (Chrome, Edge, Safari) */
body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background-color: #4a4a52;
    border-radius: 10px;
    border: 2px solid #1e1e1e;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #5a5a62;
}

/* For Firefox */
html,
body {
    scrollbar-width: thin;
    scrollbar-color: #4a4a52 #1e1e1e;
}