/* VibeStream — Purple Gradient Dark Theme */

:root {
    --vc-purple-start: #c44daa;
    --vc-purple-mid:   #8e44ad;
    --vc-purple-deep:  #5b2d8e;
    --vc-blue:         #3498db;
    --vc-blue-hover:   #2980b9;
    --vc-white:        #ffffff;
    --vc-off-white:    #f0eaf8;
    --vc-text:         #ffffff;
    --vc-text-muted:   rgba(255,255,255,0.65);
    --vc-text-dim:     rgba(255,255,255,0.40);

    /* Surfaces */
    --vc-surface:       rgba(255,255,255,0.09);
    --vc-surface-hover: rgba(255,255,255,0.15);
    --vc-border:        rgba(255,255,255,0.16);
    --vc-border-light:  rgba(255,255,255,0.08);

    /* Gradients */
    --vc-grad-main: linear-gradient(135deg, #c44daa 0%, #8e44ad 50%, #5b2d8e 100%);
    --vc-grad-zone: linear-gradient(175deg, #c44daa 0%, #7d3c98 100%);
    --vc-grad-btn:  linear-gradient(135deg, #3498db 0%, #2471a3 100%);

    --vc-shadow:      rgba(0,0,0,0.28);
    --vc-shadow-md:   rgba(0,0,0,0.45);
    --vc-glow-pink:   rgba(196,77,170,0.35);
    --vc-glow-blue:   rgba(52,152,219,0.40);

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --ease: all 0.24s 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: var(--vc-grad-main);
    background-attachment: fixed;
    color: var(--vc-text);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* subtle grid overlay like reference image */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
}

/* ===== HEADER ===== */
.site-header {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--vc-border);
    padding: 10px 0;
    position: relative;
    z-index: 10;
}

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

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

.brand-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--vc-white);
    letter-spacing: -0.4px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    text-shadow: 0 2px 14px rgba(0,0,0,0.35);
    transition: var(--ease);
}

.brand-logo:hover .brand-name {
    text-shadow: 0 2px 22px rgba(255,255,255,0.55);
}

.brand-domain {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid var(--vc-border);
    border-radius: 24px;
    backdrop-filter: blur(6px);
}

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

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

/* ===== 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(--vc-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid var(--vc-border);
    box-shadow: 0 4px 22px var(--vc-shadow);
    overflow: hidden;
    margin-bottom: 7px;
}

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

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

/* PC端分区名：固定宽度，自动换行，4字显示 */
.cats-zone {
    font-size: 11px;
    font-weight: 700;
    color: var(--vc-white);
    background: var(--vc-grad-zone);
    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;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* PC端链接区：flex:1 占满剩余，8链接均分 */
.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.04);
}

.cats-links a {
    display: block;
    color: var(--vc-off-white);
    text-decoration: none;
    padding: 4px 2px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--vc-border);
    background: rgba(255,255,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: var(--vc-grad-btn);
    color: var(--vc-white);
    border-color: rgba(52,152,219,0.5);
    box-shadow: 0 2px 10px var(--vc-glow-blue);
}

.cats-links a.active {
    background: var(--vc-grad-btn);
    color: var(--vc-white);
    border-color: rgba(52,152,219,0.5);
    font-weight: 600;
    box-shadow: 0 2px 10px var(--vc-glow-blue);
}

/* ===== SEARCH BOX ===== */
.search-panel {
    background: var(--vc-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 10px 13px;
    margin-bottom: 7px;
    border: 1px solid var(--vc-border);
    box-shadow: 0 4px 22px var(--vc-shadow);
}

.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(--vc-border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.12);
    color: var(--vc-white);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.search-panel input[type="text"]:focus {
    border-color: rgba(52,152,219,0.8);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 0 3px rgba(52,152,219,0.22);
}

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

.search-panel button {
    padding: 9px 15px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--vc-grad-btn);
    color: var(--vc-white);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    box-shadow: 0 2px 10px var(--vc-glow-blue);
}

.search-panel button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
    box-shadow: 0 4px 16px rgba(52,152,219,0.55);
}

/* ===== HOT TAGS ===== */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 12px;
    background: var(--vc-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    margin-bottom: 7px;
    border: 1px solid var(--vc-border);
    box-shadow: 0 4px 20px var(--vc-shadow);
}

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

.tag-chip:hover {
    background: var(--vc-grad-btn);
    color: var(--vc-white);
    border-color: transparent;
    box-shadow: 0 2px 10px var(--vc-glow-blue);
}

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

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

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

.section-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--vc-white);
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

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

.section-heading a:hover {
    opacity: 0.85;
}

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

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

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

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

.card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 600 / 350;
    background: rgba(255,255,255,0.06);
    box-shadow: 0 4px 16px var(--vc-shadow);
    border: 1px solid var(--vc-border);
    transition: var(--ease);
}

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

.card-thumb:hover {
    box-shadow: 0 8px 30px var(--vc-shadow-md), 0 0 22px var(--vc-glow-pink);
    border-color: rgba(196,77,170,0.55);
}

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

.card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(100,30,140,0.80) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.card-thumb::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(52,152,219,0.92);
    color: white;
    font-size: 13px;
    line-height: 40px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 3;
}

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

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

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

.card-info h5 a {
    color: var(--vc-off-white);
    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(--vc-white);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* ===== VIDEO PLAYER ===== */
.MacPlayer {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 11px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.55);
    border: 1px solid var(--vc-border);
}

.video-player-wrap {
    width: 100%;
    height: 555px;
    max-height: 555px;
    margin-bottom: 11px;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0,0,0,0.55);
    border: 1px solid var(--vc-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(--radius-sm);
    border: 1px solid var(--vc-border);
}

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

/* ===== DOWNLOAD BUTTONS ===== */
.action-btns {
    text-align: center;
    padding: 14px;
    background: var(--vc-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    margin: 11px 0;
    border: 1px solid var(--vc-border);
    box-shadow: 0 4px 20px var(--vc-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.btn-action {
    display: inline-block;
    padding: 10px 26px;
    background: var(--vc-grad-btn);
    color: var(--vc-white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 3px 14px var(--vc-glow-blue);
    letter-spacing: 0.2px;
}

.btn-action:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%);
    box-shadow: 0 6px 22px rgba(52,152,219,0.6);
    transform: translateY(-1px);
}

/* ===== SHARE / LINK SECTION ===== */
.link-share {
    background: var(--vc-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 13px;
    margin: 11px 0;
    border: 1px solid var(--vc-border);
    box-shadow: 0 4px 20px var(--vc-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-display-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--vc-border);
    border-radius: var(--radius-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(--vc-off-white);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.link-value-txt {
    font-size: 12px;
    color: var(--vc-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 17px;
    background: rgba(255,255,255,0.12);
    color: var(--vc-white);
    border: 1px solid var(--vc-border);
    border-radius: var(--radius-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: var(--vc-grad-btn);
    border-color: transparent;
    box-shadow: 0 4px 14px var(--vc-glow-blue);
}

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

/* ===== FRIEND LINKS ===== */
.friend-links-list {
    padding: 9px 12px;
    background: var(--vc-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid var(--vc-border);
    box-shadow: 0 4px 18px var(--vc-shadow);
}

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

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

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

.friend-links-list a:hover { color: var(--vc-white); }

/* ===== 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(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.pg-link {
    background: rgba(255,255,255,0.10);
    color: var(--vc-off-white);
    border: 1px solid var(--vc-border);
}

.pg-link:hover {
    background: var(--vc-grad-btn);
    border-color: transparent;
    color: var(--vc-white);
    box-shadow: 0 2px 10px var(--vc-glow-blue);
}

.pg-current {
    background: var(--vc-grad-btn);
    color: var(--vc-white);
    border: 1px solid transparent;
    cursor: default;
    box-shadow: 0 2px 10px var(--vc-glow-blue);
}

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

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

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

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

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

img[data-original] { background: rgba(255,255,255,0.05); }

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

    /* 导航：分区名15%，链接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个，8个分2行 */
    .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: 9px 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: 8px 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 h5  { font-size: 12px; }
    .section-heading { font-size: 16px; }
    .media-section { margin-bottom: 8px; }

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

    .link-share    { padding: 10px; gap: 7px; margin: 9px 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: 10px 4px; gap: 5px; }
    .btn-action    { padding: 8px 12px; font-size: 12px; }

    .link-share    { padding: 8px; 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; }
}
