/* Focus the home on choosing a collection and reaching the first video. */
body.scatube-yt-home.sc-ui .sc-hub-hero {
    margin-block: 10px 6px !important;
    padding: 11px 16px !important;
    border-radius: 12px !important;
    background: linear-gradient(110deg, #231321, #181219 72%) !important;
}
body.scatube-yt-home.sc-ui .sc-hub-hero h1 {
    max-width: 35ch !important;
    font-size: clamp(21px, 2vw, 29px) !important;
    line-height: 1.16 !important;
}
body.scatube-yt-home.sc-ui .sc-archive-details summary { min-height: 30px; padding-top: 6px; }
body.scatube-yt-home.sc-ui .sc-view-choice {
    max-width: none;
    margin: 6px 20px 2px;
    padding: 12px 16px;
    gap: 8px 18px;
    border-radius: 12px;
    background: #21170f;
}
body.scatube-yt-home.sc-ui .sc-view-choice strong { font-size: 14px; }
body.scatube-yt-home.sc-ui .sc-view-choice p { margin-top: 2px; font-size: 12px; }
body.scatube-yt-home.sc-ui .sc-view-choice label { min-height: 44px; }
body.scatube-yt-home.sc-ui .cat-bar-wrap {
    border-bottom: 0 !important;
    padding-block: 6px !important;
}
body.scatube-yt-home.sc-ui .cat-btn {
    border-radius: 999px !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
body.scatube-yt-home.sc-ui .cat-btn:hover { border-color: #f17acc !important; }
body.scatube-yt-home.sc-ui .cat-btn:active { transform: scale(.97); }
/* The default view has only the two requested collection buttons. */
body.scatube-yt-home.sc-ui:not(.sc-show-community) #hub-filter-panel { display: none !important; }
body.scatube-yt-home.sc-ui .hub-grid-heading {
    margin-top: 6px !important;
    padding-bottom: 9px !important;
    border-bottom: 1px solid var(--sc-line);
}
body.scatube-yt-home.sc-ui #hub-results-status {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: 500 11px/1.4 Inter, sans-serif;
    letter-spacing: 0;
}
body.scatube-yt-home.sc-ui .grid-container { padding-top: 14px !important; }
@keyframes sc-card-in { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
body.scatube-yt-home.sc-ui .video-card { overflow: visible; animation: sc-card-in .24s ease-out both; }
body.scatube-yt-home.sc-ui .thumb-wrap {
    overflow: hidden;
    border-radius: 12px !important;
    background: #211821;
    transition: box-shadow .2s ease, transform .2s ease;
}
body.scatube-yt-home.sc-ui .video-card .thumb { transition: transform .25s ease, filter .25s ease; }
body.scatube-yt-home.sc-ui .video-meta h3 { min-height: 0 !important; }
body.scatube-yt-home.sc-ui .video-title-link { color: #fff2fa; text-decoration: none; }
body.scatube-yt-home.sc-ui .video-card:hover .video-title-link { color: #ff8ed8; }
body.scatube-yt-home.sc-ui .hub-duration { border-radius: 4px; font-size: 11px; }
body.scatube-yt-home.sc-ui .feed-menu-btn { min-width: 36px; min-height: 36px; }
@media (hover: hover) {
    body.scatube-yt-home.sc-ui .video-card:hover { opacity: 1; transform: none !important; }
    body.scatube-yt-home.sc-ui .video-card:hover .thumb-wrap {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px #0007 !important;
    }
    body.scatube-yt-home.sc-ui .video-card:hover .thumb { transform: scale(1.025); filter: brightness(.94); }
}

/* Keep the player dominant and make its controls readable on small screens. */
body.theme-scatube.sc-ui .p1-meta { padding-top: 14px !important; }
body.theme-scatube.sc-ui #videoTitle { line-height: 1.3 !important; }
body.theme-scatube.sc-ui .p1-meta > div:last-child button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 13px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    transition: background-color .18s ease, border-color .18s ease;
}
body.theme-scatube.sc-ui .p1-meta > div:last-child button:hover {
    background: #382135 !important;
    border-color: #bf6da6 !important;
}
body.theme-scatube.sc-ui .p1-channel-card {
    margin-top: 4px !important;
    padding-top: 18px !important;
}
body.theme-scatube.sc-ui .sugg-card {
    border-radius: 9px;
    transition: background-color .18s ease, transform .18s ease;
}
body.theme-scatube.sc-ui .sugg-card:hover { background: #251923; transform: translateX(2px); }
body.theme-scatube.sc-ui .sc-comment-delete {
    min-height: 32px;
    margin-left: auto;
    padding: 4px 9px;
    border: 1px solid var(--sc-line);
    border-radius: 6px;
    background: transparent;
    color: var(--sc-muted);
    font: 600 11px/1.2 Inter, sans-serif;
    cursor: pointer;
}
body.theme-scatube.sc-ui .sc-comment-delete:hover { border-color: #ff8ed8; color: #fff2fa; }
body.theme-scatube.sc-ui .sc-comment-delete:disabled { opacity: .5; cursor: wait; }
body.theme-scatube.sc-ui .sc-comment-pin { min-height:32px;padding:4px 9px;border:1px solid var(--sc-line);border-radius:6px;background:transparent;color:var(--sc-muted);font:600 11px Inter,sans-serif;cursor:pointer; }
body.theme-scatube.sc-ui .sc-comment-pin:hover { border-color:#ff8ed8;color:#fff2fa; }
body.theme-scatube.sc-ui .sc-comment-pin:disabled { opacity:.5;cursor:wait; }
body.theme-scatube.sc-ui .sc-comment-pinned { margin-bottom:5px;color:#ff8ed8;font:600 11px/1.3 Inter,sans-serif; }
body.theme-scatube.sc-ui .channel-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin-right: 7px;
    padding: 0;
    border: 1px solid var(--sc-line);
    border-radius: 50%;
    background: var(--sc-panel);
    color: var(--sc-text);
    cursor: pointer;
}
body.theme-scatube.sc-ui .channel-bell:hover { border-color: var(--sc-pink); }
body.theme-scatube.sc-ui .channel-bell:disabled { opacity: .5; cursor: wait; }
body.theme-scatube.sc-ui #btn-watch-later[aria-pressed="true"] { border-color: var(--sc-pink) !important; color: #ff8ed8 !important; }
body.theme-scatube.sc-ui .sc-comments-toolbar { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px; }
body.theme-scatube.sc-ui .sc-comments-toolbar label { display:flex;align-items:center;gap:8px;color:var(--sc-muted);font:500 12px Inter,sans-serif; }
body.theme-scatube.sc-ui .sc-comments-toolbar select { min-height:38px;padding:5px 10px;border:1px solid var(--sc-line);border-radius:7px;background:var(--sc-panel);color:var(--sc-text);font:600 12px Inter,sans-serif; }
body.theme-scatube.sc-ui .sc-comment-date { color:var(--sc-muted);font-size:11px;text-decoration:none; }
body.theme-scatube.sc-ui .sc-comment-date:hover { color:#ff8ed8;text-decoration:underline; }
@media (max-width: 768px) {
    body.scatube-yt-home.sc-ui .sc-hub-hero {
        margin: 8px 10px 5px !important;
        padding: 10px 12px !important;
    }
    body.scatube-yt-home.sc-ui .sc-hub-hero h1 { font-size: 19px !important; }
    body.scatube-yt-home.sc-ui .sc-intro-short { font-size: 12px; line-height: 1.35; }
    body.scatube-yt-home.sc-ui .sc-house-rules { margin-top: 5px; font-size: 11px; line-height: 1.4; }
    body.scatube-yt-home.sc-ui .sc-view-choice {
        margin: 5px 10px 2px;
        padding: 9px 12px;
        gap: 4px;
        grid-template-columns: 1fr;
    }
    body.scatube-yt-home.sc-ui .sc-view-choice p { line-height: 1.4; }
    body.scatube-yt-home.sc-ui .sc-view-choice label {
        min-height: 38px;
        padding-top: 5px;
        font-size: 12px;
    }
    body.scatube-yt-home.sc-ui .cat-bar-wrap { padding-block: 3px !important; }
    body.scatube-yt-home.sc-ui .hub-grid-heading { margin-top: 3px !important; }
    body.scatube-yt-home.sc-ui .hub-grid-heading h2 { font-size: 17px !important; }
    body.scatube-yt-home.sc-ui .grid-container { padding-top: 9px !important; }
    body.scatube-yt-home.sc-ui .video-card { margin-bottom: 2px; }
    body.theme-scatube.sc-ui .p1-meta > div:last-child { gap: 7px !important; }
    body.theme-scatube.sc-ui .p1-meta > div:last-child button { padding-inline: 11px !important; }
}
@media (max-width: 390px) {
    body.scatube-yt-home.sc-ui .sc-intro-portrait { width: 54px; height: 64px; }
    body.theme-scatube.sc-ui .p1-meta > div:last-child button { font-size: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
    body.sc-ui .cat-btn,
    body.sc-ui .thumb-wrap,
    body.sc-ui .video-card .thumb,
    body.sc-ui .p1-meta button,
    body.sc-ui .sugg-card { transition: none !important; }
}
