/* Tides of War — individual YouTube clip page
 * Loaded only by portal/youtube-clip.php after youtube-gallery.css.
 * Keep watch-page layout isolated from gallery-card CTA styles.
 */

body.tow-youtube-watch-page {
    background: #030817;
}

body.tow-youtube-watch-page #main-content {
    background:
        radial-gradient(circle at 82% 8%, rgba(42, 72, 145, .18), transparent 34rem),
        linear-gradient(180deg, #061128 0%, #030817 100%);
}

.tow-youtube-clip-page {
    padding: 34px 0 58px;
    color: var(--tow-mist);
    background: transparent;
}

.tow-youtube-clip-page .tow-youtube-breadcrumb {
    margin-bottom: 18px;
}

.tow-youtube-clip-page .tow-youtube-watch-grid {
    width: min(100%, 1120px);
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
    align-items: start;
}

.tow-youtube-clip-page .tow-youtube-watch-grid--solo {
    width: min(100%, 920px);
    grid-template-columns: minmax(0, 1fr);
}

.tow-youtube-clip-page .tow-youtube-player-panel,
.tow-youtube-clip-page .tow-youtube-related {
    min-width: 0;
    border: 1px solid rgba(147, 161, 181, .26);
    background: linear-gradient(180deg, rgba(8, 24, 52, .98), rgba(4, 14, 34, .99));
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

.tow-youtube-clip-page .tow-youtube-player-panel {
    overflow: hidden;
}

.tow-youtube-clip-page .tow-youtube-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.tow-youtube-clip-page .tow-youtube-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.tow-youtube-clip-page .tow-youtube-watch-copy {
    padding: 20px 22px 22px;
}

.tow-youtube-clip-page .tow-youtube-watch-copy h1 {
    max-width: 24ch;
    margin: 7px 0 0;
    color: var(--tow-mist);
    font: 600 clamp(1.75rem, 3vw, 2.65rem) / 1.02 var(--tow-display);
    letter-spacing: -.025em;
    text-wrap: balance;
}

.tow-youtube-clip-page .tow-youtube-watch-meta {
    gap: 7px 12px;
    margin-top: 14px;
    font-size: .62rem;
}

.tow-youtube-clip-page .tow-youtube-description {
    max-width: 72ch;
    margin-top: 16px;
    color: var(--tow-steel);
    font-size: .86rem;
    line-height: 1.65;
}

.tow-youtube-clip-page .tow-youtube-related {
    align-self: start;
    padding: 14px;
}

.tow-youtube-clip-page .tow-youtube-related h2 {
    margin: 0 0 10px;
    font: 600 1.15rem / 1.1 var(--tow-display);
}

.tow-youtube-clip-page .tow-youtube-related-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 0;
}

.tow-youtube-clip-page .tow-youtube-related-row img {
    width: 92px;
}

.tow-youtube-clip-page .tow-youtube-related-row strong {
    font-size: .66rem;
}

.tow-youtube-clip-page .tow-youtube-watch-actions {
    width: min(100%, 1120px);
    margin: 16px auto 0;
    gap: 8px;
}

.tow-youtube-clip-page .tow-youtube-watch-actions .tow-button {
    min-height: 36px;
    padding: 8px 13px;
    font-size: .64rem;
}

.tow-youtube-clip-page .tow-youtube-watch-actions .tow-button-primary {
    border-color: rgba(224, 182, 71, .62);
    background: rgba(26, 42, 63, .96);
    color: #f0cf79;
}

.tow-youtube-clip-page .tow-youtube-watch-actions .tow-button-primary:hover,
.tow-youtube-clip-page .tow-youtube-watch-actions .tow-button-primary:focus-visible {
    background: rgba(38, 56, 79, .98);
    color: #ffe6a2;
}

@media (max-width: 980px) {
    .tow-youtube-clip-page .tow-youtube-watch-grid {
        width: min(100%, 920px);
        grid-template-columns: minmax(0, 1fr);
    }

    .tow-youtube-clip-page .tow-youtube-related {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .tow-youtube-clip-page {
        padding: 24px 0 42px;
    }

    .tow-youtube-clip-page .tow-youtube-watch-copy {
        padding: 16px;
    }

    .tow-youtube-clip-page .tow-youtube-watch-copy h1 {
        font-size: clamp(1.55rem, 8vw, 2.1rem);
    }

    .tow-youtube-clip-page .tow-youtube-related-row {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .tow-youtube-clip-page .tow-youtube-related-row img {
        width: 84px;
    }

    .tow-youtube-clip-page .tow-youtube-watch-actions {
        justify-content: flex-start;
    }

    .tow-youtube-clip-page .tow-youtube-watch-actions .tow-button {
        width: auto;
        min-height: 38px;
        padding-inline: 12px;
    }
}
