/* Future PLC Inspired Theme — Navy · Sand · Coral */

:root {
    --clr-navy:    #0d1630;
    --clr-navy2:   #131e3a;
    --clr-navy3:   #1a2748;
    --clr-navy4:   #243060;
    --clr-coral:   #e8354a;
    --clr-coral2:  #f5455a;
    --clr-coral3:  #c02838;
    --clr-sand:    #ece8e0;
    --clr-sand2:   #f5f2ec;
    --clr-sand3:   #e0dcd4;
    --clr-white:   #ffffff;
    --clr-offwhite:#fafaf8;
    --clr-text:    #1a1a2e;
    --clr-text2:   #3a3a52;
    --clr-text3:   #7a7a94;
    --clr-text4:   #aeaec0;
    --clr-border:  #dcd8d0;
    --clr-border2: #ccc8c0;
    --clr-border-n:#2a3350;
    --shadow-xs: 0 1px 4px rgba(13,22,48,0.08);
    --shadow-sm: 0 2px 8px rgba(13,22,48,0.12);
    --shadow-md: 0 6px 20px rgba(13,22,48,0.15);
    --shadow-coral: 0 3px 14px rgba(232,53,74,0.3);
    --radius-xs: 3px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    --ease: all 0.22s ease;
    --grad-navy: linear-gradient(135deg, #0d1630 0%, #1a2748 100%);
    --grad-coral: linear-gradient(135deg, #e8354a 0%, #c02838 100%);
}

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

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

/* ===== HEADER ===== */
.site-header {
    background: var(--clr-navy);
    border-bottom: none;
    padding: 0.6rem 0;
}

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

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

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

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

.domain-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-pill);
}

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

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

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

.blk { padding: 7px 0; }

/* ===== NAV ===== */
.cat-nav {
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    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: 800;
    font-size: 11px;
    color: var(--clr-white);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--clr-border-n);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    background: var(--grad-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.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;
    letter-spacing: 0.1px;
}

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

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

/* ===== SEARCH ===== */
.search-bar {
    background: var(--clr-white);
    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: 7px;
    flex-wrap: nowrap;
    align-items: center;
}

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

.search-bar input[type="text"]:focus {
    border-color: var(--clr-navy);
    background: var(--clr-white);
    box-shadow: 0 0 0 3px rgba(13,22,48,0.08);
}

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

.search-bar button {
    padding: 8px 15px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--clr-navy);
    color: var(--clr-white);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.search-bar button:hover {
    background: var(--clr-coral);
    box-shadow: var(--shadow-coral);
    transform: translateY(-1px);
}

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

.tag-item {
    padding: 5px 14px;
    background: var(--clr-sand);
    border-radius: var(--radius-pill);
    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-navy);
    color: var(--clr-white);
    border-color: var(--clr-navy);
}

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

.sec-head {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--clr-sand3);
    position: relative;
}

.sec-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--clr-coral);
}

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

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

/* ===== 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-navy2);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-xs);
}

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

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

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

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

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

/* coral tag on hover */
.card-thumb::before {
    content: '▶ PLAY';
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--clr-coral);
    color: var(--clr-white);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.5px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease;
    text-transform: uppercase;
}

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

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

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

.card-info h5 a {
    color: var(--clr-text2);
    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-navy); }

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

.down_btn {
    display: inline-block;
    padding: 11px 28px;
    background: var(--grad-coral);
    color: var(--clr-white);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: var(--ease);
    border: none;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.down_btn:hover {
    background: var(--clr-coral2);
    box-shadow: var(--shadow-coral);
    transform: translateY(-1px);
}

/* ===== SHARE ===== */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--clr-white);
    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-sand2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    overflow: hidden;
}

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

.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: 9px 18px;
    background: var(--grad-coral);
    color: var(--clr-white);
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    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-coral2);
    box-shadow: var(--shadow-coral);
}

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

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

.info-panel a { color: var(--clr-coral); text-decoration: none; font-weight: 700; }
.info-panel b { color: var(--clr-navy); 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-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    border-top: 3px solid var(--clr-coral);
    box-shadow: var(--shadow-xs);
}

.title-strip a { color: var(--clr-coral); text-decoration: none; font-weight: 700; margin-right: 6px; }
.title-strip b { color: var(--clr-navy); 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: 5px;
    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: 600;
}

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

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

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

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

.site-footer p {
    margin: 5px 0;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
}

.site-footer a { color: rgba(255,255,255,0.45); text-decoration: none; transition: var(--ease); }
.site-footer a:hover { color: var(--clr-coral2); }

.flink-box {
    padding: 10px 12px;
    background: var(--clr-white);
    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-coral); }

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

.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: 21px; letter-spacing: 2px; }
    .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: 14px; }
    .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 10px; font-size: 11px; }

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

    .dl-row { padding: 10px 6px; gap: 8px; }
    .down_btn { padding: 9px 20px; 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 11px; font-size: 12px; min-width: 32px; }

    .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: 18px; letter-spacing: 1.5px; }
    .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 16px; font-size: 12px; }
    .sec-title { font-size: 13px; }
}
