/* Film & Media Portal — Navy Editorial Theme */

:root {
    --brand: #1a73a7;
    --brand-deep: #0d5a8a;
    --brand-light: #e8f4fc;
    --accent: #e8402a;
    --accent-soft: #fef0ed;
    --topbar-bg: #1c3a52;
    --topbar-border: #2a5275;
    --page-bg: #eef0f2;
    --surface: #ffffff;
    --surface-alt: #f5f7f9;
    --border-line: #dde1e6;
    --border-soft: #eaecef;
    --text-main: #1a1f2e;
    --text-sub: #4a5568;
    --text-muted: #8a96a8;
    --text-link: #1a73a7;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.07);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.09);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --ease: all 0.25s ease;
    --ease-fast: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--page-bg);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== TOP HEADER BAR ========== */
.site-topbar {
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    padding: 10px 0;
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.brand-anchor {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    border-bottom: none;
    font-style: normal;
}

.current-domain-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.domain-tag {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    background: rgba(255,255,255,0.1);
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.domain-value {
    font-size: 17px;
    font-weight: 700;
    color: #5bc8f5;
    letter-spacing: 0.3px;
    font-family: 'Courier New', monospace;
}

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

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

/* ========== BANNER AD AREA ========== */
.banner-zone {
    margin: 8px 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

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

/* ========== CATEGORY NAVIGATION ========== */
.catnav-panel {
    background: var(--surface);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--shadow-xs);
}

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

.catrow:last-child {
    border-bottom: none;
}

.catrow-zone {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: var(--topbar-bg);
    white-space: nowrap;
    width: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    text-align: center;
    flex-shrink: 0;
    border-right: 1px solid var(--topbar-border);
    letter-spacing: 0.5px;
}

.catrow-items {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 10px;
    align-items: center;
}

.catrow-items a {
    display: inline-block;
    color: var(--text-sub);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-line);
    background: var(--surface-alt);
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    transition: var(--ease-fast);
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.catrow-items a:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: var(--shadow-xs);
}

.catrow-items a.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    font-weight: 600;
}

/* ========== SEARCH BOX ========== */
.searchbar-wrap {
    background: var(--surface);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-xs);
}

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

.searchbar-wrap input[type="text"] {
    flex: 1;
    min-width: 60px;
    padding: 9px 13px;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: var(--ease);
}

.searchbar-wrap input[type="text"]:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,115,167,0.1);
}

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

.searchbar-wrap button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.searchbar-wrap button:hover {
    background: var(--brand-deep);
}

/* ========== TAG CLOUD ========== */
.tagcloud-box {
    background: var(--surface);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-xs);
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tagcloud-box a {
    padding: 5px 12px;
    background: var(--surface-alt);
    border: 1px solid var(--border-line);
    border-radius: 20px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease-fast);
    display: inline-block;
}

.tagcloud-box a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* ========== SECTION HEADING ========== */
.module-block {
    margin-bottom: 12px;
}

.module-block-inner {
    background: var(--surface);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    padding: 14px;
}

.module-head {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.module-head::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--brand);
    border-radius: 2px;
    flex-shrink: 0;
}

.module-head-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.2px;
}

.module-head-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--ease-fast);
}

.module-head-title a:hover {
    color: var(--brand);
}

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

.filmcard-list li {
    min-width: 0;
}

.filmcard-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 600 / 350;
    background: var(--surface-alt);
    border: 1px solid var(--border-soft);
}

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

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

.filmcard-thumb::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 28px;
    z-index: 2;
    transition: transform 0.2s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.filmcard-thumb:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.filmcard-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    z-index: 1;
}

.filmcard-thumb:hover::after {
    background: rgba(0,0,0,0.35);
}

.filmcard-meta {
    padding: 7px 2px 4px;
}

.filmcard-meta h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filmcard-meta h5 a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--ease-fast);
}

.filmcard-meta h5 a:hover {
    color: var(--brand);
}

/* ========== SECTION HEADINGS (legacy compat) ========== */
.mhlleset {
    margin-bottom: 12px;
}

.mhlleset-main {
    background: var(--surface);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-xs);
}

.mhlleset-heading {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mhlleset-heading::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--brand);
    border-radius: 2px;
    flex-shrink: 0;
}

.mhlleset-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.mhlleset-title a {
    color: var(--text-main);
    text-decoration: none;
}

.mhlleset-title a:hover {
    color: var(--brand);
}

.thumbnail2-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

.thumbnail2-group li {
    min-width: 0;
}

.thumbnail2 {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 600 / 350;
    background: var(--surface-alt);
    border: 1px solid var(--border-soft);
}

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

.thumbnail2:hover img {
    transform: scale(1.06);
}

.thumbnail2::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 28px;
    z-index: 2;
    transition: transform 0.2s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.thumbnail2:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.thumbnail2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    z-index: 1;
}

.thumbnail2:hover::after {
    background: rgba(0,0,0,0.3);
}

.video-info {
    padding: 7px 2px 4px;
}

.video-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-info h5 a {
    color: var(--text-main);
    text-decoration: none;
}

.video-info h5 a:hover {
    color: var(--brand);
}

/* ========== VIDEO PLAYER ========== */
.video-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 14px 0;
}

.video-player-wrap iframe,
.video-player-wrap video,
.video-player-wrap object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== TORRENT PAGE ========== */
.torrent-capture-grid {
    margin-top: 12px;
}

.torrent-capture-grid picture img,
.torrent-capture-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* ========== ACTION BUTTONS ========== */
.btn-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 0;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-block;
    padding: 10px 22px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--ease-fast);
    letter-spacing: 0.3px;
}

.btn-action:hover {
    background: var(--brand-deep);
    box-shadow: var(--shadow-sm);
}

/* legacy compat */
.download {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 0;
    flex-wrap: wrap;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--ease-fast);
    letter-spacing: 0.3px;
}

.down_btn:hover {
    background: var(--brand-deep);
    box-shadow: var(--shadow-sm);
}

/* ========== SHARE SECTION ========== */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin: 12px 0;
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    background: var(--surface-alt);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    min-width: 0;
}

.share-label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 600;
}

.share-url {
    font-size: 12px;
    color: var(--brand);
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px 16px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--ease-fast);
}

.share-copy-btn:hover {
    background: var(--brand-deep);
}

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

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

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

.a_page_info {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border-line);
}

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

.page_info_focus {
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
    font-weight: 700;
    cursor: default;
}

.p_c {
    pointer-events: none;
}

/* ========== FRIENDLY LINKS ========== */
.links-block {
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
}

.links-block dl {
    margin: 0;
}

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

.links-block a {
    color: var(--brand);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease-fast);
}

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

.pd5 {
    padding: 2px 4px;
}

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

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

.site-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

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

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

img[data-original] {
    background: var(--surface-alt);
}

/* ========== SECTION HEADING WITH LABEL ========== */
.sec-heading-wrap {
    margin-bottom: 12px;
}

.sec-heading-wrap h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .thumbnail2-group {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .wrap {
        padding: 0 8px;
    }

    .site-topbar {
        padding: 8px 0;
    }

    .brand-title {
        font-size: 19px;
    }

    .domain-value {
        font-size: 14px;
    }

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

    .section-block {
        padding: 8px 0;
    }

    /* Nav - mobile: 15% label + 85% links, 2 rows of 4 */
    .catrow-zone {
        width: 15%;
        font-size: 10px;
        padding: 8px 3px;
    }

    .catrow-items {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }

    .catrow-items a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
    }

    /* Thumbnail grid - 2 per row on mobile */
    .thumbnail2-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .video-info h5 {
        font-size: 12px;
    }

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

    .searchbar-wrap form {
        flex-wrap: nowrap;
    }

    .searchbar-wrap input[type="text"] {
        min-width: 60px;
        font-size: 12px;
        padding: 8px 10px;
    }

    .searchbar-wrap button {
        padding: 8px 10px;
        font-size: 11px;
    }

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

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

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

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

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

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

    .hide_mobile {
        display: none !important;
    }
}

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

/* Large mobile - 13px min for nav links */
@media (min-width: 481px) and (max-width: 768px) {
    .catrow-items a {
        font-size: 13px;
        min-font-size: 13px;
    }
}

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

    .domain-value {
        font-size: 13px;
    }

    /* Extra small: nav label 15%, links 85% */
    .catrow-zone {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .catrow-items {
        width: 85%;
        gap: 3px;
        padding: 6px 3px;
    }

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

    .searchbar-wrap button {
        padding: 7px 8px;
        font-size: 11px;
    }

    .searchbar-wrap input[type="text"] {
        padding: 7px 8px;
        font-size: 12px;
    }

    .thumbnail2-group {
        gap: 7px;
    }

    .mhlleset-main {
        padding: 10px;
    }

    .mhlleset-title {
        font-size: 14px;
    }
}

/* ========== FOOTER LEGACY COMPAT ========== */
.footer {
    background: var(--topbar-bg);
    border-top: 1px solid var(--topbar-border);
    padding: 20px 0;
    text-align: center;
}

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

.footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.txtguanggao2 {
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
}

.txtguanggao2 dl { margin: 0; }

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

.txtguanggao2 a {
    color: var(--brand);
    text-decoration: none;
    font-size: 13px;
}

.txtguanggao2 a:hover {
    color: var(--accent);
}

/* ========== CONTAINERS LEGACY ========== */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.content {
    padding: 8px 0;
}
