/* Soft Minimal Theme - Light Gray + White Cards + Green Accent */

:root {
    /* Background layers */
    --bg-base:       #eeeef4;
    --bg-surface:    #ffffff;
    --bg-surface-2:  #f7f7fb;
    --bg-surface-3:  #f0f0f6;
    --bg-highlight:  #f4f9f4;

    /* Borders */
    --border-main:   #dddde8;
    --border-light:  #e8e8f0;
    --border-focus:  #22c55e;

    /* Accent — green (Avo brand) */
    --green:         #22c55e;
    --green-dark:    #16a34a;
    --green-soft:    rgba(34,197,94,0.1);
    --green-tag:     #dcfce7;
    --green-tag-txt: #15803d;

    /* Accent — pink dot */
    --pink:          #f472b6;
    --pink-soft:     rgba(244,114,182,0.12);

    /* Text */
    --txt-primary:   #18181b;
    --txt-secondary: #52525b;
    --txt-muted:     #a1a1aa;
    --txt-dim:       #d4d4d8;

    /* Shadows — very soft, card-like */
    --shadow-xs: 0 1px 2px rgba(24,24,27,0.05);
    --shadow-sm: 0 2px 8px rgba(24,24,27,0.07);
    --shadow-md: 0 4px 16px rgba(24,24,27,0.09);
    --shadow-card: 0 0 0 1px var(--border-main), 0 2px 8px rgba(24,24,27,0.06);

    /* Shape */
    --r-xs:  4px;
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-xl:  20px;
    --r-pill:999px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --tr:   all 0.2s var(--ease);
}

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

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: var(--bg-base);
    color: var(--txt-primary);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

/* ============================================================
   TOP BRANDING BAR
   ============================================================ */
.site-topbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-main);
    padding: 9px 0;
    box-shadow: var(--shadow-xs);
}

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

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

.site-logo-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--txt-primary);
    letter-spacing: -0.5px;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
}

.site-logo-name:hover { color: var(--green-dark); }

.site-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-surface-2);
    border: 1.5px solid var(--border-main);
    border-radius: var(--r-xl);
    padding: 5px 15px;
    box-shadow: var(--shadow-xs);
}

.site-domain-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--green-dark);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-domain-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.site-domain-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--txt-primary);
    white-space: nowrap;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.page-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-wrap { padding: 6px 0; }

/* ============================================================
   BANNER
   ============================================================ */
.banner-zone {
    width: 100%;
    margin: 4px 0;
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
}
.banner-zone img { display: block; width: 100%; }

/* ============================================================
   NAV CATEGORIES
   ============================================================ */
.nav-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
}

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

.nav-zone-label {
    width: 10%;
    min-width: 46px;
    font-size: 11px;
    font-weight: 700;
    color: var(--txt-muted);
    background: var(--bg-surface-2);
    border-right: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 3px;
    flex-shrink: 0;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

.nav-zone-links a {
    display: inline-block;
    color: var(--txt-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 5px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-surface-2);
    transition: var(--tr);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-zone-links a:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 2px 6px rgba(34,197,94,0.25);
}

.nav-zone-links a.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(34,197,94,0.25);
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: var(--r-lg);
    padding: 9px 12px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-card);
}

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

.search-panel input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 8px 14px;
    border: 1.5px solid var(--border-main);
    border-radius: var(--r-pill);
    background: var(--bg-surface-2);
    color: var(--txt-primary);
    font-size: 14px;
    transition: var(--tr);
    outline: none;
    font-family: inherit;
}

.search-panel input[type="text"]:focus {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px var(--green-soft);
}

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

.search-panel button {
    padding: 8px 16px;
    border: none;
    border-radius: var(--r-pill);
    background: var(--txt-primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.search-panel button:hover {
    background: #000;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   HOT TAGS
   ============================================================ */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 11px;
    background: var(--bg-surface);
    border-radius: var(--r-lg);
    margin-bottom: 6px;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-card);
}

.tag-cloud-item {
    padding: 4px 12px;
    background: var(--bg-surface-3);
    border-radius: var(--r-pill);
    color: var(--txt-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--tr);
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.tag-cloud-item:hover {
    background: var(--green-tag);
    color: var(--green-tag-txt);
    border-color: var(--green);
}

/* ============================================================
   CONTENT BLOCKS
   ============================================================ */
.block-group { margin-bottom: 10px; }

.block-heading {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--border-light);
    position: relative;
}

.block-heading::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}

.block-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--txt-primary);
    letter-spacing: -0.2px;
    margin: 0;
}

.block-title a { color: inherit; text-decoration: none; transition: var(--tr); }
.block-title a:hover { color: var(--green-dark); }

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

.media-grid li { position: relative; }

.media-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    aspect-ratio: 600 / 350;
    background: var(--bg-surface-3);
    border: 1px solid var(--border-light);
    transition: var(--tr);
}

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

.media-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24,24,27,0.55) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.22s ease;
    border-radius: var(--r-md);
}

.media-thumb:hover {
    border-color: var(--green);
    box-shadow: 0 4px 16px rgba(34,197,94,0.18);
    transform: translateY(-2px);
}

.media-thumb:hover img { transform: scale(1.05); }
.media-thumb:hover::after { opacity: 1; }

.media-caption { padding: 6px 0 2px; }

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

.media-caption h5 a {
    color: var(--txt-secondary);
    text-decoration: none;
    transition: var(--tr);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-caption h5 a:hover { color: var(--green-dark); }

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

.player-frame {
    width: 100%;
    height: 600px;
    max-height: 600px;
    background: #000;
}

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

/* ============================================================
   DETAIL PAGES
   ============================================================ */
.detail-header-box {
    line-height: 1.8;
    text-align: center;
    padding: 14px 18px;
    font-size: 15px;
    margin: 8px 0;
    word-break: break-all;
    background: var(--bg-surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-main);
    border-left: 3px solid var(--green);
    box-shadow: var(--shadow-card);
}

.detail-info-box {
    font-size: 14px;
    line-height: 1.9;
    padding: 14px 16px;
    background: var(--bg-surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-main);
    margin: 8px 0;
    color: var(--txt-secondary);
    box-shadow: var(--shadow-card);
}

.torrent-preview-block { margin-top: 10px; }

.torrent-preview-block picture,
.torrent-preview-block img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-light);
}

/* ============================================================
   DOWNLOAD BUTTONS
   ============================================================ */
.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 12px;
    background: var(--bg-surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-main);
    margin: 8px 0;
    box-shadow: var(--shadow-card);
}

.btn-action {
    display: inline-block;
    padding: 9px 22px;
    background: var(--txt-primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 13px;
    transition: var(--tr);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.btn-action:hover {
    background: #000;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* ============================================================
   SHARE SECTION
   ============================================================ */
.share-section {
    background: var(--bg-surface);
    border-radius: var(--r-lg);
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid var(--border-main);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-card);
}

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

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

.share-url {
    font-size: 12px;
    color: var(--txt-muted);
    word-break: break-all;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-copy-btn {
    padding: 8px 16px;
    background: var(--txt-primary);
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--tr);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    background: #000;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

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

/* ============================================================
   PAGINATION
   ============================================================ */
.page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 14px 0;
}

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

.pg-btn {
    background: var(--bg-surface);
    color: var(--txt-secondary);
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-xs);
}

.pg-btn:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 2px 6px rgba(34,197,94,0.25);
}

.pg-current {
    background: var(--txt-primary);
    color: #fff;
    border: 1px solid var(--txt-primary);
    cursor: default;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   LINKS & FOOTER
   ============================================================ */
.links-list {
    padding: 10px 12px;
    background: var(--bg-surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-card);
}

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

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

.links-list a:hover { color: var(--green-dark); }

.site-footer {
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
    background: var(--bg-surface);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.site-footer p { margin: 5px 0; color: var(--txt-muted); font-size: 12px; }
.site-footer a { color: var(--txt-muted); text-decoration: none; transition: var(--tr); }
.site-footer a:hover { color: var(--green-dark); }

/* ============================================================
   UTILITIES
   ============================================================ */
.block-label-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--txt-secondary);
    padding: 5px 0 4px;
}

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

.u-hide-mobile { display: block; }
.u-hide-desktop { display: block; }

@media (max-width: 768px) { .u-hide-mobile { display: none !important; } }
@media (min-width: 769px) { .u-hide-desktop { display: none !important; } }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .page-wrap { padding: 0 8px; }
    .site-topbar { padding: 7px 0; }
    .topbar-inner { gap: 8px; }
    .site-logo-name { font-size: 18px; }
    .site-domain-value { font-size: 13px; }
    .site-domain-label { font-size: 10px; }
    .section-wrap { padding: 4px 0; }

    .nav-zone-label { width: 15%; font-size: 10px; padding: 6px 2px; }
    .nav-zone-links { width: 85%; gap: 4px; padding: 6px 5px; }
    .nav-zone-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .media-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .media-caption h5 { font-size: 12px; }
    .block-title { font-size: 14px; }
    .media-thumb:hover { transform: none; }

    .player-frame { height: 56.25vw; max-height: 360px; }

    .search-panel { padding: 8px 9px; }
    .search-panel input[type="text"] { min-width: 80px; font-size: 13px; }
    .search-panel button { font-size: 12px; padding: 8px 11px; }

    .action-buttons { padding: 10px 8px; gap: 6px; flex-wrap: nowrap; }
    .btn-action { padding: 9px 13px; font-size: 12px; }
    .btn-action:hover { transform: none; }

    .share-section { padding: 9px 10px; gap: 7px; flex-wrap: nowrap; }
    .share-copy-btn { padding: 8px 11px; font-size: 11px; }
    .share-copy-btn:hover { transform: none; }

    .tag-cloud { padding: 8px 9px; gap: 5px; }
    .tag-cloud-item { font-size: 12px; padding: 4px 10px; }

    .block-group { margin-bottom: 8px; }
    .detail-header-box { padding: 10px 12px; font-size: 14px; }
    .detail-info-box { padding: 10px 12px; font-size: 13px; }
}

@media (max-width: 480px) {
    .site-logo-name { font-size: 16px; }
    .site-domain-value { font-size: 13px; }

    .nav-zone-label { width: 15%; font-size: 10px; padding: 5px 2px; }
    .nav-zone-links { width: 85%; gap: 3px; padding: 5px 3px; }
    .nav-zone-links a {
        font-size: 12px;
        padding: 4px 1px;
        width: calc((100% - 9px) / 4);
    }

    .media-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .player-frame { height: 56.25vw; max-height: 260px; }
    .btn-action { padding: 8px 10px; font-size: 11px; }

    .pg-btn, .pg-current { padding: 6px 10px; font-size: 12px; min-width: 30px; }
}

/* ============================================================
   PC OVERRIDE
   ============================================================ */
@media (min-width: 769px) {
    .nav-zone-label { font-size: 11px; width: 10%; }
    .nav-zone-links { width: 90%; }
    .nav-zone-links a { width: calc((100% - 35px) / 8); font-size: 13px; }
}

img[data-original] { background: var(--bg-surface-3); }
