/* Travytour article video: click-to-load player, video grid and "Video" badge. Uses the child-theme tokens with safe fallbacks. */
.tt-video {
    margin: 2rem 0;
    padding: 0;
}

.tt-video__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--tt-radius-md, 18px);
    background: #0f1418;
    box-shadow: var(--tt-shadow-soft, 0 14px 38px rgba(23, 32, 51, .08));
}

.tt-video__play {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.tt-video__poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.tt-video__play:hover .tt-video__poster,
.tt-video__play:focus-visible .tt-video__poster {
    transform: scale(1.03);
    filter: brightness(.82);
}

.tt-video__icon,
.tt-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: var(--tt-soft-gold, #d4af37);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
    pointer-events: none;
}

.tt-video__icon::before,
.tt-video-card__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -13px 0 0 -9px;
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent var(--tt-ink, #172033);
}

.tt-video__play:focus-visible {
    outline: 3px solid var(--tt-sky-blue, #5b9bd5);
    outline-offset: -3px;
}

.tt-video__length {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    padding: .15rem .5rem;
    border-radius: 6px;
    background: rgba(15, 20, 24, .82);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.tt-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tt-video__caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .35rem 1rem;
    margin-top: .75rem;
    color: var(--tt-muted, #5e6878);
    font-size: .92rem;
}

.tt-video__title {
    color: var(--tt-ink, #172033);
    font-weight: 700;
}

.tt-video__links {
    display: inline-flex;
    gap: 1rem;
}

.tt-video__link {
    color: var(--tt-sky-blue-dark, #2f6fa8);
    font-weight: 700;
    text-decoration: none;
}

.tt-video__link:hover,
.tt-video__link:focus-visible {
    text-decoration: underline;
}

.tt-video__note {
    flex-basis: 100%;
    font-size: .78rem;
}

.tt-video__fallback {
    position: absolute;
    inset: auto 0 0 0;
    padding: .75rem 1rem;
    background: rgba(15, 20, 24, .85);
    color: #fff;
}

/* Video grid (Videos page, [travytour_videos]) */
.tt-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tt-video-card .tt-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.tt-video-card .tt-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tt-video-card__play {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
}

.tt-video-card__play::before {
    margin: -10px 0 0 -6px;
    border-width: 10px 0 10px 16px;
}

.tt-card-kicker-text {
    margin: 0 0 .25rem;
    color: var(--tt-sky-blue-dark, #2f6fa8);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tt-video-card__links {
    margin: .5rem 0 0;
    font-size: .88rem;
}

/* "Video" badge on article cards (class added by the plugin through post_class) */
.tt-article-card.tt-has-video .tt-card-media {
    position: relative;
}

.tt-article-card.tt-has-video .tt-card-media::after {
    content: "\25B6  Video";
    position: absolute;
    top: .65rem;
    left: .65rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--tt-soft-gold, #d4af37);
    color: var(--tt-ink, #172033);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.4;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .tt-video__poster {
        transition: none;
    }
}
