/* SakuraStream - Soft Pink Entertainment Theme */

:root {
    --pk1: #f06292;
    --pk2: #e91e8c;
    --pk3: #ff80ab;
    --pk-light: #fce4ec;
    --pk-pale: #fff8fb;
    --pk-grad: linear-gradient(135deg, #f06292 0%, #e91e8c 100%);
    --pk-grad2: linear-gradient(135deg, #ff80ab 0%, #f06292 100%);
    --bg-base: #fff8fb;
    --bg-surface: #ffffff;
    --bg-raised: #fff0f5;
    --txt-primary: #3d2040;
    --txt-secondary: #7b5e72;
    --txt-muted: #b08fa0;
    --border-soft: #f8bbd0;
    --border-mid: #f48fb1;
    --shadow-pink: rgba(240, 98, 146, 0.15);
    --shadow-soft: rgba(200, 100, 140, 0.1);
    --r-base: 8px;
    --r-sm: 5px;
    --r-lg: 12px;
    --r-pill: 20px;
    --ease: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Tahoma, Arial, sans-serif;
    background: var(--bg-base);
    color: var(--txt-primary);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

/* HEADER */
.site-header {
    background: var(--pk-grad);
    padding: 0.5rem 0;
    box-shadow: 0 3px 10px var(--shadow-pink);
}

.header-inner { display: flex; justify-content: center; align-items: center; }

.brand-wrap { display: flex; align-items: center; gap: 18px; }

.brand-link { text-decoration: none; }

.brand-title {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-style: normal;
    text-decoration: none;
    display: inline-block;
}

.brand-link:hover .brand-title { color: #fff0f5; }

.addr-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--r-pill);
}

.addr-tag {
    font-size: 10px;
    font-weight: 700;
    color: #ffe0eb;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.addr-val {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* LAYOUT */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 14px; }
.block { padding: 6px 0; }

/* NAV */
.nav-board {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    overflow: hidden;
    margin-bottom: 7px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 2px 6px var(--shadow-soft);
}

.nav-strip {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-soft);
}

.nav-strip:last-child { border-bottom: none; }

.nav-zone {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 6px;
    flex-shrink: 0;
    background: var(--pk-grad);
}

.nav-items {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px;
    align-items: center;
    background: var(--bg-surface);
}

.nav-items a {
    display: inline-block;
    color: var(--txt-secondary);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--r-pill);
    transition: var(--ease);
    background: var(--bg-raised);
    border: 1px solid var(--border-soft);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-items a:hover {
    background: var(--pk1);
    color: #fff;
    border-color: var(--pk1);
    box-shadow: 0 2px 8px var(--shadow-pink);
}

.nav-items a.active {
    background: var(--pk-grad);
    color: #fff;
    border-color: var(--pk1);
    font-weight: 700;
}

/* SEARCH */
.seach {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    padding: 10px;
    margin-bottom: 7px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 2px 6px var(--shadow-soft);
}

.seach form { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }

.seach input[type="text"] {
    flex: 1;
    min-width: 60px;
    padding: 9px 13px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--r-pill);
    background: var(--bg-raised);
    color: var(--txt-primary);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.seach input[type="text"]:focus {
    border-color: var(--pk1);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(240,98,146,0.12);
}

.seach input[type="text"]::placeholder { color: var(--txt-muted); }

.seach button {
    padding: 9px 13px;
    border: none;
    border-radius: var(--r-pill);
    background: var(--pk-grad);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.seach button:hover {
    background: var(--pk-grad2);
    box-shadow: 0 4px 12px var(--shadow-pink);
}

/* HOT TAGS */
.hotzone {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    margin-bottom: 7px;
    border: 1px solid var(--border-soft);
    overflow: hidden;
    box-shadow: 0 2px 6px var(--shadow-soft);
}

.hotzone-hd {
    padding: 7px 12px;
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(135deg, #fff0f5 0%, #fce4ec 100%);
}

.hotzone-hd h4 { font-size: 13px; font-weight: 700; color: var(--pk2); margin: 0; }
.hotzone-hd strong { font-weight: 700; }

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px;
    background: transparent;
    border: none;
    margin: 0;
}

.grid-item {
    padding: 4px 13px;
    background: var(--bg-raised);
    color: var(--txt-secondary);
    border-radius: var(--r-pill);
    font-size: 13px;
    text-decoration: none;
    border: 1px solid var(--border-soft);
    transition: var(--ease);
    display: inline-block;
}

.grid-item:hover { background: var(--pk1); color: #fff; border-color: var(--pk1); }

/* SECTION BLOCKS */
.mhlleset { margin-bottom: 7px; }

.mhlleset-main {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    padding: 13px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 2px 6px var(--shadow-soft);
}

.mhlleset-heading {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border-soft);
    position: relative;
}

.mhlleset-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 52px;
    height: 2px;
    background: var(--pk-grad);
    border-radius: 2px;
}

.mhlleset-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--txt-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mhlleset-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 17px;
    background: var(--pk-grad);
    border-radius: 2px;
    flex-shrink: 0;
}

.mhlleset-title a { color: var(--txt-primary); text-decoration: none; transition: var(--ease); }
.mhlleset-title a:hover { color: var(--pk1); }

/* CARD GRID */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    list-style: none;
    padding: 0;
}

.thumbnail2-group li { animation: fadeUp 0.4s ease both; }
.thumbnail2-group li:nth-child(1) { animation-delay: 0.04s; }
.thumbnail2-group li:nth-child(2) { animation-delay: 0.08s; }
.thumbnail2-group li:nth-child(3) { animation-delay: 0.12s; }
.thumbnail2-group li:nth-child(4) { animation-delay: 0.16s; }
.thumbnail2-group li:nth-child(5) { animation-delay: 0.20s; }
.thumbnail2-group li:nth-child(6) { animation-delay: 0.24s; }
.thumbnail2-group li:nth-child(7) { animation-delay: 0.28s; }
.thumbnail2-group li:nth-child(8) { animation-delay: 0.32s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.thumbnail2 {
    display: block;
    border-radius: var(--r-sm);
    overflow: hidden;
    position: relative;
    background: var(--bg-raised);
    aspect-ratio: 600 / 350;
    border: 1px solid var(--border-soft);
}

.thumbnail2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.32s ease;
}

.thumbnail2:hover img { transform: scale(1.06); }

.thumbnail2::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: rgba(255,255,255,0);
    background: rgba(240,98,146,0);
    transition: var(--ease);
}

.thumbnail2:hover::after {
    color: rgba(255,255,255,0.95);
    background: rgba(240,98,146,0.42);
}

.video-info { padding: 6px 0 2px; }

.video-info h5 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-info h5 a { color: var(--txt-secondary); text-decoration: none; transition: var(--ease); }
.video-info h5 a:hover { color: var(--pk1); }

/* TORRENT CAPTURE */
.torrent-capture-grid { width: 100%; margin-top: 10px; }

.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-soft);
    transition: var(--ease);
}

.torrent-capture-grid img:hover,
.torrent-capture-grid .img_item img:hover { opacity: 0.9; }

.torrent-capture-grid .img_item { display: block; width: 100%; }

/* DOWNLOAD BUTTONS */
.download {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 10px;
    margin: 11px 0;
    background: var(--bg-surface);
    border-radius: var(--r-base);
    border: 1px solid var(--border-soft);
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--pk-grad);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    box-shadow: 0 3px 10px var(--shadow-pink);
}

.down_btn:hover {
    background: var(--pk-grad2);
    box-shadow: 0 5px 16px var(--shadow-pink);
    transform: translateY(-1px);
    color: #fff;
}

/* SHARE */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    background: var(--bg-surface);
    border-radius: var(--r-base);
    border: 1px solid var(--border-soft);
    margin: 11px 0;
    flex-wrap: nowrap;
    box-shadow: 0 2px 6px var(--shadow-soft);
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    background: var(--bg-raised);
    border-radius: var(--r-pill);
    border: 1px solid var(--border-soft);
}

.share-label { font-weight: 700; font-size: 12px; color: var(--pk1); white-space: nowrap; flex-shrink: 0; }

.share-url {
    font-size: 12px;
    color: var(--txt-secondary);
    font-family: 'Courier New', Courier, monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-copy-btn {
    padding: 10px 18px;
    background: var(--pk-grad);
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 10px var(--shadow-pink);
}

.share-copy-btn:hover { background: var(--pk-grad2); box-shadow: 0 5px 14px var(--shadow-pink); }
.share-copy-btn:active { transform: scale(0.97); }
.share-icon { font-size: 15px; }

/* PAGINATION */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 15px 0;
}

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 6px 13px;
    border-radius: var(--r-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.a_page_info { background: var(--bg-surface); color: var(--txt-secondary); border: 1px solid var(--border-mid); }
.a_page_info:hover { background: var(--pk1); border-color: var(--pk1); color: #fff; }
.page_info_focus { background: var(--pk-grad); color: #fff; border: 1px solid var(--pk1); cursor: default; }

/* FOOTER */
.site-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 2px solid var(--border-soft);
    margin-top: 18px;
    background: var(--bg-surface);
}

.site-footer p { margin: 5px 0; color: var(--txt-muted); font-size: 12px; }
.site-footer a { color: var(--txt-muted); text-decoration: none; transition: var(--ease); }
.site-footer a:hover { color: var(--pk1); }

.friend-links { padding: 10px; background: var(--bg-surface); border-radius: var(--r-base); border: 1px solid var(--border-soft); }
.friend-links dl { margin: 0; }
.friend-links dd { display: inline-block; margin: 3px 4px; }
.friend-links a { color: var(--txt-secondary); text-decoration: none; transition: var(--ease); font-size: 13px; padding: 2px 6px; }
.friend-links a:hover { color: var(--pk1); }

/* COMPAT: txtguanggao2 */
.txtguanggao2 { padding: 10px; background: var(--bg-surface); border-radius: var(--r-base); border: 1px solid var(--border-soft); }
.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px 4px; }
.txtguanggao2 a { color: var(--txt-secondary); text-decoration: none; transition: var(--ease); font-size: 13px; padding: 2px 5px; }
.txtguanggao2 a:hover { color: var(--pk1); }

/* MISC */
img[data-original] { background: var(--bg-raised); }
.clearfix::after { content: ''; display: table; clear: both; }
.p_c { cursor: pointer; }
.pd5 { padding: 2px 5px; }

/* HIDE UTILS */
.hide_mobile { display: block; }
.hide_pc { display: block; }

@media (max-width: 768px) { .hide_mobile { display: none !important; } }
@media (min-width: 769px) { .hide_pc { display: none !important; } }

/* RESPONSIVE ≤768px */
@media (max-width: 768px) {
    .wrap { padding: 0 8px; }
    .block { padding: 5px 0; }

    .brand-title { font-size: 19px; }
    .addr-badge { gap: 6px; padding: 3px 10px; }
    .addr-tag { font-size: 9px; }
    .addr-val { font-size: 14px; }

    /* nav: zone=15%, items=85%, 4 cols = 2 rows */
    .nav-zone { width: 15%; font-size: 10px; padding: 6px 3px; }
    .nav-items { width: 85%; font-size: 12px; gap: 3px; padding: 6px 4px; display: flex; flex-wrap: wrap; }
    .nav-items a { padding: 4px 2px; font-size: 12px; width: calc((100% - 9px) / 4); flex-shrink: 0; flex-grow: 0; }

    /* search: single row */
    .seach form { flex-wrap: nowrap; gap: 5px; }
    .seach input[type="text"] { min-width: 50px; padding: 8px 10px; font-size: 13px; }
    .seach button { padding: 8px 9px; font-size: 12px; }

    /* cards: 2 per row */
    .thumbnail2-group { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .video-info h5 { font-size: 12px; }
    .mhlleset-title { font-size: 15px; }
    .mhlleset-main { padding: 10px; }

    .download { gap: 7px; flex-wrap: nowrap; padding: 11px 8px; }
    .down_btn { padding: 9px 13px; font-size: 12px; }

    .share-section { flex-wrap: nowrap; padding: 9px; gap: 6px; }
    .share-url-display { padding: 7px 10px; }
    .share-label { font-size: 11px; }
    .share-url { font-size: 11px; }
    .share-copy-btn { padding: 8px 11px; font-size: 12px; }
    .share-icon { font-size: 14px; }

    .page_info_div { padding: 12px 0; }
    .a_page_info, .page_info_focus { padding: 5px 10px; font-size: 12px; min-width: 32px; }
    .site-footer { padding: 14px 0; margin-top: 14px; }
}

/* RESPONSIVE ≤480px */
@media (max-width: 480px) {
    .brand-title { font-size: 17px; }
    .addr-val { font-size: 13px; }

    .nav-zone { width: 15%; font-size: 10px; padding: 5px 2px; }
    .nav-items { width: 85%; gap: 3px; padding: 5px 3px; }
    .nav-items a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }

    .seach input[type="text"] { padding: 7px 8px; font-size: 12px; min-width: 40px; }
    .seach button { padding: 7px 7px; font-size: 11px; }

    .mhlleset-title { font-size: 14px; }
    .mhlleset-main { padding: 8px; }
    .down_btn { padding: 8px 10px; font-size: 12px; }
    .share-section { padding: 7px; gap: 5px; }
    .share-copy-btn { padding: 7px 9px; font-size: 11px; }
}
