/* Media Site - Cloudflare Orange Clean Tech Style */

:root {
    --cf-orange: #f48120;
    --cf-orange2: #e06b0a;
    --cf-orange3: #fb9b3c;
    --cf-orange-pale: #fff5ec;
    --cf-orange-pale2: #fdebd6;
    --cf-dark: #1d1d1b;
    --cf-dark2: #2c2c2a;
    --cf-text: #404040;
    --cf-sub: #6b6b6b;
    --cf-mute: #9e9e9e;
    --cf-bg: #f9f9f7;
    --cf-white: #ffffff;
    --cf-surface: #ffffff;
    --cf-surface2: #f5f5f3;
    --cf-border: #e5e5e2;
    --cf-border2: #d8d8d5;
    --grad-orange: linear-gradient(135deg, #f48120 0%, #fb9b3c 100%);
    --grad-dark: linear-gradient(135deg, #1d1d1b 0%, #2c2c2a 100%);
    --shadow-s: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-m: 0 3px 12px rgba(0,0,0,0.1);
    --shadow-l: 0 6px 24px rgba(0,0,0,0.12);
    --shadow-orange: 0 4px 16px rgba(244,129,32,0.3);
    --r1: 2px;
    --r2: 4px;
    --r3: 6px;
    --r4: 8px;
    --r5: 20px;
    --ease: all 0.2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--cf-bg);
    color: var(--cf-text);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.cf-header {
    background: var(--cf-white);
    border-bottom: 2px solid var(--cf-orange);
    padding: 0.6rem 0;
    box-shadow: var(--shadow-s);
}

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

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

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

.cf-site-name {
    font-size: 23px;
    font-weight: 900;
    color: var(--cf-orange);
    letter-spacing: -0.2px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    line-height: 1;
}

.cf-domain-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 15px;
    background: var(--cf-orange-pale);
    border: 1px solid rgba(244,129,32,0.3);
    border-radius: var(--r2);
}

.cf-domain-lbl {
    font-size: 10px;
    font-weight: 700;
    color: var(--cf-orange);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.cf-domain-url {
    font-size: 17px;
    font-weight: 700;
    color: var(--cf-dark);
    font-family: 'Courier New', 'Lucida Console', monospace;
    letter-spacing: 0.2px;
}

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

.cf-seg {
    padding: 7px 0;
}

/* ===== NAV PANEL ===== */
.cf-navpanel {
    background: var(--cf-dark);
    border-radius: var(--r4);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--cf-dark2);
}

.cf-navrow {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cf-navrow:last-child {
    border-bottom: none;
}

.cf-zone-lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--cf-orange);
    white-space: nowrap;
    width: 10%;
    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(244,129,32,0.08);
}

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

.cf-zone-links a {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 4px 4px;
    border-radius: var(--r1);
    transition: var(--ease);
    background: rgba(255,255,255,0.06);
    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;
}

.cf-zone-links a:hover {
    background: var(--cf-orange);
    color: var(--cf-white);
    border-color: var(--cf-orange);
    font-weight: 600;
}

.cf-zone-links a.active {
    background: var(--cf-orange);
    color: var(--cf-white);
    border-color: var(--cf-orange);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.cf-searchbox {
    background: var(--cf-white);
    border-radius: var(--r4);
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--cf-border);
    box-shadow: var(--shadow-s);
}

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

.cf-searchbox input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 9px 13px;
    border: 1px solid var(--cf-border2);
    border-radius: var(--r2);
    background: var(--cf-surface2);
    color: var(--cf-dark);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
}

.cf-searchbox input[type="text"]:focus {
    border-color: var(--cf-orange);
    background: var(--cf-white);
    box-shadow: 0 0 0 3px rgba(244,129,32,0.12);
}

.cf-searchbox input[type="text"]::placeholder {
    color: var(--cf-mute);
}

.cf-searchbox button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--r2);
    background: var(--grad-orange);
    color: var(--cf-white);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.cf-searchbox button:hover {
    filter: brightness(1.08);
    box-shadow: var(--shadow-orange);
}

/* ===== TAGS ===== */
.cf-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--cf-white);
    border-radius: var(--r4);
    margin-bottom: 8px;
    border: 1px solid var(--cf-border);
    box-shadow: var(--shadow-s);
}

.cf-taglink {
    padding: 4px 13px;
    background: var(--cf-surface2);
    border-radius: var(--r2);
    color: var(--cf-sub);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--cf-border);
}

.cf-taglink:hover {
    background: var(--cf-orange-pale);
    color: var(--cf-orange);
    border-color: rgba(244,129,32,0.35);
}

/* ===== SECTION ===== */
.cf-section {
    margin-bottom: 12px;
}

.cf-sec-hd {
    margin-bottom: 11px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--cf-border);
    position: relative;
}

.cf-sec-hd::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--cf-orange);
    border-radius: 2px;
}

.cf-sec-hd::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--grad-orange);
}

.cf-sec-ttl {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: var(--cf-dark);
    padding-left: 12px;
    letter-spacing: -0.1px;
}

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

.cf-sec-ttl a:hover {
    color: var(--cf-orange);
}

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

.cf-filmgrid li {
    position: relative;
}

.cf-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r4);
    aspect-ratio: 600 / 350;
    background: var(--cf-surface2);
    border: 1px solid var(--cf-border);
    box-shadow: var(--shadow-s);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

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

.cf-thumb:hover {
    box-shadow: var(--shadow-l);
    border-color: var(--cf-orange);
    transform: translateY(-2px);
}

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

.cf-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 40px;
    height: 40px;
    background: var(--cf-orange);
    color: var(--cf-white);
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    z-index: 2;
    line-height: 40px;
    text-align: center;
    padding-left: 3px;
    box-shadow: 0 2px 10px rgba(244,129,32,0.5);
}

.cf-thumb:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cf-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(29,29,27,0.6) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 1;
    pointer-events: none;
}

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

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

.cf-caption h5 {
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    color: var(--cf-sub);
}

.cf-caption h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

.cf-caption h5 a:hover {
    color: var(--cf-orange);
}

/* ===== DETAIL PAGE ===== */
.cf-titlebar {
    line-height: 1.7;
    text-align: center;
    padding: 15px 18px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--cf-white);
    border-radius: var(--r4);
    border: 1px solid var(--cf-border);
    border-top: 3px solid var(--cf-orange);
    box-shadow: var(--shadow-s);
}

.cf-titlebar a {
    color: var(--cf-orange);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.cf-titlebar b {
    color: var(--cf-dark);
}

.cf-infobox {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--cf-white);
    border-radius: var(--r4);
    margin: 8px 0;
    border: 1px solid var(--cf-border);
    color: var(--cf-sub);
    box-shadow: var(--shadow-s);
}

/* ===== CAPTURES ===== */
.cf-capblock {
    margin: 10px 0;
}

.cf-capblock picture,
.cf-capblock picture img {
    display: block;
    width: 100%;
    border-radius: var(--r3);
}

/* ===== DOWNLOAD BUTTONS ===== */
.cf-actrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.cf-actbtn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--r2);
    background: var(--grad-orange);
    color: var(--cf-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: var(--ease);
    letter-spacing: 0.2px;
    box-shadow: var(--shadow-orange);
}

.cf-actbtn:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 22px rgba(244,129,32,0.45);
    transform: translateY(-1px);
}

/* ===== CLIENT LINKS ===== */
.cf-pclink, .cf-moblink {
    text-align: center;
    padding: 10px;
}

.cf-pclink a, .cf-moblink a {
    color: var(--cf-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
}

.cf-pclink a:hover, .cf-moblink a:hover {
    color: var(--cf-orange2);
    text-decoration: underline;
}

/* ===== SHARE ===== */
.cf-sharebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--cf-white);
    border-radius: var(--r4);
    border: 1px solid var(--cf-border);
    margin: 8px 0;
    flex-wrap: nowrap;
    box-shadow: var(--shadow-s);
}

.cf-urlbox {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    padding: 7px 11px;
    background: var(--cf-surface2);
    border-radius: var(--r2);
    border: 1px solid var(--cf-border);
    overflow: hidden;
}

.cf-urllabel {
    font-size: 10px;
    font-weight: 700;
    color: var(--cf-orange);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cf-urlval {
    font-size: 11px;
    color: var(--cf-mute);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    font-family: 'Courier New', monospace;
}

.cf-copybtn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--cf-surface2);
    color: var(--cf-sub);
    border: 1px solid var(--cf-border);
    border-radius: var(--r2);
    cursor: pointer;
    font-size: 12px;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.cf-copybtn:hover {
    background: var(--cf-orange);
    color: var(--cf-white);
    border-color: var(--cf-orange);
    font-weight: 700;
}

.cf-ico { font-size: 13px; }

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

.cf-pgbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border-radius: var(--r2);
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
}

.cf-pgnum {
    background: var(--cf-white);
    color: var(--cf-sub);
    border: 1px solid var(--cf-border);
}

.cf-pgnum:hover {
    background: var(--cf-orange-pale);
    border-color: rgba(244,129,32,0.4);
    color: var(--cf-orange);
}

.cf-pgcur {
    background: var(--grad-orange);
    color: var(--cf-white);
    border: 1px solid transparent;
    cursor: default;
    font-weight: 700;
    box-shadow: var(--shadow-orange);
}

/* ===== FOOTER ===== */
.cf-flinks-wrap { margin-bottom: 8px; }

.cf-flink-box {
    padding: 11px 13px;
    background: var(--cf-white);
    border-radius: var(--r4);
    border: 1px solid var(--cf-border);
    box-shadow: var(--shadow-s);
}

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

.cf-flink-box a {
    color: var(--cf-mute);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.cf-flink-box a:hover { color: var(--cf-orange); }

.cf-footer {
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid var(--cf-border);
    margin-top: 12px;
    background: var(--cf-white);
}

.cf-footer p {
    margin: 5px 0;
    color: var(--cf-mute);
    font-size: 12px;
}

.cf-footer a {
    color: var(--cf-mute);
    text-decoration: none;
    transition: var(--ease);
}

.cf-footer a:hover { color: var(--cf-orange); }

/* ===== VISIBILITY ===== */
.cf-pc { display: block; }
.cf-mob { display: block; }

@media (max-width: 768px) { .cf-pc { display: none !important; } }
@media (min-width: 769px) { .cf-mob { display: none !important; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cf-wrap { padding: 0 8px; }
    .cf-brand { gap: 10px; }
    .cf-site-name { font-size: 19px; }
    .cf-domain-url { font-size: 15px; }
    .cf-domain-lbl { font-size: 9px; }
    .cf-domain-pill { padding: 4px 12px; gap: 7px; }
    .cf-seg { padding: 5px 0; }

    .cf-filmgrid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .cf-caption h5 { font-size: 11px; }
    .cf-sec-ttl { font-size: 15px; }
    .cf-section { margin-bottom: 10px; }

    .cf-navrow .cf-zone-lbl {
        width: 15%;
        font-size: 10px;
        padding: 7px 3px;
    }
    .cf-navrow .cf-zone-links {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }
    .cf-navrow .cf-zone-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .cf-searchbox { padding: 9px 10px; }
    .cf-searchbox input[type="text"] { min-width: 80px; font-size: 12px; padding: 7px 10px; }
    .cf-searchbox button { padding: 7px 12px; font-size: 11px; }

    .cf-actrow { padding: 12px 8px; gap: 8px; }
    .cf-actbtn { padding: 9px 18px; font-size: 12px; }

    .cf-sharebar { padding: 9px 10px; gap: 7px; }
    .cf-copybtn { padding: 7px 11px; font-size: 11px; }

    .cf-titlebar { font-size: 14px; padding: 12px 12px; }
    .cf-infobox { padding: 13px 15px; font-size: 13px; }

    .cf-pager { gap: 4px; padding: 13px 0; }
    .cf-pgbtn { padding: 5px 10px; font-size: 12px; min-width: 30px; }

    .cf-tagcloud { gap: 5px; padding: 9px 10px; }
    .cf-taglink { padding: 4px 11px; font-size: 11px; }
}

@media (max-width: 480px) {
    .cf-site-name { font-size: 17px; }
    .cf-domain-url { font-size: 14px; }

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

    .cf-filmgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cf-caption h5 { font-size: 11px; }
    .cf-actbtn { padding: 8px 14px; font-size: 11px; }
}

/* Clearfix */
.cfix::after { content: ""; display: table; clear: both; }
img[data-original] { background: var(--cf-surface2); }
