:root {
    --jtp-blue: #00aeef;
    --jtp-blue-dark: #008dc4;
    --jtp-ink: #313541;
    --jtp-muted: #66707d;
    --jtp-line: #e1e6eb;
    --jtp-soft: #f7fafc;
}

.jtp-portal {
    width: min(1500px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
    color: var(--jtp-ink);
    font-family: Roboto, Arial, sans-serif;
}

.jtp-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.jtp-welcome h1 {
    margin: 3px 0 7px;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: 0;
}

.jtp-welcome p,
.jtp-section-head p {
    margin: 0;
    color: var(--jtp-muted);
}

.jtp-eyebrow {
    color: var(--jtp-blue-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.jtp-sync,
.jtp-section-head > a {
    color: var(--jtp-blue-dark);
    font-weight: 700;
}

.jtp-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--jtp-line);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.jtp-summary a {
    min-height: 76px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jtp-summary a + a {
    border-left: 1px solid var(--jtp-line);
}

.jtp-summary strong {
    font-size: 25px;
    line-height: 1;
}

.jtp-summary span {
    color: var(--jtp-muted);
    font-size: 13px;
    margin-top: 6px;
}

.jtp-tabs {
    display: flex;
    gap: 4px;
    margin: 18px 0 28px;
    border-bottom: 1px solid var(--jtp-line);
    overflow-x: auto;
    scrollbar-width: none;
}

.jtp-tabs::-webkit-scrollbar {
    display: none;
}

.jtp-tabs a {
    min-height: 50px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    color: #59616e;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.jtp-tabs a.is-active {
    color: var(--jtp-blue-dark);
    border-color: var(--jtp-blue);
}

.jtp-section {
    margin-top: 34px;
}

.jtp-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 15px;
}

.jtp-section-head h2 {
    margin: 3px 0 0;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: 0;
}

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

.jtp-video-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jtp-video {
    min-width: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--jtp-line);
}

.jtp-video-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #e9eef2;
}

.jtp-video-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jtp-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--jtp-blue);
    padding-left: 3px;
}

.jtp-reason {
    margin: 10px 0 5px;
    color: var(--jtp-blue-dark);
    font-size: 11px;
    font-weight: 800;
}

.jtp-video h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: 0;
}

.jtp-video-meta {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--jtp-muted);
    font-size: 12px;
}

.jtp-video-actions {
    margin-top: 10px;
}

.jtp-video-actions .jtss-actions {
    margin: 0;
}

.jtp-producer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--jtp-line);
}

.jtp-producer {
    min-width: 0;
    min-height: 88px;
    padding: 14px 12px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--jtp-line);
}

.jtp-producer img,
.jtp-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.jtp-initials {
    display: grid;
    place-items: center;
    background: var(--jtp-ink);
    color: #fff;
    font-weight: 800;
}

.jtp-producer strong,
.jtp-producer span {
    display: block;
}

.jtp-producer div > span {
    margin-top: 3px;
    color: var(--jtp-muted);
    font-size: 12px;
}

.jtp-follow {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #d8e0e6;
    border-radius: 18px;
    background: #fff;
    color: var(--jtp-ink);
    font: 700 12px/1 Roboto, Arial, sans-serif;
}

.jtp-follow.is-following {
    border-color: var(--jtp-blue);
    background: var(--jtp-blue);
    color: #fff;
}

.jtp-follow.is-compact {
    min-height: 30px;
    padding: 0 9px;
}

.pt-cv-social-buttons .jtp-follow {
    height: 44px;
    margin-left: 8px;
}

.jtp-single-producer {
    margin: 18px 0;
    padding: 13px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--jtp-line);
    border-bottom: 1px solid var(--jtp-line);
}

.jtp-empty {
    grid-column: 1 / -1;
    padding: 26px;
    margin: 0;
    border: 1px dashed #cad5de;
    border-radius: 8px;
    color: var(--jtp-muted);
    text-align: center;
    background: #fff;
}

.jtp-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    max-width: min(360px, calc(100vw - 32px));
    padding: 11px 15px;
    border-radius: 6px;
    background: var(--jtp-ink);
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.jtp-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.jtp-follow:focus-visible,
.jtp-tabs a:focus-visible,
.jtp-summary a:focus-visible {
    outline: 3px solid rgba(0, 174, 239, .35);
    outline-offset: 2px;
}

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

    .jtp-producer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .jtp-portal {
        width: min(100% - 24px, 1500px);
        padding-top: 18px;
    }

    .jtp-welcome {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .jtp-welcome h1 {
        font-size: 29px;
    }

    .jtp-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .jtp-summary a {
        min-height: 70px;
        padding: 12px 8px;
        text-align: center;
    }

    .jtp-summary strong {
        font-size: 22px;
    }

    .jtp-summary span {
        font-size: 11px;
    }

    .jtp-tabs {
        margin-bottom: 20px;
    }

    .jtp-tabs a {
        padding: 0 13px;
    }

    .jtp-video-grid,
    .jtp-video-grid--compact,
    .jtp-producer-grid {
        grid-template-columns: 1fr;
    }

    .jtp-section {
        margin-top: 28px;
    }

    .jtp-section-head h2 {
        font-size: 22px;
    }

    .jtp-producer {
        padding-left: 4px;
        padding-right: 4px;
    }
}

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