/* Video Site Template – Light Gray & Purple Edition */

:root {
    --bg-page:      #f2f2f6;
    --bg-soft:      #ebebf0;
    --surface:      #ffffff;
    --surface-alt:  #f8f8fc;
    --surface-dim:  #f0f0f5;
    --border:       #e0e0ea;
    --border-soft:  #eaeaf2;
    --purple:       #5741d9;
    --purple-dark:  #4530c0;
    --purple-light: #7b6ce8;
    --purple-glow:  rgba(87, 65, 217, 0.12);
    --purple-pale:  #ede9ff;
    --text-main:    #18181b;
    --text-sub:     #3d3d4a;
    --text-muted:   #7a7a90;
    --text-faint:   #b0b0c4;
    --radius:       10px;
    --radius-sm:    6px;
    --radius-lg:    14px;
    --speed:        0.2s;
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm:    0 1px 3px rgba(87,65,217,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 16px rgba(87,65,217,0.1), 0 2px 6px rgba(0,0,0,0.05);
}

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

html { scroll-behavior: smooth; }

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

/* ===================== HEADER ===================== */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
    box-shadow: var(--shadow-sm);
}

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

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

.brand-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--purple);
    letter-spacing: -0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.brand-sep {
    width: 1px;
    height: 22px;
    background: var(--border);
    flex-shrink: 0;
}

.domain-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.domain-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--surface);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--purple);
    padding: 3px 9px;
    border-radius: 50px;
    white-space: nowrap;
}

.domain-address {
    font-size: 19px;
    font-weight: 700;
    color: var(--purple);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.3px;
}

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

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

/* ===================== NAV BLOCK ===================== */
.nav-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 7px;
    box-shadow: var(--shadow-sm);
}

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

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

.nav-zone-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--surface);
    background: var(--purple);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
}

.nav-items {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--surface-alt);
}

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

.nav-items a:hover {
    background: var(--purple-pale);
    color: var(--purple);
    border-color: var(--purple-light);
    font-weight: 600;
}

.nav-items a.active {
    background: var(--purple);
    color: var(--surface);
    border-color: var(--purple-dark);
    font-weight: 600;
}

/* ===================== SEARCH ===================== */
.search-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 14px;
    margin-bottom: 7px;
    box-shadow: var(--shadow-sm);
}

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

.search-bar input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 14px;
    transition: border-color var(--speed);
    outline: none;
}

.search-bar input[type="text"]:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-glow);
    background: var(--surface);
}

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

.search-bar button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--purple);
    color: var(--surface);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--speed), transform var(--speed);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-bar button:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

/* ===================== TAG CLOUD ===================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 7px;
    box-shadow: var(--shadow-sm);
}

.tag-item {
    padding: 5px 13px;
    background: var(--surface-dim);
    border-radius: 50px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    transition: all var(--speed) var(--ease);
    border: 1px solid var(--border);
}

.tag-item:hover {
    background: var(--purple-pale);
    color: var(--purple);
    border-color: var(--purple-light);
    font-weight: 600;
}

/* ===================== SECTION BLOCK ===================== */
.film-block { margin-bottom: 12px; }

.film-block-head {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.film-block-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--purple);
    border-radius: 2px;
}

.film-block-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.film-block-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--speed);
}

.film-block-title a:hover { color: var(--purple); }

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

.film-grid li { animation: revealUp 0.45s var(--ease) backwards; }
.film-grid li:nth-child(1) { animation-delay: 0.04s; }
.film-grid li:nth-child(2) { animation-delay: 0.08s; }
.film-grid li:nth-child(3) { animation-delay: 0.12s; }
.film-grid li:nth-child(4) { animation-delay: 0.16s; }
.film-grid li:nth-child(5) { animation-delay: 0.20s; }
.film-grid li:nth-child(6) { animation-delay: 0.24s; }
.film-grid li:nth-child(7) { animation-delay: 0.28s; }
.film-grid li:nth-child(8) { animation-delay: 0.32s; }

@keyframes revealUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 600 / 350;
    background: var(--surface-dim);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--speed), box-shadow var(--speed), transform var(--speed);
}

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

.film-thumb:hover {
    border-color: var(--purple-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.film-thumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--surface);
    background: rgba(87, 65, 217, 0.45);
    opacity: 0;
    transition: opacity 0.2s;
}

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

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

.film-meta h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.film-meta h5 a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color var(--speed);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-meta h5 a:hover { color: var(--purple); }

/* ===================== VIDEO PLAYER ===================== */
.MacPlayer {
    background: #000;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--shadow-md);
}

.video-player-wrap {
    width: 100%;
    height: 640px;
    max-height: 640px;
    margin-bottom: 10px;
    background: #000;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

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

/* ===================== TORRENT CAPTURE ===================== */
.capture-zone img,
.capture-zone .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: block;
}

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

/* ===================== DOWNLOAD BUTTONS ===================== */
.action-row {
    text-align: center;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 10px 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.action-btn {
    display: inline-block;
    padding: 10px 26px;
    background: var(--purple);
    color: var(--surface);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: all var(--speed) var(--ease);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.action-btn:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--purple-glow);
}

/* ===================== SHARE SECTION ===================== */
.link-share {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 10px 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-display-area {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.link-caption {
    font-weight: 700;
    font-size: 10px;
    color: var(--surface);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--purple);
    padding: 2px 8px;
    border-radius: 50px;
}

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

.link-copy-btn {
    padding: 10px 18px;
    background: var(--purple);
    color: var(--surface);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--speed);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.link-copy-btn:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--purple-glow);
}

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

/* ===================== ENTRY INFO ===================== */
.entry-banner {
    line-height: 1.8;
    text-align: center;
    padding: 15px 20px;
    font-size: 17px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--purple);
    box-shadow: var(--shadow-sm);
}

.entry-banner a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.entry-details {
    font-size: 15px;
    line-height: 1.9;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 10px 0;
    color: var(--text-sub);
    box-shadow: var(--shadow-sm);
}

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

.pager-link,
.pager-current {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all var(--speed);
    min-width: 36px;
    text-align: center;
}

.pager-link {
    background: var(--surface);
    color: var(--text-sub);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.pager-link:hover {
    background: var(--purple-pale);
    color: var(--purple);
    border-color: var(--purple-light);
    font-weight: 700;
}

.pager-current {
    background: var(--purple);
    color: var(--surface);
    border: 1px solid var(--purple-dark);
    font-weight: 700;
    cursor: default;
}

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

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

.site-footer a {
    color: var(--purple);
    text-decoration: none;
    transition: opacity var(--speed);
}

.site-footer a:hover { opacity: 0.75; }

/* ===================== FRIENDLY LINKS ===================== */
.flinks-box {
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.flinks-box dl { margin: 0; }
.flinks-box dd { display: inline-block; margin: 4px; }

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

.flinks-box a:hover { color: var(--purple); }

/* ===================== UTILITY ===================== */
.hide-mobile { display: block; }
.hide-pc     { display: block; }
.clearfix::after { content: ""; display: table; clear: both; }
img[data-original] { background: var(--surface-dim); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .film-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .wrap { padding: 0 8px; }
    .section-gap { padding: 5px 0; }
    .site-header-inner { gap: 10px; }
    .brand-name { font-size: 20px; }
    .domain-tag { font-size: 9px; padding: 2px 7px; }
    .domain-address { font-size: 16px; }

    .nav-strip { display: flex; align-items: stretch; }

    .nav-zone-name {
        width: 15%;
        font-size: 10px;
        padding: 8px 3px;
        letter-spacing: 0;
        word-break: break-all;
        line-height: 1.3;
    }

    .nav-items {
        width: 85%;
        font-size: 12px;
        gap: 4px;
        padding: 7px 5px;
    }

    .nav-items a {
        padding: 4px 2px;
        font-size: 12px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .film-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .film-meta h5  { font-size: 12px; }
    .film-block-title { font-size: 16px; }
    .action-row { padding: 10px 6px; gap: 7px; }
    .action-btn { padding: 9px 14px; font-size: 13px; }
    .video-player-wrap { height: 56.25vw; max-height: 380px; }
    .link-share { padding: 10px 12px; gap: 7px; }
    .link-caption { font-size: 10px; }
    .link-value   { font-size: 10px; }
    .link-copy-btn { padding: 9px 12px; font-size: 12px; }
    .hide-mobile { display: none !important; }
}

@media (max-width: 540px) {
    .nav-zone-name { width: 15%; font-size: 10px; }
    .nav-items { width: 85%; gap: 3px; padding: 6px 3px; }
    .nav-items a { font-size: 12px; width: calc((100% - 9px) / 4); }
    .brand-name { font-size: 18px; }
    .domain-address { font-size: 14px; }
    .film-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .action-btn { padding: 8px 10px; font-size: 12px; }
    .link-share { flex-wrap: nowrap; padding: 8px; }
}

@media (min-width: 769px) {
    .hide-pc { display: none !important; }
    .nav-items a { width: calc((100% - 35px) / 8); }
}
