/* Media Site - LaunchDarkly Dark Purple Tech Style */

:root {
    --ld-purple: #7c5cfc;
    --ld-purple2: #6b4ef0;
    --ld-purple3: #9b7dff;
    --ld-blue: #6b8cff;
    --ld-blue2: #4f72ff;
    --ld-blue3: #89a5ff;
    --ld-violet: #8b5cf6;
    --ld-purple-dim: rgba(124,92,252,0.15);
    --ld-purple-glow: rgba(124,92,252,0.3);
    --ld-purple-glow2: rgba(107,140,255,0.25);
    --ld-black: #08080f;
    --ld-dark: #0d0d14;
    --ld-dark2: #11111c;
    --ld-dark3: #141421;
    --ld-dark4: #181828;
    --ld-dark5: #1d1d30;
    --ld-mid: #1a1a2e;
    --ld-mid2: #1f1f38;
    --ld-mid3: #242440;
    --ld-border: rgba(255,255,255,0.07);
    --ld-border2: rgba(255,255,255,0.11);
    --ld-border3: rgba(124,92,252,0.3);
    --ld-border4: rgba(107,140,255,0.25);
    --txt-white: #ffffff;
    --txt-light: #e8e8ff;
    --txt-mid: #8888b8;
    --txt-dim: #4a4a7a;
    --grad-purple: linear-gradient(135deg, #7c5cfc 0%, #6b8cff 100%);
    --grad-purple2: linear-gradient(135deg, #6b4ef0 0%, #4f72ff 100%);
    --grad-bg: linear-gradient(180deg, #1a1a2e 0%, #0d0d14 60%);
    --grad-card: linear-gradient(to top, rgba(8,8,15,0.92) 0%, rgba(13,13,20,0.5) 55%, transparent 100%);
    --shadow-purple: 0 0 22px rgba(124,92,252,0.4), 0 4px 18px rgba(0,0,0,0.7);
    --shadow-blue: 0 0 18px rgba(107,140,255,0.35), 0 4px 14px rgba(0,0,0,0.6);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.6);
    --r1: 2px;
    --r2: 6px;
    --r3: 8px;
    --r4: 10px;
    --r5: 20px;
    --r6: 40px;
    --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(--ld-dark);
    color: var(--txt-light);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

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

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

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

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

.ld-site-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--txt-white);
    letter-spacing: -0.3px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    line-height: 1;
    background: var(--grad-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ld-domain-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 15px;
    background: var(--ld-purple-dim);
    border: 1px solid var(--ld-border3);
    border-radius: var(--r6);
}

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

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

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

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

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

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

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

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

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

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

.ld-zone-links a:hover {
    background: var(--ld-purple);
    color: var(--txt-white);
    border-color: var(--ld-purple);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(124,92,252,0.4);
}

.ld-zone-links a.active {
    background: var(--ld-purple);
    color: var(--txt-white);
    border-color: var(--ld-purple);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(124,92,252,0.4);
}

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

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

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

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

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

.ld-searchbar button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--r6);
    background: var(--grad-purple);
    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;
}

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

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

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

.ld-tagpill:hover {
    background: var(--ld-purple-dim);
    color: var(--ld-purple3);
    border-color: var(--ld-border3);
    font-weight: 600;
}

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

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

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

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

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

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

.ld-sec-ttl a:hover {
    color: var(--ld-purple3);
}

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

.ld-filmgrid li {
    position: relative;
}

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

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

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

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

.ld-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 42px;
    height: 42px;
    background: var(--grad-purple);
    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 24px rgba(124,92,252,0.7);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ld-actbtn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: var(--r6);
    background: var(--grad-purple);
    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 14px rgba(124,92,252,0.4);
}

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

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

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

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

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

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

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

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

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

.ld-copybtn:hover {
    background: var(--ld-purple);
    color: var(--txt-white);
    border-color: var(--ld-purple);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(124,92,252,0.4);
}

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

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

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

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

.ld-pglink:hover {
    background: var(--ld-purple-dim);
    color: var(--ld-purple3);
    border-color: var(--ld-border3);
}

.ld-pgcur {
    background: var(--grad-purple);
    color: var(--txt-white);
    border: 1px solid transparent;
    cursor: default;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(124,92,252,0.5);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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