.yvc-embed {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
    box-sizing: border-box;
}

.yvc-layout {
    display: grid;
    grid-template-columns: var(--yvc-player-width, 60%) minmax(0, 1fr);
    gap: 20px;
    background: var(--yvc-bg-color, #ffffff);
    color: var(--yvc-text-color, #111827);
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.12);
}

.yvc-player {
    min-width: 0;
}

.yvc-player iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
}

.yvc-chapters {
    min-width: 0;
    max-height: var(--yvc-chapters-max-height, 520px);
    display: flex;
    flex-direction: column;
}

.yvc-search {
    margin-bottom: 8px;
}

.yvc-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.yvc-search input {
    width: 100%;
    padding: 4px 35px 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    font-size: 14px;
    line-height: 40px;
    box-sizing: border-box;

    &::placeholder {
        color: rgba(27, 36, 49, 0.8);
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: 0.01em;
        text-align: left;
        text-transform: none;
        text-decoration: none;
    }
}

/* Hide native search clear button (Chrome, Safari, Edge) */
.yvc-search input[type="search"]::-webkit-search-cancel-button,
.yvc-search input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}
.yvc-search input[type="search"]::-ms-clear {
    display: none;
}

.yvc-search-clear {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: rgba(148, 163, 184, 0.8);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.yvc-search-clear:hover {
    color: rgba(148, 163, 184, 1);
}

.yvc-chapter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    scrollbar-color: var(--yvc-scrollbar-color, transparent) transparent;
    overscroll-behavior: contain;
}

.yvc-chapter {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 10px;
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    transition: background 0.15s;
}

.yvc-chapter:last-child {
    border-bottom: none;
}

.yvc-chapter-time {
    font-weight: 600;
    font-size: 12px;
    opacity: 0.9;
}

.yvc-chapter-label {
    flex: 1;
}

.yvc-chapter-rapporteur {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 4px;
    font-style: italic;
    grid-column: 2;
}

.yvc-chapter:hover {
    background: rgba(148, 163, 184, 0.12);
}

.yvc-chapter.active {
    background: rgba(37, 99, 235, 0.08);
    box-shadow: inset 2px 0 0 var(--yvc-active-color, #2563eb);
}

.yvc-chapter.highlight {
    background: rgba(37, 99, 235, 0.12);
    color: var(--yvc-highlight-color, #2563eb);
}

/* Vertical layout option */
.yvc-layout-vertical {
    grid-template-columns: minmax(0, 1fr) !important;
}

.yvc-layout-vertical .yvc-player {
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;
}

@media (max-width: 1050px) {
    .yvc-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

