.cyp-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    background-color: #000;
}

.cyp-container {
    aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 16 / 9) {
    .cyp-container {
        padding-bottom: 56.25%;
        height: 0;
    }
}

.cyp-container video,
.cyp-container .cyp-youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cyp-ad-video {
    display: none;
    z-index: 10;
    background-color: #000;
}

.cyp-youtube-player {
    z-index: 5;
}

.cyp-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url('play-button.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.2s;
    z-index: 20;
    opacity: 0.85;
}

.cyp-container:hover .cyp-play-button {
    opacity: 1;
}

.cyp-skip-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 21;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    cursor: pointer;
    display: none; /* OPRAVENO: Pouze jedno display pravidlo */
    font-size: 14px;
    border-radius: 4px;
    min-height: 36px;
    box-sizing: border-box;
    align-items: center;
    gap: 6px;
}

.cyp-skip-button.show {
    display: flex;
}

.cyp-skip-button:hover {
    background: rgba(255, 255, 255, 1);
    color: black;
    border-color: transparent;
}

.cyp-skip-button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent currentColor;
    flex-shrink: 0;
}

.cyp-countdown {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 21;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    display: none;
    min-height: 36px;
    box-sizing: border-box;
    align-items: center;
}

.cyp-countdown.show {
    display: flex;
}
