/* NightLaunch - LaunchDarkly Dark Purple Theme */

:root {
    --ld-purple: #6b4fbb;
    --ld-purple-light: #8b6fd4;
    --ld-violet: #a78bfa;
    --ld-violet-bright: #c4b5fd;
    --ld-blue: #60a5fa;
    --ld-gradient: linear-gradient(135deg, #6b4fbb 0%, #60a5fa 100%);
    --ld-gradient-btn: linear-gradient(135deg, #7c5cbf 0%, #6b4fbb 100%);
    --ld-glow: rgba(107, 79, 187, 0.3);
    --ld-glow-mid: rgba(167, 139, 250, 0.2);
    --ld-glow-blue: rgba(96, 165, 250, 0.2);
    --ld-white: #ffffff;
    --ld-ink: #e2e8f0;
    --ld-ink-soft: #a8b4c8;
    --ld-ink-muted: #64748b;
    --ld-ink-faint: #3a4558;
    --ld-bg: #0d0e14;
    --ld-bg-card: #13141f;
    --ld-bg-raise: #1a1b2a;
    --ld-bg-high: #222336;
    --ld-bg-hero: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107,79,187,0.35) 0%, transparent 70%), #0d0e14;
    --ld-border: rgba(167, 139, 250, 0.12);
    --ld-border-mid: rgba(167, 139, 250, 0.22);
    --ld-shadow: rgba(0, 0, 0, 0.5);
    --ld-shadow-purple: rgba(107, 79, 187, 0.25);
    --radius: 6px;
    --radius-sm: 3px;
    --radius-lg: 10px;
    --radius-pill: 50px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --trans: all 0.2s var(--ease);
}

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

body {
    font-family: 'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--ld-bg);
    color: var(--ld-ink);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.ld-topbar {
    background: var(--ld-bg-card);
    border-bottom: 1px solid var(--ld-border);
    padding: 10px 0;
}

.ld-hd-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.ld-brand-lnk {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ld-brand-pill {
    background: var(--ld-bg-raise);
    border: 1px solid var(--ld-border-mid);
    border-radius: var(--radius-pill);
    padding: 5px 14px 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--trans);
}

.ld-brand-lnk:hover .ld-brand-pill {
    border-color: var(--ld-violet);
    box-shadow: 0 0 16px var(--ld-glow);
}

.ld-brand-dot {
    width: 22px;
    height: 22px;
    background: var(--ld-gradient-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}

.ld-brand-nm {
    font-size: 18px;
    font-weight: 700;
    color: var(--ld-white);
    letter-spacing: -0.2px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.ld-hd-sep {
    width: 1px;
    height: 20px;
    background: var(--ld-border-mid);
    flex-shrink: 0;
}

.ld-domain-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ld-domain-chip {
    font-size: 10px;
    font-weight: 700;
    color: var(--ld-violet);
    background: var(--ld-glow-mid);
    border: 1px solid var(--ld-border-mid);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.ld-domain-str {
    font-size: 19px;
    font-weight: 700;
    color: var(--ld-white);
    font-family: 'Courier New', 'Consolas', monospace;
    letter-spacing: 0.2px;
}

/* ===== LAYOUT ===== */
.ld-shell {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 15px;
}

.ld-blk { padding: 7px 0; }

/* ===== NAVIGATION ===== */
.ld-navboard {
    background: var(--ld-bg-card);
    border: 1px solid var(--ld-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 7px;
}

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

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

.ld-zone-lbl {
    font-size: 10px;
    font-weight: 700;
    color: var(--ld-violet);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--ld-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 4px;
    flex-shrink: 0;
    background: var(--ld-bg-raise);
}

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

.ld-zone-hrefs a {
    display: inline-block;
    color: var(--ld-ink-soft);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-sm);
    transition: var(--trans);
    background: var(--ld-bg-raise);
    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-hrefs a:hover {
    background: var(--ld-purple);
    color: var(--ld-white);
    border-color: var(--ld-purple-light);
    box-shadow: 0 2px 12px var(--ld-glow);
}

.ld-zone-hrefs a.active {
    background: var(--ld-purple);
    color: var(--ld-white);
    border-color: var(--ld-purple-light);
    font-weight: 700;
    box-shadow: 0 2px 12px var(--ld-glow);
}

/* ===== SEARCH ===== */
.ld-qbar {
    background: var(--ld-bg-card);
    border-radius: var(--radius-lg);
    padding: 11px;
    margin-bottom: 7px;
    border: 1px solid var(--ld-border);
}

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

.ld-qbar input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 10px 14px;
    border: 1px solid var(--ld-bg-high);
    border-radius: var(--radius-pill);
    background: var(--ld-bg-raise);
    color: var(--ld-white);
    font-size: 14px;
    transition: var(--trans);
    outline: none;
}

.ld-qbar input[type="text"]:focus {
    border-color: var(--ld-violet);
    box-shadow: 0 0 0 2px var(--ld-glow-mid);
}

.ld-qbar input[type="text"]::placeholder { color: var(--ld-ink-faint); }

.ld-qbar button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--ld-gradient-btn);
    color: var(--ld-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 12px var(--ld-glow);
}

.ld-qbar button:hover {
    background: var(--ld-purple-light);
    box-shadow: 0 4px 18px var(--ld-shadow-purple);
}

/* ===== KEYWORD TAGS ===== */
.ld-kwlist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 11px;
    background: var(--ld-bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 7px;
    border: 1px solid var(--ld-border);
}

.ld-kwtag {
    padding: 4px 13px;
    background: var(--ld-bg-raise);
    border-radius: var(--radius-pill);
    color: var(--ld-ink-soft);
    text-decoration: none;
    font-size: 12px;
    transition: var(--trans);
    border: 1px solid var(--ld-border);
}

.ld-kwtag:hover {
    background: var(--ld-glow-mid);
    color: var(--ld-violet-bright);
    border-color: var(--ld-border-mid);
}

/* ===== SECTION HEADINGS ===== */
.ld-group { margin-bottom: 14px; }

.ld-grp-hd {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--ld-border);
    position: relative;
}

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

.ld-grp-ttl {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: var(--ld-white);
    letter-spacing: -0.2px;
}

.ld-grp-ttl a {
    color: var(--ld-white);
    text-decoration: none;
    transition: var(--trans);
}

.ld-grp-ttl a:hover { color: var(--ld-violet); }

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

.ld-cardgrid li {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ld-bg-card);
    border: 1px solid var(--ld-border);
    transition: var(--trans);
    animation: ldPop 0.4s ease backwards;
}

.ld-cardgrid li:hover {
    border-color: var(--ld-violet);
    box-shadow: 0 6px 24px var(--ld-shadow-purple);
    transform: translateY(-3px);
}

.ld-cardgrid li:nth-child(1) { animation-delay: 0.03s; }
.ld-cardgrid li:nth-child(2) { animation-delay: 0.06s; }
.ld-cardgrid li:nth-child(3) { animation-delay: 0.09s; }
.ld-cardgrid li:nth-child(4) { animation-delay: 0.12s; }
.ld-cardgrid li:nth-child(5) { animation-delay: 0.15s; }
.ld-cardgrid li:nth-child(6) { animation-delay: 0.18s; }
.ld-cardgrid li:nth-child(7) { animation-delay: 0.21s; }
.ld-cardgrid li:nth-child(8) { animation-delay: 0.24s; }

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

.ld-cardthumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 600 / 350;
    background: var(--ld-bg-raise);
}

.ld-cardthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.ld-cardthumb::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: rgba(255,255,255,0.95);
    background: rgba(107, 79, 187, 0.6);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 2;
}

.ld-cardgrid li:hover .ld-cardthumb img { transform: scale(1.06); }
.ld-cardgrid li:hover .ld-cardthumb::after { opacity: 1; }

.ld-cardcap {
    padding: 8px 10px 10px;
}

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

.ld-cardcap h5 a {
    color: var(--ld-ink-soft);
    text-decoration: none;
    transition: var(--trans);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ld-cardcap h5 a:hover { color: var(--ld-violet-bright); }

/* ===== VIDEO PLAYER ===== */
.ld-vplayer {
    width: 100%;
    height: 640px;
    max-height: 640px;
    margin-bottom: 12px;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px var(--ld-shadow);
    border: 1px solid var(--ld-border);
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 10px;
}

/* ===== TORRENT PREVIEW ===== */
.ld-snapframe {}

.ld-snapframe img,
.ld-snapframe .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
    border: 1px solid var(--ld-border);
}

.ld-snapframe .img_item { width: 100%; }

/* ===== DOWNLOAD BUTTONS ===== */
.ld-dlzone {
    text-align: center;
    padding: 14px;
    background: var(--ld-bg-card);
    border-radius: var(--radius-lg);
    margin: 10px 0;
    border: 1px solid var(--ld-border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.ld-dl-cta {
    display: inline-block;
    padding: 11px 22px;
    background: var(--ld-gradient-btn);
    color: var(--ld-white);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--trans);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 3px 14px var(--ld-glow);
    letter-spacing: 0.2px;
}

.ld-dl-cta:hover {
    background: var(--ld-purple-light);
    box-shadow: 0 5px 20px var(--ld-shadow-purple);
    transform: translateY(-1px);
}

/* ===== SHARE SECTION ===== */
.ld-sharerow {
    background: var(--ld-bg-card);
    border-radius: var(--radius-lg);
    padding: 13px;
    margin: 10px 0;
    border: 1px solid var(--ld-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ld-urlbox {
    background: var(--ld-bg-raise);
    border: 1px solid var(--ld-bg-high);
    border-radius: var(--radius);
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

.ld-url-badge {
    font-weight: 700;
    font-size: 11px;
    color: var(--ld-violet);
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--ld-glow-mid);
    border: 1px solid var(--ld-border-mid);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
}

.ld-url-val {
    font-size: 12px;
    color: var(--ld-ink-soft);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ld-cpbtn {
    padding: 9px 18px;
    background: var(--ld-gradient-btn);
    color: var(--ld-white);
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 10px var(--ld-glow);
}

.ld-cpbtn:hover {
    background: var(--ld-purple-light);
    box-shadow: 0 4px 16px var(--ld-shadow-purple);
}

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

/* ===== PAGINATION ===== */
.ld-pgstrip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 18px 0;
}

.ld-pgitem,
.ld-pgcur {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--trans);
    min-width: 34px;
    text-align: center;
}

.ld-pgitem {
    background: var(--ld-bg-card);
    color: var(--ld-ink-soft);
    border: 1px solid var(--ld-border);
}

.ld-pgitem:hover {
    background: var(--ld-glow-mid);
    color: var(--ld-violet-bright);
    border-color: var(--ld-border-mid);
}

.ld-pgcur {
    background: var(--ld-gradient-btn);
    color: var(--ld-white);
    border: 1px solid var(--ld-purple-light);
    cursor: default;
    box-shadow: 0 2px 10px var(--ld-glow);
}

/* ===== FRIEND LINKS ===== */
.ld-friendlnks {
    padding: 11px;
    background: var(--ld-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--ld-border);
}

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

.ld-friendlnks a {
    color: var(--ld-ink-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--trans);
}

.ld-friendlnks a:hover { color: var(--ld-violet); }

/* ===== FOOTER ===== */
.ld-footbar {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--ld-border);
    margin-top: 18px;
    background: var(--ld-bg-card);
}

.ld-footbar p { margin: 5px 0; color: var(--ld-ink-muted); font-size: 13px; }
.ld-footbar a { color: var(--ld-ink-muted); text-decoration: none; transition: var(--trans); }
.ld-footbar a:hover { color: var(--ld-violet); }

/* ===== UTILITIES ===== */
.clearfix::after { content: ""; display: table; clear: both; }

.ld-pconly { display: block; }
.ld-mobonly { display: block; }

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

img[data-original] { background: var(--ld-bg-card); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ld-shell { padding: 0 9px; }
    .ld-blk { padding: 5px 0; }
    .ld-hd-row { gap: 12px; }
    .ld-brand-nm { font-size: 15px; }
    .ld-domain-str { font-size: 16px; }

    .ld-vplayer { height: 56.25vw; max-height: 400px; margin-bottom: 10px; }

    .ld-navline { align-items: stretch; }
    .ld-zone-lbl { width: 15%; font-size: 10px; padding: 8px 3px; }
    .ld-zone-hrefs { width: 85%; font-size: 12px; gap: 4px; padding: 7px 5px; }
    .ld-zone-hrefs a { font-size: 12px; padding: 5px 2px; width: calc((100% - 12px) / 4); }

    .ld-cardgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ld-cardgrid li:hover { transform: none; }

    .ld-grp-ttl { font-size: 17px; }

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

    .ld-dlzone { padding: 11px 7px; gap: 7px; margin: 9px 0; }
    .ld-dl-cta { padding: 9px 14px; font-size: 13px; }

    .ld-sharerow { padding: 10px; margin: 9px 0; gap: 7px; flex-wrap: nowrap; }
    .ld-urlbox { padding: 8px 10px; gap: 6px; }
    .ld-url-val { font-size: 11px; }
    .ld-url-badge { font-size: 10px; }
    .ld-cpbtn { padding: 8px 10px; font-size: 12px; }

    .ld-pgstrip { padding: 13px 0; gap: 4px; }
    .ld-pgitem, .ld-pgcur { padding: 6px 11px; font-size: 12px; min-width: 30px; }

    .ld-group { margin-bottom: 10px; }
    .ld-kwlist { padding: 9px; gap: 5px; margin-bottom: 6px; }
    .ld-kwtag { padding: 4px 10px; font-size: 12px; }
    .ld-footbar { padding: 15px 0; margin-top: 14px; }
}

@media (max-width: 480px) {
    .ld-brand-nm { font-size: 13px; }
    .ld-brand-dot { width: 18px; height: 18px; font-size: 9px; }
    .ld-hd-sep { height: 16px; }
    .ld-domain-chip { font-size: 9px; }
    .ld-domain-str { font-size: 15px; }
    .ld-zone-lbl { width: 15%; font-size: 10px; padding: 7px 2px; }
    .ld-zone-hrefs { width: 85%; font-size: 12px; gap: 3px; padding: 6px 4px; }
    .ld-zone-hrefs a { font-size: 12px; padding: 4px 2px; width: calc((100% - 9px) / 4); }
    .ld-vplayer { max-height: 300px; margin-bottom: 8px; }
    .ld-cardgrid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .ld-cardcap { padding: 7px 8px 9px; }
    .ld-cardcap h5 { font-size: 12px; }
    .ld-grp-ttl { font-size: 15px; }
    .ld-dl-cta { padding: 8px 10px; font-size: 12px; }
    .ld-sharerow { padding: 8px; gap: 5px; }
    .ld-cpbtn { padding: 7px 9px; font-size: 11px; }
    .ld-ico { font-size: 12px; }
}
