:root {
    --bg: #09070f;
    --panel: #14111d;
    --panel-soft: #1b1724;
    --surface: #0f0c16;
    --border: #3b2132;
    --text: #fff8fc;
    --muted: #c9b4c3;
    --accent: #ff2f6d;
    --accent-strong: #ff0051;
    --accent-soft: #ff87b0;
    --danger: #ff7272;
    --success: #7dd3a9;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: "Segoe UI", Arial, sans-serif;
    color-scheme: dark;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 0, 81, 0.18), transparent 26%),
        radial-gradient(circle at left center, rgba(255, 47, 109, 0.12), transparent 24%),
        radial-gradient(circle at 50% 0%, rgba(255, 135, 176, 0.08), transparent 18%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.button,
.button-secondary,
.button-danger {
    border: 0;
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.page-shell {
    padding: 1.5rem 0 4rem;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    z-index: 100;
    background: #fff;
    color: #000;
    border-radius: 999px;
    padding: 0.65rem 1rem;
}

.skip-link:focus {
    left: 1rem;
}

.notice-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, rgba(255, 0, 81, 0.13), rgba(255, 47, 109, 0.08));
    color: var(--muted);
    font-size: 0.78rem;
}

.notice-bar .container {
    padding: 0.75rem 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(10, 8, 15, 0.96), rgba(16, 12, 22, 0.9));
    border-bottom: 1px solid rgba(255, 95, 145, 0.12);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.28);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.brand-link {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-logo {
    width: auto;
    height: 60px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 16px rgba(255, 0, 81, 0.12))
        drop-shadow(0 10px 24px rgba(0, 0, 0, 0.26));
}

.public-brand-group {
    display: flex;
    align-items: center;
}

.public-site-name {
    display: inline-flex;
    flex-direction: column;
    gap: 0.08rem;
}

.public-site-name-main {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: var(--text);
}

.public-site-name-sub {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.66rem;
    color: var(--accent-soft);
    font-weight: 700;
}

.brand-kicker,
.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
}

.brand-name {
    font-size: 1.7rem;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--accent-soft);
}

.nav-account-menu {
    position: relative;
}

.nav-account-menu summary {
    list-style: none;
}

.nav-account-menu summary::-webkit-details-marker {
    display: none;
}

.nav-account-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

.nav-account-button::after {
    content: "";
    width: 0.48rem;
    height: 0.48rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.18s ease;
}

.nav-account-menu[open] .nav-account-button::after {
    transform: rotate(225deg) translateY(-1px);
}

.nav-account-dropdown {
    position: absolute;
    top: calc(100% + 1.1rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(29, 31, 42, 0.99), rgba(18, 19, 29, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.36);
    z-index: 40;
}

.nav-account-dropdown a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    text-align: center;
    font-weight: 700;
}

.nav-account-dropdown a:hover,
.nav-account-dropdown a:focus {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.hero,
.panel,
.card,
.table-card,
.form-panel,
.stats-grid > div,
.empty-state,
.gate-panel {
    background: linear-gradient(180deg, rgba(29, 31, 42, 0.98), rgba(18, 19, 29, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.4rem;
    box-shadow: var(--shadow);
}

.hero {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.directory-hero {
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 93, 145, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(28, 12, 21, 0.98), rgba(18, 13, 24, 0.99)),
        linear-gradient(180deg, rgba(29, 31, 42, 0.98), rgba(18, 19, 29, 0.96));
    border: 1px solid rgba(255, 95, 145, 0.12);
}

.hero-brand-lockup {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-brand-lockup-centered {
    min-height: 320px;
    padding: 1rem 0 0.5rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 76, 133, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 95, 145, 0.08);
    justify-content: center;
}

.hero-brand-lockup-centered > div {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-brand-image {
    width: min(100%, 420px);
    height: auto;
    display: block;
    margin: 0 auto !important;
    object-fit: contain;
    filter:
        drop-shadow(0 0 26px rgba(255, 0, 81, 0.08))
        drop-shadow(0 20px 46px rgba(0, 0, 0, 0.34));
}

.hero-brand-image-transparent {
    width: min(100%, 560px);
}

.hero-brand-caption {
    margin: 0.8rem 0 0;
    text-align: center;
    color: rgba(235, 238, 247, 0.72);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-search-bar {
    margin-top: 1.1rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 95, 145, 0.1);
}

.hero-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow: hidden;
    min-width: 0;
}

.hero-categories-row {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.hero-category-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 95, 145, 0.12);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.hero-category-chip:hover,
.hero-category-chip:focus {
    transform: translateY(-2px);
    background: rgba(255, 47, 109, 0.12);
    border-color: rgba(255, 95, 145, 0.24);
}

.hero-more-button {
    white-space: nowrap;
}

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

.category-directory-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, rgba(22, 24, 35, 0.98), rgba(16, 18, 28, 0.98));
    border: 1px solid rgba(255, 95, 145, 0.12);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.category-directory-card:hover,
.category-directory-card:focus {
    transform: translateY(-3px);
    border-color: rgba(255, 95, 145, 0.24);
    background: linear-gradient(180deg, rgba(32, 21, 33, 0.98), rgba(19, 16, 28, 0.98));
}

.category-directory-name {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text);
}

.category-directory-count {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 700;
}

.hero-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.4fr 0.9fr;
}

.hero h1,
.page-title,
.section-title {
    margin: 0.35rem 0 0;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.copy,
.copy-muted,
.footer-copy {
    color: var(--muted);
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid > div {
    padding: 1.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 0.65rem;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

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

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

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

.card {
    overflow: hidden;
}

.grid > .gallery-card {
    height: 100%;
}

.card-media {
    aspect-ratio: 16 / 10;
    background: #111;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-media-link {
    position: relative;
    display: block;
}

.card-media-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.18));
    z-index: 1;
    pointer-events: none;
}

.card-duration-badge {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    padding: 0.28rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.fake-play-button {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 32%, rgba(0, 0, 0, 0.12) 33%, rgba(0, 0, 0, 0) 70%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -10px 18px rgba(0, 0, 0, 0.18),
        0 12px 24px rgba(0, 0, 0, 0.24);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.fake-play-button::after {
    content: none;
}

.fake-play-triangle {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 34px solid rgba(0, 0, 0, 0.62);
    filter:
        drop-shadow(0 2px 0 rgba(255, 255, 255, 0.22))
        drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
    transition: transform 0.22s ease, filter 0.22s ease;
}

.gallery-card-link:hover .fake-play-button,
.gallery-card-link:focus-visible .fake-play-button {
    transform: translate(-50%, -56%);
    background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 32%, rgba(0, 0, 0, 0.14) 33%, rgba(0, 0, 0, 0) 70%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 -12px 20px rgba(0, 0, 0, 0.2),
        0 18px 34px rgba(0, 0, 0, 0.3);
}

.gallery-card-link:hover .fake-play-triangle,
.gallery-card-link:focus-visible .fake-play-triangle {
    transform: scale(1.05);
    filter:
        drop-shadow(0 2px 0 rgba(255, 255, 255, 0.28))
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.card-media-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, rgba(8, 8, 10, 0), rgba(8, 8, 10, 0.88));
    z-index: 2;
}

.card-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #20140b;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card-source-inline {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.card-body {
    padding: 1.1rem 1.1rem 1.25rem;
}

.directory-card {
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(20, 22, 33, 0.99), rgba(16, 18, 28, 0.99));
    border: 1px solid rgba(255, 96, 146, 0.12);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.gallery-card-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.gallery-card-link:hover,
.gallery-card-link:focus-visible {
    transform: translateY(-6px);
    filter: drop-shadow(0 18px 34px rgba(255, 0, 81, 0.12));
}

.gallery-card .card-media {
    aspect-ratio: 16 / 11;
    flex: 0 0 auto;
}

.gallery-card .card-body {
    padding: 0.9rem 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gallery-card-tags-body {
    padding-top: 0;
    padding-bottom: 1rem;
    min-height: 82px;
}

.gallery-tags-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.gallery-tag-chip-wrap {
    display: inline-flex;
}

.gallery-tag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 95, 145, 0.16);
    background: linear-gradient(180deg, rgba(40, 22, 34, 0.98), rgba(27, 17, 27, 0.98));
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.gallery-card-tags-body .gallery-tag-chip,
.gallery-tags-row .gallery-tag-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(40, 22, 34, 0.98), rgba(27, 17, 27, 0.98)) !important;
    border: 1px solid rgba(255, 95, 145, 0.16) !important;
    color: var(--text) !important;
    padding: 0.55rem 1rem !important;
    min-height: 42px !important;
    line-height: 1 !important;
}

.gallery-tag-chip:hover,
.gallery-tag-chip:focus-visible {
    color: var(--text);
    background: linear-gradient(180deg, rgba(53, 27, 43, 0.98), rgba(32, 20, 33, 0.98));
    border-color: rgba(255, 95, 145, 0.3);
    transform: translateY(-1px);
}

.gallery-tag-chip-more {
    color: var(--accent-soft);
}

.trending-ad-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.22s ease, filter 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.trending-ad-card:hover,
.trending-ad-card:focus-within {
    transform: translateY(-6px);
    filter: drop-shadow(0 18px 34px rgba(255, 0, 81, 0.12));
    border-color: rgba(255, 96, 146, 0.2);
}

.trending-ad-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 74, 127, 0.28), transparent 28%),
        linear-gradient(135deg, rgba(40, 18, 33, 0.98), rgba(20, 17, 28, 0.98));
}

.trending-ad-embed-card {
    overflow: hidden;
    justify-content: flex-start;
}

.trending-ad-media-embed {
    padding: 0.9rem;
    align-items: center;
    aspect-ratio: 6 / 5;
    min-height: 250px;
}

.trending-ad-embed {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 300px;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding-top: 0;
    overflow: hidden;
}

.trending-ad-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.12)),
        radial-gradient(circle at 70% 30%, rgba(255, 120, 160, 0.16), transparent 18%);
    pointer-events: none;
}

.trending-ad-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.trending-ad-icon {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03) 32%, rgba(0, 0, 0, 0.14) 33%, rgba(0, 0, 0, 0) 70%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -10px 18px rgba(0, 0, 0, 0.18),
        0 12px 24px rgba(0, 0, 0, 0.24);
    color: rgba(0, 0, 0, 0.62);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.trending-ad-glow {
    position: absolute;
    inset: auto auto 1.1rem 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 47, 109, 0.2);
    filter: blur(18px);
    z-index: 1;
}

.trending-ad-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: auto;
}

.trending-ad-body-compact {
    padding-top: 0.8rem;
}

.trending-ad-embed .exo-banner-slot {
    width: 100%;
    min-height: 250px;
    height: 250px;
    padding: 0;
}

.trending-ad-embed .exo-banner-slot ins {
    width: 100%;
    min-height: 250px;
}

.trending-ad-copy {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.trending-ad-button {
    margin-top: 0.35rem;
    width: 100%;
}

.trending-ad-card:hover .trending-ad-icon,
.trending-ad-card:focus-within .trending-ad-icon {
    transform: scale(1.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -12px 20px rgba(0, 0, 0, 0.2),
        0 18px 34px rgba(0, 0, 0, 0.3);
}

.compact-row {
    gap: 0.4rem;
}

.badge-row,
.actions,
.tag-list,
.inline-form,
.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge,
.status-badge,
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.badge,
.tag-pill {
    background: rgba(255, 180, 84, 0.09);
    color: var(--accent);
}

.status-approved { color: var(--success); }
.status-pending { color: var(--accent); }
.status-rejected,
.status-inactive,
.flash-error,
.button-danger { color: #fff; background: rgba(255, 114, 114, 0.16); }

.status-badge {
    background: rgba(255, 255, 255, 0.04);
}

.link-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0.6rem 0 0;
}

.directory-card .link-title {
    font-size: 1.08rem;
    line-height: 1.25;
}

.gallery-card .link-title {
    font-size: 0.98rem;
    margin: 0;
}

.gallery-title-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card .link-title a,
.gallery-title-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-source-row {
    margin-top: 0.42rem;
    display: block;
    min-height: 1.35rem;
}

.gallery-source-label {
    display: inline-block;
    color: rgba(235, 238, 247, 0.62);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}

.simple-meta {
    margin-top: 0.65rem;
}

.card-description {
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.5;
}

.muted {
    color: var(--muted);
}

.disclaimer {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.compact-disclaimer {
    margin-top: 0.85rem;
    font-size: 0.78rem;
}

.card-actions .button,
.card-actions .button-secondary {
    flex: 1 1 200px;
}

.card-actions .button {
    width: 100%;
}

.gallery-actions .button {
    padding: 0.72rem 0.95rem;
    font-size: 0.9rem;
}

.simple-tags .tag-pill {
    padding: 0.26rem 0.58rem;
    font-size: 0.7rem;
}

.thumbnail-gallery {
    gap: 1rem;
}

.hero-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.simple-search-bar {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin: 0;
    max-width: none;
}

.simple-search-bar input {
    min-width: 0;
}

.directory-results {
    align-items: start;
}

.button,
.button-secondary,
.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.82rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.button {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    box-shadow: 0 10px 26px rgba(255, 0, 81, 0.24);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid rgba(255, 95, 145, 0.12);
}

.button-danger {
    border: 1px solid rgba(255, 114, 114, 0.25);
}

.button:hover,
.button-secondary:hover,
.button-danger:hover,
button:hover {
    transform: translateY(-1px);
}

.section {
    margin-top: 1.5rem;
}

.section-compact {
    margin-top: 1rem;
}

.section-header {
    margin-bottom: 1rem;
}

.ad-slot {
    padding: 1.25rem;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 1.2rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.exo-banner-slot {
    width: 100%;
    min-height: var(--exo-ad-height, 250px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    padding: 0.35rem 0;
    text-align: center;
}

.exo-banner-slot script {
    display: none !important;
}

.exo-banner-slot > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

.exo-banner-slot ins {
    display: block;
    width: min(100%, var(--exo-ad-width, 300px));
    min-height: var(--exo-ad-height, 250px);
    margin: 0 auto;
}

.exo-banner-slot iframe,
.exo-banner-slot img,
.exo-banner-slot div {
    margin-left: auto !important;
    margin-right: auto !important;
}

.ad-slot-grid {
    display: grid;
    gap: 1rem;
}

.ad-slot-grid-2 {
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr);
}

.interstitial-shell {
    padding: 2rem;
}

.interstitial-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.1fr 0.9fr;
}

.interstitial-ads .ad-slot {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.interstitial-countdown {
    font-size: 0.96rem;
    color: var(--accent);
    font-weight: 700;
}

.search-bar,
.toolbar,
.filter-grid {
    display: grid;
    gap: 0.9rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.pagination-link,
.pagination-current,
.next-pagination-link {
    min-width: 48px;
}

.pagination-current {
    pointer-events: none;
}

.search-bar {
    grid-template-columns: minmax(0, 1fr) auto;
}

input,
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.95rem;
    padding: 0.85rem 0.95rem;
}

select option {
    background: #181a24;
    color: #f5f7fb;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 5.9rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 95, 145, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border-radius: 999px;
    padding: 0.42rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 700;
    min-height: auto;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--text);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.field,
.field-group {
    margin-bottom: 1rem;
}

.field-help {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.error-text {
    color: var(--danger);
    margin-top: 0.35rem;
    font-size: 0.86rem;
}

.flash {
    margin: 1rem 0 0;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    font-weight: 700;
}

.flash-success {
    background: rgba(125, 211, 169, 0.16);
    color: var(--success);
}

.flash-error {
    color: var(--danger);
}

.info-box,
.warning-box,
.empty-state,
.table-card,
.form-panel,
.panel {
    padding: 1.25rem;
}

.table-card {
    overflow-x: auto;
}

.warning-box {
    background: rgba(255, 180, 84, 0.08);
    border: 1px solid rgba(255, 180, 84, 0.18);
    border-radius: 1rem;
}

.info-box {
    background: rgba(120, 164, 255, 0.09);
    border: 1px solid rgba(120, 164, 255, 0.16);
    border-radius: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.admin-links-table {
    min-width: 980px;
    table-layout: fixed;
}

.admin-links-table th:first-child,
.admin-links-table td:first-child {
    display: none;
}

.admin-links-table th:nth-child(2),
.admin-links-table td:nth-child(2) {
    width: 58%;
}

.admin-links-table th:nth-child(3),
.admin-links-table td:nth-child(3) {
    width: 14%;
}

.admin-links-table th:nth-child(4),
.admin-links-table td:nth-child(4) {
    width: 28%;
}

.admin-links-table td,
.admin-links-table th,
.admin-links-table .copy-muted,
.admin-links-table strong,
.admin-links-table a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.import-preview-table {
    table-layout: fixed;
}

.import-preview-table th,
.import-preview-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.import-preview-table th:nth-child(1),
.import-preview-table td:nth-child(1) {
    width: 44px;
}

.import-preview-table th:nth-child(2),
.import-preview-table td:nth-child(2) {
    width: 32%;
}

.import-preview-table th:nth-child(3),
.import-preview-table td:nth-child(3) {
    width: 40%;
}

.import-preview-table .copy-muted,
.import-preview-table strong,
.import-preview-table a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.import-preview-table td div {
    margin-bottom: 0.35rem;
}

.import-preview-table td div:last-child {
    margin-bottom: 0;
}

th,
td {
    padding: 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.inline-form > form {
    margin: 0;
}

label.button-secondary input[type="checkbox"] {
    width: auto;
}

code {
    font-family: Consolas, "Courier New", monospace;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.35rem;
    border-radius: 0.45rem;
}

th {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-layout {
    display: grid;
    gap: 1.25rem;
}

.stats-admin {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stats-admin .panel strong {
    display: block;
    font-size: 1.8rem;
    margin-top: 0.5rem;
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top center, rgba(255, 0, 81, 0.09), transparent 28%),
        rgba(8, 9, 14, 0.92);
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.2fr 0.8fr;
    padding: 2rem 0;
}

.footer-links {
    display: grid;
    gap: 0.65rem;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--text);
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--text);
}

.age-gate-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate-panel {
    max-width: 760px;
    padding: 2rem;
}

.two-column {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1.2fr 0.8fr;
}

.three-column {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.tag-toolbar {
    margin-bottom: 0.75rem;
}

.checkbox-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 95, 145, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
}

.checkbox-toggle input {
    width: auto;
    margin: 0;
}

.checkbox-item {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.checkbox-item input {
    width: auto;
    margin: 0;
}

.hidden-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 1080px) {
    .hero-grid,
    .ad-slot-grid-2,
    .two-column,
    .footer-grid,
    .stats-admin,
    .interstitial-grid {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 1rem, 1180px);
    }

    .page-shell {
        padding: 1rem 0 3rem;
    }

    .header-row,
    .search-bar,
    .grid-2,
    .grid-3,
    .grid-4,
    .checkbox-list {
        grid-template-columns: 1fr;
    }

    .hero-categories-row {
        grid-template-columns: 1fr;
    }

    .category-directory-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        display: flex;
        flex-direction: column;
    }

    .header-row {
        align-items: stretch;
        gap: 0.85rem;
    }

    .public-brand-group,
    .brand-group {
        justify-content: center;
    }

    .main-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        scrollbar-width: thin;
    }

    .main-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .nav-account-dropdown {
        left: 50%;
        min-width: min(88vw, 240px);
    }

    .brand-logo {
        height: 46px;
    }

    .hero,
    .panel,
    .table-card,
    .form-panel,
    .gate-panel,
    .info-box,
    .warning-box,
    .empty-state {
        border-radius: 1.1rem;
    }

    .hero,
    .panel,
    .table-card,
    .form-panel,
    .info-box,
    .warning-box,
    .empty-state {
        padding: 1rem;
    }

    .gate-panel {
        padding: 1.2rem;
    }

    .page-title {
        font-size: 1.7rem;
        line-height: 1.15;
    }

    .copy-muted {
        font-size: 0.95rem;
    }

    .hero-brand-image {
        width: min(100%, 260px);
    }

    .hero-brand-lockup-centered {
        min-height: auto;
        padding: 0.85rem 0.75rem 0.7rem;
    }

    .hero-brand-image-transparent {
        width: min(100%, 300px);
    }

    .hero-categories {
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
    }

    .hero-search-bar {
        margin-top: 0.85rem;
        padding: 0.8rem;
    }

    .hero-category-chip,
    .hero-more-button {
        padding: 0.72rem 0.9rem;
        font-size: 0.86rem;
    }

    .hero-category-chip {
        flex: 1 1 calc(50% - 0.5rem);
        white-space: normal;
        text-align: center;
        min-height: 44px;
    }

    .hero-more-button {
        width: 100%;
    }

    .directory-card {
        border-radius: 1rem;
    }

    .gallery-card .card-media {
        aspect-ratio: 16 / 10;
    }

    .gallery-card .card-body,
    .card-body {
        padding: 0.85rem 0.85rem 0.95rem;
    }

    .gallery-card .link-title {
        font-size: 1rem;
        line-height: 1.2;
    }

    .gallery-source-label,
    .card-source-inline {
        font-size: 0.78rem;
    }

    .gallery-tags-row {
        gap: 0.32rem;
        margin-top: 0.42rem;
    }

    .gallery-tag-chip {
        font-size: 0.64rem;
        padding: 0.16rem 0.42rem;
    }

    .button,
    .button-secondary,
    .button-danger {
        min-height: 46px;
        padding: 0.82rem 1rem;
    }

    .actions > .button,
    .actions > .button-secondary,
    .actions > .button-danger,
    .inline-form > .button,
    .inline-form > .button-secondary,
    .inline-form > .button-danger {
        flex: 1 1 100%;
    }

    th,
    td {
        padding: 0.7rem;
    }

    .checkbox-item,
    .checkbox-toggle {
        padding: 0.8rem 0.85rem;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}

@media (max-width: 560px) {
    .header-row {
        padding: 0.75rem 0;
    }

    .notice-bar {
        font-size: 0.72rem;
    }

    .public-site-name-main {
        font-size: 1.05rem;
    }

    .public-site-name-sub,
    .section-kicker,
    .brand-kicker {
        font-size: 0.64rem;
        letter-spacing: 0.15em;
    }

    .page-title {
        font-size: 1.45rem;
    }

    .hero {
        padding: 0.85rem;
    }

    .hero-brand-image,
    .hero-brand-image-transparent {
        width: min(100%, 220px);
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-brand-caption {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .hero-category-chip {
        flex-basis: 100%;
    }

    .hero-search-bar {
        padding: 0.7rem;
        border-radius: 1rem;
    }

    .gallery-card .card-media {
        aspect-ratio: 16 / 10.5;
    }

    .gallery-card .link-title {
        font-size: 0.95rem;
    }

    .ad-slot {
        min-height: 130px;
    }

    .exo-banner-slot {
        min-height: auto;
    }

    .exo-banner-slot ins {
        min-height: auto;
    }

    .gallery-source-label,
    .card-source-inline,
    .card-duration-badge {
        font-size: 0.72rem;
    }

    .gallery-tag-chip {
        font-size: 0.62rem;
        min-height: 22px;
        padding: 0.15rem 0.38rem;
    }

    .hero-brand-lockup,
    .hero-brand-lockup-centered,
    .hero-brand-lockup-centered > div {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .gallery-card-tags-body .gallery-tag-chip,
    .gallery-tags-row .gallery-tag-chip {
        font-size: 0.72rem !important;
        min-height: 38px !important;
        padding: 0.42rem 0.82rem !important;
    }

    .table-card,
    .form-panel,
    .panel,
    .gate-panel,
    .info-box,
    .warning-box,
    .empty-state {
        padding: 0.9rem;
    }
}
