/* OxfordNight VideoSite Template */

:root {
    --midnight:    #0e1a35;
    --navy:        #162040;
    --navy-mid:    #1e2e55;
    --navy-panel:  #1a2848;
    --navy-card:   #243058;
    --navy-hover:  #2b3a6a;
    --red:         #c0392b;
    --red-lt:      #e05444;
    --white:       #ffffff;
    --off-white:   #f0f2f6;
    --silver:      #dde3ed;
    --txt-main:    #e8ecf4;
    --txt-sub:     #b0bcd6;
    --txt-muted:   #7a8eb0;
    --border:      #2e3f6a;
    --border-lt:   #374875;
    --shadow:      rgba(0,0,0,0.3);
    --shadow-sm:   rgba(0,0,0,0.18);
    --rad:         5px;
    --rad-sm:      3px;
    --ease:        all 0.22s ease;
}

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

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

/* ===== TOPBAR ===== */
.ox-bar {
    background: var(--midnight);
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 0;
}

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

.ox-logo {
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-style: normal;
    white-space: nowrap;
}
.ox-logo:hover { color: var(--txt-sub); }

.ox-domain-block {
    display: flex;
    align-items: center;
    gap: 0;
    border-left: 3px solid var(--red);
    padding-left: 14px;
    margin-left: 4px;
}

.ox-domain-tag {
    font-size: 11px;
    color: var(--txt-muted);
    font-weight: 500;
    white-space: nowrap;
    margin-right: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ox-domain-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* ===== LAYOUT ===== */
.ox-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.ox-sec { padding: 8px 0; }

/* ===== NAV ===== */
.ox-nav-wrap {
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

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

.ox-zone-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: var(--midnight);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    flex-shrink: 0;
    border-right: 3px solid var(--red);
}

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

.ox-cat-links a {
    display: inline-block;
    color: var(--txt-sub);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--rad-sm);
    transition: var(--ease);
    background: var(--navy-card);
    border: 1px solid var(--border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}
.ox-cat-links a:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.ox-cat-links a.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red-lt);
    font-weight: 600;
}

/* ===== SEARCH ===== */
.ox-search-panel {
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px var(--shadow-sm);
}
.ox-search-panel form {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}
.ox-search-panel input[type="text"] {
    flex: 1;
    min-width: 60px;
    padding: 8px 12px;
    border: 1px solid var(--border-lt);
    border-radius: var(--rad-sm);
    background: var(--midnight);
    color: var(--white);
    font-size: 13px;
    outline: none;
    transition: var(--ease);
}
.ox-search-panel input[type="text"]:focus {
    border-color: var(--white);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}
.ox-search-panel input[type="text"]::placeholder { color: var(--txt-muted); }
.ox-search-panel button {
    padding: 8px 13px;
    border: 1px solid var(--border-lt);
    border-radius: var(--rad-sm);
    background: var(--navy-card);
    color: var(--white);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}
.ox-search-panel button:hover {
    background: var(--red);
    border-color: var(--red);
}

/* ===== TAG CLOUDS ===== */
.ox-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 9px 12px;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--rad);
    margin-bottom: 8px;
    box-shadow: 0 2px 6px var(--shadow-sm);
}
.ox-tag-btn {
    padding: 4px 12px;
    background: var(--navy-card);
    border-radius: var(--rad-sm);
    color: var(--txt-sub);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid var(--border);
    transition: var(--ease);
}
.ox-tag-btn:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* ===== SECTION BLOCK ===== */
.ox-unit { margin-bottom: 14px; }

.ox-unit-hd {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.ox-unit-hd::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--red);
    border-radius: 2px;
    margin-right: 10px;
    flex-shrink: 0;
}

.ox-unit-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.2px;
}
.ox-unit-title a { color: inherit; text-decoration: none; }
.ox-unit-title a:hover { color: var(--txt-sub); }

/* ===== CARD GRID ===== */
.ox-film-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
}
.ox-film-grid li { animation: oxCardIn 0.4s ease backwards; }
.ox-film-grid li:nth-child(1){animation-delay:0.03s}
.ox-film-grid li:nth-child(2){animation-delay:0.06s}
.ox-film-grid li:nth-child(3){animation-delay:0.09s}
.ox-film-grid li:nth-child(4){animation-delay:0.12s}
.ox-film-grid li:nth-child(5){animation-delay:0.15s}
.ox-film-grid li:nth-child(6){animation-delay:0.18s}
.ox-film-grid li:nth-child(7){animation-delay:0.21s}
.ox-film-grid li:nth-child(8){animation-delay:0.24s}

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

.ox-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad);
    aspect-ratio: 600 / 350;
    background: var(--navy-card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px var(--shadow-sm);
}
.ox-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
    display: block;
}
.ox-cover:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px var(--shadow);
}
.ox-cover:hover img { transform: scale(1.06); }
.ox-cover::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 26px;
    background: rgba(14,26,53,0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}
.ox-cover:hover::after { opacity: 1; }

.ox-film-caption { padding: 6px 0 0; }
.ox-film-caption h5 {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--txt-main);
}
.ox-film-caption h5 a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--ease);
}
.ox-film-caption h5 a:hover { color: var(--txt-sub); }

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

/* ===== DETAIL TITLE ===== */
.ox-detail-cap {
    line-height: 1.7;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--navy);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    color: var(--white);
    box-shadow: 0 2px 8px var(--shadow-sm);
}

/* ===== TORRENT INFO ===== */
.ox-meta-panel {
    font-size: 14px;
    line-height: 2;
    padding: 18px;
    background: var(--navy);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    margin: 8px 0;
    color: var(--txt-main);
    box-shadow: 0 2px 8px var(--shadow-sm);
}
.ox-img-preview { width: 100%; margin-top: 8px; }
.ox-img-preview picture { display: block; width: 100%; }
.ox-img-preview img {
    width: 100%;
    height: auto;
    border-radius: var(--rad-sm);
    border: 1px solid var(--border);
    display: block;
}

/* ===== ACTION BUTTONS ===== */
.ox-actions {
    text-align: center;
    padding: 12px;
    background: var(--navy);
    border-radius: var(--rad);
    margin: 8px 0;
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    box-shadow: 0 2px 8px var(--shadow-sm);
}
.down_btn {
    display: inline-block;
    padding: 9px 20px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    border-radius: var(--rad-sm);
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--white);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}
.down_btn:hover {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 3px 10px rgba(192,57,43,0.35);
}

/* ===== SHARE ===== */
.ox-share-bar {
    background: var(--navy);
    border-radius: var(--rad);
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px var(--shadow-sm);
}
.share-url-display {
    background: var(--midnight);
    border: 1px solid var(--border);
    border-radius: var(--rad-sm);
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--txt-sub);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.share-url {
    font-size: 11px;
    color: var(--txt-muted);
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}
.share-copy-btn {
    padding: 9px 16px;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border-lt);
    border-radius: var(--rad-sm);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.share-copy-btn:hover {
    background: var(--red);
    border-color: var(--red);
}
.share-icon { font-size: 15px; }

/* ===== PAGINATION ===== */
.page_info_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 14px 0;
}
.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--rad-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 34px;
    text-align: center;
}
.a_page_info {
    background: var(--navy);
    color: var(--txt-main);
    border: 1px solid var(--border);
}
.a_page_info:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}
.page_info_focus {
    background: var(--red);
    color: var(--white);
    border: 1px solid var(--red-lt);
    cursor: default;
}

/* ===== FRIEND LINKS ===== */
.ox-flink-box {
    padding: 10px 12px;
    background: var(--navy);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px var(--shadow-sm);
}
.ox-flink-box dl { margin: 0; }
.ox-flink-box dd { display: inline-block; margin: 3px; }
.ox-flink-box a { color: var(--txt-sub); text-decoration: none; font-size: 13px; }
.ox-flink-box a:hover { color: var(--white); }

/* ===== FOOTER ===== */
.ox-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 14px;
    background: var(--midnight);
}
.ox-footer p { margin: 5px 0; color: var(--txt-muted); font-size: 12px; }
.ox-footer a { color: var(--txt-muted); text-decoration: none; }
.ox-footer a:hover { color: var(--white); }

/* ===== UTILITIES ===== */
.hide_mobile { display: block; }
.hide_pc     { display: block; }
@media (min-width: 769px) { .hide_pc { display: none !important; } }
.clearfix::after { content:''; display:table; clear:both; }
img[data-original] { background: var(--navy-card); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ox-wrap { padding: 0 8px; }
    .ox-sec  { padding: 6px 0; }
    .ox-bar  { padding: 0.4rem 0; }
    .ox-bar-inner { gap: 10px; }
    .ox-logo { font-size: 16px; letter-spacing: 2px; }
    .ox-domain-val { font-size: 13px; }
    .ox-domain-tag { font-size: 9px; }

    /* Nav: zone 15%, links 85%, 4-per-row, min 12px */
    .ox-zone-name { width:15%; font-size:10px; padding:6px 2px; border-right-width:2px; }
    .ox-cat-links { width:85%; gap:3px; padding:6px 4px; }
    .ox-cat-links a {
        font-size: 12px;
        padding: 4px 1px;
        width: calc((100% - 9px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Search — one row, no wrap */
    .ox-search-panel form { flex-wrap: nowrap; }
    .ox-search-panel input[type="text"] { min-width:60px; padding:7px 8px; font-size:12px; }
    .ox-search-panel button { padding:7px 8px; font-size:11px; }

    /* Cards 2-per-row */
    .ox-film-grid { grid-template-columns:repeat(2,1fr); gap:8px; }

    .ox-film-caption h5 { font-size:11px; }
    .ox-unit-title       { font-size:14px; }
    .ox-unit             { margin-bottom:10px; }

    .ox-actions { padding:9px 6px; gap:6px; }
    .down_btn   { padding:8px 12px; font-size:12px; }
    .ox-share-bar { padding:9px; flex-wrap:nowrap; }
    .share-url-display { padding:8px 10px; }
    .share-copy-btn { padding:8px 10px; font-size:11px; }

    .hide_mobile { display: none !important; }
}

@media (max-width: 480px) {
    .ox-logo { font-size:14px; letter-spacing:1.5px; }
    .ox-domain-val { font-size:12px; }
    .ox-zone-name { width:15%; font-size:10px; padding:5px 1px; }
    .ox-cat-links { width:85%; gap:3px; padding:5px 3px; }
    .ox-cat-links a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }
    .ox-search-panel input[type="text"] { padding:7px 6px; font-size:11px; }
    .ox-search-panel button { padding:7px 6px; font-size:11px; }
    .ox-film-grid { grid-template-columns:repeat(2,1fr); gap:6px; }
    .down_btn { padding:7px 9px; font-size:11px; }
    .ox-actions { gap:4px; }
}
