/* NexStream — Deep Purple Hex Theme */
/* Inspired by Branch.io: dark indigo/purple bg, neon green+cyan accents,
   pink/red highlights, hexagonal texture, glowing card surfaces          */

:root {
    /* Core palette */
    --nx-bg:           #0d0b1e;   /* deepest purple-black */
    --nx-bg-mid:       #130f2a;   /* section bg */
    --nx-bg-card:      #1a1535;   /* card surface */
    --nx-bg-card-alt:  #201a3d;   /* slightly lighter card */
    --nx-purple:       #6c2eb9;   /* mid purple */
    --nx-purple-light: #8b5cf6;   /* lighter purple accent */

    /* Accent colours from screenshot */
    --nx-green:        #00e5a0;   /* bright mint green (bar chart bars) */
    --nx-cyan:         #00c8e0;   /* cyan (chart bars) */
    --nx-pink:         #f0386b;   /* hot pink / funnel lines */
    --nx-pink-light:   #ff6b9d;

    /* Text */
    --nx-text:         #e8e4ff;   /* soft white-purple */
    --nx-text-muted:   rgba(232,228,255,0.50);
    --nx-text-dim:     rgba(232,228,255,0.30);

    /* Borders & glows */
    --nx-border:       rgba(140,100,255,0.18);
    --nx-border-bright:rgba(140,100,255,0.38);
    --nx-glow-green:   rgba(0,229,160,0.28);
    --nx-glow-pink:    rgba(240,56,107,0.28);
    --nx-glow-purple:  rgba(108,46,185,0.40);

    /* Shadows */
    --nx-shadow-sm:  0 2px 10px rgba(0,0,0,0.40);
    --nx-shadow-md:  0 4px 24px rgba(0,0,0,0.55);
    --nx-shadow-lg:  0 8px 40px rgba(0,0,0,0.70);

    /* Radii */
    --r-xs: 3px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;

    --ease: all 0.22s ease;
    --max-width: 1060px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--nx-bg);
    color: var(--nx-text);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Hexagonal background texture ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        /* hex grid via repeating radial - lightweight CSS only */
        repeating-linear-gradient(
            60deg,
            transparent 0px,
            transparent 28px,
            rgba(120,80,220,0.04) 28px,
            rgba(120,80,220,0.04) 29px
        ),
        repeating-linear-gradient(
            -60deg,
            transparent 0px,
            transparent 28px,
            rgba(120,80,220,0.04) 28px,
            rgba(120,80,220,0.04) 29px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 28px,
            rgba(120,80,220,0.04) 28px,
            rgba(120,80,220,0.04) 29px
        );
    pointer-events: none;
    z-index: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER
   Dark bar — white text like Branch
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-header {
    background: rgba(13,11,30,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--nx-border);
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

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

.brand-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* White brand name — Branch style */
.brand-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--nx-text);
    letter-spacing: -0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    transition: var(--ease);
    text-shadow: 0 0 20px rgba(139,92,246,0.5);
}

.brand-logo:hover .brand-name {
    color: var(--nx-green);
    text-shadow: 0 0 22px var(--nx-glow-green);
}

/* Domain badge */
.brand-domain {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: rgba(108,46,185,0.18);
    border: 1px solid var(--nx-border-bright);
    border-radius: 22px;
    backdrop-filter: blur(6px);
}

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

.brand-domain-addr {
    font-size: 17px;
    font-weight: 700;
    color: var(--nx-green);
    font-family: 'Courier New', 'Lucida Console', monospace;
    letter-spacing: 0.4px;
    white-space: nowrap;
    text-shadow: 0 0 12px var(--nx-glow-green);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LAYOUT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 14px;
    position: relative;
    z-index: 1;
}

.content { padding: 7px 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CATEGORY NAVIGATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cats-wrapper {
    background: var(--nx-bg-card);
    border-radius: var(--r-md);
    border: 1px solid var(--nx-border);
    box-shadow: var(--nx-shadow-md);
    overflow: hidden;
    margin-bottom: 7px;
    position: relative;
}

/* subtle left glow stripe */
.cats-wrapper::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--nx-green), var(--nx-pink));
    z-index: 2;
}

.cats-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(140,100,255,0.08);
}

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

/* Zone label — gradient left strip */
.cats-zone {
    font-size: 11px;
    font-weight: 700;
    color: var(--nx-text);
    background: linear-gradient(160deg, #2a1a5e 0%, #1a1535 100%);
    border-right: 1px solid var(--nx-border);
    white-space: normal;
    word-break: break-all;
    width: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.cats-links {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 7px 10px;
    align-items: center;
    background: rgba(255,255,255,0.02);
}

.cats-links a {
    display: block;
    color: var(--nx-text-muted);
    text-decoration: none;
    padding: 4px 2px;
    border-radius: var(--r-xs);
    border: 1px solid var(--nx-border);
    background: rgba(140,92,255,0.07);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    transition: var(--ease);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cats-links a:hover {
    background: linear-gradient(135deg, rgba(0,229,160,0.18) 0%, rgba(0,200,224,0.12) 100%);
    color: var(--nx-green);
    border-color: rgba(0,229,160,0.40);
    box-shadow: 0 0 10px var(--nx-glow-green);
}

.cats-links a.active {
    background: linear-gradient(135deg, rgba(0,229,160,0.22) 0%, rgba(0,200,224,0.15) 100%);
    color: var(--nx-green);
    border-color: rgba(0,229,160,0.45);
    font-weight: 600;
    box-shadow: 0 0 10px var(--nx-glow-green);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SEARCH BOX
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.search-panel {
    background: var(--nx-bg-card);
    border-radius: var(--r-md);
    padding: 10px 13px;
    margin-bottom: 7px;
    border: 1px solid var(--nx-border);
    box-shadow: var(--nx-shadow-md);
    position: relative;
    z-index: 1;
}

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

.search-panel input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 9px 14px;
    border: 1px solid var(--nx-border-bright);
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.06);
    color: var(--nx-text);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.search-panel input[type="text"]:focus {
    border-color: var(--nx-green);
    background: rgba(0,229,160,0.06);
    box-shadow: 0 0 0 3px var(--nx-glow-green);
}

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

.search-panel button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--nx-green) 0%, var(--nx-cyan) 100%);
    color: #0d0b1e;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    box-shadow: 0 3px 14px var(--nx-glow-green);
    letter-spacing: 0.2px;
}

.search-panel button:hover {
    background: linear-gradient(135deg, #00ffb3 0%, #00e0f5 100%);
    box-shadow: 0 4px 20px rgba(0,229,160,0.50);
    transform: translateY(-1px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOT TAGS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 12px;
    background: var(--nx-bg-card);
    border-radius: var(--r-md);
    margin-bottom: 7px;
    border: 1px solid var(--nx-border);
    box-shadow: var(--nx-shadow-md);
    position: relative;
    z-index: 1;
}

.tag-chip {
    padding: 4px 12px;
    background: rgba(140,92,255,0.10);
    border-radius: 12px;
    color: var(--nx-text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--nx-border);
    font-weight: 500;
}

.tag-chip:hover {
    background: rgba(240,56,107,0.18);
    color: var(--nx-pink-light);
    border-color: rgba(240,56,107,0.42);
    box-shadow: 0 0 10px var(--nx-glow-pink);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION HEADINGS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.media-section { margin-bottom: 10px; }

.section-head {
    margin-bottom: 9px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--nx-border);
    position: relative;
    display: flex;
    align-items: center;
}

/* green underline accent */
.section-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--nx-green), var(--nx-cyan));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--nx-glow-green);
}

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

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

.section-heading a:hover {
    color: var(--nx-green);
    text-shadow: 0 0 12px var(--nx-glow-green);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MEDIA GRID
   Dark cards with coloured hover glow
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    list-style: none;
    padding: 0;
}

.media-grid li { animation: riseUp 0.45s ease backwards; }

.media-grid li:nth-child(1) { animation-delay: 0.03s; }
.media-grid li:nth-child(2) { animation-delay: 0.07s; }
.media-grid li:nth-child(3) { animation-delay: 0.11s; }
.media-grid li:nth-child(4) { animation-delay: 0.15s; }
.media-grid li:nth-child(5) { animation-delay: 0.19s; }
.media-grid li:nth-child(6) { animation-delay: 0.23s; }
.media-grid li:nth-child(7) { animation-delay: 0.27s; }
.media-grid li:nth-child(8) { animation-delay: 0.31s; }

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

/* card base */
.media-grid li {
    background: var(--nx-bg-card-alt);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--nx-border);
    box-shadow: var(--nx-shadow-sm);
    transition: var(--ease);
}

.media-grid li:hover {
    border-color: rgba(0,229,160,0.35);
    box-shadow: var(--nx-shadow-lg), 0 0 20px var(--nx-glow-green);
    transform: translateY(-3px);
}

.card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: #100d28;
}

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

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

/* play button overlay */
.card-thumb::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.65);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0,229,160,0.85);
    color: #0d0b1e;
    font-size: 14px;
    line-height: 42px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 3;
    font-weight: 900;
}

.media-grid li:hover .card-thumb::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* gradient overlay on hover */
.card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,10,50,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.media-grid li:hover .card-thumb::after { opacity: 1; }

.card-info {
    padding: 8px 10px 10px;
    background: var(--nx-bg-card-alt);
}

.card-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

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

.card-info h5 a:hover {
    color: var(--nx-green);
    text-shadow: 0 0 8px var(--nx-glow-green);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VIDEO PLAYER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.MacPlayer {
    background: #000;
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--nx-shadow-lg);
    border: 1px solid var(--nx-border);
}

.video-player-wrap {
    width: 100%;
    height: 555px;
    max-height: 555px;
    margin-bottom: 10px;
    background: #000;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--nx-shadow-lg);
    border: 1px solid var(--nx-border);
    position: relative;
}

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TORRENT SCREENSHOT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.capture-display { width: 100%; }

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

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DOWNLOAD BUTTONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.action-btns {
    text-align: center;
    padding: 14px;
    background: var(--nx-bg-card);
    border-radius: var(--r-md);
    margin: 10px 0;
    border: 1px solid var(--nx-border);
    box-shadow: var(--nx-shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

/* Branch-style outlined button */
.btn-action {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: var(--nx-text);
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid rgba(232,228,255,0.45);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.btn-action:hover {
    background: linear-gradient(135deg, var(--nx-green) 0%, var(--nx-cyan) 100%);
    color: #0d0b1e;
    border-color: transparent;
    box-shadow: 0 4px 20px var(--nx-glow-green);
    transform: translateY(-1px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SHARE / LINK SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.link-share {
    background: var(--nx-bg-card);
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin: 10px 0;
    border: 1px solid var(--nx-border);
    box-shadow: var(--nx-shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-display-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--nx-border);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.link-label-txt {
    font-weight: 700;
    font-size: 11px;
    color: var(--nx-green);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-value-txt {
    font-size: 12px;
    color: var(--nx-text-muted);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-copy-link {
    padding: 9px 18px;
    background: rgba(140,92,255,0.14);
    color: var(--nx-text);
    border: 1px solid var(--nx-border-bright);
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.btn-copy-link:hover {
    background: linear-gradient(135deg, var(--nx-green) 0%, var(--nx-cyan) 100%);
    color: #0d0b1e;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--nx-glow-green);
}

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FRIEND LINKS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.friend-links-list {
    padding: 9px 12px;
    background: var(--nx-bg-card);
    border-radius: var(--r-md);
    border: 1px solid var(--nx-border);
    box-shadow: var(--nx-shadow-md);
}

.friend-links-list dl { margin: 0; }
.friend-links-list dd { display: inline-block; margin: 4px; }

.friend-links-list a {
    color: var(--nx-text-dim);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.friend-links-list a:hover {
    color: var(--nx-green);
    text-shadow: 0 0 8px var(--nx-glow-green);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGINATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 16px 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: rgba(140,92,255,0.10);
    color: var(--nx-text-muted);
    border: 1px solid var(--nx-border);
}

.pg-link:hover {
    background: linear-gradient(135deg, rgba(0,229,160,0.20) 0%, rgba(0,200,224,0.12) 100%);
    border-color: rgba(0,229,160,0.40);
    color: var(--nx-green);
    box-shadow: 0 0 10px var(--nx-glow-green);
}

.pg-current {
    background: linear-gradient(135deg, var(--nx-green) 0%, var(--nx-cyan) 100%);
    color: #0d0b1e;
    border: 1px solid transparent;
    cursor: default;
    font-weight: 800;
    box-shadow: 0 0 12px var(--nx-glow-green);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-footer {
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid var(--nx-border);
    margin-top: 18px;
}

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

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

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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   UTILITIES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.clearfix::after { content: ''; display: table; clear: both; }
img[data-original] { background: #150f30; }

.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) {
    .container { padding: 0 8px; }
    .content   { padding: 5px 0; }

    .brand-wrapper     { gap: 10px; }
    .brand-name        { font-size: 20px; }
    .brand-domain      { padding: 4px 12px; gap: 6px; }
    .brand-domain-tag  { font-size: 10px; }
    .brand-domain-addr { font-size: 15px; }

    /* Nav: zone 15%, links 85% */
    .cats-row { display: flex; align-items: stretch; }

    .cats-zone {
        width: 15%;
        flex: none;
        font-size: 10px;
        padding: 5px 2px;
        white-space: normal;
        word-break: break-all;
        line-height: 1.4;
        letter-spacing: 0;
    }

    .cats-links {
        width: 85%;
        flex: none;
        flex-wrap: wrap;
        gap: 3px;
        padding: 5px 4px;
        align-items: flex-start;
        align-content: flex-start;
    }

    /* 4 per row × 2 rows = 8 */
    .cats-links a {
        flex: none;
        font-size: 12px;
        padding: 4px 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: calc(25% - 3px);
        text-align: center;
    }

    .cats-wrapper  { margin-bottom: 5px; }
    .search-panel  { padding: 8px 10px; margin-bottom: 5px; }
    .search-panel form { gap: 5px; }
    .search-panel input[type="text"] { min-width: 80px; padding: 8px 10px; font-size: 13px; }
    .search-panel button { padding: 8px 10px; font-size: 12px; }
    .tags-cloud    { padding: 7px 10px; gap: 5px; margin-bottom: 5px; }
    .tag-chip      { font-size: 11px; padding: 4px 10px; }

    .media-grid    { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .card-info     { padding: 6px 8px 8px; }
    .card-info h5  { font-size: 12px; }
    .section-heading { font-size: 16px; }
    .media-section { margin-bottom: 8px; }

    .action-btns   { padding: 11px 8px; gap: 8px; margin: 8px 0; }
    .btn-action    { padding: 9px 16px; font-size: 13px; }

    .link-share    { padding: 9px 10px; gap: 7px; margin: 8px 0; }
    .link-display-box { padding: 8px 10px; }
    .link-label-txt { font-size: 10px; }
    .link-value-txt { font-size: 11px; }
    .btn-copy-link { padding: 8px 10px; font-size: 12px; }

    .video-player-wrap { height: 56.25vw; max-height: 400px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE ≤480px
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {
    .brand-name        { font-size: 18px; }
    .brand-domain-tag  { font-size: 9px; }
    .brand-domain-addr { font-size: 13px; }

    .cats-zone {
        width: 15%;
        font-size: 10px;
        padding: 4px 1px;
        white-space: normal;
        word-break: break-all;
    }

    .cats-links { width: 85%; gap: 2px; padding: 4px 3px; }

    .cats-links a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc(25% - 2px);
    }

    .media-grid    { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .card-info h5  { font-size: 11px; }
    .action-btns   { padding: 9px 4px; gap: 5px; }
    .btn-action    { padding: 8px 12px; font-size: 12px; }
    .link-share    { padding: 7px; gap: 5px; }
    .btn-copy-link { padding: 7px 8px; font-size: 11px; }
    .video-player-wrap { height: 56.25vw; max-height: 300px; }
}

/* 大屏手机(481-768): 链接14px，分区名10px */
@media (min-width: 481px) and (max-width: 768px) {
    .cats-links a { font-size: 14px; }
    .cats-zone    { font-size: 10px; }
}
