/* DD_CATALOGO_YOUTUBE_C3_HOME_PARITY_R2 */

:root{
    --dd-cat-bg:#0f0f0f;
    --dd-cat-surface:#272727;
    --dd-cat-text:#f1f1f1;
    --dd-cat-muted:#aaa;
    --dd-cat-top:64px;
    --dd-cat-guide:76px;
}

.desktop-header,
body>footer,
.mobile-nav{
    display:none!important;
}

body{
    padding-bottom:0!important;
    background:var(--dd-cat-bg)!important;
}

body>main{
    margin:0!important;
    padding:0!important;
}

[data-dd-page-slot]{
    width:100%;
}

.ddyt-catalog-home{
    min-height:100vh;
    color:var(--dd-cat-text);
    background:var(--dd-cat-bg);
    font-family:Roboto,Arial,sans-serif;
}

.dd-cat-sr-only{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}

.dd-topbar{
    position:fixed;
    z-index:800;
    top:0;
    left:0;
    right:0;
    height:var(--dd-cat-top);
    display:grid;
    grid-template-columns:260px minmax(260px,650px) minmax(180px,1fr);
    align-items:center;
    gap:18px;
    padding:0 22px 0 18px;
    background:#0f0f0f;
}

.dd-top-left,
.dd-top-right,
.dd-search-cluster{
    display:flex;
    align-items:center;
}

.dd-top-left{gap:16px}
.dd-top-right{justify-content:flex-end;gap:8px}
.dd-search-cluster{justify-content:center;gap:10px;min-width:0}

.dd-icon-btn{
    flex:0 0 40px;
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    padding:0;
    border:0;
    border-radius:999px;
    background:transparent;
    color:#f1f1f1;
    cursor:pointer;
}

.dd-icon-btn:hover{background:#272727}

.dd-icon-btn svg{
    width:24px;
    height:24px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.dd-wordmark{
    display:flex;
    align-items:center;
    width:150px;
    height:42px;
    overflow:hidden;
}

.dd-wordmark img{
    display:block;
    width:145px;
    height:auto;
    object-fit:contain;
}

.dd-search{
    width:min(100%,650px);
    height:40px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 64px;
}

.dd-search-box{min-width:0}

.dd-search input{
    width:100%;
    height:40px;
    padding:0 16px;
    border:1px solid #303030;
    border-radius:22px 0 0 22px;
    outline:0;
    background:#121212;
    color:#f1f1f1;
    font-size:16px;
}

.dd-search input:focus{
    border-color:#1c62b9;
    box-shadow:inset 1px 0 #1c62b9;
}

.dd-search-submit{
    height:40px;
    display:grid;
    place-items:center;
    border:1px solid #303030;
    border-left:0;
    border-radius:0 22px 22px 0;
    background:#222;
    color:#f1f1f1;
    cursor:pointer;
}

.dd-search-submit svg{
    width:23px;
    height:23px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
}

.dd-voice-search{background:#272727}
.dd-cat-mobile-search{display:none}

.dd-guide{
    position:fixed;
    z-index:700;
    top:var(--dd-cat-top);
    bottom:0;
    left:0;
    width:var(--dd-cat-guide);
    padding:8px 4px;
    background:#0f0f0f;
    transition:transform .18s ease;
}

.dd-guide-nav{
    display:grid;
    gap:3px;
}

.dd-guide-item{
    min-height:64px;
    display:grid;
    place-items:center;
    align-content:center;
    gap:4px;
    border-radius:10px;
    color:#f1f1f1;
    text-decoration:none;
    font-size:10px;
}

.dd-guide-item:hover,
.dd-guide-item.is-active{
    background:#272727;
}

.dd-guide-icon{
    display:grid;
    place-items:center;
}

.dd-guide-icon svg{
    width:24px;
    height:24px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.dd-cat-content{
    min-height:100vh;
    margin-left:var(--dd-cat-guide);
    padding:calc(var(--dd-cat-top) + 12px) 20px 44px;
    transition:margin-left .18s ease;
}

.ddyt-catalog-home.is-guide-collapsed .dd-guide{
    transform:translateX(-100%);
}

.ddyt-catalog-home.is-guide-collapsed .dd-cat-content{
    margin-left:0;
}

.dd-cat-chip-shell{
    position:sticky;
    z-index:500;
    top:var(--dd-cat-top);
    margin:0 -4px;
    padding:10px 4px 12px;
    background:#0f0f0f;
}

.dd-cat-chip-row{
    display:flex;
    gap:10px;
    overflow-x:auto;
    scrollbar-width:none;
    overscroll-behavior-inline:contain;
}

.dd-cat-chip-row::-webkit-scrollbar{display:none}

.dd-cat-chip{
    flex:0 0 auto;
    min-height:32px;
    display:inline-flex;
    align-items:center;
    padding:0 13px;
    border-radius:8px;
    background:#272727;
    color:#f1f1f1;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:background .15s ease;
}

.dd-cat-chip:hover{background:#3f3f3f}

.dd-cat-chip.is-active{
    background:#f1f1f1;
    color:#0f0f0f;
}

.dd-cat-feed{
    padding-top:18px;
}

.dd-cat-feed-head{
    margin-bottom:16px;
}

.dd-cat-feed-head h2{
    margin:0;
    color:#f1f1f1;
    font-size:20px;
    font-weight:700;
    letter-spacing:0;
}

.dd-cat-grid.catalog-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:36px 16px!important;
}

.dd-cat-grid .card{
    min-width:0;
    color:inherit;
    text-decoration:none;
}

.dd-cat-grid .poster{
    position:relative;
    width:100%;
    aspect-ratio:16/9!important;
    overflow:hidden;
    border:0!important;
    border-radius:10px!important;
    background:#181818!important;
    box-shadow:none!important;
}

.dd-cat-grid .poster img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 18%;
    transition:transform .18s ease;
}

.dd-cat-grid .card:hover .poster img{
    transform:scale(1.025);
}

.dd-cat-grid .poster-fallback{
    height:100%;
    display:grid;
    place-items:center;
    background:#181818;
    color:#717171;
}

.dd-cat-grid .card-title{
    margin:10px 2px 0!important;
    color:#f1f1f1!important;
    font-size:15px!important;
    font-weight:650!important;
    line-height:1.35!important;
    letter-spacing:0!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.dd-cat-grid .card-meta{
    margin:5px 2px 0!important;
    color:#aaa!important;
    font-size:12px!important;
    line-height:1.35;
}

.dd-cat-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:7px;
    margin:42px auto 14px;
}

.dd-cat-page-btn{
    min-width:38px;
    height:38px;
    display:inline-grid;
    place-items:center;
    padding:0 11px;
    border:0;
    border-radius:999px;
    background:#272727;
    color:#f1f1f1;
    text-decoration:none;
    font-size:14px;
    font-weight:650;
}

.dd-cat-page-btn:hover{background:#3f3f3f}

.dd-cat-page-btn.is-current{
    background:#f1f1f1;
    color:#0f0f0f;
}

.dd-cat-page-btn.is-disabled{opacity:.34}
.dd-cat-page-gap{color:#aaa;padding:0 3px}

.dd-cat-mobile-nav{display:none}

@media(max-width:960px){
    .dd-topbar{
        grid-template-columns:auto 1fr auto;
        padding:0 12px;
    }

    .dd-search-cluster{display:none}
    .dd-cat-mobile-search{display:grid}

    .dd-wordmark{width:130px}
    .dd-wordmark img{width:128px}

    .dd-guide{
        transform:translateX(-100%);
        width:220px;
        padding:10px;
        box-shadow:12px 0 30px rgba(0,0,0,.35);
    }

    .ddyt-catalog-home.is-guide-open .dd-guide{
        transform:translateX(0);
    }

    .dd-guide-item{
        grid-template-columns:34px 1fr;
        justify-items:start;
        min-height:48px;
        padding:0 12px;
        font-size:13px;
    }

    .dd-cat-content{
        margin-left:0;
        padding-left:14px;
        padding-right:14px;
        padding-bottom:86px;
    }

    .dd-cat-grid.catalog-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:24px 10px!important;
    }

    .dd-cat-mobile-nav{
        position:fixed;
        z-index:850;
        left:0;
        right:0;
        bottom:0;
        height:64px;
        display:grid;
        grid-template-columns:repeat(4,1fr);
        border-top:1px solid #272727;
        background:#0f0f0f;
    }

    .dd-cat-mobile-nav a{
        display:grid;
        place-items:center;
        align-content:center;
        gap:3px;
        color:#f1f1f1;
        text-decoration:none;
        font-size:10px;
    }

    .dd-cat-mobile-nav a.is-active{font-weight:700}

    .dd-cat-mobile-nav svg{
        width:23px;
        height:23px;
        fill:none;
        stroke:currentColor;
        stroke-width:1.8;
    }
}

@media(max-width:560px){
    :root{--dd-cat-top:56px}

    .dd-topbar{height:56px}

    .dd-menu-btn{
        width:36px;
        flex-basis:36px;
    }

    .dd-wordmark{width:116px}
    .dd-wordmark img{width:114px}

    .dd-voice-search,
    .dd-top-more{
        display:none;
    }

    .dd-cat-content{
        padding-top:calc(var(--dd-cat-top) + 8px);
        padding-left:8px;
        padding-right:8px;
    }

    .dd-cat-chip-shell{padding-top:8px}

    .dd-cat-chip{
        min-height:30px;
        padding:0 11px;
        font-size:12px;
    }

    .dd-cat-feed{padding-top:12px}
    .dd-cat-feed-head{margin-bottom:12px;padding:0 2px}
    .dd-cat-feed-head h2{font-size:18px}

    .dd-cat-grid.catalog-grid{
        gap:20px 7px!important;
    }

    .dd-cat-grid .poster{
        border-radius:8px!important;
    }

    .dd-cat-grid .card-title{
        margin-top:7px!important;
        font-size:12px!important;
    }

    .dd-cat-grid .card-meta{
        font-size:10px!important;
    }

    .dd-cat-pagination{
        gap:5px;
        margin-top:28px;
    }

    .dd-cat-page-btn{
        min-width:34px;
        height:34px;
        padding:0 9px;
        font-size:12px;
    }
}
