.t3-video-page {
    --t3-video-accent: #fefe00;
    --t3-video-accent-dark: #111;
    --t3-video-text: #171717;
    --t3-video-muted: #676767;
    --t3-video-border: #e7e7e7;
    margin: 0 0 72px;
    color: var(--t3-video-text);
}

.t3-video-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 8px 0 64px;
}

.t3-video-section-card {
    position: relative;
    display: flex;
    min-height: 190px;
    padding: 30px;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    background:
        radial-gradient(circle at 82% 15%, rgba(254, 254, 0, 0.34), transparent 34%),
        linear-gradient(135deg, #050505 0%, #181818 58%, #303000 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.t3-video-section-card:nth-child(2) {
    color: #111;
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.52), transparent 36%),
        linear-gradient(135deg, #fefe00 0%, #f4f400 56%, #dada00 100%);
}

.t3-video-section-card:hover,
.t3-video-section-card:focus,
.t3-video-section-card:active,
.t3-video-section-card:focus-visible {
    color: #fff;
    text-decoration: none !important;
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.26);
}

.t3-video-section-card:nth-child(2):hover,
.t3-video-section-card:nth-child(2):focus,
.t3-video-section-card:nth-child(2):active,
.t3-video-section-card:nth-child(2):focus-visible {
    color: #111;
}

.t3-video-section-card__number {
    position: absolute;
    top: 24px;
    right: 26px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.2);
}

.t3-video-section-card:nth-child(2) .t3-video-section-card__number {
    color: rgba(0, 0, 0, 0.16);
}

.t3-video-section-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
}

.t3-video-section-card > span:last-child {
    max-width: 440px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.t3-video-section-card:nth-child(2) > span:last-child {
    color: rgba(0, 0, 0, 0.68);
}

.t3-video-group {
    scroll-margin-top: 120px;
}

.t3-video-group + .t3-video-group {
    margin-top: 76px;
}

.t3-video-group__heading {
    display: flex;
    margin-bottom: 24px;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.t3-video-group__eyebrow {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777700;
}

.t3-video-group h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.t3-video-tabs {
    display: inline-flex;
    padding: 5px;
    margin-bottom: 30px;
    border: 1px solid var(--t3-video-border);
    border-radius: 999px;
    background: #f5f5f5;
}

.t3-video-tabs__button {
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    background: transparent;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.t3-video-tabs__button:hover {
    color: #000;
}

.t3-video-tabs__button.is-active {
    color: #000;
    background: var(--t3-video-accent);
    box-shadow: 0 6px 16px rgba(190, 190, 0, 0.3);
}

.t3-video-tabs__button:focus-visible,
.t3-video-card__media:focus-visible {
    outline: 3px solid #bebe00;
    outline-offset: 3px;
}

.t3-video-tab-panel[hidden] {
    display: none;
}

.t3-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.t3-video-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--t3-video-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 20, 20, 0.06);
}

.t3-video-card__media,
.t3-video-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.t3-video-card__media {
    position: relative;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}

.t3-video-card__media img,
.t3-video-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t3-video-card__placeholder {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(254, 254, 0, 0.48), transparent 30%),
        linear-gradient(145deg, #050505 0%, #171717 52%, #383800 100%);
}

.t3-video-card__placeholder::before,
.t3-video-card__placeholder::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.t3-video-card__placeholder::before {
    width: 180px;
    height: 180px;
    right: -60px;
    bottom: -100px;
}

.t3-video-card__placeholder::after {
    width: 110px;
    height: 110px;
    left: -55px;
    top: -70px;
}

.t3-video-card__placeholder > span {
    position: absolute;
    left: 18px;
    bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.54);
}

.t3-video-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 6, 14, 0.08);
    transition: background 180ms ease;
}

.t3-video-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(254, 254, 0, 0.96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
    transition: transform 180ms ease, background 180ms ease;
}

.t3-video-card__play::after {
    position: absolute;
    left: 23px;
    top: 18px;
    width: 0;
    height: 0;
    content: "";
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid #111;
}

.t3-video-card__media:hover .t3-video-card__overlay {
    background: rgba(10, 6, 14, 0.2);
}

.t3-video-card__media:hover .t3-video-card__play {
    background: #fefe00;
    transform: translate(-50%, -50%) scale(1.08);
}

.t3-video-card__body {
    display: flex;
    min-height: 138px;
    padding: 20px;
    flex: 1 1 auto;
    flex-direction: column;
}

.t3-video-card__body h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

.t3-video-card__description {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--t3-video-muted);
}

.t3-video-card__description a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.t3-video-card__source {
    align-self: flex-start;
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 5px;
    color: #111;
    text-decoration: none;
    background: #fefe00;
}

.t3-video-card__source:hover {
    color: #000;
    text-decoration: underline;
    background: #eaea00;
}

@media (max-width: 900px) {
    .t3-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .t3-video-page {
        margin-bottom: 48px;
    }

    .t3-video-sections {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 48px;
    }

    .t3-video-section-card {
        min-height: 166px;
        padding: 24px;
    }

    .t3-video-group + .t3-video-group {
        margin-top: 56px;
    }

    .t3-video-tabs {
        display: flex;
        width: 100%;
    }

    .t3-video-tabs__button {
        min-width: 0;
        padding: 11px 12px;
        flex: 1 1 50%;
        font-size: 14px;
    }

    .t3-video-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .t3-video-card__body {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t3-video-section-card,
    .t3-video-tabs__button,
    .t3-video-card__overlay,
    .t3-video-card__play {
        transition: none;
    }
}
