/* Video Site Template - Dark Editorial Design */

:root {
    --accent1: #2ec4b6;
    --accent1-dark: #21a99e;
    --accent2: #ff6b6b;
    --accent3: #ffe66d;
    --ink: #e8edf2;
    --ink-muted: #9aaab8;
    --ink-faint: #6b7c8d;
    --page-bg: #0d1117;
    --surface: #161c26;
    --surface2: #1e2736;
    --surface3: #263040;
    --divider: #2a3545;
    --divider-light: #344257;
    --glow: rgba(46, 196, 182, 0.18);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.35);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.5);
    --ease: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --r: 6px;
    --r-sm: 4px;
    --stripe: linear-gradient(135deg, var(--accent1) 0%, #1a8c99 100%);
    --stripe2: linear-gradient(135deg, var(--accent2) 0%, #e05050 100%);
}

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

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans CN', -apple-system, sans-serif;
    background: var(--page-bg);
    color: var(--ink);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* ─── HEADER ─────────────────────────────────────── */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
    padding: 0.55rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

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

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

.brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--ease);
}

.brand-link:hover {
    opacity: 0.88;
}

.brand-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--accent1);
    letter-spacing: 1px;
    text-shadow: 0 0 18px rgba(46,196,182,0.35);
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent2);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--accent2);
}

.latest-domain-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface2);
    border: 1px solid var(--accent1);
    border-radius: 3px;
    padding: 5px 14px;
    box-shadow: 0 0 10px rgba(46,196,182,0.15);
}

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

.domain-addr {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ─── CONTAINER / LAYOUT ─────────────────────────── */
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

.section-pad {
    padding: 12px 0;
}

/* ─── PROMO BANNER ───────────────────────────────── */
.promo-band {
    width: 100%;
    margin: 4px 0;
    overflow: hidden;
}

.promo-band a {
    display: block;
}

.promo-band img {
    width: 100%;
    display: block;
}

/* ─── CATEGORY NAV ───────────────────────────────── */
.cat-nav-block {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
}

.cat-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--divider);
}

.cat-row:last-child {
    border-bottom: none;
}

.cat-zone-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent1);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 6px;
    flex-shrink: 0;
    background: var(--surface2);
    letter-spacing: 0.3px;
}

.cat-links-row {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 8px;
    align-items: center;
}

.cat-links-row a {
    display: inline-block;
    color: var(--ink-muted);
    text-decoration: none;
    padding: 5px 3px;
    border-radius: var(--r-sm);
    transition: var(--ease);
    background: var(--surface2);
    border: 1px solid var(--divider);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.cat-links-row a:hover {
    background: var(--accent1);
    color: var(--page-bg);
    border-color: var(--accent1);
    box-shadow: 0 0 10px rgba(46,196,182,0.3);
    font-weight: 600;
}

.cat-links-row a.active {
    background: var(--accent1);
    color: var(--page-bg);
    border-color: var(--accent1);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(46,196,182,0.35);
}

/* ─── SEARCH BAR ─────────────────────────────────── */
.search-zone {
    background: var(--surface);
    border-radius: var(--r);
    padding: 11px;
    margin-bottom: 10px;
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
}

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

.search-zone input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 9px 13px;
    border: 1px solid var(--divider-light);
    border-radius: var(--r-sm);
    background: var(--surface2);
    color: var(--ink);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.search-zone input[type="text"]:focus {
    border-color: var(--accent1);
    background: var(--surface3);
    box-shadow: 0 0 0 2px rgba(46,196,182,0.15);
}

.search-zone input[type="text"]::placeholder {
    color: var(--ink-faint);
}

.search-zone button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--r-sm);
    background: var(--stripe);
    color: var(--page-bg);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.search-zone button:hover {
    opacity: 0.9;
    box-shadow: 0 4px 14px rgba(46,196,182,0.3);
}

/* ─── HOT TAGS ───────────────────────────────────── */
.hot-tags-box {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px;
    background: var(--surface);
    border-radius: var(--r);
    margin-bottom: 10px;
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
}

.hot-tag-item {
    padding: 5px 13px;
    background: var(--surface2);
    border-radius: 2px;
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--divider-light);
    border-left: 3px solid var(--accent1);
}

.hot-tag-item:hover {
    background: var(--surface3);
    color: var(--accent1);
    border-color: var(--accent1);
    box-shadow: 0 2px 8px rgba(46,196,182,0.15);
}

/* ─── SECTION HEADINGS ───────────────────────────── */
.content-block {
    margin-bottom: 18px;
}

.block-inner {
    /* inner wrapper */
}

.block-head {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--divider);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-head::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--stripe);
    border-radius: 2px;
    flex-shrink: 0;
}

.block-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    color: var(--ink);
    letter-spacing: 0.3px;
}

.block-title a {
    color: var(--ink);
    text-decoration: none;
    transition: var(--ease);
}

.block-title a:hover {
    color: var(--accent1);
}

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

.film-grid li {
    position: relative;
    animation: revealUp 0.5s ease backwards;
}

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

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

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    /* 600:350 ratio */
    aspect-ratio: 600 / 350;
    background: var(--surface2);
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
}

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

.film-thumb:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent1);
}

.film-thumb:hover img {
    transform: scale(1.08);
}

.film-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,17,23,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.film-thumb:hover::after {
    opacity: 1;
}

.film-meta {
    padding: 8px 0 2px;
}

.film-meta h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
}

.film-meta h5 a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-meta h5 a:hover {
    color: var(--accent1);
}

/* ─── VIDEO PLAYER ───────────────────────────────── */
.player-shell {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 18px;
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.player-shell iframe,
.player-shell video,
.player-shell #video-container {
    width: 100%;
    height: 100%;
    border: none;
}

.MacPlayer {
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow-hover);
}

/* ─── TORRENT CAPTURE ────────────────────────────── */
.capture-display {
    /* wrapper */
}

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

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

/* ─── DOWNLOAD BUTTONS ───────────────────────────── */
.dl-actions {
    text-align: center;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--r);
    margin: 14px 0;
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.btn-action {
    display: inline-block;
    padding: 10px 22px;
    background: var(--stripe);
    color: var(--page-bg);
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    margin: 0;
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-action:hover {
    box-shadow: 0 6px 18px rgba(46,196,182,0.4);
    opacity: 0.9;
}

.btn-action:active {
    transform: translateY(1px);
}

/* ─── SHARE SECTION ──────────────────────────────── */
.share-panel {
    background: var(--surface);
    border-radius: var(--r);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-link-display {
    background: var(--surface2);
    border: 1px solid var(--divider-light);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.share-lbl {
    font-weight: 700;
    font-size: 12px;
    color: var(--accent1);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-addr {
    font-size: 12px;
    color: var(--ink-faint);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-share-copy {
    padding: 11px 20px;
    background: var(--stripe);
    color: var(--page-bg);
    border: 2px solid transparent;
    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: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-share-copy:hover {
    box-shadow: 0 4px 16px rgba(46,196,182,0.35);
    opacity: 0.9;
}

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

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

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

.pg-link,
.pg-cur {
    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(--surface);
    color: var(--ink-muted);
    border: 1px solid var(--divider);
}

.pg-link:hover {
    background: var(--accent1);
    border-color: var(--accent1);
    color: var(--page-bg);
    font-weight: 700;
}

.pg-cur {
    background: var(--stripe);
    color: var(--page-bg);
    border: 1px solid var(--accent1);
    cursor: default;
}

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

.site-footer p {
    margin: 6px 0;
    color: var(--ink-faint);
    font-size: 13px;
}

.site-footer a {
    color: var(--ink-faint);
    text-decoration: none;
    transition: var(--ease);
}

.site-footer a:hover {
    color: var(--accent1);
}

.links-section {
    padding: 11px;
    background: var(--surface);
    border-radius: var(--r);
    border: 1px solid var(--divider);
}

.links-section dl {
    margin: 0;
}

.links-section dd {
    display: inline-block;
    margin: 3px 4px;
}

.links-section a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.links-section a:hover {
    color: var(--accent1);
}

/* ─── SECTION TITLE HELPERS ──────────────────────── */
.mhlleset { margin-bottom: 18px; }
.mhlleset-main { /* wrapper */ }

.mhlleset-heading {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--divider);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mhlleset-heading::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--stripe);
    border-radius: 2px;
    flex-shrink: 0;
}

.mhlleset-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--ink);
}

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

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

/* alias for thumbnail2-group to film-grid style */
.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
}

.thumbnail2-group li {
    position: relative;
    animation: revealUp 0.5s ease backwards;
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    aspect-ratio: 600 / 350;
    background: var(--surface2);
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
}

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

.thumbnail2:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent1);
}

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

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,17,23,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.thumbnail2:hover::after {
    opacity: 1;
}

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

.video-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.video-info h5 a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info h5 a:hover {
    color: var(--accent1);
}

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

.a_page_info {
    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;
    background: var(--surface);
    color: var(--ink-muted);
    border: 1px solid var(--divider);
}

.a_page_info:hover {
    background: var(--accent1);
    border-color: var(--accent1);
    color: var(--page-bg);
}

.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    min-width: 36px;
    text-align: center;
    background: var(--stripe);
    color: var(--page-bg);
    border: 1px solid var(--accent1);
    cursor: default;
}

/* download aliases */
.download {
    text-align: center;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--r);
    margin: 14px 0;
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--stripe);
    color: var(--page-bg);
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    margin: 0;
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.down_btn:hover {
    box-shadow: 0 6px 18px rgba(46,196,182,0.4);
    opacity: 0.9;
}

/* share aliases */
.share-section {
    background: var(--surface);
    border-radius: var(--r);
    padding: 16px;
    margin: 16px 0;
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-url-display {
    background: var(--surface2);
    border: 1px solid var(--divider-light);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--accent1);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-url {
    font-size: 12px;
    color: var(--ink-faint);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 11px 20px;
    background: var(--stripe);
    color: var(--page-bg);
    border: 2px solid transparent;
    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: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    box-shadow: 0 4px 16px rgba(46,196,182,0.35);
    opacity: 0.9;
}

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

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

/* torrent capture alias */
.torrent-capture-grid {
    /* container */
}

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

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

/* grid / tags aliases */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px;
    background: var(--surface);
    border-radius: var(--r);
    margin-bottom: 10px;
    border: 1px solid var(--divider);
    box-shadow: var(--shadow-card);
}

.grid-item {
    padding: 5px 13px;
    background: var(--surface2);
    border-radius: 2px;
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--divider-light);
    border-left: 3px solid var(--accent1);
}

.grid-item:hover {
    background: var(--surface3);
    color: var(--accent1);
    border-color: var(--accent1);
}

/* nav aliases */
.nav-container { display: none; } /* replaced by cat-nav-block */
.seach { display: none; }         /* replaced by search-zone */

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

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

/* ─── CLEARFIX ───────────────────────────────────── */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* img lazy */
img[data-original] {
    background: var(--surface2);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {

    .wrap { padding: 0 8px; }

    .site-header { padding: 0.45rem 0; }

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

    .latest-domain-wrap {
        padding: 4px 10px;
        gap: 7px;
    }

    .domain-tag { font-size: 10px; }
    .domain-addr { font-size: 15px; }

    .section-pad { padding: 8px 0; }

    /* Nav: 15% label + 85% links */
    .cat-row {
        display: flex;
        align-items: stretch;
    }

    .cat-zone-label {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
        text-align: center;
        word-break: break-all;
        line-height: 1.4;
    }

    .cat-links-row {
        width: 85%;
        gap: 4px;
        padding: 7px 4px;
    }

    .cat-links-row a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* film grid: 2 cols */
    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* search: all on one row */
    .search-zone { padding: 9px; }

    .search-zone form {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .search-zone input[type="text"] {
        min-width: 80px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .search-zone button {
        padding: 8px 9px;
        font-size: 12px;
    }

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

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

    .player-shell {
        height: 56.25vw;
        max-height: 380px;
        margin-bottom: 12px;
    }

    .share-section {
        padding: 10px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .share-url-display {
        padding: 9px 10px;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

    .share-label { font-size: 11px; }
    .share-url { font-size: 10px; }

    .share-copy-btn {
        padding: 9px 11px;
        font-size: 12px;
        flex-shrink: 0;
    }

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

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

    .download {
        padding: 11px 7px;
        margin: 11px 0;
        gap: 7px;
        flex-wrap: nowrap;
    }

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

    .grid-container { padding: 9px; gap: 5px; }
    .grid-item { padding: 4px 11px; font-size: 12px; }

    .hide_mobile { display: none !important; }
}

@media (max-width: 480px) {

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

    .latest-domain-wrap {
        padding: 3px 8px;
        gap: 5px;
    }

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

    /* label still 15% at very small screens */
    .cat-zone-label {
        width: 15%;
        font-size: 10px;
        padding: 5px 2px;
    }

    .cat-links-row {
        width: 85%;
        gap: 3px;
        padding: 5px 3px;
    }

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

    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .search-zone input[type="text"] {
        min-width: 70px;
        padding: 7px 8px;
        font-size: 12px;
    }

    .search-zone button {
        padding: 7px 7px;
        font-size: 11px;
    }

    .player-shell {
        height: 56.25vw;
        max-height: 280px;
        margin-bottom: 10px;
    }

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

    .download {
        padding: 9px 4px;
        gap: 5px;
    }

    .mhlleset-title { font-size: 15px; }
    .video-info h5 { font-size: 12px; }
}

/* ─── LARGE SCREEN ───────────────────────────────── */
@media (min-width: 769px) {
    .thumbnail2-group {
        grid-template-columns: repeat(4, 1fr);
    }

    .film-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
