@import url('https://fonts.googleapis.com/css2?family=Circe+Contrast:wght@700&family=Harp+Display&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Harp Display', serif;
    line-height: 1.5;
    text-align: justify;
    color: #222;
}

.main-title {
    font-family: 'Circe Contrast', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin: 2rem 0;
    color: #8B0000;
}

.section {
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
}

.section .content {
    max-width: 900px;
    width: 100%;
}

.section-title {
    font-family: 'Circe Contrast', sans-serif;
    font-size: 2rem;
    margin: 1.5rem 0;
}

.text {
    background: #FFF;
    padding: 2em;
    border-radius: 1em;
    color: #656565;
}

.text p {
    margin: 1rem 0;
}

.text p.dialog {
    margin-left: 1rem;
    border-left: 3px solid #555;
    padding-left: 1rem;
}

.audio-block audio {
    width: 100%;
    max-width: 600px;
    height: 40px;
    border-radius: 8px;
    background-color: #FFF8E7; /* базовый цвет плеера */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    outline: none;
}

.audio-block audio::-webkit-media-controls-panel {
    background-color: #FFF8E7;
}

.audio-block audio::-webkit-media-controls-play-button,
.audio-block audio::-webkit-media-controls-volume-slider {
    filter: hue-rotate(0deg) brightness(1.2);
}

audio::-moz-range-track {
    background: #FF6347;
    height: 4px;
    border-radius: 2px;
}
audio::-moz-range-thumb {
    background: #006400;
    border-radius: 50%;
}

#autoplay-toggle {
    display: none;
}

.autoplay-label {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff5e6; /* молочный фон */
    color: #8b0000; /* тёмно-красный текст */
    font-family: 'Harp Display', serif;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 999;
}

.autoplay-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.autoplay-label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #8b0000;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
    background-color: #fff5e6;
    transition: background-color 0.2s;
}

#autoplay-toggle:checked + .autoplay-label::before {
    background-color: #8b0000;
}

.part-1 { background: #FFF8E7; }
.part-2 { background: linear-gradient(to bottom, #FFF8E7, #DFFFE0); }
.part-3 { background: linear-gradient(to bottom, #DFFFE0, #006400); }
.part-4, .part-5, .part-8 { background: #006400; }
.part-6 { background: linear-gradient(to bottom, #FFF8E7, #FF6347); }
.part-7 { background: #FF6347; }
.part-9 { background: #8B0000; }
.part-10 { background: linear-gradient(to bottom, #8B0000, #FF6347); }
.part-11 { background: linear-gradient(to bottom, #FF6347, #FFF8E7); }
.part-12 { background: #FFF8E7; }
