/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --yk-bg: #0d0f14;
    --yk-bg2: #151820;
    --yk-bg3: #1c2030;
    --yk-bg4: #242840;
    --yk-bg5: #2e3450;
    --yk-blue: #2060f0;
    --yk-blue-dk: #1848cc;
    --yk-blue-lt: rgba(32,96,240,.18);
    --yk-cyan: #00d4ff;
    --yk-cyan-dk: #00b0d8;
    --yk-gold: #f5c518;
    --yk-red: #e8002d;
    --yk-txt-hi: #e8eaf0;
    --yk-txt-md: #9098b8;
    --yk-txt-lo: #505878;
    --yk-line: #222840;
    --yk-line2: #2e3660;
    --yk-sh1: 0 1px 5px rgba(0,0,0,.5);
    --yk-sh2: 0 4px 16px rgba(0,0,0,.6);
    --yk-sh3: 0 8px 28px rgba(0,0,0,.7);
    --yk-r: 6px;
    --yk-r2: 4px;
    --yk-r3: 8px;
    --yk-pill: 20px;
}

html { font-size: 15px; }

body {
    background: var(--yk-bg);
    color: var(--yk-txt-hi);
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

a { color: var(--yk-cyan); text-decoration: none; transition: color .16s; }
a:hover { color: var(--yk-cyan-dk); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.ykc::after { content: ''; display: table; clear: both; }

/* ===== CONTAINER ===== */
.yk-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== HEADER ===== */
.yk-topbar {
    background: var(--yk-bg2);
    border-bottom: 1px solid var(--yk-line);
    padding: 9px 0;
}

.yk-topbar .yk-box {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.yk-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.yk-logolink {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.yk-sitename {
    font-size: 1.38rem;
    font-weight: 900;
    color: var(--yk-txt-hi);
    font-style: normal;
    letter-spacing: -.4px;
    text-decoration: none;
    border-bottom: none;
    background: linear-gradient(135deg, #60b0ff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yk-urltag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--yk-bg3);
    border: 1px solid var(--yk-line2);
    border-radius: var(--yk-r2);
    padding: 4px 12px;
}

.yk-urltag .ut-note {
    font-size: 0.67rem;
    color: var(--yk-txt-lo);
    white-space: nowrap;
}

.yk-urltag .ut-addr {
    font-size: 1.07rem;
    font-weight: 700;
    color: var(--yk-cyan);
    white-space: nowrap;
}

/* ===== PROMO ===== */
.yk-promo {
    margin: 4px 0 3px;
}
.yk-promo img { border-radius: var(--yk-r); width: 100%; }

/* ===== CATEGORY NAV ===== */
.yk-catdeck {
    background: var(--yk-bg2);
    border: 1px solid var(--yk-line);
    border-top: 2px solid var(--yk-blue);
    border-radius: var(--yk-r3);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--yk-sh1);
}

.yk-catrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--yk-line);
    min-height: 38px;
}

.yk-catrow:last-child { border-bottom: none; }

.yk-catlbl {
    background: var(--yk-bg);
    color: var(--yk-txt-lo);
    font-size: .67rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--yk-line);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
}

.yk-catitems {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 4px 8px;
    gap: 3px;
    flex: 1;
}

.yk-catitems a {
    font-size: .82rem;
    color: var(--yk-txt-md);
    padding: 4px 5px;
    border-radius: var(--yk-r2);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.yk-catitems a:hover {
    background: var(--yk-blue-lt);
    color: var(--yk-cyan);
    border-color: rgba(0,212,255,.25);
}

.yk-catitems a.active {
    background: var(--yk-blue);
    color: #fff;
    border-color: var(--yk-blue);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.yk-searcharea {
    background: var(--yk-bg2);
    border: 1px solid var(--yk-line);
    border-radius: var(--yk-r3);
    padding: 8px 12px;
    margin: 4px 0;
    box-shadow: var(--yk-sh1);
}

.yk-searcharea form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.yk-searcharea input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 36px;
    border: 1.5px solid var(--yk-line2);
    border-radius: var(--yk-r2);
    padding: 0 12px;
    font-size: .88rem;
    color: var(--yk-txt-hi);
    background: var(--yk-bg3);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.yk-searcharea input[type="text"]::placeholder { color: var(--yk-txt-lo); }

.yk-searcharea input[type="text"]:focus {
    border-color: var(--yk-blue);
    box-shadow: 0 0 0 3px rgba(32,96,240,.15);
    background: var(--yk-bg4);
}

.yk-searcharea button {
    height: 36px;
    padding: 0 13px;
    border: 1px solid var(--yk-line2);
    border-radius: var(--yk-r2);
    background: var(--yk-bg4);
    color: var(--yk-txt-md);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
}

.yk-searcharea button:hover {
    background: var(--yk-bg5);
    color: var(--yk-txt-hi);
}

.yk-searcharea button[value="1"] {
    background: var(--yk-blue);
    color: #fff;
    border-color: var(--yk-blue);
}
.yk-searcharea button[value="1"]:hover { background: var(--yk-blue-dk); border-color: var(--yk-blue-dk); }

.yk-searcharea button[value="2"] {
    background: var(--yk-cyan);
    color: #000;
    border-color: var(--yk-cyan);
}
.yk-searcharea button[value="2"]:hover { background: var(--yk-cyan-dk); border-color: var(--yk-cyan-dk); }

/* ===== HOT TAGS ===== */
.yk-hotbar {
    background: var(--yk-bg2);
    border: 1px solid var(--yk-line);
    border-radius: var(--yk-r3);
    padding: 7px 12px;
    margin: 4px 0;
    box-shadow: var(--yk-sh1);
}

.yk-hotbar h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--yk-cyan);
    margin-bottom: 5px;
    letter-spacing: .3px;
}

.yk-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.yk-tagcloud .yk-tklink {
    display: inline-block;
    background: var(--yk-bg3);
    color: var(--yk-txt-md);
    border: 1px solid var(--yk-line2);
    border-radius: var(--yk-r2);
    padding: 2px 10px;
    font-size: .76rem;
    text-decoration: none;
    transition: all .15s;
}

.yk-tagcloud .yk-tklink:hover {
    background: var(--yk-blue-lt);
    color: var(--yk-cyan);
    border-color: rgba(0,212,255,.3);
}

/* ===== CONTENT ===== */
.yk-section {
    background: var(--yk-bg2);
    border: 1px solid var(--yk-line);
    border-radius: var(--yk-r3);
    padding: 12px 12px 10px;
    margin: 4px 0;
    box-shadow: var(--yk-sh1);
}

.yk-sect-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--yk-line);
    position: relative;
}

.yk-sect-hd::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: var(--yk-blue);
    border-radius: 1px;
}

.yk-sect-hd h3 {
    font-size: .97rem;
    font-weight: 700;
    color: var(--yk-txt-hi);
}

.yk-sect-hd h3 a { color: var(--yk-txt-hi); }
.yk-sect-hd h3 a:hover { color: var(--yk-cyan); }

.yk-sect-hd h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--yk-txt-hi);
}

/* ===== MEDIA GRID ===== */
.yk-vidgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.yk-vidgrid li {
    border-radius: var(--yk-r);
    overflow: hidden;
    border: 1px solid var(--yk-line);
    background: var(--yk-bg3);
    transition: box-shadow .2s, transform .2s, border-color .2s;
    min-width: 0;
}

.yk-vidgrid li:hover {
    box-shadow: var(--yk-sh3);
    transform: translateY(-2px);
    border-color: var(--yk-blue);
}

.yk-vidthumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--yk-bg4);
}

.yk-vidthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
    opacity: .85;
}

.yk-vidthumb:hover img { transform: scale(1.05); opacity: 1; }

.yk-vidtxt {
    padding: 5px 7px 7px;
}

.yk-vidtxt h5 {
    font-size: .78rem;
    font-weight: 500;
    color: var(--yk-txt-md);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.yk-vidtxt h5 a { color: var(--yk-txt-md); }
.yk-vidtxt h5 a:hover { color: var(--yk-cyan); }

/* ===== PAGINATION ===== */
.yk-pgzone {
    margin: 12px 0 5px;
    display: flex;
    justify-content: center;
}

.yk-pgrow {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.yk-pgrow a.yk-pgbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--yk-bg3);
    border: 1px solid var(--yk-line2);
    border-radius: var(--yk-r2);
    font-size: .84rem;
    color: var(--yk-txt-md);
    text-decoration: none;
    transition: all .15s;
}

.yk-pgrow a.yk-pgbtn:hover {
    background: var(--yk-blue-lt);
    border-color: var(--yk-blue);
    color: var(--yk-cyan);
}

.yk-pgrow a.yk-pgcur {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--yk-blue);
    border: 1px solid var(--yk-blue);
    border-radius: var(--yk-r2);
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    cursor: default;
}

/* ===== FOOTER ===== */
.yk-footpanel {
    background: var(--yk-bg2);
    border: 1px solid var(--yk-line);
    border-radius: var(--yk-r3);
    padding: 9px 13px;
    margin: 4px 0;
    box-shadow: var(--yk-sh1);
}

.yk-flnkset {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.yk-flnkset dd { display: inline; }

.yk-flnkset a {
    display: inline-block;
    font-size: .77rem;
    color: var(--yk-txt-lo);
    padding: 2px 9px;
    border-radius: var(--yk-r2);
    border: 1px solid var(--yk-line);
    background: var(--yk-bg3);
    text-decoration: none;
    transition: all .15s;
}

.yk-flnkset a:hover { color: var(--yk-cyan); border-color: rgba(0,212,255,.4); }

.yk-footcopy {
    text-align: center;
    padding: 8px 0 13px;
    color: var(--yk-txt-lo);
    font-size: .76rem;
}

/* ===== DETAIL ===== */
.yk-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 12px 15px;
    font-size: .97rem;
    margin: 4px 0;
    word-break: break-all;
    background: var(--yk-bg2);
    border: 1px solid var(--yk-line);
    border-left: 3px solid var(--yk-blue);
    border-radius: var(--yk-r);
    box-shadow: var(--yk-sh1);
}

.yk-dtl-title a {
    color: var(--yk-cyan);
    font-weight: 700;
    margin-right: 6px;
}

.yk-dtl-specs {
    font-size: .9rem;
    line-height: 2;
    padding: 14px 17px;
    background: var(--yk-bg2);
    border: 1px solid var(--yk-line);
    border-radius: var(--yk-r);
    box-shadow: var(--yk-sh1);
    margin: 4px 0;
    color: var(--yk-txt-md);
}

.yk-prevbox {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.yk-prevbox picture,
.yk-prevbox img {
    width: 100%;
    height: auto;
    border-radius: var(--yk-r2);
    display: block;
}

/* ===== BUTTONS ===== */
.yk-actrow {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 11px 0;
}

.yk-actbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 22px;
    background: var(--yk-blue);
    color: #fff;
    border: none;
    border-radius: var(--yk-r2);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .13s;
    text-decoration: none;
}

.yk-actbtn:hover {
    background: var(--yk-blue-dk);
    color: #fff;
    transform: translateY(-1px);
}

.yk-clitip {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.yk-clitip a { color: var(--yk-cyan); font-weight: 600; }
.yk-clitip a:hover { color: var(--yk-cyan-dk); }

/* ===== SHARE ===== */
.yk-shareline {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--yk-bg3);
    border: 1px solid var(--yk-line);
    border-radius: var(--yk-r3);
    padding: 8px 13px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.yk-shareline .ysl-lbl { font-size: .77rem; color: var(--yk-txt-lo); white-space: nowrap; }
.yk-shareline .ysl-url { font-size: .79rem; color: var(--yk-txt-md); flex: 1; min-width: 0; word-break: break-all; }

.yk-shareline .ysl-cpbtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    background: var(--yk-blue);
    color: #fff;
    border: none;
    border-radius: var(--yk-r2);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.yk-shareline .ysl-cpbtn:hover { background: var(--yk-blue-dk); }

/* ===== VISIBILITY ===== */
.yk-pc { display: block; }
.yk-mb { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .yk-vidgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .yk-pc { display: none; }
    .yk-mb { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .yk-sitename { font-size: 1.1rem; }
    .yk-urltag .ut-addr { font-size: .9rem; }

    .yk-catrow { align-items: stretch; }

    .yk-catlbl {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .yk-catitems {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        padding: 4px 5px;
        align-items: center;
    }

    .yk-catitems a {
        font-size: 12px;
        padding: 5px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .yk-searcharea form {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .yk-searcharea input[type="text"] {
        height: 34px;
        font-size: .79rem;
        padding: 0 7px;
    }

    .yk-searcharea button {
        height: 34px;
        padding: 0 7px;
        font-size: .74rem;
    }

    .yk-vidgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .yk-vidthumb { aspect-ratio: 600 / 350; }
    .yk-vidtxt h5 { font-size: .72rem; }
    .yk-section { padding: 9px 9px 7px; }
    .yk-actbtn { padding: 9px 14px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .yk-catlbl { font-size: 10px; }
    .yk-catitems a { font-size: 13px; }
}

@media (max-width: 380px) {
    .yk-catlbl { font-size: 10px; }
    .yk-catitems a { font-size: 12px; }
    .yk-searcharea button { padding: 0 5px; font-size: .68rem; }
}
