/* Warm Gradient Theme - Orange & Deep Purple */

:root {
    --purple-deep:   #2d1b69;
    --purple-mid:    #4a2c9e;
    --purple-bright: #6b3fd4;
    --purple-light:  #7c52e8;

    --orange-warm:   #f97316;
    --orange-mid:    #fb923c;
    --orange-light:  #fdba74;
    --orange-pale:   #fff7ed;

    --accent:        #6b3fd4;
    --accent-dark:   #4a2c9e;
    --accent-hover:  #7c52e8;
    --accent-soft:   rgba(107,63,212,0.1);

    --clr-bg:        #fafaf8;
    --clr-surface:   #ffffff;
    --clr-surface-2: #f9f5ff;
    --clr-surface-3: #fef3e8;

    --clr-border:    #e8e0f5;
    --clr-border-warm: #fde8d0;

    --clr-text:      #1a1033;
    --clr-text-muted:#5a4e7a;
    --clr-text-light:#9b8fbf;
    --clr-text-dim:  #c4b8df;

    --gradient-hero: linear-gradient(135deg, #ff9a56 0%, #f97316 30%, #fb7c3c 55%, #e85d9a 80%, #b44fd4 100%);
    --gradient-warm: linear-gradient(135deg, #fff7ed 0%, #fef3e8 50%, #f9f0ff 100%);
    --gradient-btn:  linear-gradient(135deg, var(--purple-bright) 0%, var(--purple-mid) 100%);

    --shadow-xs: 0 1px 3px rgba(107,63,212,0.08);
    --shadow-sm: 0 2px 10px rgba(107,63,212,0.12);
    --shadow-md: 0 4px 20px rgba(107,63,212,0.15);
    --shadow-warm: 0 4px 16px rgba(249,115,22,0.2);

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --trans: all 0.22s 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(--clr-bg);
    color: var(--clr-text);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

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

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

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

.site-logo-name {
    font-size: 23px;
    font-weight: 900;
    color: var(--purple-deep);
    letter-spacing: -0.5px;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-surface-3);
    border: 1.5px solid var(--orange-mid);
    border-radius: var(--radius-pill);
    padding: 5px 16px;
}

.site-domain-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--orange-warm);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-domain-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--purple-deep);
    white-space: nowrap;
    letter-spacing: 0.1px;
}

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

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

/* ============================================================
   BANNER ZONE
   ============================================================ */
.banner-zone {
    width: 100%;
    margin: 4px 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.banner-zone img { display: block; width: 100%; }

/* ============================================================
   NAV CATEGORIES
   ============================================================ */
.nav-section {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
}

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

.nav-strip:last-child { border-bottom: none; }

.nav-zone-label {
    width: 10%;
    min-width: 46px;
    font-size: 11px;
    font-weight: 700;
    color: var(--orange-warm);
    background: var(--gradient-warm);
    border-right: 1px solid var(--clr-border);
    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: 8px 10px;
    align-items: center;
}

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

.nav-zone-links a:hover {
    background: var(--gradient-btn);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.nav-zone-links a.active {
    background: var(--gradient-btn);
    color: #fff;
    border-color: var(--accent);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-panel {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 10px 13px;
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
}

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

.search-panel input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 9px 16px;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-pill);
    background: var(--clr-surface-2);
    color: var(--clr-text);
    font-size: 14px;
    transition: var(--trans);
    outline: none;
    font-family: inherit;
}

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

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

.search-panel button {
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--gradient-btn);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.search-panel button:hover {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-bright) 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ============================================================
   HOT TAGS
   ============================================================ */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    margin-bottom: 7px;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-xs);
}

.tag-cloud-item {
    padding: 4px 14px;
    background: var(--clr-surface-2);
    border-radius: var(--radius-pill);
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--trans);
    border: 1px solid var(--clr-border);
    white-space: nowrap;
}

.tag-cloud-item:hover {
    background: var(--gradient-btn);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

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

.block-heading {
    margin-bottom: 11px;
    padding-bottom: 9px;
    border-bottom: 1.5px solid var(--clr-border);
    position: relative;
}

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

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

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

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

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

.media-grid li { position: relative; }

.media-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 600 / 350;
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    transition: var(--trans);
}

.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(45,27,105,0.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.media-thumb:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

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

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

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

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

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

.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: 16px 20px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--gradient-warm);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    border-left: 3px solid var(--orange-warm);
}

.detail-info-box {
    font-size: 14px;
    line-height: 1.9;
    padding: 16px 18px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    margin: 10px 0;
    color: var(--clr-text-muted);
    box-shadow: var(--shadow-xs);
}

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

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

/* ============================================================
   DOWNLOAD BUTTONS
   ============================================================ */
.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 14px;
    background: var(--gradient-warm);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    margin: 10px 0;
    box-shadow: var(--shadow-xs);
}

.btn-action {
    display: inline-block;
    padding: 10px 24px;
    background: var(--gradient-btn);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
    transition: var(--trans);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.btn-action:hover {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-bright) 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ============================================================
   SHARE SECTION
   ============================================================ */
.share-section {
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    padding: 13px 15px;
    margin: 10px 0;
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-xs);
}

.share-url-display {
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 8px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

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

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

.share-copy-btn {
    padding: 9px 18px;
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.share-copy-btn:hover {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-bright) 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

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

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

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

.pg-btn {
    background: var(--clr-surface);
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
}

.pg-btn:hover {
    background: var(--gradient-btn);
    border-color: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

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

/* ============================================================
   LINKS & FOOTER
   ============================================================ */
.links-list {
    padding: 11px 13px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-xs);
}

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

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

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

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

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

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

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

/* ============================================================
   UTILITIES
   ============================================================ */
.block-label-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--purple-deep);
    padding: 6px 0 5px;
}

.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: 8px 0; }
    .topbar-inner { gap: 8px; }
    .site-logo-name { font-size: 19px; }
    .site-domain-value { font-size: 13px; }
    .site-domain-label { font-size: 10px; }
    .section-wrap { padding: 5px 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: 15px; }
    .media-thumb:hover { transform: none; }

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

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

    .action-buttons { padding: 10px 8px; gap: 6px; flex-wrap: nowrap; }
    .btn-action { padding: 9px 14px; 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: 9px 10px; gap: 5px; }
    .tag-cloud-item { font-size: 12px; padding: 4px 10px; }
    .tag-cloud-item:hover { transform: none; }

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

@media (max-width: 480px) {
    .site-logo-name { font-size: 17px; }
    .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: 12px; width: 10%; }
    .nav-zone-links { width: 90%; }
    .nav-zone-links a { width: calc((100% - 35px) / 8); font-size: 13px; }
}

img[data-original] { background: var(--clr-surface-2); }
