/* NexusMods-Inspired Theme — Dark Gaming + Orange Accent */

:root {
    --bg-base:     #1a1b1e;
    --bg-surface:  #252629;
    --bg-card:     #2e3035;
    --bg-elevated: #35373d;
    --orange:      #e8700a;
    --orange-hi:   #f5820d;
    --orange-dim:  rgba(232,112,10,0.15);
    --orange-glow: rgba(232,112,10,0.30);
    --white:       #f0f0f0;
    --muted:       #9ea3ae;
    --dim:         #6b6f7a;
    --border:      #3a3d45;
    --border-hi:   #4a4e58;
    --shadow-md:   0 4px 18px rgba(0,0,0,0.40);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.55);
    --rad:         4px;
    --rad-sm:      3px;
    --ease:        all 0.20s ease;
    --maxw:        1060px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-base);
    color: var(--white);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.nx-header {
    background: var(--bg-surface);
    border-bottom: 2px solid var(--orange);
    padding: 10px 0;
}

.nx-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.nx-logo-link {
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.nx-site-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
}

.nx-site-title em {
    color: var(--orange);
    font-style: normal;
}

.nx-domain-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px;
    border: 1.5px solid var(--orange);
    border-radius: var(--rad);
    background: var(--orange-dim);
}

.nx-domain-lbl {
    font-size: 10px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nx-domain-url {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* ===== LAYOUT ===== */
.ctr {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 14px;
}

.row {
    padding: 7px 0;
}

/* ===== PROMO AREA ===== */
.promo-zone {
    overflow: hidden;
    margin-bottom: 7px;
}

/* ===== CATEGORY NAV ===== */
.ctnav-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--orange);
    margin-bottom: 7px;
    overflow: hidden;
}

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

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

.ctnav-zone {
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    background: var(--bg-base);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    border-right: 2px solid var(--orange);
    letter-spacing: 0.2px;
}

.ctnav-items {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 10px;
    align-items: center;
    background: var(--bg-card);
}

.ctnav-items a {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--rad-sm);
    transition: var(--ease);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.ctnav-items a:hover {
    background: var(--orange);
    color: var(--bg-base);
    border-color: var(--orange);
    font-weight: 600;
}

.ctnav-items a.active {
    background: var(--orange);
    color: var(--bg-base);
    border-color: var(--orange);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.qbox {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    padding: 11px 14px;
    margin-bottom: 7px;
}

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

.qbox input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 9px 13px;
    border: 1.5px solid var(--border-hi);
    border-radius: var(--rad-sm);
    background: var(--bg-base);
    color: var(--white);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.qbox input[type="text"]:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-dim);
}

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

.qbox button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--rad-sm);
    background: var(--orange);
    color: var(--bg-base);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.qbox button:hover {
    background: var(--orange-hi);
    box-shadow: 0 0 12px var(--orange-glow);
}

/* ===== HOT TAGS ===== */
.tagpool {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 11px 13px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    margin-bottom: 7px;
}

.tagpool a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-elevated);
    border-radius: var(--rad-sm);
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--border);
}

.tagpool a:hover {
    background: var(--orange);
    color: var(--bg-base);
    border-color: var(--orange);
    font-weight: 600;
}

/* ===== SECTION HEADING ===== */
.film-blk {
    margin-bottom: 10px;
}

.film-blk-head {
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.film-blk-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--orange);
}

.film-blk-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.2px;
    text-transform: uppercase;
    margin: 0;
}

.film-blk-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

.film-blk-title a:hover {
    color: var(--orange);
}

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

.thumb-grid li {
    animation: riseUp 0.42s ease backwards;
}

.thumb-grid li:nth-child(1) { animation-delay: 0.04s; }
.thumb-grid li:nth-child(2) { animation-delay: 0.08s; }
.thumb-grid li:nth-child(3) { animation-delay: 0.12s; }
.thumb-grid li:nth-child(4) { animation-delay: 0.16s; }
.thumb-grid li:nth-child(5) { animation-delay: 0.20s; }
.thumb-grid li:nth-child(6) { animation-delay: 0.24s; }
.thumb-grid li:nth-child(7) { animation-delay: 0.28s; }
.thumb-grid li:nth-child(8) { animation-delay: 0.32s; }

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

.thumb-img {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad);
    aspect-ratio: 600 / 350;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

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

.thumb-img:hover {
    border-color: var(--orange);
}

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

.thumb-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,27,30,0.80) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.thumb-img:hover::after {
    opacity: 1;
}

.thumb-info {
    padding: 7px 0 3px;
}

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

.thumb-info h5 a {
    color: var(--muted);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumb-info h5 a:hover {
    color: var(--orange);
}

/* ===== DETAIL TITLE ===== */
.dtl-bar {
    line-height: 1.8;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    margin: 8px 0;
    word-break: break-all;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--orange);
}

.dtl-bar a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.dtl-bar b {
    color: var(--white);
}

/* ===== INFO PANEL ===== */
.info-slab {
    font-size: 15px;
    line-height: 1.9;
    padding: 18px 22px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    margin: 7px 0;
    color: var(--muted);
}

/* ===== CAPTURE ===== */
.cap-frame {
    margin-top: 12px;
}

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

/* ===== ACTION BUTTONS ===== */
.dlrow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    margin: 7px 0;
}

.dlbtn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--orange);
    color: var(--bg-base);
    text-decoration: none;
    border-radius: var(--rad-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.dlbtn:hover {
    background: var(--orange-hi);
    box-shadow: 0 0 16px var(--orange-glow);
}

/* ===== SHARE PANEL ===== */
.share-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 13px 18px;
    margin: 7px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-url-seg {
    background: var(--bg-base);
    border: 1px solid var(--border-hi);
    border-radius: var(--rad-sm);
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

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

.share-url {
    font-size: 12px;
    color: var(--dim);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 10px 20px;
    background: var(--orange);
    color: var(--bg-base);
    border: none;
    border-radius: var(--rad-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    background: var(--orange-hi);
    box-shadow: 0 0 14px var(--orange-glow);
}

.share-copy-btn:active { transform: scale(0.97); }
.share-icon { font-size: 15px; }

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

.pgbtn,
.pgcur {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--rad-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 34px;
    text-align: center;
}

.pgbtn {
    background: var(--bg-surface);
    color: var(--muted);
    border: 1px solid var(--border);
}

.pgbtn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--bg-base);
    font-weight: 700;
}

.pgcur {
    background: var(--orange);
    color: var(--bg-base);
    border: 1px solid var(--orange);
    cursor: default;
    font-weight: 700;
}

/* ===== FOOTER ===== */
.nx-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid var(--orange);
    margin-top: 14px;
    background: var(--bg-surface);
}

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

.nx-footer a {
    color: var(--dim);
    text-decoration: none;
    transition: var(--ease);
}

.nx-footer a:hover { color: var(--orange); }

/* ===== FRIENDLY LINKS ===== */
.flinks {
    padding: 11px 13px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    margin-bottom: 7px;
}

.flinks dl { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.flinks dd { display: inline-block; margin: 0; }

.flinks a {
    color: var(--dim);
    text-decoration: none;
    font-size: 13px;
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: var(--rad-sm);
    display: inline-block;
    transition: var(--ease);
}

.flinks a:hover {
    color: var(--orange);
    border-color: var(--orange);
}

/* ===== HOT HEADING ===== */
.hotsect-hd {
    margin-bottom: 6px;
}

.hotsect-hd strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== VIDEO PLAYER ===== */
.MacPlayer {
    background: #000;
    margin-bottom: 7px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--rad-sm);
}

/* ===== UTILS ===== */
.clearfix::after { content: ''; display: table; clear: both; }
.showpc  { display: block; }
.showmob { display: block; }
img[data-original] { background: var(--bg-card); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 768px) {
    .ctr { padding: 0 9px; }
    .nx-header { padding: 9px 0; }
    .nx-header-inner { gap: 10px; }
    .nx-site-title { font-size: 22px; }
    .nx-domain-badge { padding: 4px 11px; gap: 8px; }
    .nx-domain-lbl { font-size: 9px; }
    .nx-domain-url { font-size: 15px; }
    .row { padding: 5px 0; }

    /* mobile nav 15/85 */
    .ctnav-zone {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
        letter-spacing: 0;
    }
    .ctnav-items {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }
    .ctnav-items a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .film-blk-title { font-size: 15px; }

    .qbox { padding: 9px 10px; }
    .qbox form { gap: 6px; }
    .qbox input[type="text"] { min-width: 90px; padding: 8px 10px; font-size: 13px; }
    .qbox button { padding: 8px 10px; font-size: 12px; }

    .thumb-info { padding: 5px 0 2px; }
    .thumb-info h5 { font-size: 12px; }

    .dlrow { padding: 11px 8px; gap: 8px; flex-wrap: nowrap; }
    .dlbtn { padding: 9px 14px; font-size: 13px; }

    .share-bar { padding: 10px 11px; gap: 8px; flex-wrap: nowrap; margin: 5px 0; }
    .share-url-seg { padding: 8px 10px; gap: 6px; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 9px 12px; font-size: 12px; }
    .share-icon { font-size: 13px; }

    .pager { padding: 12px 0; gap: 4px; }
    .pgbtn, .pgcur { padding: 6px 10px; font-size: 12px; min-width: 30px; }

    .tagpool { padding: 9px 10px; gap: 5px; }
    .tagpool a { font-size: 12px; padding: 4px 10px; }

    .dtl-bar { font-size: 14px; padding: 12px 14px; }
    .info-slab { font-size: 14px; padding: 13px 14px; }
    .nx-footer { padding: 14px 0; margin-top: 10px; }
}

@media (max-width: 480px) {
    .nx-site-title { font-size: 18px; }
    .nx-domain-url { font-size: 13px; }

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

    .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .thumb-info h5 { font-size: 12px; }
    .film-blk-title { font-size: 14px; }

    .qbox input[type="text"] { min-width: 70px; font-size: 12px; }
    .qbox button { padding: 8px 8px; font-size: 11px; }

    .dlrow { padding: 10px 6px; gap: 6px; }
    .dlbtn { padding: 8px 10px; font-size: 12px; }

    .share-bar { padding: 8px 7px; gap: 5px; }
    .share-url-seg { padding: 7px 8px; gap: 4px; }
    .share-label { font-size: 9px; }
    .share-url { font-size: 9px; }
    .share-copy-btn { padding: 7px 9px; font-size: 11px; }
}

@media (min-width: 769px) { .showmob { display: none !important; } }
@media (max-width: 768px) { .showpc  { display: none !important; } }
