* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Фон с Красной площадью */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 0;
    overflow: hidden;
}

/* Видео фон */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.7;
    animation: videoFadeIn 2s ease-in;
}

@keyframes videoFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.7;
    }
}

/* Изображение фона */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.6;
    animation: imagePan 30s ease-in-out infinite alternate;
    display: none;
    transition: opacity 1s ease;
}

/* Слайд-шоу фотографий */
.background-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;   /* top */
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0;
    display: none;
    transition: opacity 1s ease;
}

.background-slideshow.active {
    display: block;
    opacity: 0.6;
}

@keyframes imagePan {
    0% {
        background-position: 0% center;
        transform: scale(1);
    }
    100% {
        background-position: 100% center;
        transform: scale(1.05);
    }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Затемнение для лучшей читаемости часов */
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%),
        /* Новогоднее свечение */
        radial-gradient(circle at 30% 20%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Снежинки */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5em;
    font-family: Arial;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    top: -10%;
}

@keyframes snowfall {
    0% {
        transform: translateY(0vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.snowflake:nth-child(3) {
    left: 30%;
    animation-duration: 14s;
    animation-delay: 2s;
}

.snowflake:nth-child(4) {
    left: 40%;
    animation-duration: 11s;
    animation-delay: 0.5s;
}

.snowflake:nth-child(5) {
    left: 50%;
    animation-duration: 13s;
    animation-delay: 1.5s;
}

.snowflake:nth-child(6) {
    left: 60%;
    animation-duration: 15s;
    animation-delay: 2.5s;
}

.snowflake:nth-child(7) {
    left: 70%;
    animation-duration: 10s;
    animation-delay: 0.3s;
}

.snowflake:nth-child(8) {
    left: 80%;
    animation-duration: 12s;
    animation-delay: 1.3s;
}

.snowflake:nth-child(9) {
    left: 90%;
    animation-duration: 14s;
    animation-delay: 2.3s;
}

.snowflake:nth-child(10) {
    left: 15%;
    animation-duration: 11s;
    animation-delay: 0.7s;
}

.snowflake:nth-child(11) {
    left: 45%;
    animation-duration: 13s;
    animation-delay: 1.7s;
}

.snowflake:nth-child(12) {
    left: 75%;
    animation-duration: 15s;
    animation-delay: 2.7s;
}

/* Контейнер часов */
.clock-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    z-index: 10;
}

/* Часы */
.clock {
    width: min(80vw, 80vh, 600px);
    height: min(80vw, 80vh, 600px);
    position: relative;
    margin-bottom: 2rem;
    transition: transform 0.5s ease, top 0.5s ease, left 0.5s ease, right 0.5s ease, bottom 0.5s ease;
    transform-origin: center center;
}

/* Минимизированное состояние аналоговых часов */
.clock.minimized {
    position: fixed;
    transform: scale(0.5);
    margin-bottom: 0;
    z-index: 100;
}

.clock.minimized.top-left {
    top: 0px;
    left: 0px;
    right: auto;
    bottom: auto;
}

.clock.minimized.top-right {
    top: 0px;
    right: 0px;
    left: auto;
    bottom: auto;
}

.clock.minimized.bottom-left {
    bottom: 0px;
    left: 0px;
    top: auto;
    right: auto;
}

.clock.minimized.bottom-right {
    bottom: 0px;
    right: 0px;
    top: auto;
    left: auto;
}

.clock-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000000;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(212, 175, 55, 0.5);
    position: relative;
    overflow: hidden;
}

/* Минутные засечки и цифры теперь в изображении, скрываем контейнеры */
.minute-marks-container,
.numbers-container {
    display: none;
}

/* Стрелки */
.hand {
    position: absolute;
    top: 53%;
    left: 50%;
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%);
    z-index: 10;
}

.hour-hand {
    width: 12px;
    height: 25%;
    background: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    clip-path: polygon(50% 0%, 0% 100%, 50% 95%, 100% 100%);
    border-radius: 2px 2px 0 0;
}

.minute-hand {
    width: 8px;
    height: 40%;
    background: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    clip-path: polygon(50% 0%, 0% 100%, 50% 97%, 100% 100%);
    border-radius: 2px 2px 0 0;
}

.second-hand {
    width: 4px;
    height: 40%;
    background: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    clip-path: polygon(50% 0%, 0% 100%, 50% 98%, 100% 100%);
    border-radius: 1px 1px 0 0;
    transition: transform 0.1s cubic-bezier(0.4, 2.3, 0.8, 1);
}

/* Центр часов */
.center-dot {
    position: absolute;
    width: 25px;
    height: 25px;
    background: #d4af37;
    border-radius: 50%;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 10px rgba(212, 175, 55, 0.8),
        inset 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 30;
}

/* Цифровое отображение времени */
.time-display {
    text-align: center;
    color: #d4af37;
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: transform 0.5s ease, margin-top 0.5s ease;
}

/* Когда аналоговые часы минимизированы, цифровые перемещаются вниз */
.time-display.moved-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
}

.digital-time {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
}

.date-display {
    font-size: 1.5rem;
    font-family: 'Arial', sans-serif;
    opacity: 0.9;
}

/* Копирайт */
.copyright {
    position: fixed;
    bottom: 30px;
    left: 100px;
    color: #807f7e;
    text-shadow: 
        0 0 20px rgba(122, 118, 104, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.3rem;
    font-family: 'Arial', sans-serif;
    opacity: 0.9;
    z-index: 200;
}

/* Дата фотографии в слайд-шоу */
.photo-date {
    position: fixed;
    top: 20px;
    left: 20px;
    color: #bbb9b3;
    text-shadow: 
        0 0 20px rgba(122, 118, 104, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.3rem;
    font-family: 'Arial', sans-serif;
    opacity: 0.9;
    z-index: 200;
    cursor: help;
    transition: opacity 0.3s ease;
}

.photo-date:hover {
    opacity: 1;
}

/* Всплывающее меню выбора папки */
.folder-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.folder-selector-content {
    background: rgba(44, 62, 80, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.folder-selector-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.folder-selector-content h3 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.folder-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.5rem;
}

.folder-item {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    color: #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.folder-item:hover {
    background: rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: rgba(212, 175, 55, 0.5);
    /* transform: scale(1.05); */
    box-shadow: 
        0 4px 16px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.folder-item:active {
    transform: scale(0.98);
}

.folder-selector-close {
    width: 100%;
    padding: 0.8rem;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    color: #d4af37;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.folder-selector-close:hover {
    background: rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 
        0 4px 16px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Кнопка переключения фона */
.background-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(128, 128, 128, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Цвета кнопки для разных режимов */
.background-toggle-btn.mode-video {
    background: rgba(128, 128, 128, 0.25);
    border-color: rgba(128, 128, 128, 0.4);
}

.background-toggle-btn.mode-video:hover {
    background: rgba(128, 128, 128, 0.35);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-color: rgba(128, 128, 128, 0.6);
    box-shadow: 
        0 6px 20px rgba(128, 128, 128, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.background-toggle-btn.mode-image {
    background: rgba(0, 0, 139, 0.25);
    border-color: rgba(0, 0, 139, 0.4);
}

.background-toggle-btn.mode-image:hover {
    background: rgba(0, 0, 139, 0.35);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-color: rgba(0, 0, 139, 0.6);
    box-shadow: 
        0 6px 20px rgba(0, 0, 139, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.background-toggle-btn.mode-slideshow {
    background: rgba(75, 0, 130, 0.25);
    border-color: rgba(75, 0, 130, 0.4);
}

.background-toggle-btn.mode-slideshow:hover {
    background: rgba(75, 0, 130, 0.35);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-color: rgba(75, 0, 130, 0.6);
    box-shadow: 
        0 6px 20px rgba(75, 0, 130, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.background-toggle-btn:hover {
    transform: scale(1.1);
}

.background-toggle-btn:active {
    transform: scale(0.95);
}

.background-toggle-btn svg {
    width: 30px;
    height: 30px;
}

/* Кнопки управления слайд-шоу */
.slideshow-controls {
    position: fixed;
    bottom: 20px;
    right: 80px;
    display: flex;
    gap: 10px;
    z-index: 200;
    align-items: center;
}

.slideshow-control-btn {
    width: 45px;
    height: 45px;
    background: rgba(83, 82, 83, 0.4);
    border: 1px solid #121213;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.slideshow-control-btn:hover {
    background: rgba(75, 0, 130, 0.6);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(75, 0, 130, 0.8);
}

.slideshow-control-btn:active {
    transform: scale(0.95);
}

.slideshow-control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.slideshow-control-btn svg {
    width: 24px;
    height: 24px;
}

/* Кнопка скрытия/показа часов */
.clock-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(70, 70, 68, 0.8);
    border: 2px solid #50482d;
    border-radius: 50%;
    cursor: pointer;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(61, 60, 60, 0.8);
    transition: all 0.3s ease;
}

.clock-toggle-btn:hover {
    background: rgb(145, 144, 143);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(61, 61, 60, 0.8);
}

.clock-toggle-btn:active {
    transform: scale(0.95);
}

.clock-toggle-btn svg {
    width: 30px;
    height: 30px;
}

/* Контекстное меню кнопки переключения фона */
.context-menu {
    position: fixed;
    background: rgba(44, 62, 80, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: none;
}

.context-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.context-menu-item {
    padding: 12px 20px;
    color: #d4af37;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.context-menu-item:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.context-menu-item:active {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(0.98);
}

/* Модальное окно настроек */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.settings-modal-content {
    background: rgba(44, 62, 80, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.settings-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.settings-modal-content h3 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section h4 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.settings-field {
    margin-bottom: 1rem;
}

.settings-field label {
    display: block;
    color: #d4af37;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.settings-field input[type="text"],
.settings-field input[type="number"],
.settings-field select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #d4af37;
    font-size: 1rem;
    box-sizing: border-box;
}

.settings-field input[type="text"]:focus,
.settings-field input[type="number"]:focus,
.settings-field select:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.settings-field select {
    cursor: pointer;
}

.settings-field select option {
    background: rgba(0, 0, 0, 0.9);
    color: #d4af37;
    padding: 0.5rem;
}

.settings-checkboxes-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.settings-checkboxes-container .settings-field.checkbox-field {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.settings-field input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.settings-field label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.settings-field small {
    display: block;
    color: rgba(212, 175, 55, 0.7);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.settings-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.settings-save-btn,
.settings-cancel-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    color: #d4af37;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.settings-save-btn:hover,
.settings-cancel-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 
        0 4px 16px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.settings-save-btn:active,
.settings-cancel-btn:active {
    transform: scale(0.98);
}

/* Адаптивность */
@media (max-width: 768px) {
    .clock {
        width: min(90vw, 90vh);
        height: min(90vw, 90vh);
    }
    
    .number {
        font-size: 1.8rem;
    }
    
    .digital-time {
        font-size: 2rem;
    }
    
    .date-display {
        font-size: 1.2rem;
    }
    
    .background-toggle-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .background-toggle-btn svg {
        width: 25px;
        height: 25px;
    }
    
    .clock-toggle-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        left: 15px;
    }
    
    .clock-toggle-btn svg {
        width: 25px;
        height: 25px;
    }
    
    .slideshow-controls {
        bottom: 15px;
        right: 70px;
        gap: 8px;
    }
    
    .slideshow-control-btn {
        width: 40px;
        height: 40px;
    }
    
    .slideshow-control-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Индикатор прогресса воспроизведения видео */
.video-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 300;
    display: flex;
    align-items: center;
    padding: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.9);
}

.video-progress-track {
    width: 100%;
    height: 40%;
    background: rgba(197, 194, 185, 0.8);
    position: relative;
    cursor: pointer;
}

.video-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #ffd700 100%);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

.video-progress-time {
    display: none;
}

.video-time-current,
.video-time-total {
    font-weight: bold;
}

.video-time-separator {
    opacity: 0.7;
}

