:root {
    color-scheme: dark;
    --t: lawngreen;
}

html, body, article, h1, h2, a {
    background-color: #000 !important;
    -webkit-font-smoothing: subpixel-antialiased !important;
    -moz-osx-font-smoothing: auto !important;
}

body {
    color: #333333;
    margin-top: 5rem;
}

h1, h2, h3, h4, h5, h6 {
    color: #444444;
}

ul {
    margin: 0;
}

.t {
    padding: 10px 20px;
    background-color: black !important;
}

.n {
    padding-bottom: 1px;
}

.n a:hover {
    color: #333;
    text-decoration: none;
}

.r {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-bottom: 0;
    box-shadow: none;
    padding-top: env(safe-area-inset-top, 0px);
}
.r.i {
    transform: translateY(-100%);
    opacity: 0;
}
#t {
    background-color: #000;
}

#n {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: clamp(9px, 1.1vw, 13px);
}

#r, #i {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border: 1px solid lawngreen;
    padding: 2px 5px;
    background: black;
    font-size: inherit;
}

#s, #o {
    width: 60px;
    color: red;
    background: black;
    border: 1px solid #555;
    font-size: inherit;
}

#u, #a {
    color: lawngreen;
    background: black;
    border: 1px solid #555;
    font-size: inherit;
    white-space: nowrap;
}

.s {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 14px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1%;
}

.o {
    display: block;
    text-decoration: none;
    color: inherit;
}
.o:hover .u {
    color: #fff;
}
.o .a {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.o .u {
    font-size: 13px;
    font-weight: 500;
    color: #eee;
    margin-top: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.o .f {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
    line-height: 1.4;
}

.l {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: lawngreen;
    color: #0c0c0c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.6;
    vertical-align: middle;
}

.c {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 14px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1%;
}
.h {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 6px;
}
.h:hover {
    border-color: #666;
}
.h .u {
    font-size: 13px;
    font-weight: 500;
    color: #eee;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.h .f {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
}
.h .p {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.d {
    max-width: 1200px;
    margin: 12px auto;
    padding: 0 1%;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.d::-webkit-scrollbar { display: none; }

.v {
    position: fixed;
    top: var(--nav-height, 0px);
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.v .d {
    position: sticky;
    top: 0;
    background: #000;
    z-index: 900;
}
.v .m.g .y {
    position: sticky;
    top: var(--tab-bar-h, 0px);
    background: #000;
    z-index: 800;
}

.b {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #272727;
    color: lawngreen;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}
.b:hover { background: #3f3f3f; }
.b.g {
    color: orange;
}

.m { display: none; }
.m.g { display: block; }

.y {
    max-width: 1200px;
    margin: 0 auto 12px;
    padding: 0 1%;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.w {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    background: #272727;
    color: lawngreen;
    font-size: 13px;
    text-decoration: none;
    line-height: 1.2;
    border: 1px solid transparent;
}
.w:hover {
    background: #3f3f3f;
}
.w.g {
    color: orange;
}
.x {
    color: #888;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1%;
}

.k {
    position: relative;
}
._ {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: #ccc;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
._:hover { color: #fff; background: rgba(0,0,0,0.8); }
.j {
    display: none;
    position: absolute;
    top: 30px;
    right: 4px;
    background: #222;
    border: 1px solid #555;
    border-radius: 4px;
    z-index: 3;
    min-width: 80px;
}
.j.q { display: block; }
.z {
    padding: 6px 12px;
    color: #eee;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}
.z:hover { background: #444; }

.te {
    width: var(--slide-width);
    height: var(--slide-height);
}

.tt {}
.tn {}
.tr {}
.ti {}
.ts {}
.S {}
.E {}
.N {}
.W {}
.to {}
.tu {}
.ta {}
.tf {}


#f {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: calc(2000 - 1);
    pointer-events: none;
    /*min-height: 100dvh;*/
}

.tl {
    color: lawngreen;
    text-align: center;
    background-color: black;
}

.tc {
    margin: auto;
    height: 16vw;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px dashed coral;
    box-sizing: border-box;
}

.th {
    display: flex;
    position: absolute;
}

.tp.td {
    width: 100%;
    height: 100%;
}

.tv.tm {
    position: absolute;
    top: 95%;
    z-index: 4;
    font-size: .5vw;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .4) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    background-clip: content-box, padding-box;
}

#l {
    position: absolute;
    width: 100%;
    height: 30%;
    top: 35%;
    left: 0;

    z-index: calc(2000 + 1);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.tg {
    position: absolute;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.tg.ty {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 0, 0.3);
}

.tg.tb {
    background-color: rgba(255, 0, 0, 0.3);
}

#c {
    top: 0;
    left: 0;
    cursor: NW-resize;
}

#h {
    top: 0;
    right: 0;
    cursor: NE-resize;
}

#p {
    bottom: 0;
    left: 0;
    cursor: SW-resize;
}

#d {
    bottom: 0;
    right: 0;
    cursor: SE-resize;
}

#v {
    height: 10px;
    bottom: 0;
    left: 10px;
    right: 10px;
    cursor: S-resize;
}

#m {
    width: 10px;
    bottom: 10px;
    top: 10px;
    right: 0;
    cursor: E-resize;
}

#g {
    height: 10px;
    top: 0;
    left: 10px;
    right: 10px;
    cursor: N-resize;
}

#y {
    width: 10px;
    bottom: 10px;
    top: 10px;
    left: 0;
    cursor: w-resize;
}

.tw {
    position: absolute;
    top: 0;
    margin: 0;
    padding: 0;
    width: 23vw;
    height: 100%;

    z-index: calc(2000 + 1);
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    touch-action: pan-y;
}

#b {
    left: 0;
    width: 23%;
}

#w {
    right: 0;
    width: 23%;
}

.tx {
    position: absolute;
    display: flex;
    cursor: grab;
    touch-action: none;
}

.tk {
    position: absolute;
    height: 4vw;
    width: 23vw;
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: calc(2000 + 2);
    font-family: "Courier New", monospace;
    font-size: 1vw;
    line-height: 1;
    color: lawngreen;
    padding-right: 1vw;
    padding-left: 1vw;
    pointer-events: none;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .4) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    background-clip: content-box, padding-box;
}

#x {
    position: absolute;
    left: 0;
    width: 100%;
    height: 33.3%;
    background-color: black;
    pointer-events: auto;
    display: none;
    flex-direction: column;
    z-index: calc(2000 + 3);
    border: 1px solid #444;
    box-sizing: border-box;
}

#k {
    flex-wrap: wrap;
    background-color: darkslategray;
    display: flex;
    align-items: center;
    padding: 1px 1px;
    box-sizing: border-box;
    cursor: ns-resize;
    flex-shrink: 1;
    border: 1px solid #333;
    gap: 2px;
    user-select: none;
    touch-action: none;
}

#k>*:not(#_) {
    margin-right: 10px;
}

#k label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

#k>label:last-of-type {
    margin-right: 0;
}

#_ {
    background: #444;
    color: white;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    margin-left: auto;
    padding: 0 8px;
    border: 1px solid #aaa;
    border-radius: 3px;
}

#j {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    box-sizing: border-box;
    min-height: 0;
}

.t_ {
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
    border-radius: 4px;
    border-bottom: 2px solid orange;
}

.tj {
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    color: lawngreen;
    background: #111;
    padding: 8px 12px;
    flex-shrink: 0;
}

.tq {
    display: grid;
    padding: 10px;
    gap: 10px;
    min-height: 100px;
    grid-template-columns: repeat(var(--gallery-cols, 4), 1fr);
    box-sizing: border-box;
}

.tz {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

.tz img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tz .tm {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    z-index: calc(2000 + 4);
    font-size: 5px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .4) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    background-clip: content-box,
        padding-box;
    padding: 3px 5px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tz .tm a {
    color: green;
    text-decoration: none;
}

.tz .tm a:hover {
    color: red;
}

.ne {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ne:hover {
    background-color: #2d3748;
}

.ne:active {
    transform: scale(0.98);
}

.nt {
    margin-right: 8px;
}

.nn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 4px;
    transition: background-color 0.2s, transform 0.1s, opacity 0.2s;
}

.nn:hover:not(:disabled) {
    background-color: #2d3748;
}

.nn:active:not(:disabled) {
    transform: scale(0.95);
}

.nn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#q {
    font-weight: bold;
}

#z {
    color: red;
}

.nr {
    display: none;
    position: absolute;
    border: 2px solid green;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.ni {
    display: none;
    position: fixed;
    border: 2px dashed yellow;
}

.ns {
    left: 0;
    width: 100vw;
    height: 23vh;
}

.no {
    top: 0;
    width: 23vw;
    height: 100vh;
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.nu {
    display: none;
    position: fixed;
    border: 4px solid yellow;
    animation: flash .5s infinite;
}

.na {
    left: 23vw;
    width: 53vw;
    height: 23vh;
}

.nf {
    top: 23vh;
    width: 23vw;
    height: 53vh;
}



.nl {
    position: relative;
    background-color: var(--s);
    color: var(--n);
    font-family: Courier, monospace;
}

.nc,
.nc small {
    color: var(--i);
}

.nh {
    position: sticky;
    top: 0;
    z-index: 950;
    background-color: var(--s);
}

.np {
    position: relative;
    margin: 0 var(--u) 20px;
    text-align: justify;
    color: var(--n);
    overflow-x: hidden;
}

.np::-webkit-scrollbar {
    display: none;
}

.nd {
    padding-top: 10px;
    width: 100%;
    max-height: var(--o);

    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nv {
    white-space: pre-line;
}

#te {
    white-space: pre-line;
}

.nv:not(.nm) {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0s;
}

.nv:not(.nm):hover {
    opacity: 1;
}

.nv.nm {
    opacity: 1;
}

.ng {
    color: var(--t);
}

.ny {
    position: relative;
    cursor: pointer;
    color: var(--n) !important;
    display: inline;
}

.ny.nb {
    color: var(--r) !important;
}

.ny.nb * {
    color: var(--r) !important;
}

.ny::after {
    content: attr(data-time);
    position: absolute;
    top: -1.8rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--i);
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.ny:hover::after {
    opacity: 1;
}