:root {
    --bg: #07121a;
    --bg-soft: #0e1d28;
    --panel: #112634;
    --panel-2: #0f2230;
    --text: #e6f1f7;
    --muted: #9ab1c0;
    --accent: #22c1a7;
    --accent-2: #1aa38d;
    --line: rgba(255, 255, 255, 0.1);
    --radius: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at 20% -10%, rgba(34, 193, 167, 0.25), transparent 36%),
        radial-gradient(circle at 90% -20%, rgba(22, 145, 255, 0.18), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(10px);
    background: rgba(7, 18, 26, 0.88);
    border-bottom: 1px solid var(--line);
}

.topbar__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: #c7fff4;
}

.quick-search {
    margin-left: auto;
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 560px;
}

.quick-search input {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 999px;
    padding: 9px 12px;
    outline: none;
}

.quick-search input:focus {
    border-color: rgba(34, 193, 167, 0.65);
}

.quick-search button,
.btn {
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #03241f;
    font-weight: 700;
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
}

.shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 18px 30px;
}

.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .86rem;
    margin: 4px 0 16px;
}

.crumbs .is-current {
    color: #d2e8f4;
}

.hero {
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}

.hero--narrow {
    max-width: none;
}

.hero--detail {
    margin-bottom: 12px;
}

.hero__eyebrow {
    margin: 0 0 8px;
    color: #9dded2;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    line-height: 1.2;
}

.hero__sub {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .95rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel-2);
}

.card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #081018;
}

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

.card__time {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: .72rem;
    border-radius: 7px;
    padding: 2px 7px;
}

.card__body {
    padding: 10px 10px 12px;
}

.card__body h2 {
    margin: 0;
    font-size: .92rem;
    line-height: 1.34;
    color: #e4f0f8;
    min-height: 2.45em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watchbox {
    margin: 14px 0 16px;
}

.watchbox__frame {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.watchbox__frame iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.click-shield {
    position: absolute;
    inset: 0;
    z-index: 8;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .22s ease, background .22s ease;
}

.click-shield:hover {
    background: rgba(0, 0, 0, 0.32);
}

.shield-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.play-btn-large {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #03322b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.play-btn-large svg {
    margin-left: 3px;
}

.shield-text {
    margin: 0;
    font-size: .84rem;
    color: rgba(231, 244, 250, 0.92);
}

.paper {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 14px 16px;
    margin: 16px 0;
}

.paper h2,
.paper h1 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.paper p {
    margin: 0;
    color: #c6d7e2;
    font-size: .93rem;
    line-height: 1.55;
}

.section-headline {
    margin: 18px 0 10px;
}

.section-headline h2 {
    margin: 0;
    font-size: 1.15rem;
}

.section-headline p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .9rem;
}


.empty-box {
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    padding: 22px;
    text-align: center;
    color: var(--muted);
}

.pager {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pager__link {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 11px;
    color: #bfd1de;
    font-size: .86rem;
    background: rgba(255, 255, 255, 0.02);
}

.pager__link.is-active,
.pager__link:hover {
    border-color: rgba(34, 193, 167, 0.6);
    color: #dffff8;
    background: rgba(34, 193, 167, 0.14);
}

.footbar {
    border-top: 1px solid var(--line);
    margin-top: 26px;
}

.footbar__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 18px 26px;
    color: var(--muted);
    font-size: .86rem;
}

.footbar__inner p {
    margin: 0 0 10px;
}

.footbar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.footbar__links a {
    color: #d8ebf6;
}

.footbar__stats {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footbar__stats #histats_counter,
.footbar__stats #histatsC,
body > #histatsC {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shell,
    .topbar__inner,
    .footbar__inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hero {
        padding: 14px;
    }

    .quick-search button,
    .btn {
        padding: 9px 12px;
    }

}
