/* Fresh Content Site Template - Clean Modern Design */

:root {
    --clr-accent: #e8460a;
    --clr-accent-dark: #c33a08;
    --clr-accent-soft: rgba(232, 70, 10, 0.08);
    --clr-link: #1a73e8;
    --clr-text: #1c1c1e;
    --clr-text-muted: #6e6e73;
    --clr-text-light: #aeaeb2;
    --clr-bg: #f5f5f7;
    --clr-surface: #ffffff;
    --clr-surface-2: #f9f9fb;
    --clr-border: #e0e0e5;
    --clr-border-light: #ececf0;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.13);
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --trans: all 0.25s 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;
    gap: 10px;
}

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

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

.site-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--clr-accent-soft);
    border: 1.5px solid var(--clr-accent);
    border-radius: 20px;
    padding: 4px 14px;
}

.site-domain-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--clr-accent);
    white-space: nowrap;
}

.site-domain-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--clr-text);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

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

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

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

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

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

.nav-zone-label {
    width: 10%;
    min-width: 50px;
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-text-muted);
    background: var(--clr-surface-2);
    border-right: 1px solid var(--clr-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 4px;
    flex-shrink: 0;
    line-height: 1.3;
}

.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);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 6px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--clr-border-light);
    background: var(--clr-bg);
    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(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-sm);
}

.nav-zone-links a.active {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    font-weight: 600;
    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: 12px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-xs);
}

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

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

.search-panel input[type="text"]:focus {
    border-color: var(--clr-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232,70,10,0.09);
}

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

.search-panel button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--clr-accent);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.search-panel button:hover {
    background: var(--clr-accent-dark);
    box-shadow: var(--shadow-sm);
}

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

.tag-cloud-item {
    padding: 5px 13px;
    background: var(--clr-bg);
    border-radius: 20px;
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--trans);
    border: 1px solid var(--clr-border-light);
    white-space: nowrap;
}

.tag-cloud-item:hover {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-xs);
}

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

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

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

.block-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-text);
    letter-spacing: -0.3px;
    margin: 0;
}

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

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

/* ============================================================
   VIDEO CARD GRID
   ============================================================ */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    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-border-light);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-xs);
    transition: var(--trans);
}

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

.media-thumb::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 44px;
    height: 44px;
    background: rgba(232,70,10,0.9);
    color: #fff;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 44px;
    text-align: center;
    opacity: 0;
    transition: var(--trans);
    z-index: 2;
}

.media-thumb:hover {
    border-color: var(--clr-accent);
    box-shadow: var(--shadow-md);
}

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

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

.media-caption {
    padding: 7px 0 4px;
}

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

.media-caption h5 a {
    color: var(--clr-text);
    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(--clr-accent);
}

/* ============================================================
   VIDEO PLAYER
   ============================================================ */
.player-shell {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
}

.MacPlayer {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
}

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

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

/* ============================================================
   TORRENT DETAIL
   ============================================================ */
.detail-header-box {
    line-height: 1.8;
    text-align: center;
    padding: 18px 20px;
    font-size: 17px;
    margin: 14px 0;
    word-break: break-all;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-xs);
}

.detail-info-box {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px 22px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    margin: 12px 0;
    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: 16px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    margin: 12px 0;
    box-shadow: var(--shadow-xs);
}

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

.btn-action:hover {
    background: var(--clr-accent-dark);
    box-shadow: var(--shadow-sm);
}

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

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

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

.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: 10px 20px;
    background: var(--clr-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    background: var(--clr-accent-dark);
    box-shadow: var(--shadow-sm);
}

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

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

.pg-btn,
.pg-current {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--radius-xs);
    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);
    border: 1px solid var(--clr-border);
}

.pg-btn:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
}

.pg-current {
    background: var(--clr-accent);
    color: #fff;
    border: 1px solid var(--clr-accent);
    cursor: default;
}

/* ============================================================
   FRIENDLY LINKS & FOOTER
   ============================================================ */
.links-list {
    padding: 12px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
}

.links-list dl {
    margin: 0;
}

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

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

.links-list a:hover {
    color: var(--clr-accent);
    text-decoration: underline;
}

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

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

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

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

/* ============================================================
   HEADING TAGS INSIDE CONTENT
   ============================================================ */
.block-label-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--clr-text);
    padding: 10px 0 8px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.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 - TABLET / PHONE
   ============================================================ */
@media (max-width: 900px) {
    .media-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .page-wrap {
        padding: 0 8px;
    }

    .site-topbar {
        padding: 8px 0;
    }

    .topbar-inner {
        gap: 10px;
    }

    .site-logo-name {
        font-size: 20px;
    }

    .site-domain-value {
        font-size: 13px;
    }

    .site-domain-label {
        font-size: 10px;
    }

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

    /* Mobile nav */
    .nav-zone-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
        line-height: 1.25;
    }

    .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: 10px;
    }

    .media-caption h5 {
        font-size: 12px;
    }

    .block-title {
        font-size: 16px;
    }

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

    .search-panel form {
        flex-wrap: nowrap;
    }

    .search-panel input[type="text"] {
        min-width: 80px;
        font-size: 13px;
    }

    .search-panel button {
        font-size: 12px;
        padding: 9px 10px;
    }

    .action-buttons {
        padding: 12px 8px;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .btn-action {
        padding: 9px 14px;
        font-size: 13px;
    }

    .share-section {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .share-url-display {
        padding: 8px 10px;
    }

    .share-copy-btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .tag-cloud {
        padding: 10px;
        gap: 6px;
    }

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

    .block-group {
        margin-bottom: 10px;
    }

    .detail-header-box {
        padding: 14px 14px;
        font-size: 15px;
    }

    .detail-info-box {
        padding: 14px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .site-logo-name {
        font-size: 18px;
    }

    .site-domain-badge {
        padding: 3px 10px;
    }

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

    .nav-zone-links a {
        font-size: 12px;
        padding: 4px 1px;
        width: calc((100% - 9px) / 4);
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

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

    .btn-action {
        padding: 8px 10px;
        font-size: 12px;
    }

    .share-section {
        padding: 8px;
        gap: 6px;
    }

    .share-label {
        font-size: 11px;
    }

    .share-url {
        font-size: 10px;
    }

    .share-copy-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

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

/* ============================================================
   LARGE SCREEN OVERRIDES
   ============================================================ */
@media (min-width: 769px) {
    .nav-zone-label {
        font-size: 13px;
        width: 10%;
    }

    .nav-zone-links {
        width: 90%;
    }

    .nav-zone-links a {
        width: calc((100% - 35px) / 8);
        font-size: 13px;
    }
}

/* ============================================================
   IMAGE LAZY LOADING
   ============================================================ */
img[data-original] {
    background: var(--clr-border-light);
}
