/* Corporate Clean - White/Navy/Magenta Theme */

:root {
    --ac: #e8175d;
    --ac-deep: #c5114a;
    --ac-soft: rgba(232, 23, 93, 0.1);
    --navy: #1e3a6e;
    --navy-mid: #2b4d8a;
    --navy-soft: rgba(30, 58, 110, 0.08);
    --bg-page: #f4f6f9;
    --bg-white: #ffffff;
    --bg-nav: #2b4d8a;
    --txt-dark: #1a2a4a;
    --txt-body: #4a5568;
    --txt-muted: #8a96a8;
    --txt-light: #b0bac8;
    --border: #e2e8f0;
    --shd-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shd: 0 4px 14px rgba(0,0,0,0.09);
    --shd-lg: 0 8px 26px rgba(0,0,0,0.13);
    --rad: 10px;
    --rad-sm: 6px;
    --ease: all 0.22s ease;
    --grad: linear-gradient(135deg, #e8175d 0%, #f5437a 100%);
    --grad-navy: linear-gradient(135deg, #1e3a6e 0%, #2b4d8a 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-page);
    color: var(--txt-body);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* ===== Header ===== */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    box-shadow: var(--shd-sm);
}

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

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

.brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.3px;
    line-height: 1;
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--ac-soft);
    border: 1.5px solid rgba(232, 23, 93, 0.28);
    border-radius: 20px;
}

.domain-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--ac);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.domain-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.2px;
    font-family: 'Courier New', monospace;
}

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

.blk {
    padding: 7px 0;
}

/* ===== Category Navigation ===== */
.catbar {
    background: var(--bg-nav);
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: var(--shd-sm);
}

.catbar-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

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

.catbar-zone {
    font-weight: 700;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
    width: 10%;
    min-width: 56px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.14);
}

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

.catbar-links a {
    display: inline-block;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--rad-sm);
    transition: var(--ease);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.11);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.catbar-links a:hover {
    background: var(--ac);
    color: #fff;
    border-color: var(--ac);
    box-shadow: 0 3px 10px rgba(232,23,93,0.4);
}

.catbar-links a.active {
    background: var(--ac);
    color: #fff;
    border-color: var(--ac);
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(232,23,93,0.4);
}

/* ===== Search Bar ===== */
.search-bar {
    background: var(--bg-white);
    border-radius: var(--rad);
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shd-sm);
}

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

.search-bar input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--bg-page);
    color: var(--txt-dark);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.search-bar input[type="text"]:focus {
    border-color: var(--ac);
    background: #fff;
    box-shadow: 0 0 0 3px var(--ac-soft);
}

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

.search-bar button {
    padding: 9px 16px;
    border: none;
    border-radius: 20px;
    background: var(--grad);
    color: white;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-bar button:hover {
    box-shadow: 0 4px 14px rgba(232,23,93,0.3);
    filter: brightness(1.06);
}

/* ===== Hot Tags ===== */
.hotkw {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 11px 13px;
    background: var(--bg-white);
    border-radius: var(--rad);
    margin-bottom: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shd-sm);
}

.kw-item {
    padding: 5px 12px;
    background: var(--bg-page);
    border-radius: 14px;
    color: var(--txt-body);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--border);
}

.kw-item:hover {
    background: var(--ac-soft);
    color: var(--ac);
    border-color: rgba(232,23,93,0.28);
}

/* ===== Section Module ===== */
.module {
    margin-bottom: 12px;
}

.module-hd {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.module-hd::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 46px;
    height: 2px;
    background: var(--grad);
    border-radius: 2px;
}

.module-ttl {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--txt-dark);
    letter-spacing: -0.2px;
}

.module-ttl a {
    color: var(--txt-dark);
    text-decoration: none;
    transition: var(--ease);
}

.module-ttl a:hover {
    color: var(--ac);
}

/* ===== Film Grid ===== */
.filmlist {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    padding: 0;
}

.filmlist li {
    position: relative;
}

.filmcard {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad);
    aspect-ratio: 600 / 350;
    background: var(--border);
    border: 1px solid var(--border);
    box-shadow: var(--shd-sm);
}

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

.filmcard:hover {
    box-shadow: var(--shd-lg);
}

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

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

.filmcard:hover::after {
    opacity: 1;
}

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

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

.film-caption h5 a {
    color: var(--txt-body);
    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(--ac);
}

/* ===== Video Player ===== */
.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--rad);
    overflow: hidden;
    box-shadow: var(--shd-lg);
    position: relative;
    border: 1px solid var(--border);
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shd-lg);
    border: 1px solid var(--border);
}

/* ===== Torrent Preview ===== */
.preview-area {
    margin: 0;
    padding: 0;
}

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

.preview-area .img_item {
    width: 100%;
}

/* ===== Download Buttons ===== */
.dl-row {
    text-align: center;
    padding: 14px;
    background: var(--bg-white);
    border-radius: var(--rad);
    margin: 10px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shd-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.dl-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--grad);
    color: white;
    text-decoration: none;
    border-radius: 22px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.dl-btn:hover {
    box-shadow: 0 6px 18px rgba(232,23,93,0.3);
    filter: brightness(1.07);
}

/* ===== Share Section ===== */
.share-section {
    background: var(--bg-white);
    border-radius: var(--rad);
    padding: 14px;
    margin: 10px 0;
    border: 1px solid var(--border);
    box-shadow: var(--shd-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.url-box {
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

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

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

.copy-btn {
    padding: 9px 18px;
    background: var(--grad);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-btn:hover {
    box-shadow: 0 4px 14px rgba(232,23,93,0.3);
    filter: brightness(1.07);
}

.copy-btn:active {
    transform: scale(0.97);
}

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

/* ===== Info Blocks ===== */
.title-strip {
    line-height: 1.8;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    margin: 8px 0;
    word-break: break-all;
    background: var(--bg-white);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    border-left: 4px solid var(--ac);
    box-shadow: var(--shd-sm);
}

.title-strip a {
    color: var(--ac);
    text-decoration: none;
    font-weight: 600;
    margin-right: 8px;
}

.info-block {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--rad);
    margin: 10px 0;
    border: 1px solid var(--border);
    color: var(--txt-dark);
    box-shadow: var(--shd-sm);
}

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

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

.a_page_info {
    background: var(--bg-white);
    color: var(--txt-body);
    border: 1px solid var(--border);
}

.a_page_info:hover {
    background: var(--ac);
    border-color: var(--ac);
    color: #fff;
    box-shadow: 0 3px 10px rgba(232,23,93,0.25);
}

.page_info_focus {
    background: var(--grad);
    color: #fff;
    border: 1px solid transparent;
    cursor: default;
    box-shadow: 0 3px 10px rgba(232,23,93,0.3);
}

/* ===== Footer ===== */
.site-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 18px;
    background: var(--bg-white);
}

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

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

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

/* ===== Friend Links ===== */
.flinks-wrap {
    padding: 12px 14px;
    background: var(--bg-white);
    border-radius: var(--rad);
    border: 1px solid var(--border);
    box-shadow: var(--shd-sm);
}

.flinks-wrap dl { margin: 0; }

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

.flinks-wrap a {
    color: var(--navy-mid);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.flinks-wrap a:hover {
    color: var(--ac);
}

.pd5 { padding: 3px 6px; }

/* ===== Utilities ===== */
.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; } }

.clearfix::after { content: ""; display: table; clear: both; }
img[data-original] { background: var(--bg-page); }

/* ===== Responsive Tablet ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .filmlist { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

/* ===== Responsive Mobile ≤768px ===== */
@media (max-width: 768px) {
    .pgwrap { padding: 0 8px; }
    .blk { padding: 5px 0; }
    .site-header { padding: 0.5rem 0; }
    .brand-row { gap: 10px; }
    .brand-name { font-size: 20px; }
    .domain-tag { font-size: 9px; }
    .domain-val { font-size: 15px; }
    .domain-badge { padding: 4px 10px; gap: 5px; }

    .catbar-row .catbar-zone {
        width: 15%; min-width: 0; font-size: 10px; padding: 7px 3px;
    }
    .catbar-row .catbar-links {
        width: 85%; gap: 4px; padding: 7px 5px;
    }
    .catbar-row .catbar-links a {
        padding: 4px 2px; font-size: 12px; text-align: center;
        width: calc((100% - 12px) / 4); flex-shrink: 0; flex-grow: 0;
    }

    .filmlist { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .film-caption h5 { font-size: 12px; }
    .module-ttl { font-size: 16px; }
    .module { margin-bottom: 10px; }

    .search-bar { padding: 9px; }
    .search-bar form { gap: 5px; }
    .search-bar input[type="text"] { min-width: 90px; padding: 8px 12px; font-size: 13px; }
    .search-bar button { padding: 8px 10px; font-size: 11px; }

    .hotkw { gap: 5px; padding: 9px 10px; }
    .kw-item { padding: 4px 10px; font-size: 11px; }

    .dl-row { padding: 10px 6px; gap: 7px; }
    .dl-btn { padding: 9px 14px; font-size: 12px; }

    .share-section { padding: 10px; gap: 7px; }
    .url-box { padding: 8px 10px; gap: 6px; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .copy-btn { padding: 8px 11px; font-size: 11px; flex-shrink: 0; }
    .share-icon { font-size: 12px; }

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

    .video-container { height: 56.25vw; max-height: 380px; margin-bottom: 12px; }
    .title-strip { padding: 12px 14px; font-size: 14px; margin: 7px 0; }
    .info-block { padding: 14px; font-size: 14px; margin: 8px 0; }
    .site-footer { padding: 13px 0; margin-top: 13px; }
}

/* ===== Responsive Small Mobile ≤480px ===== */
@media (max-width: 480px) {
    .brand-name { font-size: 18px; }
    .domain-val { font-size: 13px; }
    .domain-tag { font-size: 8px; }

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

    .filmlist { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .film-caption h5 { font-size: 11px; }
    .dl-btn { padding: 8px 11px; font-size: 11px; }
    .video-container { height: 56.25vw; max-height: 280px; }
    .module-ttl { font-size: 15px; }
}

/* ===== PC: nav links fill full row ===== */
@media (min-width: 769px) {
    .catbar-links a { width: calc((100% - 42px) / 8); }
}
