html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: url('/background.png') repeat;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.player-container {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    width: 100%;
    height: 100vh;
}

.icons-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    height: 100%;
    position: relative;
}

.icon-image {
    width: 188px;
    height: 188px;
    object-fit: contain;
    border-radius: 10px;
    padding: 0rem;
    transition: transform 0.3s ease;
}

.icon-image:hover {
    transform: scale(1.05);
}

.site-logo {
    width: 188px;
    height: 188px;
    object-fit: contain;
    border-radius: 8px;
    padding: 0rem;
}

.site-logo-link {
    position: sticky;
    top: 1rem;
    z-index: 2;
    //background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem;
    border-radius: 5%;
    display: block;
    text-decoration: none;
}

.video-section {
    flex: 1;
    position: relative;
    
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: transparent;
}

.video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    pointer-events: none;
}

.track-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.track-image.active {
    opacity: 1;
}

.tracks-carousel {
    width: 200px;
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 12px;
}

.track-item {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 1rem;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.track-item:hover {
    transform: scale(1.05);
}

.track-item.active {
    border: 2px solid #4ecdc4;
}

.track-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.track-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.track-item:hover .track-title {
    opacity: 1;
}

.track-item.active .track-title {
    opacity: 1;
    background: rgba(78, 205, 196, 0.7);
}

.track-visualizer {
    position: absolute;
    top: 80%;
    left: 0;
    width: 100%;
    height: 20%;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.track-item.active .track-track-visualizer {
    opacity: 1;
}

.controls {
    display: none;
}

.loading-indicator {
    display: none;
}

.loading-spinner {
    display: none;
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 490px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    display: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.progress-container.active {
    display: block;
}

.progress-bar {
    height: 100%;
    background: #4ecdc4;
    width: 0%;
    transition: width 0.1s linear;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.progress-time {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: white;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0;
}

.countdown-overlay {
    display: none;
}

.video-overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 20;
    cursor: pointer;
    transition: opacity 0.3s;
}

.video-overlay-play.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-overlay-play svg {
    width: 96px;
    height: 96px;
    fill: #fff;
    filter: drop-shadow(0 0 16px #000a);
}

.track-info {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-245px);
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.track-info span {
    color: white;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.subtitles {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    z-index: 10;
    text-align: center;
    max-width: 80%;
    display: none;
}

.subtitles.active {
    display: block;
}

.subtitles-text {
    color: white;
    font-size: 18px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.visualizer {
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 5;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.visualizer-left {
    left: 0;
}

.visualizer-right {
    right: 0;
}

.visualizer.hidden {
    opacity: 0;
}

.icon-image-link {
    display: block;
    text-decoration: none;
}

.skip-to-end {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.skip-to-end:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.skip-icon {
    width: 24px;
    height: 24px;
    fill: white;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.debug-only {
    display: none;
}

.debug-mode .debug-only {
    display: flex;
}

.icons-column-scroll {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    overflow-y: auto;
    height: calc(100% - 100px);
    margin-top: 1rem;
    /* Скрываем скроллбар для всех браузеров */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Скрываем скроллбар для Chrome, Safari и Opera */
.icons-column-scroll::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .player-container {
        flex-direction: column;
        height: auto;
        gap: 0rem;
        padding: 0rem;
        background: transparent;
    }

    .icons-column {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.1rem;
        padding: 0;
        margin: -20% 0 0 0;
        overflow-x: auto;
        overflow-y: hidden;
        height: auto;
        /* Скрываем скроллбар */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .icons-column::-webkit-scrollbar {
        display: none;
    }

    .site-logo-link {
        position: relative; /* Убираем sticky позиционирование */
        top: auto;
        flex-shrink: 0; /* Запрещаем сжатие логотипа */
    }

    .icons-column-scroll {
        display: flex;
        flex-direction: row;
        gap: 0.1rem;
        padding: 0;
        margin: 0;
        height: auto;
        overflow: visible;
        flex-shrink: 0; /* Запрещаем сжатие иконок */
    }

    .icon-image, .site-logo {
        width: 50px;
        height: 50px;
        padding: 0;
        margin: 0 0 0 1rem;
        flex-shrink: 0; /* Запрещаем сжатие иконок */
    }

    .video-section {
        width: 100%;
        min-height: 50vh;
        max-height: 62vh;
        aspect-ratio: 2/3;
        margin: 0% 0 0.5rem 0;
    }

    .tracks-carousel {
        width: 100%;
        height: 120px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.5rem;
        display: flex;
        gap: 0.5rem;
        border-radius: 8px;
    }

    .track-item {
        width: 100px;
        min-width: 100px;
        height: 100px;
        margin-bottom: 0;
    }

    .track-title {
        font-size: 10px;
        padding: 2px 4px;
    }

    .progress-container {
        width: 100%;
        max-width: 490px;
    }

    .track-info {
        display: none;
    }

    .track-visualizer {
        top: 80%;
        height: 20%;
    }
} 