:root {
    --signal-bg: #07090f;
    --signal-surface: #0d111b;
    --signal-card: #121827;
    --signal-card-hover: #182133;
    --signal-border: #263247;
    --signal-border-strong: #3a4c69;
    --signal-text: #f7f9fc;
    --signal-secondary: #bcc6d8;
    --signal-muted: #8794aa;
    --signal-cyan: #c6ff4a;
    --signal-cyan-soft: rgba(198, 255, 74, 0.12);
    --signal-blue: #5dd6ff;
    --signal-coral: #ff657f;
    --signal-gold: #ffca68;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--signal-bg);
    color-scheme: dark;
    scroll-padding-top: 82px;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--signal-text);
    background:
        linear-gradient(rgba(55, 223, 208, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 223, 208, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 12% 5%, rgba(55, 223, 208, 0.07), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(255, 101, 127, 0.055), transparent 24rem),
        var(--signal-bg);
    background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

::selection {
    color: #04100f;
    background: var(--signal-cyan);
}

a,
button,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--signal-cyan);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 0.75rem;
    z-index: 200;
    transform: translateY(-160%);
    border-radius: 0.65rem;
    background: var(--signal-cyan);
    color: #05100f;
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 800;
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header and brand ------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    border-bottom: 1px solid rgba(58, 76, 105, 0.72);
    background: rgba(7, 9, 15, 0.9);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--signal-cyan), transparent 44%, var(--signal-coral), transparent);
    opacity: 0.48;
    pointer-events: none;
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: min(100%, 1400px);
    min-height: 66px;
    margin: 0 auto;
    padding: 0.65rem 1rem;
}

.brand-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.58rem;
    color: var(--signal-text);
}

.brand-logo:hover .brand-mark {
    border-color: rgba(55, 223, 208, 0.92);
    box-shadow: 0 0 0 4px rgba(55, 223, 208, 0.08), 0 10px 24px rgba(55, 223, 208, 0.12);
}

.brand-mark {
    position: relative;
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--signal-border-strong);
    border-radius: 10px;
    background: linear-gradient(145deg, #162238, #0b1019 72%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.brand-mark::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--signal-coral);
    box-shadow: 0 0 12px rgba(255, 101, 127, 0.9);
}

.brand-word {
    font-size: 1.04rem;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.brand-word strong {
    color: var(--signal-cyan);
    font-weight: 900;
}

.brand-tagline {
    display: none;
    color: var(--signal-muted);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.header-search {
    flex: 1 1 24rem;
    max-width: 34rem;
    min-width: 0;
}

.header-search-wrap {
    position: relative;
}

.header-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--signal-border);
    border-radius: 12px;
    background: rgba(13, 17, 27, 0.94);
    color: var(--signal-text);
    padding: 0.65rem 5.2rem 0.65rem 0.95rem;
    font-size: 0.82rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-search input::placeholder {
    color: #738099;
}

.header-search input:focus {
    border-color: rgba(55, 223, 208, 0.72);
    outline: none;
    background: #0d131f;
    box-shadow: 0 0 0 4px rgba(55, 223, 208, 0.08);
}

.search-key {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid var(--signal-border);
    border-radius: 6px;
    color: var(--signal-muted);
    background: #0a0e16;
    font-size: 0.65rem;
    font-weight: 800;
    pointer-events: none;
}

.search-submit {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    display: grid;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    place-items: center;
    border-radius: 8px;
    color: var(--signal-secondary);
}

.search-submit:hover {
    color: var(--signal-cyan);
    background: var(--signal-cyan-soft);
}

#search-suggest {
    border-color: var(--signal-border) !important;
    border-radius: 14px !important;
    background: rgba(13, 17, 27, 0.98) !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.48) !important;
}

#search-suggest > * {
    border-color: rgba(38, 50, 71, 0.7) !important;
}

.desktop-nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.2rem;
}

.nav-link {
    position: relative;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border-radius: 10px;
    color: var(--signal-secondary);
    padding: 0 0.62rem;
    font-size: 0.77rem;
    font-weight: 650;
    white-space: nowrap;
    transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--signal-text);
    background: rgba(55, 223, 208, 0.08);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    right: 0.65rem;
    bottom: 4px;
    left: 0.65rem;
    height: 2px;
    border-radius: 2px;
    background: var(--signal-cyan);
    box-shadow: 0 0 10px rgba(55, 223, 208, 0.66);
}

.header-action {
    display: inline-grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--signal-border);
    border-radius: 11px;
    color: var(--signal-secondary);
    background: rgba(13, 17, 27, 0.86);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-action:hover,
.header-action.is-active {
    color: var(--signal-cyan);
    border-color: rgba(55, 223, 208, 0.5);
    background: var(--signal-cyan-soft);
}

.discover-action {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 40px;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(55, 223, 208, 0.38);
    border-radius: 11px;
    color: #061311;
    background: var(--signal-cyan);
    padding: 0 0.78rem;
    font-size: 0.74rem;
    font-weight: 850;
    box-shadow: 0 8px 24px rgba(55, 223, 208, 0.13);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.discover-action:hover {
    transform: translateY(-1px);
    background: #6df1e5;
    box-shadow: 0 12px 30px rgba(55, 223, 208, 0.2);
}

.mobile-menu-button {
    display: none;
}

#mobile-menu {
    border-color: var(--signal-border) !important;
    background: rgba(7, 9, 15, 0.98);
}

/* Ad inventory ---------------------------------------------------------- */
.ad-zone {
    border-bottom: 1px solid rgba(38, 50, 71, 0.58);
    background: rgba(5, 7, 12, 0.82);
}

.ad-zone-inner {
    display: grid;
    grid-template-columns: minmax(0, 728px) 300px 300px;
    justify-content: center;
    gap: 10px;
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 10px 1rem;
}

.ad-inquiry-slot {
    position: relative;
    display: block;
    height: 90px;
    overflow: hidden;
    border: 1px solid rgba(55, 223, 208, 0.28);
    border-radius: 12px;
    color: var(--signal-text);
    background:
        linear-gradient(105deg, rgba(55, 223, 208, 0.13), transparent 34%),
        linear-gradient(145deg, #111a29, #0a1019 68%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: border-color 160ms ease, transform 160ms ease;
}

.ad-inquiry-slot::after {
    content: "";
    position: absolute;
    right: -12px;
    bottom: -26px;
    width: 130px;
    height: 70px;
    border: 1px solid rgba(55, 223, 208, 0.2);
    transform: rotate(-18deg);
    background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(55, 223, 208, 0.08) 12px 13px);
}

.ad-inquiry-slot:hover {
    border-color: rgba(55, 223, 208, 0.68);
    transform: translateY(-1px);
}

.ad-creative {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    text-align: left;
}

.ad-signal-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--signal-cyan);
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ad-signal-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal-coral);
    box-shadow: 0 0 10px rgba(255, 101, 127, 0.85);
}

.ad-copy strong {
    display: block;
    margin-top: 0.12rem;
    color: var(--signal-text);
    font-size: 0.96rem;
    line-height: 1.2;
}

.ad-copy span {
    display: block;
    margin-top: 0.18rem;
    color: var(--signal-muted);
    font-size: 0.66rem;
}

.ad-cta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.25rem;
    border-radius: 9px;
    color: #061311;
    background: var(--signal-cyan);
    padding: 0.42rem 0.62rem;
    font-size: 0.68rem;
    font-weight: 850;
}

.ad-inquiry-slot:not(.ad-primary) .ad-creative {
    gap: 0.55rem;
}

.ad-inquiry-slot:not(.ad-primary) .ad-copy span {
    display: none;
}

/* Main shell and reusable headings ------------------------------------- */
.site-main {
    width: min(100%, 1400px);
    min-height: 50vh;
    margin: 0 auto;
    padding: 1.35rem 1rem 2rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.section-heading-copy {
    min-width: 0;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    margin-bottom: 0.28rem;
    color: var(--signal-cyan);
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 14px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: skewX(-26deg);
}

.section-kicker.is-coral {
    color: var(--signal-coral);
}

.section-kicker.is-gold {
    color: var(--signal-gold);
}

.section-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--signal-text);
    font-size: clamp(1.08rem, 1.7vw, 1.4rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.section-count {
    color: var(--signal-muted);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0;
}

.section-description {
    margin-top: 0.22rem;
    color: var(--signal-muted);
    font-size: 0.7rem;
}

.section-more {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 36px;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9px;
    color: var(--signal-secondary);
    padding: 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.section-more:hover {
    color: var(--signal-cyan);
    background: var(--signal-cyan-soft);
}

.content-section {
    margin-bottom: 2.4rem;
}

/* Home discovery rail --------------------------------------------------- */
.discovery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.discovery-card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--signal-border);
    border-radius: 16px;
    background: var(--signal-card);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.discovery-card:hover {
    transform: translateY(-3px);
    border-color: rgba(55, 223, 208, 0.48);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.discovery-card .thumb-container {
    padding-bottom: 64%;
}

.discovery-card:first-child .thumb-container {
    padding-bottom: 52%;
}

.discovery-card .thumb-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 6, 10, 0.95), rgba(4, 6, 10, 0.06) 72%);
}

.discovery-rank {
    position: absolute;
    left: 0.7rem;
    top: 0.7rem;
    z-index: 2;
    display: grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    color: #07100f;
    background: var(--signal-cyan);
    font-size: 0.68rem;
    font-weight: 900;
    box-shadow: 0 6px 18px rgba(55, 223, 208, 0.22);
}

.discovery-info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 0.8rem;
}

.discovery-code {
    color: var(--signal-text);
    font-size: 0.82rem;
    font-weight: 850;
}

.discovery-meta {
    margin-top: 0.22rem;
    color: var(--signal-secondary);
    font-size: 0.66rem;
}

.continue-shelf {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(55, 223, 208, 0.22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(55, 223, 208, 0.08), rgba(13, 17, 27, 0.7) 42%, rgba(255, 101, 127, 0.05));
    padding: 1rem;
}

.continue-shelf::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--signal-coral));
}

#continue-row > a {
    border-radius: 14px !important;
    border-color: var(--signal-border) !important;
    background: rgba(13, 17, 27, 0.9) !important;
}

#continue-row > a:hover {
    border-color: rgba(55, 223, 208, 0.45) !important;
}

#continue-row .bg-emerald-400 {
    background: var(--signal-cyan) !important;
}

/* Cards, actresses and grids ------------------------------------------- */
.video-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.9rem;
}

.video-card-shell {
    min-width: 0;
}

.video-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--signal-border);
    border-radius: 14px;
    color: var(--signal-text);
    background: var(--signal-card);
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.14);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.video-card-link:hover {
    transform: translateY(-3px);
    border-color: rgba(55, 223, 208, 0.42);
    background: var(--signal-card-hover);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.video-card-media {
    background: #0a0e16;
}

.video-card-media::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(7, 9, 15, 0.48), transparent);
    pointer-events: none;
}

.video-card-link:hover .video-card-media img {
    transform: scale(1.035);
}

.video-card-body {
    min-height: 78px;
    padding: 0.72rem 0.78rem 0.8rem;
}

.video-card-code {
    min-height: 2.25rem;
    color: var(--signal-text);
    font-size: 0.8rem;
    font-weight: 760;
    letter-spacing: -0.018em;
    line-height: 1.38;
}

.video-card-link:hover .video-card-code {
    color: var(--signal-cyan);
}

.video-card-person {
    margin-top: 0.3rem;
    color: var(--signal-secondary);
    font-size: 0.68rem;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    margin-top: 0.45rem;
    color: var(--signal-muted);
    font-size: 0.64rem;
}

.video-card-meta > span + span::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-right: 0.38rem;
    border-radius: 50%;
    background: var(--signal-border-strong);
    vertical-align: middle;
}

.duration-badge,
.subtitle-badge {
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.subtitle-badge {
    color: #07100f !important;
    background: var(--signal-cyan) !important;
}

.favorite-button {
    position: absolute;
    right: 0.45rem;
    top: 0.45rem;
    z-index: 10;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(5, 7, 12, 0.72);
    opacity: 0;
    transform: translateY(-3px);
    backdrop-filter: blur(10px);
    transition: opacity 160ms ease, transform 160ms ease, color 160ms ease, background 160ms ease;
}

.video-card-shell:hover .favorite-button,
.favorite-button:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.favorite-button:hover,
.favorite-button.text-accent {
    color: var(--signal-coral) !important;
    background: rgba(7, 9, 15, 0.9);
}

.actress-scroll {
    gap: 0.9rem;
    padding: 0.2rem 0.1rem 0.65rem;
}

.actress-scroll > a > div:first-child {
    border-color: var(--signal-border) !important;
    box-shadow: 0 0 0 4px rgba(55, 223, 208, 0.025);
}

.actress-scroll > a:hover > div:first-child {
    border-color: var(--signal-cyan) !important;
    box-shadow: 0 0 0 4px rgba(55, 223, 208, 0.08), 0 9px 24px rgba(0, 0, 0, 0.22);
}

.card-glow:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

/* Existing page components inherit the signal system ------------------- */
.bg-dark-card {
    background-color: var(--signal-card) !important;
}

.bg-dark-bg {
    background-color: var(--signal-bg) !important;
}

.bg-dark-hover,
.hover\:bg-dark-hover:hover {
    background-color: var(--signal-card-hover) !important;
}

.border-dark-border {
    border-color: var(--signal-border) !important;
}

.text-gray-300 {
    color: var(--signal-secondary) !important;
}

.text-gray-400,
.text-gray-500 {
    color: var(--signal-muted) !important;
}

.text-accent {
    color: var(--signal-cyan) !important;
}

.bg-accent {
    color: #05100f !important;
    background-color: var(--signal-cyan) !important;
}

.bg-badge {
    color: #10131a !important;
    background-color: var(--signal-gold) !important;
}

.gradient-text {
    background: none !important;
    color: var(--signal-cyan) !important;
    -webkit-text-fill-color: currentColor !important;
}

main > h1,
main > section > h1,
main > section > .flex:first-child h1,
main > .flex:first-child h1 {
    letter-spacing: -0.03em;
}

main > h1::before {
    content: ">>";
    margin-right: 0.5rem;
    color: var(--signal-cyan);
    font-size: 0.72em;
    letter-spacing: -0.2em;
}

main input,
main textarea,
main select {
    border-color: var(--signal-border) !important;
    background-color: var(--signal-surface) !important;
}

main input:focus,
main textarea:focus,
main select:focus {
    border-color: var(--signal-cyan) !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(55, 223, 208, 0.08);
}

.empty-state {
    border: 1px dashed var(--signal-border);
    border-radius: 18px;
    background: rgba(13, 17, 27, 0.5);
}

.category-toolbar {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    border: 1px solid var(--signal-border);
    border-radius: 13px;
    color: var(--signal-muted);
    background: var(--signal-surface);
    padding: 0 0.85rem;
}

.category-toolbar input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    padding: 0.7rem 0 !important;
    color: var(--signal-text);
    box-shadow: none !important;
}

.category-toolbar span {
    flex: 0 0 auto;
    font-size: 0.68rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}

.category-card {
    display: flex;
    min-width: 0;
    min-height: 68px;
    align-items: center;
    gap: 0.65rem;
    overflow: hidden;
    border: 1px solid var(--signal-border);
    border-radius: 13px;
    color: var(--signal-secondary);
    background: var(--signal-card);
    padding: 0.68rem;
    transition: color 160ms ease, border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.category-card:hover {
    color: var(--signal-text);
    border-color: rgba(198, 255, 74, 0.45);
    background: var(--signal-card-hover);
    transform: translateY(-2px);
}

.category-index {
    color: var(--signal-cyan);
    font-size: 0.62rem;
    font-weight: 850;
}

.category-copy {
    min-width: 0;
}

.category-copy strong,
.category-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-copy strong {
    font-size: 0.76rem;
}

.category-copy small {
    margin-top: 0.18rem;
    color: var(--signal-muted);
    font-size: 0.62rem;
}

.category-arrow {
    margin-left: auto;
    color: var(--signal-border-strong);
}

.category-toggle {
    display: block;
    min-height: 44px;
    margin: 1.1rem auto 0;
    border: 1px solid var(--signal-border);
    border-radius: 11px;
    color: var(--signal-secondary);
    background: var(--signal-surface);
    padding: 0 1rem;
    font-size: 0.74rem;
    font-weight: 750;
}

.category-toggle:hover {
    color: var(--signal-cyan);
    border-color: rgba(198, 255, 74, 0.45);
}

.video-page {
    width: 100%;
}

.signal-player {
    border-color: rgba(198, 255, 74, 0.26) !important;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
}

.player-loading-poster {
    filter: saturate(0.82) contrast(1.04);
}

.player-backdrop {
    opacity: 0.72;
    filter: saturate(0.78) brightness(0.7);
}

.video-info-panel {
    position: relative;
    overflow: hidden;
    border-color: var(--signal-border) !important;
    background: linear-gradient(140deg, rgba(198, 255, 74, 0.035), var(--signal-card) 32%, rgba(93, 214, 255, 0.028)) !important;
}

.video-info-panel::before {
    content: "GO DECK";
    position: absolute;
    right: 1rem;
    bottom: -0.3rem;
    color: rgba(198, 255, 74, 0.035);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    pointer-events: none;
}

.video-info-panel > * {
    position: relative;
    z-index: 1;
}

.video-ad-slot {
    width: min(100%, 728px);
    margin: 0 auto;
    text-align: left;
}

/* Pagination ------------------------------------------------------------ */
.signal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    margin-top: 2rem;
}

.signal-pagination a,
.signal-pagination span {
    display: inline-grid;
    min-width: 40px;
    min-height: 40px;
    place-items: center;
    border: 1px solid var(--signal-border);
    border-radius: 11px;
    color: var(--signal-secondary);
    background: var(--signal-surface);
    padding: 0 0.7rem;
    font-size: 0.73rem;
    font-weight: 720;
}

.signal-pagination a:hover {
    color: var(--signal-cyan);
    border-color: rgba(55, 223, 208, 0.45);
    background: var(--signal-cyan-soft);
}

.signal-pagination a[aria-current="page"] {
    color: #061311;
    border-color: var(--signal-cyan);
    background: var(--signal-cyan);
    box-shadow: 0 8px 22px rgba(55, 223, 208, 0.18);
}

/* Footer and mobile dock ------------------------------------------------ */
.site-footer {
    position: relative;
    margin-top: 2rem;
    border-top: 1px solid var(--signal-border);
    color: var(--signal-muted);
    background: rgba(8, 11, 18, 0.88);
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -1px;
    width: min(280px, 55vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--signal-cyan), transparent);
}

.site-footer-inner {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 1.6rem 1rem 1.9rem;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    color: var(--signal-text);
    font-size: 0.9rem;
    font-weight: 850;
}

.footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--signal-coral);
    box-shadow: 0 0 10px rgba(255, 101, 127, 0.75);
}

.footer-links a:hover {
    color: var(--signal-cyan) !important;
}

.mobile-dock {
    display: none;
}

@media (max-width: 1199px) {
    .desktop-nav .nav-link:nth-child(n + 5) {
        display: none;
    }

    .ad-zone-inner {
        display: flex;
    }

    .ad-inquiry-slot.ad-primary {
        width: min(728px, 100%);
    }

    .ad-inquiry-slot:not(.ad-primary) {
        display: none;
    }

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

    .discovery-card:first-child {
        grid-column: span 2;
    }

    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .desktop-nav,
    .discover-action,
    .header-bookmark,
    .desktop-action {
        display: none;
    }

    .mobile-menu-button {
        display: inline-grid;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .ad-inquiry-slot.ad-primary {
        width: 468px;
        height: 60px;
    }

    .ad-copy span {
        display: none;
    }
}

@media (max-width: 640px) {
    body.has-mobile-dock {
        padding-bottom: 82px;
    }

    .site-header-inner {
        min-height: 62px;
        gap: 0.5rem;
        padding: 0.55rem 0.7rem;
    }

    .brand-logo {
        gap: 0.38rem;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .brand-word {
        font-size: 0.9rem;
    }

    .header-search {
        flex-basis: auto;
    }

    .header-search input {
        min-height: 40px;
        padding-right: 2.5rem;
        padding-left: 0.75rem;
        font-size: 0.75rem;
    }

    .search-key {
        display: none;
    }

    .header-action,
    .mobile-menu-button {
        width: 38px;
        height: 38px;
    }

    .ad-zone-inner {
        padding: 8px 1rem;
    }

    .ad-inquiry-slot.ad-primary {
        width: 100%;
        height: 60px;
        border-radius: 10px;
    }

    .ad-creative {
        justify-content: space-between;
        gap: 0.55rem;
        padding: 0.55rem 0.72rem;
    }

    .ad-copy strong {
        font-size: 0.78rem;
    }

    .ad-copy span,
    .ad-signal-label {
        font-size: 0.55rem;
    }

    .ad-copy span {
        display: none;
    }

    .ad-cta {
        padding: 0.38rem 0.52rem;
        font-size: 0.61rem;
    }

    .site-main {
        padding: 1rem 0.7rem 1.35rem;
    }

    .category-toolbar span {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .category-card {
        min-height: 62px;
        border-radius: 11px;
        padding: 0.58rem;
    }

    .category-index {
        display: none;
    }

    .video-page {
        margin-top: -0.2rem;
    }

    .signal-player {
        border-radius: 12px !important;
    }

    .video-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .video-title-row > button {
        min-height: 44px;
        align-self: flex-start;
    }

    .video-ad-slot {
        height: 72px !important;
    }

    .content-section {
        margin-bottom: 1.8rem;
    }

    .section-heading {
        align-items: center;
        margin-bottom: 0.7rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-description {
        display: none;
    }

    .section-more {
        min-height: 34px;
        padding: 0 0.45rem;
        font-size: 0.65rem;
    }

    .discovery-grid {
        display: flex;
        gap: 0.65rem;
        overflow-x: auto;
        margin-right: -0.7rem;
        padding-right: 0.7rem;
        padding-bottom: 0.35rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .discovery-grid::-webkit-scrollbar {
        display: none;
    }

    .discovery-card,
    .discovery-card:first-child {
        flex: 0 0 78vw;
        grid-column: auto;
        scroll-snap-align: start;
    }

    .discovery-card .thumb-container,
    .discovery-card:first-child .thumb-container {
        padding-bottom: 56.25%;
    }

    .continue-shelf {
        margin-right: -0.1rem;
        margin-left: -0.1rem;
        border-radius: 15px;
        padding: 0.75rem;
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.58rem;
    }

    .video-card-link {
        border-radius: 11px;
    }

    .video-card-body {
        min-height: 72px;
        padding: 0.56rem 0.58rem 0.62rem;
    }

    .video-card-code {
        min-height: 2.05rem;
        font-size: 0.72rem;
        line-height: 1.36;
    }

    .video-card-person {
        font-size: 0.62rem;
    }

    .video-card-meta {
        margin-top: 0.32rem;
        font-size: 0.58rem;
    }

    .signal-pagination {
        gap: 0.3rem;
        margin-top: 1.4rem;
    }

    .signal-pagination a,
    .signal-pagination span {
        min-width: 38px;
        min-height: 38px;
        padding: 0 0.48rem;
    }

    .mobile-dock {
        position: fixed;
        right: 0.65rem;
        bottom: max(0.65rem, env(safe-area-inset-bottom));
        left: 0.65rem;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        height: 64px;
        border: 1px solid rgba(58, 76, 105, 0.86);
        border-radius: 19px;
        background: rgba(10, 14, 23, 0.94);
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(18px);
    }

    .mobile-dock a,
    .mobile-dock button {
        position: relative;
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.15rem;
        color: var(--signal-muted);
        font-size: 0.55rem;
        font-weight: 700;
    }

    .mobile-dock a:hover,
    .mobile-dock button:hover,
    .mobile-dock .is-active {
        color: var(--signal-cyan);
    }

    .mobile-dock svg {
        width: 18px;
        height: 18px;
    }

    .mobile-dock .dock-discover {
        color: #061311;
    }

    .dock-discover::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: -1;
        width: 48px;
        height: 48px;
        transform: translate(-50%, -50%);
        border-radius: 15px;
        background: var(--signal-cyan);
        box-shadow: 0 8px 24px rgba(55, 223, 208, 0.24);
    }

    .mobile-dock .dock-badge {
        position: absolute;
        left: calc(50% + 6px);
        top: 7px;
        display: grid;
        min-width: 15px;
        height: 15px;
        place-items: center;
        border: 2px solid #0a0e17;
        border-radius: 999px;
        color: #12151a;
        background: var(--signal-coral);
        padding: 0 3px;
        font-size: 0.5rem;
        font-weight: 900;
    }

    .site-footer {
        margin-top: 1rem;
    }

    .site-footer-inner {
        padding-bottom: 1.5rem;
    }
}

@media (hover: none) {
    .favorite-button {
        width: 38px;
        height: 38px;
        opacity: 1;
        transform: none;
    }

    .video-card-link:hover,
    .discovery-card:hover,
    .ad-inquiry-slot:hover,
    .discover-action:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
