.tts-player-section {
    padding: 0;
    margin-top: -32px;
    margin-bottom: 16px;
}

.tts-player-section .wrapper_full {
    padding: 0 88px;
    max-width: 1248px;
    margin: 0 auto;
    box-sizing: content-box;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 48px;
}

.tts-player {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #233657;
    border-radius: 12px;
    padding: 14px 24px;
}

/* Skip buttons (-10s / +10s) */
.tts-player__skip {
    flex-shrink: 0;
    height: 36px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s, transform 0.15s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    position: absolute;
    width: 0;
    overflow: hidden;
}

.tts-player__skip svg {
    width: 22px;
    height: 22px;
}

.tts-player__skip:hover {
    color: #F6D584;
}

.tts-player__skip:active {
    transform: scale(0.85);
}

/* Show skip buttons when playing */
.tts-player--playing .tts-player__skip {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    position: static;
    width: 36px;
    overflow: visible;
}

/* Play / Pause — smooth resize */
.tts-player__play {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #F6D584;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, width 0.3s, height 0.3s;
}

.tts-player__play:hover {
    background: rgba(246, 213, 132, 0.12);
    border-color: #F6D584;
}

/* Shrink play button when playing */
.tts-player--playing .tts-player__play {
    width: 36px;
    height: 36px;
}

/* Info: label + czas */
.tts-player__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
    flex-shrink: 0;
    transition: min-width 0.3s ease;
}

.tts-player__label {
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #FFF;
    letter-spacing: 0.02em;
    transition: opacity 0.3s, max-height 0.3s;
    max-height: 20px;
    overflow: hidden;
    opacity: 1;
}

.tts-player__time {
    font-family: 'Mulish', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

/* Hide label when playing — animate out */
.tts-player--playing .tts-player__label {
    max-height: 0;
    opacity: 0;
}

.tts-player--playing .tts-player__info {
    min-width: auto;
}

/* Progress bar */
.tts-player__progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    min-width: 80px;
    transition: height 0.15s;
}

/* Taller bar when dragging */
.tts-player__progress--dragging {
    height: 10px;
}

.tts-player__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #BC9C4D, #F6D584);
    border-radius: 3px;
    transition: width 0.15s linear;
    position: relative;
}

/* Disable smooth transition while dragging for instant feedback */
.tts-player__progress--dragging .tts-player__progress-bar {
    transition: none;
}

/* Thumb dot */
.tts-player__progress-bar::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #F6D584;
    box-shadow: 0 0 6px rgba(246, 213, 132, 0.4);
    transition: transform 0.15s, opacity 0.15s;
    opacity: 0;
}

.tts-player:hover .tts-player__progress-bar::after,
.tts-player__progress--dragging .tts-player__progress-bar::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Seek tooltip */
.tts-player__seek-tooltip {
    position: absolute;
    top: -28px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #FFF;
    font-family: 'Mulish', sans-serif;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.tts-player__progress--dragging .tts-player__seek-tooltip,
.tts-player__progress:hover .tts-player__seek-tooltip {
    opacity: 1;
}

/* Tablet */
@media (max-width: 900px) {
    .tts-player-section .wrapper_full {
        grid-template-columns: 1fr 2fr;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .tts-player-section {
        margin-top: 0;
        margin-bottom: 16px;
    }

    .tts-player-section .wrapper_full {
        display: block !important;
        padding: 0 24px !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .tts-player {
        grid-column: auto;
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 10px;
    }

    .tts-player__play {
        width: 38px;
        height: 38px;
    }

    .tts-player--playing .tts-player__play {
        width: 32px;
        height: 32px;
    }

    .tts-player--playing .tts-player__skip {
        width: 32px;
        height: 32px;
    }

    .tts-player__skip svg {
        width: 20px;
        height: 20px;
    }

    .tts-player__info {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .tts-player__progress {
        width: 100%;
        order: 10;
    }
}

/* Mobile Landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .tts-player-section {
        margin-top: 0;
        margin-bottom: 16px;
    }

    .tts-player-section .wrapper_full {
        display: block !important;
        padding: 0 48px !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .tts-player {
        grid-column: auto;
    }
}
