/* StreamVault - Dark Entertainment Theme */

:root {
    --brand: #f47521;
    --brand-deep: #d45f0a;
    --brand-glow: rgba(244, 117, 33, 0.35);
    --accent-cold: #1a9fd4;
    --bg-base: #0d0d0d;
    --bg-surface: #161616;
    --bg-raised: #1e1e1e;
    --bg-hover: #252525;
    --txt-primary: #f0f0f0;
    --txt-secondary: #a8a8a8;
    --txt-muted: #606060;
    --border-dim: #2a2a2a;
    --border-mid: #333333;
    --shadow-soft: rgba(0, 0, 0, 0.4);
    --shadow-deep: rgba(0, 0, 0, 0.7);
    --brand-grad: linear-gradient(135deg, #f47521 0%, #e05a00 100%);
    --r-base: 6px;
    --r-sm: 4px;
    --r-lg: 10px;
    --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: 'Trebuchet MS', 'Lucida Sans Unicode', 'Segoe UI', Tahoma, Geneva, sans-serif;
    background: var(--bg-base);
    color: var(--txt-primary);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ============ HEADER ============ */
.site-header {
    background: var(--bg-surface);
    border-bottom: 2px solid var(--brand);
    padding: 0.55rem 0;
    box-shadow: 0 3px 12px rgba(244, 117, 33, 0.15);
}

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

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

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

.brand-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: 1px;
    text-shadow: 0 0 18px var(--brand-glow);
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
    display: inline-block;
}

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

.addr-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px;
    background: rgba(244, 117, 33, 0.08);
    border: 1px solid rgba(244, 117, 33, 0.4);
    border-radius: 30px;
}

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

.addr-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--txt-primary);
    letter-spacing: 0.5px;
    font-family: 'Courier New', Courier, monospace;
}

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

.block {
    padding: 10px 0;
}

/* ============ NAV ============ */
.nav-board {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border-dim);
}

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

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

.nav-zone {
    font-weight: 700;
    font-size: 14px;
    color: var(--txt-secondary);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    background: rgba(244, 117, 33, 0.05);
}

.nav-items {
    font-size: 13px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 8px;
    align-items: center;
}

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

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

.nav-items a.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 2px 8px var(--brand-glow);
    font-weight: 700;
}

/* ============ SEARCH ============ */
.search-panel {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    padding: 11px;
    margin-bottom: 10px;
    border: 1px solid var(--border-dim);
}

.search-panel form {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    align-items: center;
}

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

.search-panel input[type="text"]:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-glow);
}

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

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

.search-panel button:hover {
    background: linear-gradient(135deg, #ff8c3a 0%, #f47521 100%);
    box-shadow: 0 4px 12px var(--brand-glow);
}

/* ============ HOT TAGS ============ */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px;
    background: var(--bg-surface);
    border-radius: var(--r-base);
    margin-bottom: 10px;
    border: 1px solid var(--border-dim);
}

.tag-item {
    padding: 5px 13px;
    background: var(--bg-raised);
    color: var(--txt-secondary);
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid var(--border-mid);
    transition: var(--ease);
    display: inline-block;
}

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

/* ============ HOT TAGS WRAPPER ============ */
.hotzone {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    margin-bottom: 10px;
    border: 1px solid var(--border-dim);
    overflow: hidden;
}

.hotzone-hd {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-dim);
    background: rgba(244,117,33,0.07);
}

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

.hotzone-hd strong {
    font-weight: 700;
}

/* ============ SECTION BLOCKS ============ */
.media-section {
    margin-bottom: 10px;
}

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

.section-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--brand-grad);
    border-radius: 2px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--txt-primary);
    letter-spacing: 0.3px;
}

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

.section-title a:hover {
    color: var(--brand);
}

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

.card-grid li {
    animation: fadeUp 0.4s ease both;
}

.card-grid li:nth-child(1) { animation-delay: 0.04s; }
.card-grid li:nth-child(2) { animation-delay: 0.08s; }
.card-grid li:nth-child(3) { animation-delay: 0.12s; }
.card-grid li:nth-child(4) { animation-delay: 0.16s; }
.card-grid li:nth-child(5) { animation-delay: 0.2s; }
.card-grid li:nth-child(6) { animation-delay: 0.24s; }
.card-grid li:nth-child(7) { animation-delay: 0.28s; }
.card-grid li:nth-child(8) { animation-delay: 0.32s; }

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

.card-thumb {
    display: block;
    border-radius: var(--r-sm);
    overflow: hidden;
    position: relative;
    background: var(--bg-raised);
    aspect-ratio: 600 / 350;
}

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

.card-thumb:hover img {
    transform: scale(1.06);
}

.card-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: rgba(255,255,255,0.0);
    background: rgba(0,0,0,0);
    transition: var(--ease);
}

.card-thumb:hover::after {
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.45);
}

.card-meta {
    padding: 7px 0 2px;
}

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

.card-meta h5 a {
    color: var(--txt-secondary);
    text-decoration: none;
    transition: var(--ease);
}

.card-meta h5 a:hover {
    color: var(--brand);
}

/* ============ TORRENT CAPTURE ============ */
.capture-frame {
    width: 100%;
    margin-bottom: 12px;
}

.capture-frame img,
.capture-frame .img_item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-sm);
    transition: var(--ease);
}

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

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

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

.dl-btn {
    display: inline-block;
    padding: 11px 22px;
    background: var(--brand-grad);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    letter-spacing: 0.3px;
}

.dl-btn:hover {
    background: linear-gradient(135deg, #ff8c3a 0%, #f47521 100%);
    box-shadow: 0 5px 14px var(--brand-glow);
    transform: translateY(-1px);
    color: #fff;
}

/* ============ SHARE SECTION ============ */
.link-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    background: var(--bg-surface);
    border-radius: var(--r-base);
    border: 1px solid var(--border-dim);
    margin: 14px 0;
    flex-wrap: nowrap;
}

.link-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    background: var(--bg-raised);
    border-radius: var(--r-sm);
    border: 1px solid var(--border-mid);
}

.lbl-tag {
    font-weight: 700;
    font-size: 12px;
    color: var(--brand);
    white-space: nowrap;
    flex-shrink: 0;
}

.lbl-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;
}

.copy-link-btn {
    padding: 11px 20px;
    background: var(--brand-grad);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    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;
}

.copy-link-btn:hover {
    box-shadow: 0 5px 14px var(--brand-glow);
}

.copy-link-btn:active {
    transform: scale(0.97);
}

.copy-icon {
    font-size: 16px;
}

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

.pg-link,
.pg-current {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.pg-link {
    background: var(--bg-surface);
    color: var(--txt-secondary);
    border: 1px solid var(--border-mid);
}

.pg-link:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pg-current {
    background: var(--brand-grad);
    color: #fff;
    border: 1px solid var(--brand);
    cursor: default;
}

/* ============ FOOTER ============ */
.site-footer {
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid var(--border-dim);
    margin-top: 24px;
    background: var(--bg-surface);
}

.site-footer p {
    margin: 6px 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(--brand);
}

.friend-links {
    padding: 11px;
    background: var(--bg-surface);
    border-radius: var(--r-base);
    border: 1px solid var(--border-dim);
}

.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(--brand);
}

/* ============ DETAIL INFO ============ */
.detail-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 18px;
    font-size: 17px;
    margin: 16px 0;
    word-break: break-all;
    background: var(--bg-surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-dim);
}

.detail-info-box {
    font-size: 15px;
    line-height: 1.9;
    padding: 22px;
    background: var(--bg-surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-dim);
    margin: 14px 0;
}

/* ============ MHLLESET compat aliases ============ */
.mhlleset {
    margin-bottom: 10px;
}

.mhlleset-main {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    padding: 14px;
    border: 1px solid var(--border-dim);
}

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

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

.mhlleset-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--txt-primary);
}

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

.mhlleset-title a:hover {
    color: var(--brand);
}

/* thumbnail2-group compat */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    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.2s; }
.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; }

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

.thumbnail2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s 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: 28px;
    color: rgba(255,255,255,0);
    background: rgba(0,0,0,0);
    transition: var(--ease);
}

.thumbnail2:hover::after {
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.45);
}

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

.video-info h5 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    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(--brand);
}

/* torrent capture compat */
.torrent-capture-grid {
    width: 100%;
}

.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-sm);
    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 compat */
.download {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 10px;
    margin: 14px 0;
    background: var(--bg-surface);
    border-radius: var(--r-base);
    border: 1px solid var(--border-dim);
}

.down_btn {
    display: inline-block;
    padding: 11px 22px;
    background: var(--brand-grad);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ease);
    border: none;
}

.down_btn:hover {
    background: linear-gradient(135deg, #ff8c3a 0%, #f47521 100%);
    box-shadow: 0 5px 14px var(--brand-glow);
    transform: translateY(-1px);
    color: #fff;
}

/* share-section compat */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    background: var(--bg-surface);
    border-radius: var(--r-base);
    border: 1px solid var(--border-dim);
    margin: 14px 0;
    flex-wrap: nowrap;
}

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

.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--brand);
    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: 11px 20px;
    background: var(--brand-grad);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    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;
}

.share-copy-btn:hover {
    box-shadow: 0 5px 14px var(--brand-glow);
}

.share-copy-btn:active {
    transform: scale(0.97);
}

.share-icon {
    font-size: 16px;
}

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--r-sm);
    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(--brand);
    border-color: var(--brand);
    color: #fff;
}

.page_info_focus {
    background: var(--brand-grad);
    color: #fff;
    border: 1px solid var(--brand);
    cursor: default;
}

/* txtguanggao2 compat */
.txtguanggao2 {
    padding: 11px;
    background: var(--bg-surface);
    border-radius: var(--r-base);
    border: 1px solid var(--border-dim);
}

.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 6px;
}

.txtguanggao2 a:hover {
    color: var(--brand);
}

/* seach compat */
.seach {
    background: var(--bg-surface);
    border-radius: var(--r-base);
    padding: 11px;
    margin-bottom: 10px;
    border: 1px solid var(--border-dim);
}

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

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

.seach input[type="text"]:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-glow);
}

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

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

.seach button:hover {
    background: linear-gradient(135deg, #ff8c3a 0%, #f47521 100%);
    box-shadow: 0 4px 12px var(--brand-glow);
}

/* grid-container compat */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
}

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

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

/* ============ HIDE UTILITIES ============ */
.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; }
}

/* ============ LOADING ============ */
img[data-original] {
    background: var(--bg-raised);
}

/* ============ CLEARFIX ============ */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* p_c compat */
.p_c { cursor: pointer; }

/* pd5 compat */
.pd5 { padding: 2px 5px; }

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

    .block {
        padding: 7px 0;
    }

    .brand-title {
        font-size: 20px;
    }

    .addr-badge {
        gap: 7px;
        padding: 4px 10px;
    }

    .addr-tag {
        font-size: 9px;
    }

    .addr-val {
        font-size: 14px;
    }

    /* Mobile nav: label 15%, links 85%, 4 per row */
    .nav-strip {
        display: flex;
        align-items: stretch;
    }

    .nav-zone {
        width: 15%;
        font-size: 10px;
        padding: 7px 3px;
    }

    .nav-items {
        width: 85%;
        font-size: 12px;
        gap: 4px;
        padding: 7px 4px;
        display: flex;
        flex-wrap: wrap;
    }

    .nav-items a {
        padding: 4px 2px;
        font-size: 12px;
        text-align: center;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
        min-font-size: 12px;
    }

    /* Search: single row */
    .seach form,
    .search-panel form {
        flex-wrap: nowrap;
    }

    .seach input[type="text"],
    .search-panel input[type="text"] {
        min-width: 60px;
        font-size: 13px;
        padding: 8px 10px;
    }

    .seach button,
    .search-panel button {
        padding: 8px 9px;
        font-size: 12px;
    }

    /* Cards: 2 per row */
    .thumbnail2-group,
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-info h5,
    .card-meta h5 {
        font-size: 12px;
    }

    .mhlleset-title,
    .section-title {
        font-size: 16px;
    }

    .mhlleset-main {
        padding: 10px;
    }

    .download,
    .dl-row {
        gap: 8px;
        flex-wrap: nowrap;
        padding: 12px 8px;
    }

    .down_btn,
    .dl-btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .share-section,
    .link-share {
        flex-wrap: nowrap;
        padding: 10px;
        gap: 7px;
    }

    .share-url-display,
    .link-display {
        padding: 8px 10px;
    }

    .share-label,
    .lbl-tag {
        font-size: 11px;
    }

    .share-url,
    .lbl-url {
        font-size: 11px;
    }

    .share-copy-btn,
    .copy-link-btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .share-icon,
    .copy-icon {
        font-size: 15px;
    }

    .page_info_div,
    .pager {
        padding: 13px 0;
    }

    .a_page_info,
    .page_info_focus,
    .pg-link,
    .pg-current {
        padding: 6px 11px;
        font-size: 12px;
        min-width: 32px;
    }

    .site-footer {
        padding: 18px 0;
        margin-top: 18px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 18px;
    }

    .addr-val {
        font-size: 13px;
    }

    /* Extra-small nav: 4 per row, 12px font */
    .nav-zone {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .nav-items {
        width: 85%;
        gap: 3px;
        padding: 6px 3px;
    }

    .nav-items a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

    .seach input[type="text"],
    .search-panel input[type="text"] {
        padding: 7px 8px;
        font-size: 12px;
        min-width: 50px;
    }

    .seach button,
    .search-panel button {
        padding: 7px 7px;
        font-size: 11px;
    }

    .mhlleset-title,
    .section-title {
        font-size: 15px;
    }

    .mhlleset-main {
        padding: 8px;
    }

    .down_btn,
    .dl-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .share-section,
    .link-share {
        padding: 8px;
        gap: 5px;
    }

    .share-copy-btn,
    .copy-link-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
}
