/* Film & Video Portal Template - Deep Teal Dark Theme */

:root {
    --clr-primary: #2dd4a0;
    --clr-primary-dark: #1aab7d;
    --clr-accent: #38b2ac;
    --clr-bg: #0d1f1a;
    --clr-bg2: #112820;
    --clr-surface: #163028;
    --clr-surface2: #1c3d32;
    --clr-border: #254d3e;
    --clr-border2: #1f3d30;
    --clr-text: #e2f0eb;
    --clr-text-muted: #7ab09a;
    --clr-text-dim: #4a7a65;
    --clr-heading: #d4ede5;
    --clr-shadow: rgba(0, 0, 0, 0.35);
    --clr-shadow-lg: rgba(0, 0, 0, 0.55);
    --clr-glow: rgba(45, 212, 160, 0.18);
    --grad-main: linear-gradient(135deg, #2dd4a0 0%, #1a8c6b 100%);
    --grad-dark: linear-gradient(180deg, #112820 0%, #0d1f1a 100%);
    --rad: 7px;
    --rad-sm: 5px;
    --ease: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================
   HEADER / BRANDING
   ============================ */

.site-header {
    background: var(--clr-bg2);
    border-bottom: 1px solid var(--clr-border);
    padding: 0.55rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

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

.site-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: center;
}

.brand-link {
    text-decoration: none;
    display: inline-block;
    transition: var(--ease);
}

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

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

.domain-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(45, 212, 160, 0.08);
    border-radius: 22px;
    border: 1px solid var(--clr-primary);
    flex-shrink: 0;
}

.domain-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

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

/* ============================
   LAYOUT
   ============================ */

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

.section-block {
    padding: 10px 0;
}

/* ============================
   CATEGORY NAVIGATION
   ============================ */

.cat-nav-box {
    background: var(--clr-surface);
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 8px var(--clr-shadow);
}

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

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

.zone-label {
    font-weight: 700;
    font-size: 13px;
    color: var(--clr-primary);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--clr-border2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 6px;
    flex-shrink: 0;
    background: rgba(45,212,160,0.05);
}

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

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

.zone-links a:hover {
    background: var(--clr-primary);
    color: var(--clr-bg);
    border-color: var(--clr-primary);
    box-shadow: 0 3px 10px var(--clr-glow);
    font-weight: 600;
}

.zone-links a.active {
    background: var(--clr-primary);
    color: var(--clr-bg);
    border-color: var(--clr-primary);
    font-weight: 700;
    box-shadow: 0 3px 10px var(--clr-glow);
}

/* ============================
   SEARCH BOX
   ============================ */

.search-module {
    background: var(--clr-surface);
    border-radius: var(--rad);
    padding: 11px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 8px var(--clr-shadow);
}

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

.search-module input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 9px 13px;
    border: 1px solid var(--clr-border);
    border-radius: var(--rad-sm);
    background: var(--clr-bg);
    color: var(--clr-text);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
}

.search-module input[type="text"]:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px var(--clr-glow);
}

.search-module input[type="text"]::placeholder {
    color: var(--clr-text-dim);
}

.search-module button {
    padding: 9px 13px;
    border: none;
    border-radius: var(--rad-sm);
    background: var(--grad-main);
    color: var(--clr-bg);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.search-module button:hover {
    box-shadow: 0 4px 14px var(--clr-glow);
    opacity: 0.9;
}

/* ============================
   HOT SEARCH TAGS
   ============================ */

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 10px 12px;
    background: var(--clr-surface);
    border-radius: var(--rad);
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
}

.tag-item {
    padding: 5px 13px;
    background: var(--clr-bg2);
    border-radius: 14px;
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--clr-border);
}

.tag-item:hover {
    background: var(--clr-primary);
    color: var(--clr-bg);
    border-color: var(--clr-primary);
    box-shadow: 0 2px 8px var(--clr-glow);
}

/* ============================
   SECTION HEADINGS
   ============================ */

.section-group {
    margin-bottom: 14px;
}

.section-inner {
    background: var(--clr-surface);
    border-radius: var(--rad);
    padding: 14px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 8px var(--clr-shadow);
}

.section-hd {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--clr-border2);
    position: relative;
}

.section-hd::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--grad-main);
    border-radius: 2px;
}

.section-ttl {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--clr-heading);
    letter-spacing: 0.2px;
}

.section-ttl a {
    color: var(--clr-heading);
    text-decoration: none;
    transition: var(--ease);
}

.section-ttl a:hover {
    color: var(--clr-primary);
}

/* ============================
   VIDEO / FILM GRID
   ============================ */

.film-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

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

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

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

.film-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad);
    /* aspect ratio 600:350 ≈ 12:7 */
    aspect-ratio: 12 / 7;
    background: var(--clr-bg2);
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 8px var(--clr-shadow);
}

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

.film-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,31,26,0.75) 0%, transparent 55%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.film-cover:hover::before {
    opacity: 1;
}

.film-cover:hover img {
    transform: scale(1.07);
}

.film-cover:hover {
    border-color: var(--clr-primary);
    box-shadow: 0 6px 20px var(--clr-glow);
}

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

.film-meta h5 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--clr-text-muted);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.film-meta h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

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

/* ============================
   TORRENT DETAIL PAGE
   ============================ */

.detail-title-bar {
    line-height: 1.8;
    text-align: center;
    padding: 16px 20px;
    font-size: 17px;
    margin: 14px 0;
    word-break: break-all;
    background: var(--clr-surface);
    border-radius: var(--rad);
    border: 1px solid var(--clr-border);
}

.detail-info-panel {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px 22px;
    background: var(--clr-surface);
    border-radius: var(--rad);
    margin: 12px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 10px var(--clr-shadow);
    color: var(--clr-text);
}

.torrent-capture-grid {
    margin-top: 12px;
}

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

.torrent-capture-grid picture img,
.torrent-capture-grid img {
    width: 100%;
    height: auto;
    border-radius: var(--rad-sm);
    display: block;
}

/* Download Buttons */
.download {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 10px;
    margin: 14px 0;
    flex-wrap: wrap;
}

.down_btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--rad);
    background: var(--grad-main);
    color: var(--clr-bg);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px var(--clr-glow);
}

.down_btn:hover {
    box-shadow: 0 6px 18px var(--clr-glow);
    transform: translateY(-2px);
    opacity: 0.92;
}

/* Share Section */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    background: var(--clr-surface);
    border-radius: var(--rad);
    margin: 12px 0;
    border: 1px solid var(--clr-border);
    flex-wrap: nowrap;
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    background: var(--clr-bg);
    border-radius: var(--rad-sm);
    border: 1px solid var(--clr-border);
    overflow: hidden;
}

.share-label {
    font-size: 12px;
    color: var(--clr-text-muted);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url {
    font-size: 12px;
    color: var(--clr-text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border: none;
    border-radius: var(--rad-sm);
    background: rgba(45,212,160,0.12);
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    background: var(--clr-primary);
    color: var(--clr-bg);
}

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

/* ============================
   PAGINATION
   ============================ */

.page-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 18px 0;
}

.a_page_info,
.page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: var(--rad-sm);
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.a_page_info {
    background: var(--clr-surface);
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
    text-decoration: none;
}

.a_page_info:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: var(--clr-bg);
}

.page_info_focus {
    background: var(--grad-main);
    color: var(--clr-bg);
    border: 1px solid var(--clr-primary);
    font-weight: 700;
    cursor: default;
}

/* ============================
   FOOTER
   ============================ */

.site-footer {
    padding: 22px 0;
    text-align: center;
    border-top: 1px solid var(--clr-border);
    margin-top: 20px;
    background: var(--clr-bg2);
}

.site-footer p {
    margin: 6px 0;
    color: var(--clr-text-dim);
    font-size: 12px;
}

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

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

/* Friend Links */
.friend-links-wrap {
    padding: 11px 13px;
    background: var(--clr-surface);
    border-radius: var(--rad);
    border: 1px solid var(--clr-border);
}

.friend-links-wrap dl {
    margin: 0;
}

.friend-links-wrap dd {
    display: inline-block;
    margin: 3px;
}

.friend-links-wrap a {
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
}

.friend-links-wrap a:hover {
    color: var(--clr-primary);
    background: rgba(45,212,160,0.08);
}

/* ============================
   CLEARFIX / UTILITIES
   ============================ */

.clx::after {
    content: "";
    display: table;
    clear: both;
}

/* Legacy class aliases (for template compatibility) */
.container { max-width: 1080px; margin: 0 auto; padding: 0 14px; }
.content { padding: 10px 0; }
.mhlleset { margin-bottom: 14px; }
.mhlleset-main { background: var(--clr-surface); border-radius: var(--rad); padding: 14px; border: 1px solid var(--clr-border); box-shadow: 0 2px 8px var(--clr-shadow); }
.mhlleset-heading { margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--clr-border2); position: relative; }
.mhlleset-heading::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 50px; height: 2px; background: var(--grad-main); border-radius: 2px; }
.mhlleset-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--clr-heading); }
.mhlleset-title a { color: var(--clr-heading); text-decoration: none; transition: var(--ease); }
.mhlleset-title a:hover { color: var(--clr-primary); }

.thumbnail2-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; 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(--rad); aspect-ratio: 12/7; background: var(--clr-bg2); border: 1px solid var(--clr-border); }
.thumbnail2 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; display: block; }
.thumbnail2:hover img { transform: scale(1.07); }
.thumbnail2:hover { border-color: var(--clr-primary); box-shadow: 0 4px 16px var(--clr-glow); }
.video-info { padding: 7px 0 2px; }
.video-info h5 { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--clr-text-muted); margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.video-info h5 a { color: inherit; text-decoration: none; }
.video-info h5 a:hover { color: var(--clr-primary); }

.seach { background: var(--clr-surface); border-radius: var(--rad); padding: 11px 12px; margin-bottom: 10px; border: 1px solid var(--clr-border); }
.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(--clr-border); border-radius: var(--rad-sm); background: var(--clr-bg); color: var(--clr-text); font-size: 13px; transition: var(--ease); outline: none; }
.seach input[type="text"]:focus { border-color: var(--clr-primary); box-shadow: 0 0 0 3px var(--clr-glow); }
.seach input[type="text"]::placeholder { color: var(--clr-text-dim); }
.seach button { padding: 9px 13px; border: none; border-radius: var(--rad-sm); background: var(--grad-main); color: var(--clr-bg); font-weight: 700; font-size: 12px; cursor: pointer; transition: var(--ease); white-space: nowrap; flex-shrink: 0; }
.seach button:hover { box-shadow: 0 4px 14px var(--clr-glow); opacity: 0.9; }

.grid-container { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 10px 12px; background: var(--clr-surface); border-radius: var(--rad); margin-bottom: 10px; border: 1px solid var(--clr-border); }
.grid-item { padding: 5px 12px; background: var(--clr-bg2); border-radius: 14px; color: var(--clr-text-muted); text-decoration: none; font-size: 12px; transition: var(--ease); border: 1px solid var(--clr-border); }
.grid-item:hover { background: var(--clr-primary); color: var(--clr-bg); border-color: var(--clr-primary); }

.nav-container { background: var(--clr-surface); border-radius: var(--rad); overflow: hidden; margin-bottom: 10px; border: 1px solid var(--clr-border); }
.nav-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--clr-border2); }
.nav-row:last-child { border-bottom: none; }
.nav-row .nav-label { font-weight: 700; font-size: 13px; color: var(--clr-primary); white-space: nowrap; width: 10%; text-align: center; border-right: 1px solid var(--clr-border2); display: flex; align-items: center; justify-content: center; padding: 9px 6px; flex-shrink: 0; background: rgba(45,212,160,0.05); }
.nav-row .nav-links { width: 90%; display: flex; flex-wrap: nowrap; gap: 5px; padding: 9px 8px; align-items: center; }
.nav-row .nav-links a { display: inline-block; color: var(--clr-text-muted); text-decoration: none; padding: 5px 4px; border-radius: var(--rad-sm); transition: var(--ease); background: var(--clr-bg2); border: 1px solid var(--clr-border); white-space: nowrap; text-align: center; flex: 1 1 0; min-width: 0; font-size: 13px; }
.nav-row .nav-links a:hover, .nav-row .nav-links a.active { background: var(--clr-primary); color: var(--clr-bg); border-color: var(--clr-primary); font-weight: 600; }

.txtguanggao2 { padding: 11px 13px; background: var(--clr-surface); border-radius: var(--rad); border: 1px solid var(--clr-border); }
.txtguanggao2 dl { margin: 0; }
.txtguanggao2 dd { display: inline-block; margin: 3px; }
.txtguanggao2 a { color: var(--clr-text-muted); text-decoration: none; transition: var(--ease); font-size: 13px; }
.txtguanggao2 a:hover { color: var(--clr-primary); }

.header { background: var(--clr-bg2); border-bottom: 1px solid var(--clr-border); padding: 0.55rem 0; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.header-content { display: flex; justify-content: center; align-items: center; }
.site-branding { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; justify-content: center; }
.logo { text-decoration: none; display: inline-block; }
.site-name { font-size: 26px; font-weight: 800; color: var(--clr-primary); letter-spacing: 1px; text-shadow: 0 0 18px var(--clr-glow); font-style: normal; display: inline-block; }
.domain-info { display: flex; align-items: center; gap: 8px; padding: 5px 14px; background: rgba(45,212,160,0.08); border-radius: 22px; border: 1px solid var(--clr-primary); flex-shrink: 0; }
.domain-label { font-size: 11px; font-weight: 600; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.domain-url { font-size: 17px; font-weight: 700; color: var(--clr-primary); letter-spacing: 0.5px; white-space: nowrap; }

.footer { padding: 22px 0; text-align: center; border-top: 1px solid var(--clr-border); margin-top: 20px; background: var(--clr-bg2); }
.footer p { margin: 6px 0; color: var(--clr-text-dim); font-size: 12px; }
.footer a { color: var(--clr-text-dim); text-decoration: none; }
.footer a:hover { color: var(--clr-primary); }

.page_info_div { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 18px 0; }

.clearfix::after { content: ""; display: table; clear: both; }

/* ============================
   VIDEO PLAYER CONTAINER
   ============================ */

.video-container,
#player_box,
[id*="player"] {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--clr-border);
}

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

/* ============================
   RESPONSIVE — LARGE MOBILE (481–768px)
   ============================ */

@media (max-width: 768px) {
    .container, .wrap { padding: 0 8px; }
    .header, .site-header { padding: 0.45rem 0; }

    .site-branding, .site-identity { gap: 10px; flex-wrap: nowrap; }
    .site-name, .brand-name { font-size: 20px; }
    .domain-info, .domain-badge { padding: 4px 10px; gap: 6px; }
    .domain-label, .domain-tag { font-size: 10px; }
    .domain-url, .domain-addr { font-size: 15px; }

    .content, .section-block { padding: 8px 0; }

    /* Mobile nav: label=15%, links=85%, 4 per row, 2 rows */
    .nav-row .nav-label,
    .cat-row .zone-label {
        width: 15%;
        min-width: 15%;
        font-size: 12px;
        padding: 7px 2px;
        text-align: center;
        word-break: break-all;
        line-height: 1.4;
        letter-spacing: 0;
        flex-shrink: 0;
    }

    .nav-row .nav-links,
    .cat-row .zone-links {
        width: 85%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 6px 5px;
    }

    .nav-row .nav-links a,
    .cat-row .zone-links a {
        font-size: 12px;
        padding: 5px 2px;
        width: auto;
        flex: none;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .seach { padding: 9px 10px; }
    .seach form { flex-wrap: nowrap; gap: 5px; }
    .seach input[type="text"] { min-width: 60px; padding: 8px 10px; font-size: 12px; }
    .seach button { padding: 8px 9px; font-size: 11px; }

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

    .mhlleset { margin-bottom: 10px; }
    .mhlleset-main, .section-inner { padding: 10px; }
    .mhlleset-title, .section-ttl { font-size: 16px; }

    .download { padding: 12px 6px; gap: 8px; flex-wrap: wrap; }
    .down_btn { padding: 10px 16px; font-size: 13px; }

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

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

    .footer, .site-footer { padding: 16px 0; margin-top: 14px; }
}

/* ============================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================ */

@media (max-width: 480px) {
    .site-name, .brand-name { font-size: 18px; }
    .domain-url, .domain-addr { font-size: 13px; }
    .domain-label, .domain-tag { font-size: 9px; }
    .domain-info, .domain-badge { padding: 4px 9px; }

    .nav-row .nav-label,
    .cat-row .zone-label {
        width: 15%;
        min-width: 15%;
        font-size: 12px;
        padding: 6px 1px;
    }

    .nav-row .nav-links a,
    .cat-row .zone-links a {
        font-size: 12px;
        padding: 4px 1px;
        width: auto;
    }

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

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

    .video-info h5,
    .film-meta h5 { font-size: 12px; }
    .mhlleset-title, .section-ttl { font-size: 15px; }

    .down_btn { padding: 9px 12px; font-size: 12px; }
    .share-section { padding: 8px; gap: 5px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 9px; font-size: 11px; }
}

/* Loading placeholder */
img[data-original] {
    background: var(--clr-surface);
}
