/* Editorial Magazine Style — Clean & Modern */

:root {
    --clr-accent: #c8102e;
    --clr-accent-dark: #a00e25;
    --clr-link: #1a6fa8;
    --clr-text: #111111;
    --clr-text-sub: #444444;
    --clr-muted: #888888;
    --clr-border: #e0e0e0;
    --clr-border-dark: #cccccc;
    --clr-bg: #f4f4f4;
    --clr-surface: #ffffff;
    --clr-surface-alt: #fafafa;
    --clr-shadow-sm: rgba(0,0,0,0.06);
    --clr-shadow-md: rgba(0,0,0,0.12);
    --rad: 4px;
    --rad-sm: 3px;
    --ease: all 0.25s ease;
    --fw-black: 900;
    --fw-bold: 700;
    --fw-semi: 600;
    --fw-normal: 400;
    --grad-accent: linear-gradient(135deg, var(--clr-accent) 0%, #e8305a 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    font-size: 15px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── SITE HEADER ────────────────────────────────────────────────────────── */
.site-header {
    background: var(--clr-surface);
    border-bottom: 3px solid var(--clr-text);
    padding: 14px 0 12px;
}

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

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

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

.brand-logo:hover .brand-name {
    letter-spacing: 3px;
}

.brand-name {
    font-size: 32px;
    font-weight: var(--fw-black);
    color: var(--clr-text);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: letter-spacing 0.3s ease;
    line-height: 1;
}

.brand-name em {
    color: var(--clr-accent);
    font-style: normal;
}

.latest-domain-block {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid var(--clr-text);
    padding: 5px 14px;
    border-radius: 2px;
    background: var(--clr-text);
}

.latest-domain-block .tag-label {
    font-size: 11px;
    font-weight: var(--fw-bold);
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.latest-domain-block .tag-url {
    font-size: 15px;
    font-weight: var(--fw-bold);
    color: #ffffff;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* ─── CONTAINER ──────────────────────────────────────────────────────────── */
.wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-pad {
    padding: 14px 0;
}

/* ─── CATEGORY NAVIGATION ────────────────────────────────────────────────── */
.category-nav {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-top: 3px solid var(--clr-text);
    margin-bottom: 14px;
    overflow: hidden;
}

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

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

.cat-zone-label {
    font-size: 13px;
    font-weight: var(--fw-bold);
    color: var(--clr-surface);
    background: var(--clr-text);
    white-space: nowrap;
    width: 10%;
    min-width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    text-align: center;
    border-right: 2px solid var(--clr-text);
}

.cat-zone-links {
    width: 90%;
    display: flex;
    flex-wrap: nowrap;
    padding: 8px 10px;
    align-items: center;
    gap: 6px;
}

.cat-zone-links a {
    display: inline-block;
    color: var(--clr-text-sub);
    text-decoration: none;
    font-size: 13px;
    font-weight: var(--fw-semi);
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: var(--ease);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.cat-zone-links a:hover {
    color: var(--clr-accent);
    border-bottom-color: var(--clr-accent);
}

.cat-zone-links a.active {
    color: var(--clr-accent);
    border-bottom-color: var(--clr-accent);
    font-weight: var(--fw-bold);
}

/* ─── SEARCH BAR ─────────────────────────────────────────────────────────── */
.search-bar-wrap {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-top: 3px solid var(--clr-accent);
    padding: 14px;
    margin-bottom: 14px;
}

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

.search-bar-wrap input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 10px 14px;
    border: 1px solid var(--clr-border-dark);
    border-radius: var(--rad-sm);
    background: var(--clr-bg);
    color: var(--clr-text);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.search-bar-wrap input[type="text"]:focus {
    border-color: var(--clr-accent);
    background: var(--clr-surface);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

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

.search-bar-wrap button {
    padding: 10px 18px;
    border: none;
    border-radius: var(--rad-sm);
    background: var(--clr-text);
    color: white;
    font-weight: var(--fw-bold);
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-bar-wrap button:hover {
    background: var(--clr-accent);
}

/* ─── TAG CLOUDS ─────────────────────────────────────────────────────────── */
.tag-cloud-section {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad);
    margin-bottom: 14px;
    overflow: hidden;
}

.tag-cloud-section .section-tag-title {
    font-size: 13px;
    font-weight: var(--fw-bold);
    color: var(--clr-surface);
    background: var(--clr-text);
    padding: 7px 14px;
    letter-spacing: 0.5px;
}

.tag-cloud-section .section-tag-title strong {
    font-weight: inherit;
}

.tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 12px 14px;
}

.tag-cloud-list .tag-entry {
    padding: 5px 13px;
    background: var(--clr-bg);
    border-radius: 2px;
    color: var(--clr-text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--clr-border);
    font-weight: var(--fw-semi);
}

.tag-cloud-list .tag-entry:hover {
    background: var(--clr-accent);
    color: white;
    border-color: var(--clr-accent);
}

/* ─── CONTENT BLOCKS ─────────────────────────────────────────────────────── */
.content-block {
    margin-bottom: 22px;
}

.block-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: baseline;
    gap: 8px;
    position: relative;
}

.block-header::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--clr-accent);
}

.block-title {
    font-size: 20px;
    font-weight: var(--fw-black);
    margin: 0;
    color: var(--clr-text);
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

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

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

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

.card-grid li {
    position: relative;
}

.media-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad);
    aspect-ratio: 600 / 350;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
}

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

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

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

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

.card-desc {
    padding: 8px 0 4px;
}

.card-desc h5 {
    margin: 0;
    font-size: 13px;
    font-weight: var(--fw-semi);
    line-height: 1.45;
}

.card-desc 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-desc h5 a:hover {
    color: var(--clr-accent);
}

/* ─── VIDEO PLAYER ───────────────────────────────────────────────────────── */
.player-box {
    width: 100%;
    height: 640px;
    max-height: 640px;
    margin-bottom: 20px;
    background: #000;
    border-radius: var(--rad);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--clr-shadow-md);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 6px 24px var(--clr-shadow-md);
}

/* ─── TORRENT PREVIEW IMAGE ──────────────────────────────────────────────── */
.preview-image-wrap {
    width: 100%;
}

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

/* ─── DOWNLOAD BUTTONS ───────────────────────────────────────────────────── */
.action-btns {
    text-align: center;
    padding: 16px;
    background: var(--clr-surface);
    border-radius: var(--rad);
    margin: 16px 0;
    border: 1px solid var(--clr-border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.btn-action {
    display: inline-block;
    padding: 11px 22px;
    background: var(--clr-text);
    color: white;
    text-decoration: none;
    border-radius: var(--rad-sm);
    font-weight: var(--fw-bold);
    font-size: 14px;
    transition: var(--ease);
    margin: 0;
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-action:hover {
    background: var(--clr-accent);
    box-shadow: 0 4px 14px var(--clr-shadow-md);
}

/* ─── SHARE SECTION ──────────────────────────────────────────────────────── */
.link-share-panel {
    background: var(--clr-surface);
    border-radius: var(--rad);
    padding: 18px;
    margin: 18px 0;
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.link-tag-label {
    font-weight: var(--fw-bold);
    font-size: 12px;
    color: var(--clr-accent);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-copy-link {
    padding: 11px 22px;
    background: var(--clr-text);
    color: white;
    border: 2px solid transparent;
    border-radius: var(--rad-sm);
    font-weight: var(--fw-bold);
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-copy-link:hover {
    background: var(--clr-accent);
}

.copy-icon {
    font-size: 16px;
}

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--rad-sm);
    text-decoration: none;
    font-weight: var(--fw-semi);
    font-size: 13px;
    transition: var(--ease);
    min-width: 38px;
    text-align: center;
    border: 1px solid var(--clr-border);
}

.a_page_info {
    background: var(--clr-surface);
    color: var(--clr-text);
}

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

.page_info_focus {
    background: var(--clr-accent);
    color: white;
    border-color: var(--clr-accent);
    cursor: default;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
    padding: 24px 0;
    text-align: center;
    border-top: 3px solid var(--clr-text);
    margin-top: 30px;
    background: var(--clr-surface);
}

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

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

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

/* ─── FRIENDLY LINKS ─────────────────────────────────────────────────────── */
.friendly-links-panel {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--rad);
    padding: 14px;
    margin-bottom: 16px;
}

.friendly-links-panel dl {
    margin: 0;
}

.friendly-links-panel dd {
    display: inline-block;
    margin: 4px;
}

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

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

.pd5 {
    padding: 2px 5px;
}

/* ─── MISC HELPERS ───────────────────────────────────────────────────────── */
.hide-on-mobile { display: block; }
.hide-on-desktop { display: block; }

@media (max-width: 768px) {
    .hide-on-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-on-desktop { display: none !important; }
}

.cf::after { content: ""; display: table; clear: both; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .wrap {
        padding: 0 10px;
    }

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

    /* Header not sticky */
    .site-header {
        padding: 10px 0;
    }

    .brand-name {
        font-size: 24px;
    }

    .latest-domain-block {
        padding: 4px 10px;
        gap: 5px;
    }

    .latest-domain-block .tag-label {
        font-size: 10px;
    }

    .latest-domain-block .tag-url {
        font-size: 14px;
    }

    /* Mobile nav: label narrower, links 2 rows of 4 */
    .cat-row {
        align-items: stretch;
    }

    .cat-zone-label {
        width: 14%;
        min-width: 40px;
        font-size: 12px;
        padding: 8px 3px;
    }

    .cat-zone-links {
        width: 86%;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        padding: 8px 7px;
    }

    .cat-zone-links a {
        font-size: 14px;
        padding: 6px 3px;
        width: calc((100% - 15px) / 4);
        border-bottom: none;
        border: 1px solid var(--clr-border);
        border-radius: var(--rad-sm);
        text-align: center;
        flex-shrink: 0;
        flex-grow: 0;
    }

    .cat-zone-links a:hover,
    .cat-zone-links a.active {
        background: var(--clr-accent);
        color: white;
        border-color: var(--clr-accent);
    }

    /* 2 columns on mobile */
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .player-box {
        height: 56.25vw;
        max-height: 380px;
        margin-bottom: 14px;
    }

    .search-bar-wrap {
        padding: 10px;
    }

    .search-bar-wrap form {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .search-bar-wrap input[type="text"] {
        min-width: 80px;
        font-size: 13px;
        padding: 9px 10px;
    }

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

    .action-btns {
        padding: 12px 8px;
        gap: 8px;
    }

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

    .link-share-panel {
        padding: 12px;
        margin: 14px 0;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .link-display-area {
        padding: 9px 10px;
        gap: 6px;
    }

    .link-tag-label {
        font-size: 11px;
    }

    .link-tag-url {
        font-size: 10px;
    }

    .btn-copy-link {
        padding: 9px 12px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .pager-wrap {
        padding: 14px 0;
        gap: 4px;
    }

    .a_page_info,
    .page_info_focus {
        padding: 7px 11px;
        font-size: 12px;
        min-width: 32px;
    }

    .site-footer {
        padding: 18px 0;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 20px;
    }

    .cat-zone-label {
        width: 16%;
        min-width: 38px;
        font-size: 11px;
        padding: 6px 2px;
    }

    .cat-zone-links {
        width: 84%;
        gap: 4px;
        padding: 6px 5px;
    }

    .cat-zone-links a {
        font-size: 13px;
        padding: 5px 2px;
        width: calc((100% - 12px) / 4);
    }

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

    .card-grid {
        gap: 8px;
    }

    .card-desc h5 {
        font-size: 12px;
    }

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

    .player-box {
        height: 56.25vw;
        max-height: 280px;
        margin-bottom: 12px;
    }
}

/* Lazy load image placeholder */
img[data-original] {
    background: var(--clr-bg);
}