/* Steam-Inspired Dark Video Portal - style.css */

:root {
    --clr-accent: #1b9adb;
    --clr-accent-deep: #1477b0;
    --clr-accent2: #66c0f4;
    --clr-bg-root: #1b2838;
    --clr-bg-panel: #2a475e;
    --clr-bg-card: #16202d;
    --clr-bg-surface: #1e3147;
    --clr-text-main: #c6d4df;
    --clr-text-bright: #e8f0f6;
    --clr-text-muted: #7a9bb5;
    --clr-border: #2e4d6b;
    --clr-border-light: #3a6186;
    --clr-shadow: rgba(0,0,0,0.35);
    --clr-shadow-lg: rgba(0,0,0,0.55);
    --clr-gradient: linear-gradient(135deg, #1b9adb 0%, #0d5e8a 100%);
    --clr-gradient-alt: linear-gradient(180deg, #2a475e 0%, #1b2838 100%);
    --rd: 6px;
    --rd-sm: 4px;
    --ease: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ===== SITE HEADER ===== */
.site-header {
    background: linear-gradient(180deg, #1b2838 60%, #16202d 100%);
    border-bottom: 2px solid var(--clr-accent);
    padding: 10px 0;
    /* NOT sticky - scrolls with page */
}

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

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

.brand-logo {
    text-decoration: none;
    display: inline-block;
    transition: var(--ease);
}

.brand-logo:hover {
    opacity: 0.85;
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--clr-accent2);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
}

.brand-domain-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(27, 154, 219, 0.12);
    border: 1px solid var(--clr-accent);
    border-radius: 4px;
    padding: 5px 14px;
    flex-shrink: 0;
}

.brand-domain-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--clr-accent2);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.brand-domain-val {
    font-size: 17px;
    font-weight: 700;
    color: var(--clr-text-bright);
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

/* ===== CONTAINER / WRAPPER ===== */
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

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

/* ===== BANNER AD AREA ===== */
.banner-zone {
    width: 100%;
    margin: 6px 0;
    overflow: hidden;
    line-height: 0;
}

.banner-zone img {
    width: 100%;
    display: block;
}

/* ===== NAVIGATION ===== */
.nav-panel {
    background: var(--clr-bg-panel);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
}

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

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

.nav-strip-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--clr-accent2);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 6px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.15);
}

.nav-strip-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 8px;
    align-items: center;
}

.nav-strip-links a {
    display: inline-block;
    color: var(--clr-text-main);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--rd-sm);
    transition: var(--ease);
    background: var(--clr-bg-surface);
    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: 13px;
}

.nav-strip-links a:hover {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
}

.nav-strip-links a.active {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    font-weight: 700;
}

/* ===== SEARCH BOX ===== */
.searchbar-wrap {
    background: var(--clr-bg-panel);
    border-radius: var(--rd);
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
}

#search-form {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    align-items: center;
}

#search-form input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 9px 13px;
    border: 1px solid var(--clr-border-light);
    border-radius: var(--rd-sm);
    background: var(--clr-bg-card);
    color: var(--clr-text-bright);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

#search-form input[type="text"]:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 2px rgba(27,154,219,0.2);
}

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

#search-form button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--rd-sm);
    background: var(--clr-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

#search-form button:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 12px rgba(27,154,219,0.35);
}

/* ===== HOT TAGS / SEARCH KEYWORDS ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 10px 12px;
    background: var(--clr-bg-panel);
    border-radius: var(--rd);
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
}

.tag-item {
    padding: 4px 12px;
    background: var(--clr-bg-surface);
    border-radius: 3px;
    color: var(--clr-text-main);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--clr-border);
}

.tag-item:hover {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
}

/* ===== SECTION BLOCKS ===== */
.module-block {
    margin-bottom: 16px;
}

.module-inner {
    background: var(--clr-bg-panel);
    border-radius: var(--rd);
    border: 1px solid var(--clr-border);
    padding: 14px;
}

.module-head {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--clr-border);
    position: relative;
}

.module-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--clr-accent);
}

.module-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-text-bright);
    margin: 0;
    letter-spacing: 0.2px;
}

.module-title a {
    color: var(--clr-text-bright);
    text-decoration: none;
    transition: var(--ease);
}

.module-title a:hover {
    color: var(--clr-accent2);
}

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

.film-grid li {
    position: relative;
}

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

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

.film-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 55%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.film-thumb:hover {
    border-color: var(--clr-accent);
    box-shadow: 0 4px 16px rgba(27,154,219,0.25);
}

.film-caption {
    padding: 7px 0 4px;
}

.film-caption h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--clr-text-main);
}

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

.film-caption h5 a:hover {
    color: var(--clr-accent2);
}

/* ===== VIDEO PLAYER ===== */
.player-frame {
    width: 100%;
    height: 620px;
    max-height: 620px;
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 6px 24px var(--clr-shadow-lg);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 6px 20px var(--clr-shadow-lg);
}

/* ===== TORRENT CAPTURE AREA ===== */
.capture-display {
    width: 100%;
}

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

.capture-display .img_item {
    width: 100%;
}

/* ===== DOWNLOAD BUTTONS ===== */
.btn-group {
    text-align: center;
    padding: 14px;
    background: var(--clr-bg-panel);
    border-radius: var(--rd);
    margin: 12px 0;
    border: 1px solid var(--clr-border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--clr-gradient);
    color: #fff;
    text-decoration: none;
    border-radius: var(--rd-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.down_btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 5px 16px rgba(27,154,219,0.4);
}

/* ===== SHARE SECTION ===== */
.share-section {
    background: var(--clr-bg-panel);
    border-radius: var(--rd);
    padding: 16px;
    margin: 14px 0;
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--rd-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--clr-accent2);
    white-space: nowrap;
    flex-shrink: 0;
}

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

.share-copy-btn {
    padding: 10px 18px;
    background: var(--clr-gradient);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 14px rgba(27,154,219,0.4);
}

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

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

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

.a_page_info {
    background: var(--clr-bg-panel);
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
}

.a_page_info:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
}

.page_info_focus {
    background: var(--clr-gradient);
    color: #fff;
    border: 1px solid var(--clr-accent);
    cursor: default;
}

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

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

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

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

/* ===== FRIEND LINKS ===== */
.flinks-area {
    padding: 10px 12px;
    background: var(--clr-bg-panel);
    border-radius: var(--rd);
    border: 1px solid var(--clr-border);
}

.flinks-area dl {
    margin: 0;
}

.flinks-area dd {
    display: inline-block;
    margin: 3px 4px;
}

.flinks-area a {
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.flinks-area a:hover {
    color: var(--clr-accent2);
}

/* ===== UTILITIES ===== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.hide-mobile {
    display: block;
}

.hide-pc {
    display: block;
}

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

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

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

    .brand-domain-box {
        padding: 4px 10px;
        gap: 6px;
    }

    .brand-domain-tag {
        font-size: 10px;
    }

    .brand-domain-val {
        font-size: 15px;
    }

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

    .nav-strip-label {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
        text-align: center;
    }

    .nav-strip-links {
        width: 85%;
        gap: 4px;
        padding: 7px 4px;
    }

    .nav-strip-links a {
        font-size: 13px;
        padding: 4px 2px;
        text-align: center;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Search: all on one line */
    #search-form {
        flex-wrap: nowrap;
        gap: 5px;
    }

    #search-form input[type="text"] {
        min-width: 80px;
        padding: 8px 10px;
        font-size: 13px;
    }

    #search-form button {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Film grid: 2 per row on mobile */
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .player-frame {
        height: 56.25vw;
        max-height: 380px;
        margin-bottom: 12px;
    }

    .module-title {
        font-size: 16px;
    }

    .tag-item {
        font-size: 11px;
        padding: 4px 10px;
    }

    .down_btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .btn-group {
        padding: 10px 8px;
        gap: 7px;
        flex-wrap: nowrap;
    }

    .share-section {
        padding: 10px;
        gap: 7px;
        flex-wrap: nowrap;
    }

    .share-url-display {
        padding: 8px 10px;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

    .share-label {
        font-size: 11px;
    }

    .share-url {
        font-size: 10px;
    }

    .share-copy-btn {
        padding: 8px 10px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .page_info_div {
        gap: 4px;
        padding: 14px 0;
    }

    .a_page_info,
    .page_info_focus {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 30px;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* ===== RESPONSIVE - SMALL MOBILE ===== */
@media (max-width: 480px) {
    .branding-wrap {
        gap: 10px;
    }

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

    .brand-domain-val {
        font-size: 13px;
    }

    /* Small screen nav: label 15%, links 85%, 4 per row */
    .nav-strip-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .nav-strip-links {
        width: 85%;
        gap: 3px;
        padding: 5px 3px;
    }

    .nav-strip-links a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

    #search-form input[type="text"] {
        min-width: 60px;
        padding: 7px 8px;
        font-size: 12px;
    }

    #search-form button {
        padding: 7px 7px;
        font-size: 11px;
    }

    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .film-caption h5 {
        font-size: 12px;
    }

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

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

    .btn-group {
        padding: 8px 4px;
        gap: 5px;
    }

    .share-section {
        padding: 8px;
        gap: 5px;
        flex-wrap: nowrap;
    }

    .share-url-display {
        padding: 7px 8px;
    }

    .share-label {
        font-size: 10px;
    }

    .share-url {
        font-size: 10px;
    }

    .share-copy-btn {
        padding: 7px 8px;
        font-size: 11px;
    }
}

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

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