/* PC Gamer-inspired Dark Gaming Magazine Theme */

:root {
    --clr-black: #0d0d0d;
    --clr-black2: #1a1a1a;
    --clr-black3: #222222;
    --clr-black4: #2d2d2d;
    --clr-red: #cc0000;
    --clr-red2: #e60000;
    --clr-red3: #ff1a1a;
    --clr-red-dark: #990000;
    --clr-white: #ffffff;
    --clr-offwhite: #f0f0f0;
    --clr-light: #e8e8e8;
    --clr-text: #1a1a1a;
    --clr-text2: #3a3a3a;
    --clr-text3: #888888;
    --clr-text-inv: #e8e8e8;
    --clr-border: #ddd;
    --clr-border2: #ccc;
    --clr-border-dark: #333;
    --clr-bg: #f2f2f2;
    --clr-surface: #ffffff;
    --clr-surface2: #f7f7f7;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.14);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.18);
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --ease: all 0.2s ease;
    --grad-red: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    --grad-black: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--clr-black);
    border-bottom: 3px solid var(--clr-red);
    padding: 0.5rem 0;
}

.hdr-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-logo {
    text-decoration: none;
    display: inline-block;
}

.brand-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--clr-white);
    letter-spacing: -1px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    line-height: 1;
    text-transform: uppercase;
}

.brand-title span.txt-red {
    color: var(--clr-red2);
}

.domain-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: var(--clr-red);
    border-radius: var(--radius-xs);
}

.domain-tag {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.domain-val {
    font-size: 17px;
    font-weight: 800;
    color: var(--clr-white);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
}

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

.blk { padding: 7px 0; }

/* ===== NAV ===== */
.cat-nav {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-top: 3px solid var(--clr-red);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--shadow-xs);
}

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

.cat-row:last-child { border-bottom: none; }

.cat-zone {
    font-weight: 900;
    font-size: 11px;
    color: var(--clr-white);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    flex-shrink: 0;
    background: var(--grad-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 8px;
    align-items: center;
    background: var(--clr-surface2);
}

.cat-links a {
    display: inline-block;
    color: var(--clr-text2);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--radius-xs);
    transition: var(--ease);
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 12px;
    font-weight: 600;
}

.cat-links a:hover {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red);
    box-shadow: var(--shadow-sm);
}

.cat-links a.active {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red);
    font-weight: 700;
}

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

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

.search-bar input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    border: 2px solid var(--clr-border2);
    border-radius: var(--radius-sm);
    background: var(--clr-offwhite);
    color: var(--clr-text);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
    font-weight: 500;
}

.search-bar input[type="text"]:focus {
    border-color: var(--clr-red);
    background: var(--clr-white);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
}

.search-bar input[type="text"]::placeholder {
    color: var(--clr-text3);
    font-size: 12px;
}

.search-bar button {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--grad-red);
    color: var(--clr-white);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.search-bar button:hover {
    background: var(--clr-red2);
    box-shadow: 0 3px 10px rgba(204,0,0,0.4);
    transform: translateY(-1px);
}

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

.tag-item {
    padding: 4px 12px;
    background: var(--clr-surface2);
    border-radius: var(--radius-xs);
    color: var(--clr-text2);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: var(--ease);
    border: 1px solid var(--clr-border);
}

.tag-item:hover {
    background: var(--clr-red);
    color: var(--clr-white);
    border-color: var(--clr-red);
}

/* ===== SECTIONS ===== */
.sec-block { margin-bottom: 14px; }

.sec-head {
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
}

.sec-head-inner {
    display: inline-block;
    background: var(--grad-red);
    padding: 5px 14px 5px 10px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.sec-title {
    font-size: 15px;
    font-weight: 900;
    margin: 0;
    color: var(--clr-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sec-title a { color: var(--clr-white); text-decoration: none; transition: var(--ease); }
.sec-title a:hover { color: var(--clr-light); }

/* Fallback for sections without inner wrap */
.sec-head > .sec-title {
    color: var(--clr-white);
    background: var(--grad-red);
    display: inline-block;
    padding: 5px 16px 5px 10px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sec-head > .sec-title a { color: var(--clr-white); text-decoration: none; }
.sec-head > .sec-title a:hover { opacity: 0.85; }

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

.card-grid li {
    position: relative;
    animation: riseUp 0.4s ease backwards;
}

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

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

.card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 600 / 350;
    background: var(--clr-black3);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-xs);
}

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

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

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

.card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Red label on hover */
.card-thumb::before {
    content: '▶';
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--clr-red);
    color: var(--clr-white);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-weight: 800;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card-thumb:hover::before { opacity: 1; }

.card-info { padding: 6px 0; }

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

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

.card-info h5 a:hover { color: var(--clr-red); }

/* ===== DOWNLOAD BUTTONS ===== */
.dl-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 10px;
    margin: 10px 0;
    background: var(--clr-black2);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border-dark);
    box-shadow: var(--shadow-sm);
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--grad-red);
    color: var(--clr-white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.down_btn:hover {
    background: var(--clr-red2);
    box-shadow: 0 4px 14px rgba(204,0,0,0.5);
    transform: translateY(-1px);
}

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

.share-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    overflow: hidden;
}

.share-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--clr-red);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-url {
    font-size: 12px;
    color: var(--clr-text2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    font-family: 'Courier New', monospace;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--grad-red);
    color: var(--clr-white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.share-copy-btn:hover {
    background: var(--clr-red2);
    box-shadow: 0 2px 8px rgba(204,0,0,0.4);
}

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

/* ===== INFO ===== */
.info-panel {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    border-left: 3px solid var(--clr-red);
    margin: 10px 0;
    color: var(--clr-text);
    box-shadow: var(--shadow-xs);
}

.info-panel a { color: var(--clr-red); text-decoration: none; font-weight: 700; }
.info-panel b { color: var(--clr-black); font-weight: 800; }

.title-strip {
    line-height: 1.8;
    text-align: center;
    padding: 14px 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-top: 3px solid var(--clr-red);
    box-shadow: var(--shadow-xs);
}

.title-strip a { color: var(--clr-red); text-decoration: none; font-weight: 700; margin-right: 6px; }
.title-strip b { color: var(--clr-black); font-weight: 800; }

/* ===== TORRENT CAPTURE ===== */
.capture-frame {
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

.capture-frame picture { display: block; width: 100%; }

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

/* ===== PAGINATION ===== */
.pg-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 14px 0;
}

.a_page_info, .page_info_focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.a_page_info {
    background: var(--clr-surface);
    color: var(--clr-text2);
    border: 1px solid var(--clr-border);
}

.a_page_info:hover {
    background: var(--clr-red);
    border-color: var(--clr-red);
    color: var(--clr-white);
}

.page_info_focus {
    background: var(--clr-red);
    color: var(--clr-white);
    border: 1px solid var(--clr-red);
    cursor: default;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 3px solid var(--clr-red);
    margin-top: 18px;
    background: var(--clr-black);
}

.site-footer p {
    margin: 5px 0;
    color: #888;
    font-size: 12px;
}

.site-footer a { color: #888; text-decoration: none; transition: var(--ease); }
.site-footer a:hover { color: var(--clr-red2); }

.flink-box {
    padding: 10px 12px;
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
}

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

.flink-box a {
    color: var(--clr-text2);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
}

.flink-box a:hover { color: var(--clr-red); }

/* ===== UTILITIES ===== */
.clearfix::after { content: ""; display: table; clear: both; }
.pd5 { padding: 0 5px; }
.mhlleset-main { width: 100%; }
img[data-original] { background: var(--clr-black3); }

.hide_mobile { display: block; }
.hide_pc { display: block; }

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

/* ===== PC: 4 columns ===== */
@media (min-width: 769px) {
    .card-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .wrap { padding: 0 8px; }
    .blk { padding: 5px 0; }

    .brand-wrap { gap: 10px; }
    .brand-title { font-size: 22px; }
    .domain-badge { padding: 4px 12px; gap: 6px; }
    .domain-tag { font-size: 9px; }
    .domain-val { font-size: 15px; }

    /* Mobile nav: zone 15%, links 85%, 4 per row */
    .cat-row { display: flex; align-items: stretch; }

    .cat-zone {
        width: 15%;
        font-size: 10px;
        padding: 6px 3px;
    }

    .cat-links {
        width: 85%;
        gap: 4px;
        padding: 6px 4px;
    }

    .cat-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Mobile: 2 columns */
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .card-info h5 { font-size: 11px; }
    .sec-title { font-size: 13px; }
    .sec-block { margin-bottom: 10px; }

    /* Search: single row */
    .search-bar { padding: 8px 10px; }
    .search-bar form { flex-wrap: nowrap; gap: 5px; }
    .search-bar input[type="text"] { min-width: 60px; padding: 7px 10px; font-size: 12px; }
    .search-bar button { padding: 7px 9px; font-size: 11px; }

    .tag-strip { padding: 8px 10px; gap: 5px; }
    .tag-item { padding: 4px 10px; font-size: 11px; }

    .dl-row { padding: 10px 6px; gap: 8px; }
    .down_btn { padding: 9px 16px; font-size: 12px; }

    .share-section { padding: 8px 10px; margin: 8px 0; gap: 6px; }
    .share-url-display { padding: 6px 10px; }
    .share-label { font-size: 9px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 7px 12px; font-size: 11px; }

    .pg-wrap { padding: 10px 0; gap: 4px; }
    .a_page_info, .page_info_focus { padding: 5px 10px; font-size: 12px; min-width: 30px; }

    .site-footer { padding: 14px 0; margin-top: 14px; }
    .title-strip { font-size: 14px; padding: 11px 13px; }
    .info-panel { padding: 13px 15px; font-size: 13px; }
}

@media (max-width: 480px) {
    .brand-title { font-size: 20px; }
    .domain-val { font-size: 14px; }

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

    .search-bar input[type="text"] { padding: 6px 8px; font-size: 11px; }
    .search-bar button { padding: 6px 8px; font-size: 11px; }

    .card-grid { gap: 6px; }
    .down_btn { padding: 8px 14px; font-size: 11px; }
}
