/* =================================================================
   Tobrut.Bond — dark-pink theme
   ================================================================= */

:root {
    --bg:        #0c0509;
    --bg-2:      #110710;
    --surface:   #170a12;
    --surface-2: #20101a;
    --surface-3: #2b1622;
    --line:      #341a28;
    --line-2:    #25121d;

    --accent:      #ff3d7f;
    --accent-soft: #ff7eb0;
    --accent-deep: #c41f56;

    --ink:     #f7e9ef;
    --muted:   #c098a6;
    --muted-2: #836070;

    --radius:   14px;
    --radius-s: 10px;
    --wrap:     1280px;
    --shadow:   0 18px 44px rgba(0, 0, 0, .55);

    --font:    "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Bricolage Grotesque", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    background-image:
        radial-gradient(900px 480px at 88% -8%, rgba(255, 61, 127, .10), transparent 70%),
        radial-gradient(760px 420px at 0% 0%, rgba(196, 31, 86, .09), transparent 65%);
    background-attachment: fixed;
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 18px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: #1a0410;
    padding: 10px 16px;
    border-radius: 0 0 var(--radius-s) 0;
    font-weight: 700;
    z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 5, 9, .86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-2);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 13px;
    padding-bottom: 13px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.search-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink);
    border-radius: 9px;
    cursor: pointer;
}
.search-toggle:hover { border-color: var(--accent); color: var(--accent); }
.brand-text {
    font-family: var(--display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .04em;
    line-height: 1;
}
.brand-main { color: var(--ink); }
.brand-dot  { color: var(--accent); }

.search {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 3px 3px 3px 4px;
    min-width: 280px;
    transition: border-color .15s ease;
}
.search:focus-within { border-color: var(--accent); }
.search input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    outline: none;
    color: var(--ink);
    font-family: var(--font);
    font-size: 14.5px;
    padding: 8px 12px;
}
.search input::placeholder { color: var(--muted-2); }
.search button {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 8px;
    transition: background .15s ease;
}
.search button:hover { background: var(--accent-deep); }

/* ---------- Breadcrumb ---------- */
.crumb { padding: 16px 0 0; }
.crumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted-2);
}
.crumb li { display: flex; align-items: center; gap: 6px; }
.crumb li + li::before {
    content: "›";
    color: var(--muted-2);
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb span[aria-current] { color: var(--ink); }

/* ---------- Lead header ---------- */
.lead { padding: 26px 0 18px; }
.lead-title {
    font-family: var(--display);
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 800;
    letter-spacing: -.01em;
}
.lead-sub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14.5px;
    max-width: 60ch;
}
.lead-rule {
    display: block;
    margin-top: 14px;
    height: 3px;
    width: 64px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* ---------- Video grid ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.vcard {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.vcard:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 61, 127, .25);
}

.vcard-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-3);
}
.vcard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.vcard:hover .vcard-img { transform: scale(1.07); }

.vcard-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 3, 6, .82), transparent 46%);
    pointer-events: none;
}
.vcard-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .07em;
    color: #fff;
    background: var(--accent);
    padding: 3px 8px;
    border-radius: 5px;
}
.vcard-dur {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink);
    background: rgba(10, 4, 7, .82);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 2px 7px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.vcard-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.8);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 61, 127, .34);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35) inset;
    opacity: 0;
    transition: opacity .16s ease, transform .16s ease;
}
.vcard-play svg { width: 20px; height: 20px; margin-left: 3px; }
.vcard:hover .vcard-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: var(--accent);
}

.vcard-title {
    display: block;
    padding: 10px 12px 13px;
    transition: color .15s ease;
}
.vcard-title-inner {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-height: calc(13.5px * 1.45 * 2);
}
.vcard:hover .vcard-title-inner { color: var(--accent-soft); }

/* ---------- Search filters ---------- */
.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.filters-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-right: 2px;
}
.filter {
    padding: 7px 15px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.filter:hover { border-color: var(--accent); color: var(--ink); }
.filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- Pagination ---------- */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 8px;
}
.pg-mid { display: flex; align-items: center; gap: 6px; }
.pg-num, .pg-arrow {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--radius-s);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: all .14s ease;
}
.pg-num:hover, .pg-arrow:hover {
    border-color: var(--accent);
    color: var(--ink);
}
.pg-num.cur {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pg-gap { color: var(--muted-2); padding: 0 2px; }
.pg-arrow.off { opacity: .4; pointer-events: none; }

/* ---------- Detail page ---------- */
.detail { padding-top: 18px; }

.theater { margin-bottom: 18px; }
.frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.frame::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 2;
}
.frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.servers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.servers-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-right: 2px;
}
.srv {
    min-width: 40px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-s);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-family: var(--font);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all .14s ease;
}
.srv:hover { border-color: var(--accent); color: var(--ink); }
.srv.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.detail-title {
    font-family: var(--display);
    font-size: clamp(19px, 2.7vw, 25px);
    font-weight: 800;
    line-height: 1.32;
    margin-top: 4px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 5px 10px;
    border-radius: 7px;
}
.chip svg { opacity: .8; }
.chip-q {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    letter-spacing: .05em;
}

/* ---------- About / description ---------- */
.about {
    margin-top: 20px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 18px 20px;
    position: relative;
}
.about::before {
    content: "";
    position: absolute;
    left: 0; top: 16px; bottom: 16px;
    width: 3px;
    border-radius: 99px;
    background: linear-gradient(var(--accent), var(--accent-deep));
}
.about-head {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}
.about-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
.about p {
    color: var(--muted);
    font-size: 14.5px;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}
.tag {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-soft);
    background: rgba(255, 61, 127, .1);
    border: 1px solid rgba(255, 61, 127, .26);
    padding: 5px 11px;
    border-radius: 7px;
    transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.tag:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ---------- Section heading ---------- */
.rel { margin-top: 30px; }
.section-head {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.section-bar {
    width: 5px;
    height: 20px;
    border-radius: 99px;
    background: linear-gradient(var(--accent), var(--accent-deep));
}

/* ---------- Notice / empty / button ---------- */
.notice, .empty {
    text-align: center;
    padding: 48px 22px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    margin: 22px 0;
}
.notice h1, .notice h2 {
    font-family: var(--display);
    margin-bottom: 8px;
}
.notice p, .empty { color: var(--muted); }
.btn {
    display: inline-block;
    margin-top: 16px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 8px;
    transition: background .15s ease;
}
.btn:hover { background: var(--accent-deep); }

/* ---------- Legal pages ---------- */
.legal {
    max-width: 800px;
    padding-top: 26px;
    padding-bottom: 10px;
}
.legal h1 {
    font-family: var(--display);
    font-size: clamp(23px, 3.6vw, 30px);
    font-weight: 800;
}
.legal-upd {
    color: var(--muted-2);
    font-size: 13px;
    margin: 6px 0 20px;
}
.legal h2 {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
    margin: 24px 0 8px;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
}
.legal p, .legal li {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 10px;
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-soft); }
.legal a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--line-2);
    background: var(--bg-2);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 30px;
    padding-bottom: 22px;
}
.footer-lead { max-width: 440px; }
.brand-sm .brand-text { font-size: 19px; }
.footer-lead p {
    margin-top: 10px;
    color: var(--muted-2);
    font-size: 13.5px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color .14s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-base {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 24px;
    border-top: 1px solid var(--line-2);
    color: var(--muted-2);
    font-size: 12.5px;
}
.age-tag {
    color: var(--accent-soft);
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .header-inner { gap: 10px; }
    .brand-text { font-size: 20px; }

    .search-toggle { display: flex; }
    .search {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        margin: 0;
        min-width: 0;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        padding: 12px 18px;
        background: var(--bg-2);
    }
    .search.open { display: flex; }
}
@media (max-width: 560px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .vcard-title { padding: 9px 10px 11px; }
    .vcard-title-inner {
        font-size: 12.5px;
        max-height: calc(12.5px * 1.45 * 2);
    }
    .footer-inner { gap: 20px; }
}
