:root {
    --bg: #0b0b10;
    --surface: #15151f;
    --surface-strong: #1d1d2a;
    --surface-soft: #101018;
    --text: #ffffff;
    --muted: #a1a1aa;
    --accent: #e50914;
    --accent-soft: #f43f5e;
    --border: #27272a;
    --success: #22c55e;
    --danger: #f87171;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(229, 9, 20, 0.22), transparent 30%),
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.12), transparent 26%),
        var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

.app-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px 16px 110px;
}

.site-header,
.main-content,
.bottom-nav {
    width: min(100%, var(--container));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0 24px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

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

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.92rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.header-icon-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.header-icon-button__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(229, 9, 20, 0.3);
}

.logout-form {
    margin: 0;
}

.user-pill {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.main-content {
    display: grid;
    gap: 24px;
    flex: 1;
}

.site-footer {
    width: min(100%, var(--container));
    margin: 32px auto 0;
    padding: 28px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
    color: var(--text);
}

.site-footer__top,
.site-footer__bottom {
    display: grid;
    gap: 18px;
}

.site-footer__top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 28px;
    padding-bottom: 22px;
}

.site-footer__eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(229, 9, 20, 0.12);
    color: #f2b3bb;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__brand strong,
.site-footer__column h2 {
    display: block;
    color: var(--text);
}

.site-footer__brand strong {
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.1;
}

.site-footer__brand p,
.site-footer__bottom p {
    margin: 0;
}

.site-footer__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer__column {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.site-footer__column h2 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer__column a,
.site-footer__column p {
    margin: 0;
}

.site-footer__column p {
    font-size: 0.88rem;
}

.site-footer__bottom {
    grid-template-columns: auto 1fr;
    align-items: start;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.flash-success {
    border-color: rgba(34, 197, 94, 0.4);
}

.flash-error {
    border-color: rgba(248, 113, 113, 0.45);
}

.auth-hero,
.content-grid {
    display: grid;
    gap: 24px;
}

.auth-card,
.showcase-card,
.panel,
.empty-state,
.info-card,
.media-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)), var(--surface);
    box-shadow: var(--shadow);
}

.auth-card h1,
.page-hero h1,
.showcase-card h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 0.98;
}

.auth-hero--compact .auth-card h1 {
    font-size: clamp(1.85rem, 5vw, 2.8rem);
}

.eyebrow,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--accent-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.badge--muted,
.badge--outline {
    margin: 0;
    letter-spacing: 0.04em;
}

.badge--muted {
    color: var(--accent-soft);
}

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

.auth-copy,
.section-copy,
.empty-state p,
.info-card p,
.panel p,
.media-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.expandable-copy {
    display: grid;
    gap: 10px;
}

.expandable-copy__text {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.expandable-copy.is-collapsed .expandable-copy__text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expandable-copy__toggle {
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f2b3bb;
    font-weight: 600;
    cursor: pointer;
}

.expandable-copy__toggle:hover {
    color: #ffffff;
}

.panel-form,
.inline-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

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

.field-help {
    margin: -2px 0 0;
    color: #b7b7c2;
    font-size: 0.83rem;
    line-height: 1.5;
}

.field-note {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
}

.field-note--warning {
    color: #f6b4bd;
}

.panel-form input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(7, 7, 12, 0.82);
    color: var(--text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        inset 0 -10px 24px rgba(0, 0, 0, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.panel-form input[type="file"],
.file-input {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(7, 7, 12, 0.72);
    color: #f4f4f5;
    box-shadow: none;
}

.panel-form input[type="file"]::file-selector-button,
.file-input::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.96), rgba(244, 63, 94, 0.86));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.panel-form textarea {
    width: 100%;
    min-height: 112px;
    padding: 16px 16px 15px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        rgba(7, 7, 12, 0.76);
    color: var(--text);
    resize: none;
    line-height: 1.6;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        inset 0 -10px 24px rgba(0, 0, 0, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.panel-select {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(7, 7, 12, 0.82);
    color: var(--text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        inset 0 -10px 24px rgba(0, 0, 0, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.panel-select option {
    color: #111111;
    background: #ffffff;
}

.panel-form input:focus,
.panel-select:focus,
.panel-form textarea:focus {
    outline: none;
    border-color: rgba(229, 9, 20, 0.48);
    box-shadow:
        0 0 0 3px rgba(229, 9, 20, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-form--compact {
    margin-top: 16px;
}

.genre-fieldset {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
}

.genre-fieldset legend {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.genre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.genre-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.genre-chip span {
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.genre-chip input:checked + span {
    background: rgba(229, 9, 20, 0.18);
    border-color: rgba(229, 9, 20, 0.45);
    color: var(--text);
}

.button-primary,
.button-secondary,
.button-accent-soft,
.ghost-link--button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 16px;
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: var(--text);
    font-weight: 700;
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.button-accent-soft {
    border: 1px solid rgba(229, 9, 20, 0.28);
    background: linear-gradient(180deg, rgba(229, 9, 20, 0.16), rgba(244, 63, 94, 0.06));
    color: #fff2f2;
}

.ghost-link,
.ghost-link--button {
    color: var(--muted);
}

.ghost-link--button {
    background: transparent;
    padding: 0;
    min-height: auto;
    justify-content: flex-start;
}

.button-primary:hover,
.button-secondary:hover,
.button-accent-soft:hover,
.ghost-link--button:hover,
.ghost-link:hover {
    opacity: 0.92;
}

.button-share.is-copied {
    border-color: rgba(74, 222, 128, 0.28);
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.12), rgba(34, 197, 94, 0.05));
    color: #f3fff7;
}

.action-icon-button {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 16px;
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.action-icon-button svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: currentColor;
}

.action-icon-button--ghost {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.action-icon-button--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: var(--text);
    box-shadow: 0 12px 24px rgba(229, 9, 20, 0.16);
}

.action-icon-button:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.showcase-card {
    min-height: 320px;
}

.showcase-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(229, 9, 20, 0.22), transparent 54%),
        radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.18), transparent 18%);
}

.showcase-content {
    position: relative;
    z-index: 1;
}

.feature-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
    color: var(--muted);
}

.page-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.page-hero--compact {
    align-items: start;
}

.content-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.empty-state {
    text-align: center;
    display: grid;
    gap: 12px;
    place-items: center;
    min-height: 280px;
}

.empty-state--small {
    min-height: 180px;
}

.empty-state__icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.12);
    color: var(--accent-soft);
    font-size: 2rem;
}

.info-card h2,
.empty-state h2,
.media-card h2 {
    margin: 0;
    font-size: 1.3rem;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(10, 10, 15, 0.92);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
    z-index: 20;
}

.bottom-nav__item {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 6px 7px;
    border-radius: 16px;
    color: var(--muted);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.bottom-nav__icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    line-height: 1;
}

.bottom-nav__icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
    opacity: 0.92;
}

.bottom-nav__label {
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
}

.bottom-nav__item:hover {
    color: #f4f4f5;
    background: rgba(255, 255, 255, 0.05);
}

.bottom-nav__item.is-active {
    color: #fff5f5;
    background: linear-gradient(180deg, rgba(229, 9, 20, 0.24), rgba(244, 63, 94, 0.10));
    box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.28);
}

.bottom-nav__item.is-active .bottom-nav__icon {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.88), rgba(244, 63, 94, 0.72));
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(229, 9, 20, 0.28);
}

.bottom-nav__item:not(.is-active) .bottom-nav__icon {
    color: #d4d4d8;
}

.media-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.community-search-grid {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.search-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 22px;
}

.search-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.search-tab.is-active {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(244, 63, 94, 0.08));
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.24);
}

.search-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-top: 12px;
}

.search-subtabs {
    display: inline-flex;
    gap: 8px;
    margin: 18px 0 20px;
    padding: 5px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.search-subtab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.search-subtab.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.search-inline-form input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(7, 7, 12, 0.82);
    color: var(--text);
}

.search-group-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)), var(--surface);
    box-shadow: var(--shadow);
}

.community-results {
    display: grid;
    gap: 14px;
}

.community-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.community-card__author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.community-card h3,
.community-card p {
    margin: 0;
}

.community-card__topline,
.community-card__meta-row,
.community-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.community-card__meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.community-card__actions form {
    margin: 0;
}

.media-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 18px;
    align-items: start;
}

.media-card--stacked {
    grid-template-columns: 108px 1fr;
}

.media-card__body {
    display: grid;
    gap: 12px;
}

.media-card__poster {
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(229, 9, 20, 0.3), rgba(255, 255, 255, 0.04));
    overflow: hidden;
}

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

.media-card__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.attribution-note {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.attribution-note a {
    color: var(--text);
}

.card-actions-grid {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

.search-filters--compact {
    margin-top: 12px;
}

.search-filters__grid {
    display: grid;
    gap: 14px;
}

.search-filters__title {
    grid-column: span 2;
}

.action-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(255, 255, 255, 0.02);
}

.action-card textarea,
.action-card .panel-select,
.action-card input[type="text"],
.action-card input[type="search"],
.action-card input[type="number"] {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(7, 7, 12, 0.88);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        inset 0 -12px 28px rgba(0, 0, 0, 0.12);
}

.action-card textarea::placeholder,
.action-card input::placeholder {
    color: #9fa0ab;
}

.action-card textarea:focus,
.action-card .panel-select:focus,
.action-card input:focus {
    border-color: rgba(229, 9, 20, 0.48);
    box-shadow:
        0 0 0 3px rgba(229, 9, 20, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.action-card h3 {
    margin: 0;
    font-size: 1rem;
}

.action-card__intro {
    margin: -2px 0 2px;
    color: #b6b6c2;
    font-size: 0.88rem;
    line-height: 1.55;
}

.action-card label {
    color: #c7c7d1;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.feed-list,
.watchlist-grid {
    display: grid;
    gap: 18px;
}

.feed-loader {
    display: grid;
    gap: 10px;
    place-items: center;
    padding: 18px 0 4px;
    color: var(--muted);
}

.feed-loader.is-hidden,
.feed-loader__button.is-hidden {
    display: none;
}

.feed-loader__spinner {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(229, 9, 20, 0.9);
    animation: spin 0.8s linear infinite;
}

.feed-loader:not(.is-loading) .feed-loader__spinner {
    display: none;
}

.feed-loader__button {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}

.feed-card,
.watchlist-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)), var(--surface);
    box-shadow: var(--shadow);
}

.feed-card__poster,
.watchlist-card__poster {
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.feed-card__poster img,
.watchlist-card__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-card__body,
.watchlist-card__body {
    display: grid;
    gap: 10px;
}

.feed-card__topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.88), rgba(244, 63, 94, 0.56));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.16);
}

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

.user-avatar--sm {
    width: 40px;
    height: 40px;
    font-size: 0.96rem;
}

.user-avatar--md {
    width: 52px;
    height: 52px;
    font-size: 1.08rem;
}

.feed-card__body h2,
.watchlist-card__body h2 {
    margin: 0;
    font-size: 1.35rem;
}

.feed-card__meta,
.watchlist-source {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.watchlist-source a {
    color: var(--text);
}

.feed-quote {
    margin: 0;
    padding: 14px 16px;
    border-left: 3px solid rgba(229, 9, 20, 0.6);
    border-radius: 0 14px 14px 0;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.feed-card__stats {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.vote-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d7d7df;
}

.vote-stat strong {
    font-size: 1rem;
}

.vote-stat svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
    flex: 0 0 auto;
}

.vote-stat:first-child {
    color: #4ade80;
}

.vote-stat--down {
    color: #fb7185;
}

.feed-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.feed-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feed-card__actions form {
    margin: 0;
}

.feed-card__actions .button-primary,
.feed-card__actions .button-secondary {
    min-width: 170px;
}

.feed-card__actions .action-icon-button {
    width: 46px;
    height: 46px;
}

.feed-card--detail {
    grid-template-columns: 180px 1fr;
}

.vote-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vote-group form {
    margin: 0;
}

.vote-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(74, 222, 128, 0.26);
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.16), rgba(34, 197, 94, 0.07));
    color: #f3fff7;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.vote-button__icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.vote-button__icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.vote-button:not(.vote-button--down) .vote-button__icon {
    color: #4ade80;
}

.vote-button--down {
    border-color: rgba(251, 113, 133, 0.24);
    background: linear-gradient(180deg, rgba(251, 113, 133, 0.16), rgba(244, 63, 94, 0.07));
    color: #fff3f5;
}

.vote-button--down .vote-button__icon {
    color: #fb7185;
}

.vote-button:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.vote-button:not(.vote-button--down):hover {
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.24), rgba(34, 197, 94, 0.1));
}

.vote-button--down:hover {
    background: linear-gradient(180deg, rgba(251, 113, 133, 0.24), rgba(244, 63, 94, 0.1));
}

.vote-button.is-active {
    border-color: rgba(74, 222, 128, 0.42);
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.28), rgba(34, 197, 94, 0.14));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.18), 0 10px 24px rgba(34, 197, 94, 0.16);
}

.vote-button.is-active .vote-button__icon {
    color: #ffffff;
}

.vote-button--down.is-active {
    border-color: rgba(251, 113, 133, 0.38);
    background: linear-gradient(180deg, rgba(251, 113, 133, 0.26), rgba(244, 63, 94, 0.12));
    box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.18), 0 10px 24px rgba(244, 63, 94, 0.16);
}

.profile-stats {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}

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

.profile-stats-strip--hero {
    width: 100%;
}

.stat-chip {
    display: grid;
    min-width: 0;
    gap: 4px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)), var(--surface);
    box-shadow: var(--shadow);
}

.stat-chip strong {
    font-size: 1.7rem;
    line-height: 1;
}

.stat-chip span {
    color: var(--muted);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-heading--compact {
    margin-bottom: 14px;
}

.panel-heading h2 {
    margin: 0 0 8px;
}

.panel-heading p {
    margin: 0;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    color: #e9e9ee;
}

.toggle-row--compact {
    margin-top: 4px;
    padding: 12px 14px;
}

.toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.notification-list {
    display: grid;
    gap: 14px;
}

.notification-card {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)), var(--surface);
    box-shadow: var(--shadow);
}

.notification-card.is-unread {
    border-color: rgba(229, 9, 20, 0.24);
}

.notification-card__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 9px;
}

.notification-card.is-unread .notification-card__dot {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    box-shadow: 0 0 0 6px rgba(229, 9, 20, 0.12);
}

.notification-card__body {
    display: grid;
    gap: 10px;
}

.notification-card__body h2,
.notification-card__body p {
    margin: 0;
}

.notification-card__body p {
    color: var(--muted);
    line-height: 1.6;
}

.notification-card__topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.notification-card__topline span {
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.request-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.request-card h3,
.request-card p {
    margin: 0;
}

.request-card p {
    color: var(--muted);
}

.request-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-hero-card {
    display: grid;
    gap: 20px;
    padding: 26px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(229, 9, 20, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        var(--surface);
    box-shadow: var(--shadow);
}

.profile-hero-card__identity,
.profile-hero-card__aside,
.profile-hero-card__copy {
    display: grid;
    gap: 16px;
}

.profile-avatar {
    width: 104px;
    height: 104px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.88), rgba(244, 63, 94, 0.56));
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(229, 9, 20, 0.18);
}

.profile-avatar.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-hero-card__copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    line-height: 0.98;
}

.profile-hero-card__bio {
    margin: 0;
    max-width: 58ch;
    color: var(--muted);
    line-height: 1.7;
}

.privacy-pill {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.privacy-pill__label {
    color: var(--text);
    font-weight: 700;
}

.privacy-pill__hint summary {
    color: #f2b3bb;
    cursor: pointer;
    list-style: none;
}

.privacy-pill__hint summary::-webkit-details-marker {
    display: none;
}

.privacy-pill__hint p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.profile-layout {
    display: grid;
    gap: 20px;
}

.profile-layout__main,
.profile-layout__side,
.profile-editor {
    display: grid;
    gap: 20px;
}

.profile-editor__grid {
    display: grid;
    gap: 16px;
}

.profile-editor__grid--media {
    align-items: start;
}

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

.privacy-option {
    position: relative;
    display: inline-flex;
}

.privacy-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.privacy-option span {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.privacy-option input:checked + span {
    background: rgba(229, 9, 20, 0.16);
    border-color: rgba(229, 9, 20, 0.36);
    color: #fff;
}

.panel--tight {
    padding: 20px;
}

.panel--logout {
    margin-top: 6px;
}

.inline-form--start {
    justify-items: start;
}

.legal-page {
    display: grid;
    gap: 18px;
}

.legal-card {
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)), var(--surface);
    box-shadow: var(--shadow);
}

.legal-card h2,
.legal-card p {
    margin: 0;
}

.legal-card h2 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1.15rem;
}

.legal-card p {
    color: var(--muted);
    line-height: 1.7;
}

.legal-card p + p {
    margin-top: 10px;
}

.legal-card--warning {
    border-color: rgba(244, 63, 94, 0.22);
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.08), rgba(255, 255, 255, 0.02)), var(--surface);
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 15, 0.96);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__body {
    display: grid;
    gap: 8px;
}

.cookie-banner__body strong {
    color: var(--text);
}

.cookie-banner__body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 860px) {
    .app-shell {
        padding: 28px 28px 36px;
    }

    .profile-hero-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .profile-hero-card__identity {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

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

    .profile-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
        align-items: start;
    }

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

    .cookie-banner {
        left: 50%;
        right: auto;
        bottom: 24px;
        width: min(760px, calc(100% - 48px));
        transform: translateX(-50%);
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .cookie-banner__actions {
        justify-content: flex-end;
    }

    .auth-hero {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: stretch;
    }

    .bottom-nav {
        position: static;
        transform: none;
        width: min(100%, var(--container));
        margin: 0 auto 20px;
        background: transparent;
        border: 0;
        backdrop-filter: none;
        padding: 0;
        justify-content: start;
        grid-template-columns: repeat(4, max-content);
    }

    .bottom-nav__item {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        justify-items: start;
        padding: 10px 16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.03);
        border-radius: 999px;
    }

    .bottom-nav__icon {
        width: 24px;
        height: 24px;
    }

    .bottom-nav__label {
        font-size: 0.9rem;
    }

    .bottom-nav__item.is-active {
        background: linear-gradient(135deg, rgba(229, 9, 20, 0.20), rgba(244, 63, 94, 0.08));
        border-color: rgba(229, 9, 20, 0.34);
        box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.18);
    }

    .bottom-nav__item.is-active .bottom-nav__label {
        font-weight: 700;
    }

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

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

    .search-filters__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(140px, 0.5fr) minmax(110px, 0.34fr) minmax(160px, 0.56fr) minmax(180px, 0.62fr);
        align-items: end;
    }

    .search-filters__title {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .brand-copy span {
        display: none;
    }

    .header-user {
        gap: 8px;
    }

    .user-pill {
        padding: 9px 12px;
    }

    .feed-card,
    .watchlist-card,
    .media-card--stacked {
        grid-template-columns: 1fr;
    }

    .profile-stats-strip {
        grid-template-columns: 1fr;
    }

    .feed-card__poster,
    .watchlist-card__poster,
    .media-card__poster {
        max-width: 140px;
    }

    .panel-heading,
    .notification-card__topline {
        grid-template-columns: 1fr;
        display: grid;
    }

    .search-inline-form {
        grid-template-columns: 1fr;
    }

    .search-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-subtabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-avatar {
        width: 88px;
        height: 88px;
        border-radius: 24px;
    }

    .site-footer__top,
    .site-footer__grid,
    .site-footer__bottom {
        grid-template-columns: 1fr;
    }
}
