/* Load after style.css — shared fonts, header, video bg */

.portfolio-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(6.5rem, 12vw, 8rem) clamp(1.25rem, 4vw, 2rem) 4rem;
    position: relative;
    z-index: 1;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 2rem;
}

.video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.video-stage #main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease;
}

.video-stage #main-video.fading {
    opacity: 0;
}

.stage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    pointer-events: none;
}

.video-meta {
    position: absolute;
    bottom: 1.25rem;
    left: 1.5rem;
    right: 1.5rem;
}

.video-category {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.video-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #fff;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.nav-buttons {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

.nav-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

.counter {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.counter span {
    color: #fff;
}

.play-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: #fff;
    height: 44px;
    padding: 0 1.15rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
}

.play-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

.thumb-container {
    position: relative;
    padding: 1rem 0 0;
}

.thumb-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.thumb-strip::-webkit-scrollbar {
    display: none;
}

.scroll-zone {
    position: absolute;
    top: 1rem;
    bottom: 0;
    width: 50px;
    pointer-events: auto;
    z-index: 1;
}

.scroll-zone.left {
    left: 0;
}

.scroll-zone.right {
    right: 0;
}

.thumb {
    flex: 0 0 calc(25% - 8px);
    aspect-ratio: 16 / 9;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 0.2s;
}

.thumb:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.thumb.active {
    border-color: rgba(255, 255, 255, 0.45);
}

.thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.75);
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thumb.active .thumb-label {
    color: #fff;
}

.video-description {
    padding: 1rem 0 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 620px;
    min-height: 2.5em;
    transition: opacity 0.3s;
}

@media (max-width: 600px) {
    .thumb {
        flex: 0 0 calc(50% - 5px);
    }
}
