/* Amazon-Style: Dark Nav / Light Body / Orange Accent */

:root {
    --oj: #f0a500;
    --oj-deep: #c87a00;
    --oj-soft: rgba(240, 165, 0, 0.15);
    --ink: #0f1111;
    --ink-mid: #232f3e;
    --ink-soft: #37475a;
    --bg-root: #eaeded;
    --bg-page: #eaeded;
    --bg-white: #ffffff;
    --bg-nav: #131921;
    --bg-subnav: #232f3e;
    --txt-main: #0f1111;
    --txt-body: #333333;
    --txt-muted: #565959;
    --txt-link: #007185;
    --txt-light: #a0a6a6;
    --border: #dde0e0;
    --border-soft: rgba(0,0,0,0.09);
    --shd-sm: 0 2px 5px rgba(15,17,17,0.13);
    --shd: 0 2px 8px rgba(15,17,17,0.15);
    --shd-lg: 0 4px 16px rgba(15,17,17,0.18);
    --rad: 8px;
    --rad-sm: 4px;
    --ease: all 0.18s ease;
}

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

body {
    font-family: 'Amazon Ember', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--bg-root);
    color: var(--txt-main);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== Site Header ===== */
.site-header {
    background: var(--bg-nav);
    border-bottom: none;
    padding: 0.55rem 0;
}

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

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

.brand-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: var(--rad-sm);
    transition: var(--ease);
}

.brand-link:hover {
    border-color: #fff;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0px;
    line-height: 1;
}

.brand-name span {
    color: var(--oj);
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    background: rgba(240,165,0,0.18);
    border: 1.5px solid rgba(240,165,0,0.45);
    border-radius: var(--rad-sm);
}

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

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

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

.blk {
    padding: 6px 0;
}

/* ===== Category Navigation ===== */
.catbar {
    background: var(--bg-subnav);
    border-radius: var(--rad-sm);
    overflow: hidden;
    margin-bottom: 7px;
}

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

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

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

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

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

.catbar-links a:hover {
    background: var(--oj);
    color: var(--ink);
    border-color: var(--oj);
    font-weight: 600;
}

.catbar-links a.active {
    background: var(--oj);
    color: var(--ink);
    border-color: var(--oj);
    font-weight: 700;
}

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

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

.search-bar input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 8px 12px;
    border: 2px solid var(--oj);
    border-radius: var(--rad-sm);
    background: #fff;
    color: var(--txt-main);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

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

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

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

.search-bar button:hover {
    background: var(--oj-deep);
    box-shadow: 0 2px 8px rgba(240,165,0,0.4);
}

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

.kw-item {
    padding: 4px 12px;
    background: var(--bg-root);
    border-radius: var(--rad-sm);
    color: var(--txt-link);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--border);
}

.kw-item:hover {
    background: var(--oj-soft);
    color: var(--oj-deep);
    border-color: var(--oj);
    text-decoration: underline;
}

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

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

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

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

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

.module-ttl a:hover {
    color: var(--txt-link);
    text-decoration: underline;
}

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

.filmlist li {
    position: relative;
}

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

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

.filmcard:hover {
    box-shadow: var(--shd-lg);
    border-color: #aab7b8;
}

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

.filmcard::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,17,17,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.film-caption {
    padding: 6px 0 2px;
}

.film-caption h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    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(--txt-link);
    text-decoration: underline;
}

/* ===== Video Player ===== */
.video-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 12px;
    background: #000;
    border-radius: var(--rad-sm);
    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-sm);
    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: 12px;
    background: var(--bg-white);
    border-radius: var(--rad);
    margin: 8px 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: 9px 20px;
    background: var(--oj);
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--rad-sm);
    font-weight: 700;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--oj-deep);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}

.dl-btn:hover {
    background: var(--oj-deep);
    border-color: #a36200;
    box-shadow: var(--shd);
}

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

.url-box {
    background: var(--bg-root);
    border: 1px solid var(--border);
    border-radius: var(--rad-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

.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: 8px 16px;
    background: var(--oj);
    color: var(--ink);
    border: 1px solid var(--oj-deep);
    border-radius: var(--rad-sm);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset;
}

.copy-btn:hover {
    background: var(--oj-deep);
    box-shadow: var(--shd);
}

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

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

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

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

.title-strip a:hover {
    text-decoration: underline;
}

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

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--rad-sm);
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
    transition: var(--ease);
    min-width: 34px;
    text-align: center;
}

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

.a_page_info:hover {
    background: var(--oj-soft);
    border-color: var(--oj);
    color: var(--ink);
    font-weight: 600;
}

.page_info_focus {
    background: var(--oj);
    color: var(--ink);
    border: 1px solid var(--oj-deep);
    cursor: default;
    font-weight: 700;
}

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

.site-footer p {
    margin: 4px 0;
    color: #ccc;
    font-size: 12px;
}

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

.site-footer a:hover {
    color: var(--oj);
    text-decoration: underline;
}

/* ===== Friend Links ===== */
.flinks-wrap {
    padding: 10px 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(--txt-link);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.flinks-wrap a:hover {
    color: var(--oj-deep);
    text-decoration: underline;
}

.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-root); }

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

/* ===== Responsive Mobile ≤768px ===== */
@media (max-width: 768px) {
    .pgwrap { padding: 0 7px; }
    .blk { padding: 4px 0; }
    .site-header { padding: 0.45rem 0; }
    .brand-row { gap: 9px; }
    .brand-name { font-size: 19px; }
    .domain-tag { font-size: 9px; }
    .domain-val { font-size: 14px; }
    .domain-badge { padding: 4px 9px; 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: 9px; }
    .film-caption h5 { font-size: 12px; }
    .module-ttl { font-size: 15px; }
    .module { margin-bottom: 9px; }

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

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

    .dl-row { padding: 9px 5px; gap: 7px; }
    .dl-btn { padding: 8px 12px; font-size: 12px; }

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

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

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

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

    .catbar-row .catbar-zone { width: 15%; font-size: 10px; padding: 5px 2px; }
    .catbar-row .catbar-links { width: 85%; gap: 3px; padding: 5px 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: 7px; }
    .film-caption h5 { font-size: 11px; }
    .dl-btn { padding: 7px 10px; font-size: 11px; }
    .video-container { height: 56.25vw; max-height: 270px; }
    .module-ttl { font-size: 14px; }
}

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