* {
    -webkit-tap-highlight-color: transparent;
}

:root {
    --radius: 0;
    --site-pad: clamp(16px, 4vw, 56px);
    --sans: Arial, Helvetica, sans-serif;
    --mono: "Courier New", monospace;
}

* {
    box-sizing: border-box
}

html {
    background: var(--sy-bg)
}

body {
    margin: 0;
    background: var(--sy-bg);
    color: var(--sy-text);
    font-family: var(--sans);
    line-height: 1.45
}

/* Route-office policy pages */
.sy-policy-shell{width:100%;max-width:none;margin:0 auto;padding:clamp(44px,8vw,100px) 0}.sy-policy-card{display:grid;gap:28px;width:100%;max-width:none;margin:0 auto;padding:clamp(22px,4vw,48px);border:1px solid var(--sy-border);background:var(--sy-surface)}.sy-policy-heading{display:grid;grid-template-columns:1fr;gap:8px;padding-bottom:22px;border-bottom:4px solid var(--sy-accent)}.sy-policy-heading span{color:var(--sy-accent);font:700 12px var(--mono);letter-spacing:.12em}.sy-policy-heading h1{margin:0;color:var(--sy-paper);font:700 clamp(2.5rem,7vw,5.6rem)/.88 var(--sans);letter-spacing:-.06em}.sy-policy-heading p{margin:0;color:var(--sy-text-muted)}.sy-policy-prose{width:100%;max-width:none;margin:0}.sy-policy-prose h2{margin:30px 0 7px;color:var(--sy-paper);font-size:1.25rem}.sy-policy-prose h2:before{content:"→ ";color:var(--sy-accent);font-family:var(--mono)}.sy-policy-prose a{color:var(--sy-accent);text-decoration:underline;text-underline-offset:3px}.sy-policy-prose li{margin:7px 0}.sy-policy-index,.sy-policy-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:none;margin:0;border-top:1px solid var(--sy-border);border-left:1px solid var(--sy-border)}.sy-policy-index a,.sy-policy-links a{display:flex;justify-content:space-between;padding:12px;border-right:1px solid var(--sy-border);border-bottom:1px solid var(--sy-border);font:700 11px var(--mono);text-transform:uppercase}.sy-policy-index a:hover,.sy-policy-links a:hover{color:var(--sy-text-on-accent);background:var(--sy-accent)}.sy-policy-links{width:100%;margin-top:26px}.sy-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--sy-border);border-left:1px solid var(--sy-border)}.sy-stat-grid div{padding:18px;border-right:1px solid var(--sy-border);border-bottom:1px solid var(--sy-border)}.sy-stat-grid span{display:block;color:var(--sy-text-muted);font:700 10px var(--mono);text-transform:uppercase}.sy-stat-grid strong{display:block;color:var(--sy-accent);font:700 clamp(2rem,5vw,4rem) var(--mono)}.sy-policy-table{overflow-x:auto;border:1px solid var(--sy-border)}.sy-policy-table table{width:100%;min-width:680px;border-collapse:collapse}.sy-policy-table caption{padding:14px;text-align:left;color:var(--sy-text-muted);font:700 11px var(--mono);text-transform:uppercase}.sy-policy-table th,.sy-policy-table td{padding:12px 14px;border-top:1px solid var(--sy-border);text-align:right}.sy-policy-table th:first-child{text-align:left}.sy-policy-table tfoot{color:var(--sy-accent)}.sy-method{color:var(--sy-text-muted);font-size:13px}.sy-policy-form{display:grid;gap:18px;width:100%;max-width:none;margin:0;padding:22px;border-left:5px solid var(--sy-accent);background:var(--sy-bg)}.sy-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sy-policy-form label{display:grid;gap:7px;color:var(--sy-text-muted);font:700 11px var(--mono);text-transform:uppercase}.sy-policy-form input,.sy-policy-form textarea,.sy-policy-form select{width:100%;padding:12px;border:1px solid var(--sy-border);border-radius:0;color:var(--sy-paper);background:var(--sy-surface);font:400 15px var(--sans);text-transform:none}.sy-policy-form select{appearance:none;padding-right:42px;background-image:var(--sy-select-arrow);background-repeat:no-repeat;background-position:right 12px center;background-size:18px}.sy-check{display:flex!important;align-items:flex-start}.sy-check input{width:16px;height:16px;accent-color:var(--sy-accent)}.sy-policy-form button{justify-self:start;padding:12px 18px;border:1px solid var(--sy-accent);border-radius:0;color:var(--sy-text-on-accent);background:var(--sy-accent);font:700 11px var(--mono);text-transform:uppercase}.sy-form-status{min-height:22px;margin:0;color:var(--sy-success);font:700 12px var(--mono)}.sy-form-status.is-error{color:var(--sy-accent)}@media(max-width:700px){.sy-policy-heading{grid-template-columns:1fr}.sy-policy-heading span{grid-row:auto}.sy-stat-grid,.sy-form-row{grid-template-columns:1fr 1fr}.sy-policy-index,.sy-policy-links{grid-template-columns:repeat(2,minmax(0,1fr))}}

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

button,
input {
    font: inherit
}

button {
    cursor: pointer
}

.site-shell {
    width: min(1440px, 100%);
    margin: auto;
    padding: 0 var(--site-pad)
}

.site-header {
    min-height: 72px;
    border-bottom: 1px solid var(--sy-border);
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative
}

.site-mark {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    letter-spacing: .03em;
    margin-right: auto
}

.site-mark img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.route-mark {
    display: inline-grid;
    place-items: center;
    color: var(--sy-accent);
    width: 22px;
    height: 22px
}

.route-mark svg {
    width: 100%;
    height: 100%
}

.route-nav {
    display: flex;
    gap: 0;
    align-items: stretch
}

.route-nav a,
.route-nav button {
    appearance: none;
    background: none;
    border: 0;
    border-left: 1px solid var(--sy-border);
    color: var(--sy-text);
    padding: 10px 13px;
    font: 700 12px var(--mono);
    letter-spacing: .05em;
    text-transform: uppercase
}

.route-nav a:hover,
.route-nav button:hover {
    color: var(--sy-accent)
}

.route-nav button:focus-visible,
.route-nav a:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--sy-accent);
    outline-offset: 3px
}

.route-marker {
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 35px;
    height: 3px;
    background: var(--sy-accent);
    transition: transform .24s ease
}

.route-overlay {
    position: fixed;
    z-index: 20;
    inset: 0
}

.route-overlay__shade {
    position: absolute;
    inset: 0;
    background: var(--sy-bg-alpha-66)
}

.route-overlay__panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: min(580px, 92vw);
    padding: clamp(22px, 5vw, 54px);
    background: var(--sy-surface);
    border-left: 1px solid var(--sy-border);
    overflow: auto
}

.route-overlay__panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--sy-border);
    padding-bottom: 14px
}

.route-overlay__panel header p,
.section-heading p,
.junction__lead p,
.terminus p {
    font: 700 11px var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sy-accent);
    margin: 0
}

.route-overlay__panel header button {
    border: 0;
    background: transparent;
    color: var(--sy-text);
    font-size: 30px;
    line-height: 1
}

.junction-panel__intro {
    max-width: 36ch;
    color: var(--sy-text-muted);
    margin: 28px 0
}

/* Top Command Dropdown Bar (Browse Overlay) */
.route-overlay.top-dropdown-overlay {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.route-overlay.top-dropdown-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.top-dropdown-overlay .route-overlay__shade {
    position: absolute;
    inset: 0;
    background: var(--sy-bg-alpha-75);
    backdrop-filter: blur(4px);
}

.top-command-panel {
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(85vh - 73px);
    background: var(--sy-surface-dark);
    border-bottom: 1px solid var(--sy-accent);
    box-shadow: 0 16px 40px var(--sy-shadow-alpha-80);
    padding: clamp(20px, 4vw, 40px);
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 81;
}

.top-dropdown-overlay.is-active .top-command-panel {
    transform: translateY(0);
}

.top-command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--sy-border);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.top-command-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 700 13px var(--mono);
    letter-spacing: .08em;
    color: var(--sy-accent);
    text-transform: uppercase;
}

.top-command-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sy-accent);
    box-shadow: 0 0 8px var(--sy-accent);
}

.top-command-header button {
    border: 0;
    background: transparent;
    color: var(--sy-text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.top-command-header button:hover {
    color: var(--sy-accent);
}

.junction-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    border: 0;
    margin-top: 16px;
}

.junction-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    background: var(--sy-surface-hover);
    border: 1px solid var(--sy-border);
    padding: 12px 16px;
    color: var(--sy-paper);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.junction-item:hover,
.junction-item.is-active {
    border-color: var(--sy-accent);
    background: var(--sy-surface-elevated);
    color: var(--sy-paper);
}

.junction-item.is-active {
    box-shadow: 0 0 0 1px var(--sy-accent);
}

.junction-item.is-active .junction-num {
    background: var(--sy-accent);
    color: var(--sy-text-on-accent);
}

.junction-item.is-active .junction-arrow {
    color: var(--sy-accent);
    transform: translateX(4px);
}

.junction-num {
    font: 700 11px var(--mono);
    color: var(--sy-accent);
    background: var(--sy-hot-alpha-12);
    padding: 2px 6px;
    border-radius: 2px;
}

.junction-name {
    font: 600 13px var(--sans);
    color: var(--sy-paper);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.junction-count {
    font: 11px var(--mono);
    color: var(--sy-text-muted);
}

.junction-arrow {
    font-size: 14px;
    color: var(--sy-text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.junction-item:hover .junction-arrow {
    color: var(--sy-accent);
    transform: translateX(4px);
}

.junction-list a span {
    font: 12px var(--mono);
    color: var(--sy-accent)
}

.junction-list a b,
.library-routes span {
    color: var(--sy-accent);
    font-weight: 400
}

.junction-list a:hover,
.library-routes a:hover {
    color: var(--sy-accent)
}

/* Header Inline Expand Search (Right to Left) */
.site-header {
    position: relative;
    overflow: visible;
}

.header-inline-search {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 0;
    max-width: calc(100% - 130px);
    height: 48px;
    background: var(--sy-surface-dark);
    border: 1px solid transparent;
    box-shadow: 0 4px 20px var(--sy-shadow-alpha-40);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    white-space: nowrap;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, border-color 0.3s ease, visibility 0.4s;
    z-index: 50;
}

.header-inline-search.is-active {
    width: 520px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border-color: var(--sy-accent);
    overflow: visible;
}

@media(max-width:640px) {
    .header-inline-search.is-active {
        width: 100%;
        max-width: 100%;
    }
}

.header-search-form {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    margin: 0;
}

.header-search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    stroke: var(--sy-accent);
    fill: none;
    stroke-width: 2;
    pointer-events: none;
    flex-shrink: 0;
}

.header-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: transparent;
    border: 0;
    color: var(--sy-paper);
    padding: 0 12px 0 42px;
    font: 14px var(--sans);
    outline: none !important;
    border-radius: 0;
}

.header-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sy-accent);
    color: var(--sy-text-on-accent);
    border: 0;
    padding: 0 16px;
    height: 100%;
    font: 700 11px var(--mono);
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .2s ease;
}

.header-search-submit:hover {
    opacity: .9;
}

.header-search-close {
    background: transparent;
    border: 0;
    border-left: 1px solid var(--sy-border);
    color: var(--sy-text);
    font-size: 22px;
    line-height: 1;
    padding: 0 14px;
    height: 100%;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease;
}

.header-search-close:hover {
    color: var(--sy-accent);
}

.header-search-dropdown-container {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.header-search-dropdown-container > * {
    pointer-events: auto;
}

.header-search-quick {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    background: var(--sy-surface-dark);
    border: 1px solid var(--sy-border);
    padding: 14px 16px;
    box-shadow: 0 12px 30px var(--sy-shadow-alpha-60);
}

.header-search-quick[hidden],
[hidden] {
    display: none !important;
}

.search-quick-header {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.search-quick-label {
    font: 700 11px var(--mono);
    color: var(--sy-text-muted);
    letter-spacing: .05em;
    text-transform: uppercase
}

.search-clear-recent {
    background: none;
    border: 0;
    color: var(--sy-text-muted);
    font: 11px var(--mono);
    cursor: pointer;
    padding: 0;
    text-decoration: underline
}

.search-clear-recent:hover {
    color: var(--sy-accent)
}

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.search-chip {
    appearance: none;
    background: var(--sy-surface-alt);
    border: 1px solid var(--sy-border);
    color: var(--sy-text);
    padding: 6px 12px;
    font: 12px var(--mono);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease
}

.search-chip:hover {
    border-color: var(--sy-accent);
    color: var(--sy-paper);
    background: var(--sy-surface-soft)
}

.library-routes {
    display: grid;
    margin-top: 32px;
    border-top: 1px solid var(--sy-border)
}

.library-routes a {
    grid-template-columns: 1fr auto;
    font-size: 24px;
    font-weight: 700
}

main {
    padding: clamp(26px, 5vw, 68px) 0 80px
}

.switchyard-banner {
    width: min(970px, 100%);
    margin: 0 auto 36px
}

.junction {
    display: grid;
    gap: 30px;
    border-top: 2px solid var(--sy-text);
    padding-top: 17px
}

.junction__lead {
    display: grid;
    gap: 9px
}

.junction__lead h1 {
    font-size: clamp(34px, 7vw, 84px);
    line-height: .95;
    letter-spacing: -.055em;
    margin: 0;
    max-width: 12ch
}

.junction__rule {
    color: var(--sy-text-muted);
    max-width: 38ch
}

.junction__map {
    display: grid;
    border: 1px solid var(--sy-border);
    position: relative
}

.junction__map::after,
.terminus::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    border-top: 16px solid var(--sy-bg);
    border-left: 16px solid transparent
}

.junction__map a {
    min-height: 76px;
    display: grid;
    grid-template-columns: 50px 1fr 28px;
    align-items: center;
    border-bottom: 1px solid var(--sy-border);
    padding: 12px 16px
}

.junction__map a:last-child {
    border-bottom: 0
}

.junction__map a span {
    font: 12px var(--mono);
    color: var(--sy-accent)
}

.junction__map a i {
    font-style: normal;
    color: var(--sy-accent);
    opacity: 0
}

.junction__map a:hover {
    background: var(--sy-surface)
}

.junction__map a:hover i {
    opacity: 1
}

.junction__all {
    background: transparent;
    color: var(--sy-text)
}

.junction__all span {
    color: var(--sy-accent);
    margin-left: 14px
}

.section-heading {
    border-top: 1px solid var(--sy-border);
    padding-top: 13px;
    margin-bottom: 20px
}

.section-heading h1,
.section-heading h2 {
    font-size: clamp(26px, 4vw, 46px);
    line-height: 1;
    margin: 7px 0 0;
    letter-spacing: -.04em
}

.signal-line {
    margin-top: 76px
}

.signal-list {
    display: grid;
    border-top: 1px solid var(--sy-border)
}

.video-card {
    min-width: 0
}

.video-card__image {
    display: block;
    background: var(--sy-surface-deep);
    overflow: hidden;
    position: relative
}

.video-card__image img {
    width: 100%;
    height: auto;
    aspect-ratio: var(--fv-thumb-aspect-ratio);
    object-fit: cover;
    display: block
}

.video-card__signal {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 4px 7px;
    background: var(--sy-accent);
    color: var(--sy-text-on-accent);
    font: 700 10px var(--mono);
    letter-spacing: .04em;
    text-transform: uppercase
}

.video-card__copy {
    padding: 10px 0
}

.video-card__title {
    font-size: 15px;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.video-card__title a:hover {
    color: var(--sy-accent)
}

.video-card__meta {
    display: flex;
    gap: 10px;
    margin-top: 7px;
    color: var(--sy-text-muted);
    font: 11px var(--mono)
}

.video-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.video-card__meta svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.video-card--sy-accent {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid var(--sy-border)
}

.video-card--sy-accent .video-card__copy {
    display: grid;
    align-content: center;
    padding: 0
}

.video-card--more .video-card__image--more {
    position: relative
}

.video-card--more .video-card__image--more img {
    filter: brightness(0.35) contrast(1.1);
    transition: filter .2s ease, transform .2s ease
}

.video-card--more:hover .video-card__image--more img {
    filter: brightness(0.55) contrast(1.1);
    transform: scale(1.05)
}

.video-card__more-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sy-bg-alpha-45);
    color: var(--sy-accent);
    font: 700 12px var(--mono);
    letter-spacing: .06em;
    text-transform: uppercase
}

.catalogue {
    margin-top: 76px
}

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

.empty-state {
    border: 1px solid var(--sy-border);
    padding: 24px;
    color: var(--sy-text-muted)
}

/* Terminal Filter Bar (Time Filter for Special Categories) */
.terminal-filter-bar {
    margin: 20px 0 28px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.terminal-filter-pills {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sy-surface-dark);
    border: 1px solid var(--sy-border);
    padding: 4px;
    border-radius: 4px;
}

.terminal-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font: 700 12px var(--mono);
    color: var(--sy-text-muted);
    text-decoration: none;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: .03em;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.terminal-pill:hover {
    color: var(--sy-paper);
    background: var(--sy-surface-card);
}

.terminal-pill.is-active {
    background: var(--sy-surface-soft);
    color: var(--sy-paper);
    border-color: var(--sy-accent);
    box-shadow: 0 0 10px var(--sy-shadow-hot-20);
}

.terminal-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sy-accent);
    box-shadow: 0 0 6px var(--sy-accent);
    display: inline-block;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--sy-border);
    margin-top: 46px;
    padding-top: 18px;
    font: 12px var(--mono);
}

.pagination a {
    color: var(--sy-accent);
    text-decoration: none;
    transition: opacity .15s ease;
}

.pagination a:hover {
    opacity: .8;
}

.pagination__quick-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pagination__jump-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    font: inherit;
    font-weight: 700;
    color: var(--sy-accent);
    background: var(--sy-surface);
    border: 1px solid var(--sy-border);
    border-radius: var(--radius, 4px);
    cursor: pointer;
    transition: all .15s ease;
}

.pagination__jump-btn:hover {
    border-color: var(--sy-accent);
    background: var(--sy-surface-soft);
    color: var(--sy-paper);
}

.pagination__jump-btn:focus-visible {
    outline: 2px solid var(--sy-accent);
    outline-offset: 1px;
}

.pagination__jump-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.pagination__jump-form[hidden] {
    display: none;
}

.pagination__jump-input {
    width: 44px;
    height: 28px;
    padding: 0 4px;
    font: inherit;
    font-weight: 700;
    text-align: center;
    color: var(--sy-paper);
    background: var(--sy-bg);
    border: 1px solid var(--sy-accent);
    border-radius: var(--radius, 4px);
    outline: none;
    -moz-appearance: textfield;
}

.pagination__jump-input::-webkit-inner-spin-button,
.pagination__jump-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pagination__jump-input:focus {
    box-shadow: 0 0 0 2px var(--sy-accent);
}

.pagination__jump-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: var(--sy-accent);
    color: var(--sy-text-on-accent, #0b0d10);
    border: 1px solid var(--sy-accent);
    border-radius: var(--radius, 4px);
    cursor: pointer;
    transition: opacity .15s ease, transform .1s ease;
}

.pagination__jump-go:hover {
    opacity: .9;
}

.pagination__jump-go:active {
    transform: scale(.95);
}

.pagination__divider,
.pagination__total {
    color: var(--sy-text-muted);
}

.archive-intro,
.single-heading,
.library-heading,
.error-panel {
    border-top: 2px solid var(--sy-text);
    padding-top: 16px;
    margin-bottom: 34px
}

.archive-intro h1,
.single-heading h1,
.library-heading h1,
.error-panel h1 {
    font-size: clamp(32px, 6vw, 68px);
    line-height: .96;
    letter-spacing: -.05em;
    margin: 8px 0
}

.archive-intro p,
.error-panel p {
    color: var(--sy-text-muted);
    max-width: 60ch
}

.player-layout {
    display: grid;
    gap: 30px
}

.player-panel {
    background: var(--sy-bg-void);
    border: 1px solid var(--sy-border)
}

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

.player-panel__empty {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    color: var(--sy-text-muted)
}

.player-panel__servers,
.single-actions,
.video-link-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.player-panel__servers {
    padding: 12px;
    border-top: 1px solid var(--sy-border)
}

.player-panel__server {
    border: 1px solid var(--sy-border);
    background: transparent;
    color: var(--sy-text);
    padding: 8px 10px;
    border-radius: 0;
    font: 11px var(--mono);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.player-panel__server.is-active,
.player-panel__server:hover {
    color: var(--sy-text-on-accent);
    background: var(--sy-accent);
    border-color: var(--sy-accent)
}

.single-copy {
    display: grid;
    gap: 21px;
    align-content: start
}

.video-stat-item {
    border: 1px solid var(--sy-border);
    background: var(--sy-surface-dark);
    color: var(--sy-text);
    padding: 8px 12px;
    border-radius: 2px;
    font: 600 12px var(--mono);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.video-stat-item svg {
    width: 14px;
    height: 14px;
    color: var(--sy-accent);
    flex-shrink: 0;
}

.video-stat-btn {
    cursor: pointer;
}

.video-stat-btn:hover,
.video-stat-btn[aria-pressed="true"] {
    color: var(--sy-text-on-accent);
    background: var(--sy-accent);
    border-color: var(--sy-accent);
}

.video-stat-btn:hover svg,
.video-stat-btn[aria-pressed="true"] svg {
    color: var(--sy-text-on-accent);
}

.video-meta-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.video-meta-label {
    font: 700 11px var(--mono);
    color: var(--sy-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.video-meta-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.video-chip {
    font: 11px var(--mono);
    padding: 4px 10px;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid var(--sy-border);
    color: var(--sy-text);
    background: var(--sy-surface-dark);
}

.video-chip--cat {
    border-color: var(--sy-hot-alpha-30);
    color: var(--sy-paper);
}

.video-chip--tag {
    color: var(--sy-text-muted);
}

.video-chip:hover {
    border-color: var(--sy-accent);
    color: var(--sy-accent);
    background: var(--sy-surface-card);
}

.video-link-list__item {
    border-bottom: 1px solid var(--sy-border);
    color: var(--sy-text-muted);
    font: 12px var(--mono)
}

.video-link-list__item:hover {
    color: var(--sy-accent)
}

.single-overview {
    color: var(--sy-text-muted);
    max-width: 68ch
}

.related-load {
    margin-top: 30px;
    text-align: center
}

.related-load__button {
    border: 1px solid var(--sy-accent);
    background: transparent;
    color: var(--sy-paper);
    padding: 10px 16px;
    border-radius: 0
}

.fv-library-list {
    min-height: 120px
}

.site-footer {
    border-top: 2px solid var(--sy-text);
    padding: 24px 0 52px;
    display: grid;
    gap: 34px
}

.terminus {
    position: relative;
    border: 1px solid var(--sy-border);
    padding: 22px;
    display: grid;
    gap: 15px
}

.terminus h2 {
    font-size: 34px;
    letter-spacing: -.04em;
    margin: 0
}

.terminus-routes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.terminus-routes a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sy-surface-alt);
    border: 1px solid var(--sy-border);
    color: var(--sy-text);
    padding: 8px 14px;
    font: 700 12px var(--mono);
    border-radius: 2px;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
    margin-right: 0;
}

.terminus-routes a b {
    color: var(--sy-accent);
    font-weight: 400;
    transition: transform .2s ease;
}

.terminus-routes a:hover {
    border-color: var(--sy-accent);
    color: var(--sy-paper);
    background: var(--sy-surface-soft);
}

.terminus-routes a:hover b {
    transform: translateX(4px);
}

.footer-note {
    display: grid;
    gap: 12px;
    color: var(--sy-text-muted);
    font-size: 13px;
    max-width: 72ch
}

.footer-note strong {
    color: var(--sy-text)
}

.footer-links {
    border-top: 1px solid var(--sy-border);
    padding-top: 12px
}

.footer-links summary {
    cursor: pointer;
    font: 700 11px var(--mono);
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--sy-text);
}

.footer-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
}

.footer-tag-item {
    background: var(--sy-surface-alt);
    border: 1px solid var(--sy-border);
    color: var(--sy-text-muted);
    padding: 5px 12px;
    font: 12px var(--mono);
    border-radius: 2px;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.footer-tag-item:hover {
    border-color: var(--sy-accent);
    color: var(--sy-paper);
    background: var(--sy-surface-soft);
}

.back-to-top {
    display: none
}

.age-gate {
    font-family: var(--sans) !important;
    background: var(--sy-bg) !important
}

.age-gate__content {
    border-radius: var(--radius) !important;
    background: var(--sy-surface) !important;
    border: 1px solid var(--sy-border) !important
}

.age-gate__btn,
.age-gate__badge {
    text-align: center !important;
    line-height: 1 !important;
display: inline-flex !important; align-items: center !important; justify-content: center !important; 
    border-radius: 0 !important;
    background: var(--sy-accent) !important;
    color: var(--sy-text-on-accent) !important
}

@media(min-width:680px) {
    .junction__map {
        grid-template-columns: repeat(3, 1fr)
    }

    .junction__map a {
        border-right: 1px solid var(--sy-border)
    }

    .junction__map a:nth-child(3n) {
        border-right: 0
    }

    .junction__map a:nth-last-child(-n+3) {
        border-bottom: 0
    }

    .signal-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 24px
    }

    .video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 20px
    }
}

@media(min-width:1024px) {
    .site-header {
        min-height: 82px
    }

    .junction {
        grid-template-columns: minmax(300px, .85fr) 1.7fr;
        align-items: end
    }

    .junction__all {
        grid-column: 1
    }

    .junction__map {
        grid-column: 2;
        grid-row: 1 / span 2
    }

    .signal-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 0 22px
    }

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

    .player-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr)
    }

    .footer-note {
        grid-template-columns: 140px 1fr
    }
}

@media(max-width:520px) {
    .site-header {
        gap: 12px
    }

    .site-mark {
        min-width: 0;
        flex-shrink: 1
    }

    .site-mark span {
        display: block;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .site-mark img {
        max-height: 28px
    }

    .route-nav a,
    .route-nav button {
        padding: 10px 8px;
        font-size: 10px
    }

    .route-nav a:first-child {
        display: none
    }

    .route-overlay__panel {
        width: 100%
    }

    .junction__map a {
        min-height: 65px
    }

    .footer-links ul {
        columns: 1
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important
    }
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none !important;
}

input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
    display: none !important;
    width: 0;
    height: 0;
}

.search-form button svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2
}

.search-suggestions {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    display: grid;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--sy-border);
    background: var(--sy-surface-dark);
    box-shadow: 0 12px 30px var(--sy-shadow-alpha-60);
}

.search-suggestions[hidden] {
    display: none !important;
}

.search-suggestions__item {
    justify-self: stretch;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--sy-border);
    border-radius: 0;
    background: transparent;
    color: var(--sy-text);
    padding: 12px 16px;
    text-align: left;
    font: 14px var(--sans);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.search-suggestions__item:last-child {
    border-bottom: 0;
}

.search-suggestions__item:hover,
.search-suggestions__item.is-selected {
    background: var(--sy-surface-soft);
    color: var(--sy-paper);
}

.pagination--single {
    color: var(--sy-text-muted)
}

.age-gate.age-gate {
    font-family: var(--sans) !important;
    background: var(--sy-bg) !important;
    color: var(--sy-paper) !important
}

.age-gate .age-gate__content {
    border: 1px solid var(--sy-border) !important;
    border-radius: var(--radius) !important;
    background: var(--sy-surface) !important;
    box-shadow: 0 20px 40px var(--sy-shadow-alpha-50) !important
}

.age-gate .age-gate__badge {
    text-align: center !important;
    line-height: 1 !important;
display: inline-flex !important; align-items: center !important; justify-content: center !important; 
    border-color: var(--sy-accent) !important;
    border-radius: 0 !important;
    background: var(--sy-accent) !important;
    color: var(--sy-text-on-accent) !important;
    box-shadow: none !important
}

.age-gate .age-gate__title {
    color: var(--sy-paper) !important;
    font-family: var(--sans) !important
}

.age-gate .age-gate__desc {
    color: var(--sy-text-muted) !important
}

.age-gate .age-gate__btn {
    border: 1px solid var(--sy-accent) !important;
    border-radius: 0 !important;
    background: var(--sy-accent) !important;
    color: var(--sy-text-on-accent) !important;
    box-shadow: none !important
}

.age-gate.age-gate--active .age-gate__content {
    transform: scale(1) !important;
    opacity: 1 !important
}

/* 404 Page Styling */
.page-404 {
    padding-bottom: 40px;
}

.error-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(32px, 6vw, 64px) 20px;
    background: var(--sy-surface);
    border: 1px solid var(--sy-border);
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.error-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--sy-accent-alpha-15);
    border: 1px solid var(--sy-accent);
    color: var(--sy-accent);
    font: 700 11px var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.error-hero__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sy-accent);
}

.error-hero__code {
    font: 900 clamp(64px, 14vw, 120px)/.9 var(--mono);
    color: var(--sy-paper);
    letter-spacing: -.04em;
    margin: 0 0 12px;
    text-shadow: 0 4px 24px var(--sy-shadow-alpha-40);
}

.error-hero__title {
    font-size: clamp(20px, 4vw, 32px);
    color: var(--sy-paper);
    margin: 0 0 8px;
}

.error-hero__desc {
    color: var(--sy-text-muted);
    font-size: 15px;
    max-width: 480px;
    margin: 0 0 28px;
}

.error-search-form {
    position: relative;
    display: flex;
    width: min(520px, 100%);
    height: 46px;
    background: var(--sy-bg);
    border: 1px solid var(--sy-border);
    margin-bottom: 28px;
}

.error-search-form:focus-within {
    border-color: var(--sy-paper);
}

.error-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--sy-text-muted);
    pointer-events: none;
}

.error-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: transparent;
    border: 0;
    color: var(--sy-paper);
    padding: 0 12px 0 42px;
    font: 14px var(--sans);
    outline: none !important;
}

.error-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sy-accent);
    color: var(--sy-text-on-accent);
    border: 0;
    padding: 0 20px;
    height: 100%;
    font: 700 12px var(--mono);
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity .2s ease;
}

.error-search-btn:hover {
    opacity: .9;
}

.error-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font: 700 13px var(--mono);
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: all .2s ease;
}

.error-btn--primary {
    background: var(--sy-surface-light);
    color: var(--sy-text-on-surface-light);
    border: 1px solid var(--sy-surface-light);
}

.error-btn--primary:hover {
    background: var(--sy-surface-light);
    border-color: var(--sy-surface-light);
}

.error-btn--secondary {
    background: transparent;
    color: var(--sy-paper);
    border: 1px solid var(--sy-border);
}

.error-btn--secondary:hover {
    border-color: var(--sy-paper);
}

.error-junctions {
    margin-bottom: 48px;
}

.junction-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
