/*
 * File: site.css
 * Description: Components this project uses on more than one page - the
 *              transcript list, the video title, tags and the channel name.
 *              Loaded after the shared house-frontend stylesheets.
 */

:root {
    --video-player-bg: #000;        /* Behind the YouTube embed */
}

/* ========================================
   TRANSCRIPT COMPONENTS
   ======================================== */

.transcript-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.transcript-item {
    cursor: pointer;
    padding: var(--text-pad-inline) 0;
    border-bottom: 1px solid var(--panel-border);
}

.transcript-item:last-child {
    border-bottom: none;
}

.transcript-item.is-active {
    background-color: var(--card-border);
}

.transcript-item:hover {
    background-color: var(--accent-hover);
}

.transcript-time {
    color: var(--muted-text);
    font-family: 'Roboto Mono', monospace;
    margin-right: var(--text-margin-inline);
    font-size: var(--font-sm);
}

.transcript-text {
    color: var(--text-strong);
}

.transcript-matches {
    padding: var(--space-small);
    background-color: var(--surface-muted);
    border-left: var(--border-strong) solid var(--accent-primary);
    border-radius: var(--radius-sm);
}

/* ========================================
   VIDEO COMPONENTS
   ======================================== */

/* Video title styling (used in lists and detail) */
.video-title {
    font-size: var(--font-md);
    line-height: 1.3;
}

/* Note: .description-block is in video_detail.css, the only page using it */

.tags-block {
    background-color: var(--panel-alt-bg);
    padding: var(--space-small);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
}

.tag-link {
    margin-right: var(--space-minimal);
    color: var(--accent-primary);
}

/* Styles for the channel name */
.channel-name {
    font-size: inherit;            /* Match surrounding heading size */
    font-weight: normal;
    color: var(--muted-text);
    margin-right: var(--space-minimal);
    border-right: 1px solid var(--frame-border);
    padding-right: var(--space-minimal);
}
