
.ev-transcript-btn-container {
    display: inline-block;
    margin-left: 10px;
    margin-right: 1%;
    vertical-align: middle;
    flex-shrink: 0;
}

.ev-read-transcript-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px !important;
    padding: 7px 16px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
    transition: all 0.2s ease;
    border: none;
    background-color: var(--theme-color);
    color: #f9f9f9;
}

    .ev-read-transcript-btn:hover {
        transform: translateY(-1px);
    }

    .ev-read-transcript-btn.active {
        background-color: #dedede;
        color: #5e5555;
    }

.player-content-title-container .ev-video-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.ev-tab-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.playlist-container {
    position: relative !important;
}

.ev-transcript-panel {
    position: relative !important;
    height: calc(100% - 32px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.ev-transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 12px 8px;
    flex-shrink: 0;
}

.ev-transcript-title {
    font-size: 15px;
    font-weight: 700;
    color: #191919;
}

#ev-transcript-search:focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: #ccc !important;
}


.ev-transcript-dropdown-btn,
.ev-transcript-dropdown-btn:hover,
.ev-transcript-dropdown-btn:focus,
.ev-transcript-dropdown-btn:active,
.open > .dropdown-toggle.ev-transcript-dropdown-btn,
.ev-transcript-dropdown-btn.active {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    outline: none !important;
}


.ev-transcript-cues {
    flex: 1;
    overflow-y: auto !important;
    scrollbar-width: none;
    padding: 0 8px 8px 0px;
}

    .ev-transcript-cues::-webkit-scrollbar {
        display: none;
    }

.ev-transcript-cues::after,
.ev-transcript-sheet-cues::after {
    content: "";
    display: block;
    height: 50vh;
}

.ev-cue-block {
    padding: 10px 12px 10px 0px;
    border-radius: 6px;
    cursor: default;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ev-cue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.ev-cue-ts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #191919 !important;
    background: #eeeeee !important;
    border: 1px solid #f5f5f5 !important;
    border-radius: 12px;
    padding: 2px 8px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    width: fit-content;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .ev-cue-ts:hover {
        filter: brightness(0.85);
    }

.ev-cue-play-icon {
    width: 10px;
    height: 10px;
    margin-right: 4px;
    fill: none;
    stroke: var(--theme-color);
    stroke-width: 2px;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.ev-cue-ts:hover .ev-cue-play-icon {
    fill: var(--theme-color);
}

.ev-cue-text {
    font-size: 14px;
    line-height: 1.6;
    color: #191919;
    font-weight: 400;
}

.ev-cue-sentence {
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-radius: 2px;
    padding: 0 1px;
}

@media (hover: hover) {
    .ev-cue-sentence:hover {
        background-color: #fbcfe8;
        color: #191919;
    }
}

    .ev-cue-sentence.active-sentence {
        background-color: #fef08a;
        color: #191919;
    }

.ev-cue-block.search-match .ev-cue-text mark,
.ev-transcript-highlight {
    background: pink !important;
    color: #000;
    border-radius: 2px;
    padding: 0 2px;
}

.ev-cue-block.search-hidden {
    display: none;
}

.ev-transcript-loading {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.ev-transcript-error {
    padding: 20px;
    text-align: center;
    color: #ef4444;
    font-size: 13px;
}


@media (max-width: 800px) {
    .ev-transcript-btn-container {
        display: block;
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 4px;
    }

    .ev-transcript-cues {
        max-height: 25vh !important;
        -webkit-overflow-scrolling: touch;
    }
}

