/* Free YouTube Tools - the YouTube skin on top of the shared
 * platform-tools.css shell: white surfaces, YouTube red accents, and a
 * grid of "video" cards whose thumbnails carry a flat illustration of the
 * tool (no channel header, no play button: the tools sit above the fold
 * and nothing promises a video). */

:root {
    --yt-red:       #ff0000;
    --yt-red-dark:  #cc0000;
    --yt-ink:       #0f0f0f;
    --yt-muted:     #606060;
    --yt-border:    #e5e5e5;
    --yt-chip:      #f2f2f2;
    --yt-chip-hov:  #e5e5e5;
    --yt-link:      #065fd4;

    --pp-h1:    var(--yt-red-dark);
    --pp-muted: var(--yt-muted);
    --pp-link:  var(--yt-link);
}

/* Buttons: YouTube's black pill (Subscribe) and a red pill for the
 * per-card action. Anchor-styled, so :hover restates color. */
.fyt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.fyt-btn:focus-visible {
    outline: 2px solid var(--yt-link);
    outline-offset: 2px;
}
.fyt-btn-dark {
    background: var(--yt-ink);
    color: #fff;
}
.fyt-btn-dark:hover,
.fyt-btn-dark:focus-visible {
    background: #272727;
    color: #fff;
}
.fyt-btn-red {
    background: var(--yt-red-dark);
    color: #fff;
}
.fyt-btn-red:hover,
.fyt-btn-red:focus-visible {
    background: #a80000;
    color: #fff;
}
.fyt-btn:active {
    transform: translateY(1px);
}

/* -------------------------------------------------------------------
 * Video grid
 * ------------------------------------------------------------------- */
.fyt-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
}
.fyt-video {
    display: flex;
    flex-direction: column;
    scroll-margin-top: 24px;
}

/* Thumbnail: 16:9 tile holding a flat illustration (no play button, no
 * duration badge: both would promise a video). */
.fyt-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    min-height: 150px;
    border-radius: 12px;
    background: var(--fyt-tint, #1a0000);
    color: #fff;
    overflow: hidden;
    transition: border-radius 0.2s ease, box-shadow 0.2s ease;
}
.fyt-thumb:hover,
.fyt-thumb:focus-visible {
    color: #fff;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
}
.fyt-thumb:focus-visible {
    outline: 2px solid var(--yt-link);
    outline-offset: 2px;
}
.fyt-thumb-art {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.fyt-video:hover .fyt-thumb-art {
    transform: scale(1.03);
}
.fyt-thumb-icon {
    font-size: 58px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
}

/* Below the thumbnail: avatar + title + meta + description + button. */
.fyt-video-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 2px 0;
}
.fyt-video-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--yt-chip);
    color: var(--yt-red-dark);
    font-size: 18px;
}
.fyt-video-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fyt-video-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--yt-ink);
}
.fyt-video-title a {
    color: inherit;
}
.fyt-video-title a:hover {
    color: var(--yt-ink);
    text-decoration: underline;
}
.fyt-video-meta {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--yt-muted);
    font-feature-settings: var(--tnum);
}
.fyt-video-desc {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--yt-muted);
}
.fyt-video-text .fyt-btn {
    align-self: flex-start;
    margin-top: 8px;
    padding: 7px 14px;
    font-size: 13px;
}

/* -------------------------------------------------------------------
 * Mobile (project breakpoints: 640px, 420px)
 * ------------------------------------------------------------------- */
@media (max-width: 640px) {
    .fyt-feed { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 420px) {
    .fyt-thumb-icon { font-size: 48px; }
}
