/* Media Site - Index Exchange Deep Forest Green Style */

:root {
    --ix-green: #00a86b;
    --ix-green2: #00c47d;
    --ix-green3: #008f5a;
    --ix-green-dim: rgba(0,168,107,0.15);
    --ix-green-glow: rgba(0,168,107,0.3);
    --ix-forest: #0a2218;
    --ix-forest2: #0d2b1e;
    --ix-forest3: #102e21;
    --ix-dark: #0f2a1c;
    --ix-mid: #163825;
    --ix-mid2: #1a4a2e;
    --ix-mid3: #1f5535;
    --ix-light: #245c3a;
    --ix-border: rgba(255,255,255,0.08);
    --ix-border2: rgba(255,255,255,0.12);
    --ix-border3: rgba(0,168,107,0.25);
    --txt-white: #ffffff;
    --txt-light: #e8f5ee;
    --txt-mid: #9dc4ad;
    --txt-dim: #4d7a5e;
    --txt-green: #00c47d;
    --grad-green: linear-gradient(135deg, #00a86b 0%, #00c47d 100%);
    --grad-dark: linear-gradient(180deg, #0d2b1e 0%, #0a2218 100%);
    --grad-card: linear-gradient(to top, rgba(10,34,24,0.92) 0%, rgba(10,34,24,0.4) 55%, transparent 100%);
    --shadow-green: 0 0 18px rgba(0,168,107,0.35), 0 4px 16px rgba(0,0,0,0.6);
    --shadow-card: 0 4px 18px rgba(0,0,0,0.5);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.7);
    --r1: 2px;
    --r2: 4px;
    --r3: 6px;
    --r4: 8px;
    --r5: 3px;
    --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(--ix-forest2);
    color: var(--txt-light);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.ix-header {
    background: var(--ix-forest);
    border-bottom: 1px solid var(--ix-border);
    padding: 0.55rem 0;
}

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

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

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

.ix-site-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--txt-white);
    letter-spacing: -0.2px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    line-height: 1;
}

.ix-domain-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 14px;
    background: var(--ix-green-dim);
    border: 1px solid var(--ix-border3);
    border-radius: var(--r2);
}

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

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

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

.ix-seg {
    padding: 6px 0;
}

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

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

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

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

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

.ix-zone-links a {
    display: inline-block;
    color: var(--txt-mid);
    text-decoration: none;
    padding: 4px 4px;
    border-radius: var(--r1);
    transition: var(--ease);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--ix-border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

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

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

/* ===== SEARCH ===== */
.ix-searchbar {
    background: var(--ix-dark);
    border-radius: var(--r4);
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--ix-border);
}

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

.ix-searchbar input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 9px 14px;
    border: 1px solid var(--ix-border2);
    border-radius: var(--r2);
    background: var(--ix-mid);
    color: var(--txt-white);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
}

.ix-searchbar input[type="text"]:focus {
    border-color: var(--ix-green);
    box-shadow: 0 0 0 2px var(--ix-green-dim);
}

.ix-searchbar input[type="text"]::placeholder {
    color: var(--txt-dim);
}

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

.ix-searchbar button:hover {
    filter: brightness(1.12);
    box-shadow: var(--shadow-green);
}

/* ===== TAGS ===== */
.ix-tagrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--ix-dark);
    border-radius: var(--r4);
    margin-bottom: 8px;
    border: 1px solid var(--ix-border);
}

.ix-tagpill {
    padding: 4px 13px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--r2);
    color: var(--txt-mid);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--ix-border2);
}

.ix-tagpill:hover {
    background: var(--ix-green);
    color: var(--txt-white);
    border-color: var(--ix-green);
    font-weight: 600;
}

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

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

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

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

.ix-sec-ttl {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--txt-white);
    padding-left: 12px;
    letter-spacing: -0.1px;
}

.ix-sec-ttl a {
    color: var(--txt-white);
    text-decoration: none;
    transition: var(--ease);
}

.ix-sec-ttl a:hover {
    color: var(--ix-green2);
}

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

.ix-filmgrid li {
    position: relative;
}

.ix-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r3);
    aspect-ratio: 600 / 350;
    background: var(--ix-mid);
    border: 1px solid var(--ix-border);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

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

.ix-thumb:hover {
    box-shadow: var(--shadow-green);
    border-color: var(--ix-green);
    transform: translateY(-3px);
}

.ix-thumb:hover img {
    transform: scale(1.06);
    filter: brightness(0.8);
}

.ix-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 42px;
    height: 42px;
    background: var(--ix-green);
    color: var(--txt-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: 3;
    line-height: 42px;
    text-align: center;
    padding-left: 3px;
    box-shadow: 0 0 22px rgba(0,168,107,0.7);
}

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

.ix-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: 0;
    transition: opacity 0.24s ease;
    z-index: 1;
    pointer-events: none;
}

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

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

.ix-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(--txt-mid);
}

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

.ix-caption h5 a:hover {
    color: var(--txt-white);
}

/* ===== DETAIL PAGE ===== */
.ix-dtitle {
    line-height: 1.7;
    text-align: center;
    padding: 15px 18px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--ix-dark);
    border-radius: var(--r4);
    border: 1px solid var(--ix-border);
    border-top: 3px solid var(--ix-green2);
}

.ix-dtitle a {
    color: var(--ix-green2);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.ix-dtitle b {
    color: var(--txt-white);
}

.ix-infobox {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--ix-dark);
    border-radius: var(--r4);
    margin: 8px 0;
    border: 1px solid var(--ix-border);
    color: var(--txt-mid);
}

/* ===== CAPTURES ===== */
.ix-prevblock {
    margin: 10px 0;
}

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

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

.ix-actbtn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: var(--r2);
    background: var(--grad-green);
    color: var(--txt-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: var(--ease);
    letter-spacing: 0.2px;
    box-shadow: 0 3px 12px rgba(0,168,107,0.35);
}

.ix-actbtn:hover {
    filter: brightness(1.12);
    box-shadow: var(--shadow-green);
    transform: translateY(-1px);
}

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

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

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

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

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

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

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

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

.ix-copybtn:hover {
    background: var(--ix-green);
    color: var(--txt-white);
    border-color: var(--ix-green);
    font-weight: 700;
}

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

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

.ix-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;
}

.ix-pglink {
    background: var(--ix-mid);
    color: var(--txt-mid);
    border: 1px solid var(--ix-border2);
}

.ix-pglink:hover {
    background: var(--ix-mid2);
    color: var(--txt-white);
    border-color: var(--ix-border3);
}

.ix-pgcur {
    background: var(--grad-green);
    color: var(--txt-white);
    border: 1px solid transparent;
    cursor: default;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,168,107,0.45);
}

/* ===== FOOTER ===== */
.ix-flinks-sec { margin-bottom: 8px; }

.ix-flink-box {
    padding: 11px 13px;
    background: var(--ix-dark);
    border-radius: var(--r4);
    border: 1px solid var(--ix-border);
}

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

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

.ix-flink-box a:hover { color: var(--txt-light); }

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

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

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

.ix-footer a:hover { color: var(--txt-light); }

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

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

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

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

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

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

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

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

    .ix-dtitle { font-size: 14px; padding: 12px 12px; }
    .ix-infobox { padding: 13px 14px; font-size: 13px; }

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

    .ix-tagrow { gap: 5px; padding: 9px 10px; }
    .ix-tagpill { padding: 4px 10px; font-size: 11px; }
}

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

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

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

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