/* Deep Navy Blue Theme - Inspired by Playwire */

:root {
    --navy-900:     #0a0f2e;
    --navy-800:     #0d1545;
    --navy-700:     #111d5e;
    --navy-600:     #1a2980;
    --navy-500:     #1e3799;
    --blue-mid:     #1c3faa;
    --blue-light:   #2c5fdb;
    --blue-bright:  #3d7cf4;
    --blue-glow:    #4a8fff;
    --accent:       #4a90f5;
    --accent-dark:  #2f72d9;
    --accent-soft:  rgba(74,144,245,0.15);

    --clr-surface:  rgba(255,255,255,0.06);
    --clr-surface-2:rgba(255,255,255,0.04);
    --clr-border:   rgba(255,255,255,0.12);
    --clr-border-light: rgba(255,255,255,0.07);

    --clr-text:     #e8edf8;
    --clr-text-muted: #8a9bc4;
    --clr-text-dim: #4a5a80;

    --body-bg: linear-gradient(160deg, #0a0f2e 0%, #0d1a5c 35%, #0e2472 60%, #0a1545 100%);

    --shadow-xs: 0 1px 4px rgba(0,0,0,0.4);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.6);
    --glow-blue: 0 0 18px rgba(74,144,245,0.3);

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

/* ============================================================
   TOP BRANDING BAR
   ============================================================ */
.site-topbar {
    background: rgba(10, 15, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    padding: 10px 0;
}

.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: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
}

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

.site-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74,144,245,0.12);
    border: 1.5px solid rgba(74,144,245,0.5);
    border-radius: var(--radius-lg);
    padding: 5px 16px;
}

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

.site-domain-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* ============================================================
   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-sm);
}

.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;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.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: 46px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    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 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-xs);
    border: 1px solid var(--clr-border-light);
    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(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--glow-blue);
}

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

/* ============================================================
   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;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.search-panel input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 8px 14px;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.06);
    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: rgba(74,144,245,0.08);
    box-shadow: 0 0 0 3px rgba(74,144,245,0.15);
}

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

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

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

/* ============================================================
   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);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tag-cloud-item {
    padding: 4px 13px;
    background: var(--clr-surface-2);
    border-radius: var(--radius-lg);
    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(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--glow-blue);
}

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

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

.block-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(74,144,245,0.6);
}

.block-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.2px;
    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: rgba(255,255,255,0.05);
    border: 1px solid var(--clr-border-light);
    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(10,15,46,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.media-thumb:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(74,144,245,0.3);
}

.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: 500;
    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-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: 15px 18px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    border-left: 3px solid var(--accent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.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);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.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(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    margin: 10px 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

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

/* ============================================================
   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;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.share-url-display {
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border-light);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    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 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    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;
    letter-spacing: 0.3px;
}

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

.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-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-muted);
    border: 1px solid var(--clr-border);
}

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

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

/* ============================================================
   LINKS & FOOTER
   ============================================================ */
.links-list {
    padding: 11px 13px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.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-light);
    margin-top: 10px;
}

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

.site-footer a {
    color: var(--clr-text-dim);
    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(--clr-text);
    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: 18px; }
    .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; }

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

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

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

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

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

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