:root {
    --of-red: #ef0016;
    --of-red-dark: #c90013;
    --of-ink: #0d0d0f;
    --of-ink-soft: #17171b;
    --of-panel: #ffffff;
    --of-bg: #f4f4f6;
    --of-muted: #6e6e78;
    --of-line: #e7e7eb;
    --of-white: #ffffff;
    --of-shadow: 0 18px 48px rgba(14, 14, 18, 0.11);
    --of-header-height: 72px;
    --of-radius: 22px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--of-bg);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--of-bg);
    color: var(--of-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

a:hover {
    color: var(--of-red);
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(239, 0, 22, 0.3);
    outline-offset: 3px;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

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

.hidden {
    display: none !important;
}

.muted,
.meta {
    color: var(--of-muted);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--of-header-height);
    border-bottom: 1px solid rgba(20, 20, 24, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header__inner {
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-logo {
    width: 176px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.site-nav__link {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: #38383f;
    font-size: 0.94rem;
    font-weight: 650;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    background: #f0f0f3;
    color: var(--of-ink);
}

.site-nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--of-red);
    transform: translateX(-50%);
}

.site-nav__link--muted {
    display: none;
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.header-creator-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    background: var(--of-ink);
    color: var(--of-white);
    font-size: 0.9rem;
    font-weight: 750;
    transition: transform 160ms ease, background 160ms ease;
}

.header-creator-link:hover {
    color: var(--of-white);
    background: var(--of-red);
    transform: translateY(-1px);
}

.site-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f4;
    cursor: pointer;
}

.site-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--of-ink);
    transition: transform 180ms ease, opacity 180ms ease;
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.site-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Generic public pages */
main.container {
    padding-block: 38px 64px;
}

.page-hero {
    max-width: 780px;
    margin: 0 auto 24px;
    text-align: center;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.page-hero p {
    margin: 0;
    color: var(--of-muted);
    font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.card,
.page-card {
    border: 1px solid var(--of-line);
    border-radius: var(--of-radius);
    background: var(--of-panel);
    box-shadow: 0 10px 32px rgba(18, 18, 22, 0.05);
    overflow: hidden;
}

.page-card {
    max-width: 860px;
    margin: 0 auto 20px;
    padding: clamp(22px, 4vw, 42px);
}

.page-card h2,
.page-card h3 {
    margin-top: 0;
}

.page-card p:last-child {
    margin-bottom: 0;
}

.button,
.m-load-more {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--of-line);
    border-radius: 999px;
    background: var(--of-white);
    color: var(--of-ink);
    font-weight: 750;
    cursor: pointer;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button:hover,
.m-load-more:hover {
    transform: translateY(-1px);
    border-color: #c9c9d0;
}

.button.primary,
.button--primary {
    border-color: var(--of-red);
    background: var(--of-red);
    color: var(--of-white);
}

.button.primary:hover,
.button--primary:hover {
    background: var(--of-red-dark);
    color: var(--of-white);
}

.creator-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 860px;
    margin: 0 auto 24px;
}

.creator-stat-card {
    padding: 22px;
    border: 1px solid var(--of-line);
    border-radius: 18px;
    background: var(--of-panel);
    text-align: center;
}

.creator-stat-label,
.creator-stat-value {
    display: block;
}

.creator-stat-label {
    color: var(--of-muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.creator-stat-value {
    margin-top: 6px;
    font-size: 1.7rem;
    font-weight: 850;
}

/* Responsive feed page */
.feed-page {
    background: #ededf0;
}

.feed-app {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(420px, 620px) minmax(210px, 300px);
    gap: clamp(22px, 3vw, 42px);
    align-items: start;
    padding: 28px 0 64px;
}

.feed-sidebar,
.feed-context {
    position: sticky;
    top: calc(var(--of-header-height) + 28px);
}

.feed-sidebar__panel,
.feed-context__panel {
    border: 1px solid var(--of-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(14, 14, 18, 0.05);
    overflow: hidden;
}

.feed-sidebar__intro {
    padding: 24px 22px 20px;
}

.feed-sidebar__eyebrow,
.feed-context__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--of-red);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.feed-sidebar h1 {
    margin: 0;
    font-size: clamp(1.6rem, 2.5vw, 2.35rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.feed-sidebar p,
.feed-context p {
    margin: 12px 0 0;
    color: var(--of-muted);
    font-size: 0.94rem;
}

.feed-sidebar__links {
    display: grid;
    padding: 10px;
    border-top: 1px solid var(--of-line);
}

.feed-sidebar__links a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 13px;
    border-radius: 13px;
    font-size: 0.94rem;
    font-weight: 700;
}

.feed-sidebar__links a:hover {
    background: #f5f5f7;
    color: var(--of-ink);
}

.feed-sidebar__links svg,
.mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.feed-column {
    min-width: 0;
}

.feed-toolbar {
    position: sticky;
    top: calc(var(--of-header-height) + 12px);
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    padding: 9px;
    border: 1px solid rgba(220, 220, 226, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 36px rgba(14, 14, 18, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.feed-toolbar__search {
    position: relative;
    min-width: 0;
}

.feed-toolbar__search svg {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 18px;
    height: 18px;
    color: #83838c;
    transform: translateY(-50%);
    pointer-events: none;
}

.feed-search-input,
.feed-toolbar select,
.m-feed-search,
.m-sort-control select {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f2f2f4;
    color: var(--of-ink);
}

.feed-search-input {
    padding: 0 14px 0 42px;
}

.feed-toolbar select {
    min-width: 142px;
    padding: 0 34px 0 13px;
    cursor: pointer;
}

.feed-toolbar__submit {
    min-width: 84px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: var(--of-ink);
    color: var(--of-white);
    font-weight: 800;
    cursor: pointer;
}

.feed {
    display: grid;
    gap: 20px;
}

.feed-post {
    position: relative;
    width: 100%;
    border-radius: 24px;
    background: #08080a;
    box-shadow: var(--of-shadow);
    overflow: hidden;
    isolation: isolate;
}

.feed-post__stage {
    position: relative;
    height: min(78vh, 800px);
    min-height: 620px;
    background: #08080a;
    overflow: hidden;
}

.feed-post__media-link,
.feed-post__video-button {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.feed-post__media,
.feed-post__video,
.feed-post__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111116;
}

.feed-post__video {
    transform: translateZ(0);
}

.feed-post__fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #c8c8cf;
    background: radial-gradient(circle at 50% 30%, #25252d 0, #111116 52%, #08080a 100%);
    font-weight: 700;
}

.feed-post__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.26), transparent 22%),
        linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.05) 48%, transparent 68%);
}

.feed-post__type {
    position: absolute;
    z-index: 4;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(8, 8, 10, 0.48);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    backdrop-filter: blur(12px);
}

.feed-post__type-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--of-red);
    box-shadow: 0 0 0 4px rgba(239, 0, 22, 0.18);
}

.feed-post__sound,
.feed-post__play-state {
    position: absolute;
    z-index: 5;
    top: 14px;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(8, 8, 10, 0.52);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.feed-post__sound {
    right: 14px;
}

.feed-post__play-state {
    right: 58px;
}

.feed-post__sound svg,
.feed-post__play-state svg,
.feed-post__action svg {
    width: 20px;
    height: 20px;
}

.feed-post__content {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 84px;
    bottom: 0;
    padding: 28px 18px 24px;
    color: white;
}

.feed-post__creator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin-bottom: 9px;
    color: white;
    font-size: 0.94rem;
    font-weight: 850;
}

.feed-post__creator:hover {
    color: white;
    text-decoration: underline;
}

.feed-post__creator-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: linear-gradient(145deg, var(--of-red), #6a0010);
    color: white;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.feed-post__title {
    margin: 0;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.feed-post__title a {
    color: white;
}

.feed-post__title a:hover {
    color: white;
    text-decoration: underline;
}

.feed-post__description {
    display: -webkit-box;
    margin: 9px 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.93rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.feed-post__permalink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    color: white;
    font-size: 0.84rem;
    font-weight: 800;
}

.feed-post__permalink:hover {
    color: white;
    text-decoration: underline;
}

.feed-post__permalink svg {
    width: 16px;
    height: 16px;
}

.feed-post__rail {
    position: absolute;
    z-index: 5;
    right: 12px;
    bottom: 18px;
    display: grid;
    gap: 13px;
    justify-items: center;
}

.feed-post__action-wrap {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.feed-post__action {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(15, 15, 18, 0.64);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform 150ms ease, background 150ms ease;
}

.feed-post__action:hover {
    color: white;
    background: rgba(28, 28, 33, 0.88);
    transform: scale(1.05);
}

.feed-post__action.liked,
.feed-post__action[data-liked="1"] {
    border-color: rgba(239, 0, 22, 0.65);
    background: var(--of-red);
}

.feed-post__action-label {
    max-width: 66px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1;
    text-align: center;
}

.feed-post__source-link {
    display: none;
}

.feed-empty {
    padding: 56px 28px;
    text-align: center;
}

.feed-loading {
    display: none;
    height: 160px;
    place-items: center;
    color: var(--of-muted);
}

.feed-loading.is-visible {
    display: grid;
}

.feed-loading__spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #d9d9df;
    border-top-color: var(--of-red);
    border-radius: 50%;
    animation: of-spin 0.8s linear infinite;
}

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

.feed-load-more {
    display: flex;
    justify-content: center;
    padding: 18px 0;
}

.feed-end-note {
    padding: 28px 18px;
    color: var(--of-muted);
    font-size: 0.84rem;
    text-align: center;
}

.feed-context__panel {
    padding: 22px;
}

.feed-context__list {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.feed-context__item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
}

.feed-context__number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #f1f1f4;
    font-size: 0.82rem;
    font-weight: 850;
}

.feed-context__item strong,
.feed-context__item span {
    display: block;
}

.feed-context__item strong {
    font-size: 0.91rem;
}

.feed-context__item span {
    margin-top: 2px;
    color: var(--of-muted);
    font-size: 0.78rem;
}

.mobile-bottom-nav {
    display: none;
}

/* Generic legacy card feed on creator and post pages */
body:not(.feed-page) .feed {
    width: min(860px, 100%);
    margin-inline: auto;
}

body:not(.feed-page) .feed > .card,
body:not(.feed-page) main > .card[data-content-id] {
    margin-bottom: 22px;
}

.card-media {
    position: relative;
    min-height: 240px;
    background: #0c0c0f;
}

.card-media img,
.card-media video {
    width: 100%;
    max-height: min(76vh, 780px);
    object-fit: contain;
    margin: auto;
}

.card-body {
    padding: clamp(18px, 3vw, 26px);
}

.card-title {
    margin: 0;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.card-desc {
    margin: 9px 0 0;
    color: var(--of-muted);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.creator-link {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--of-red);
    font-weight: 800;
}

/* Modal retained for individual post and creator pages */
.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.86);
}

.modal.open,
.modal.is-open {
    display: grid;
}

.modal-content {
    position: relative;
    width: min(920px, 100%);
    max-height: 92dvh;
    overflow: auto;
    border-radius: 20px;
    background: #08080a;
}

.modal-content img,
.modal-content video,
.modal-content iframe {
    width: 100%;
    max-height: 88dvh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.64);
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--of-line);
    background: var(--of-white);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 130px;
    padding-block: 28px;
}

.site-footer p {
    margin: 5px 0 0;
    color: var(--of-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    font-weight: 750;
}

/* Skeletons */
.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #e2e2e7;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: translateX(-100%);
    animation: of-shimmer 1.35s infinite;
}

.skeleton.media {
    min-height: 320px;
}

.skeleton.text {
    height: 14px;
    margin-bottom: 9px;
}

.skeleton-text-short {
    width: 58%;
}

@keyframes of-shimmer {
    to { transform: translateX(100%); }
}

@media (max-width: 1080px) {
    .feed-app {
        grid-template-columns: 190px minmax(420px, 620px);
        justify-content: center;
    }

    .feed-context {
        display: none;
    }
}

@media (max-width: 820px) {
    :root {
        --of-header-height: 62px;
    }

    .container {
        width: min(100% - 28px, 760px);
    }

    .site-header__inner {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }

    .site-logo {
        width: 142px;
    }

    .site-menu-toggle {
        display: block;
    }

    .header-creator-link {
        display: none;
    }

    .site-nav {
        position: fixed;
        top: var(--of-header-height);
        left: 14px;
        right: 14px;
        display: grid;
        gap: 5px;
        padding: 12px;
        border: 1px solid var(--of-line);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 24px 70px rgba(14, 14, 18, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(0.98);
        transform-origin: top;
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .site-nav__link {
        min-height: 48px;
        border-radius: 12px;
    }

    .site-nav__link.is-active::after {
        left: auto;
        right: 15px;
        bottom: 50%;
        transform: translateY(50%);
    }

    .site-nav__link--muted {
        display: block;
    }

    .feed-app {
        width: min(650px, calc(100% - 28px));
        grid-template-columns: minmax(0, 1fr);
        padding-top: 18px;
    }

    .feed-sidebar,
    .feed-context {
        display: none;
    }

    .feed-toolbar {
        top: calc(var(--of-header-height) + 8px);
    }
}

@media (max-width: 600px) {
    :root {
        --of-header-height: 56px;
    }

    body.feed-page {
        height: 100dvh;
        overflow: hidden;
    }

    .site-header {
        height: var(--of-header-height);
    }

    .site-header__inner {
        width: 100%;
        padding: 0 13px;
    }

    .site-logo {
        width: 126px;
    }

    .site-menu-toggle {
        width: 40px;
        height: 40px;
    }

    body.feed-page .site-footer {
        display: none;
    }

    .feed-app {
        width: 100%;
        height: calc(100dvh - var(--of-header-height));
        padding: 0 0 62px;
        display: block;
        overflow: hidden;
    }

    .feed-column {
        height: 100%;
        display: grid;
        grid-template-rows: 48px minmax(0, 1fr);
    }

    .feed-toolbar {
        position: relative;
        top: auto;
        z-index: 20;
        grid-template-columns: minmax(0, 1fr) 118px;
        gap: 7px;
        height: 48px;
        margin: 0;
        padding: 6px 8px;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
        background: #0b0b0e;
        box-shadow: none;
        backdrop-filter: none;
    }

    .feed-toolbar__search svg {
        left: 11px;
        color: #a5a5ad;
    }

    .feed-search-input,
    .feed-toolbar select {
        min-height: 36px;
        border: 1px solid #29292f;
        border-radius: 999px;
        background: #17171b;
        color: white;
        font-size: 0.82rem;
    }

    .feed-search-input {
        padding-left: 36px;
    }

    .feed-toolbar select {
        min-width: 0;
        padding-left: 12px;
    }

    .feed-toolbar__submit {
        display: none;
    }

    .feed {
        display: block;
        height: 100%;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scroll-snap-type: y mandatory;
        scrollbar-width: none;
        background: #08080a;
    }

    .feed::-webkit-scrollbar {
        display: none;
    }

    .feed-post {
        min-height: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .feed-post__stage {
        min-height: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    .feed-post__type {
        top: 11px;
        left: 11px;
        min-height: 29px;
        font-size: 0.68rem;
    }

    .feed-post__sound,
    .feed-post__play-state {
        top: 9px;
        width: 36px;
        height: 36px;
    }

    .feed-post__sound {
        right: 10px;
    }

    .feed-post__play-state {
        right: 52px;
    }

    .feed-post__content {
        right: 78px;
        padding: 24px 14px 20px;
    }

    .feed-post__title {
        font-size: 1.17rem;
    }

    .feed-post__description {
        font-size: 0.87rem;
        -webkit-line-clamp: 2;
    }

    .feed-post__rail {
        right: 9px;
        bottom: 18px;
        gap: 11px;
    }

    .feed-post__action {
        width: 46px;
        height: 46px;
    }

    .feed-post__action-label {
        font-size: 0.68rem;
    }

    .feed-loading,
    .feed-load-more,
    .feed-end-note,
    .feed-empty {
        min-height: 100%;
        scroll-snap-align: start;
        background: #0b0b0e;
        color: #d5d5da;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 1200;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        height: calc(62px + env(safe-area-inset-bottom));
        padding: 5px 8px env(safe-area-inset-bottom);
        border-top: 1px solid #27272d;
        background: rgba(8, 8, 10, 0.96);
        backdrop-filter: blur(18px);
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 2px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #a5a5ad;
        font-size: 0.64rem;
        font-weight: 700;
        cursor: pointer;
    }

    .mobile-bottom-nav a.is-active,
    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav button:hover {
        color: white;
    }

    main.container {
        padding-block: 26px 50px;
    }

    .page-hero {
        margin-bottom: 18px;
    }

    .page-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .creator-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

/* Individual post player */
.post-page {
    background:
        radial-gradient(circle at 12% 10%, rgba(239, 0, 22, 0.08), transparent 28%),
        #f4f4f6;
}

.single-post-page {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
    padding: 24px 0 64px;
}

.single-post-page__topbar {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin-bottom: 14px;
}

.single-post-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px 0 10px;
    border: 1px solid var(--of-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #29292f;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 8px 28px rgba(14, 14, 18, 0.06);
}

.single-post-back svg {
    width: 20px;
    height: 20px;
}

.single-post {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 24px;
    align-items: start;
}

.single-post__visual,
.single-post__details {
    min-width: 0;
}

.single-player {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: min(78dvh, 860px);
    min-height: 600px;
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 32%, #29292f 0, #111116 48%, #070709 100%);
    box-shadow: 0 26px 80px rgba(10, 10, 14, 0.24);
    isolation: isolate;
}

.single-player::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(239, 0, 22, 0.12), transparent 35%);
}

.single-player__video,
.single-player__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #070709;
}

.single-player__embed {
    width: min(100%, 620px);
    max-height: 100%;
    overflow: auto;
    padding: 18px;
}

.single-player__embed iframe,
.single-player__embed blockquote {
    max-width: 100% !important;
    margin-inline: auto !important;
}

.single-player__missing {
    color: #d5d5da;
    font-weight: 800;
}

.single-player__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 22%),
        linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 26%);
    opacity: 0.92;
    transition: opacity 180ms ease;
}

.single-player.is-playing:not(.controls-visible) .single-player__scrim {
    opacity: 0.2;
}

.single-player__tap-target {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.single-player__type {
    position: absolute;
    z-index: 6;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(8, 8, 10, 0.54);
    color: white;
    font-size: 0.73rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(14px);
}

.single-player__type span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--of-red);
    box-shadow: 0 0 0 4px rgba(239, 0, 22, 0.2);
}

.single-player__top-controls {
    position: absolute;
    z-index: 7;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    opacity: 1;
    transition: opacity 180ms ease, transform 180ms ease;
}

.single-player__icon-button,
.single-player__control-button,
.single-player__centre-play {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(8, 8, 10, 0.62);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(14px);
}

.single-player__icon-button {
    width: 40px;
    height: 40px;
}

.single-player__icon-button svg,
.single-player__control-button svg {
    width: 20px;
    height: 20px;
}

.single-player__centre-play {
    position: absolute;
    z-index: 7;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    border-width: 2px;
    background: rgba(8, 8, 10, 0.7);
    transform: translate(-50%, -50%);
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.single-player__centre-play:hover {
    background: var(--of-red);
    transform: translate(-50%, -50%) scale(1.04);
}

.single-player__centre-play svg {
    width: 36px;
    height: 36px;
}

.single-player__centre-play.is-playing {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    pointer-events: none;
}

.single-player.controls-visible .single-player__centre-play.is-playing {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(0.78);
    pointer-events: auto;
}

.single-player__controls {
    position: absolute;
    z-index: 8;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
    grid-template-columns: 42px minmax(80px, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(8, 8, 10, 0.68);
    color: white;
    opacity: 1;
    transform: translateY(0);
    backdrop-filter: blur(16px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.single-player.is-playing:not(.controls-visible) .single-player__controls,
.single-player.is-playing:not(.controls-visible) .single-player__top-controls {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.single-player__control-button {
    width: 38px;
    height: 38px;
}

.single-player__progress {
    width: 100%;
    height: 5px;
    margin: 0;
    accent-color: var(--of-red);
    cursor: pointer;
}

.single-player__time {
    min-width: 92px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.single-post__details {
    position: sticky;
    top: calc(var(--of-header-height) + 22px);
    padding: 24px;
    border: 1px solid rgba(20, 20, 24, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 66px rgba(14, 14, 18, 0.1);
}

.single-post__creator {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--of-ink);
}

.single-post__creator:hover {
    color: var(--of-ink);
}

.single-post__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 3px solid white;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--of-red), #65000c);
    color: white;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 7px 24px rgba(239, 0, 22, 0.2);
}

.single-post__creator strong,
.single-post__creator small {
    display: block;
}

.single-post__creator strong {
    font-size: 0.96rem;
}

.single-post__creator small {
    margin-top: 2px;
    color: var(--of-muted);
    font-size: 0.77rem;
}

.single-post__copy {
    margin-top: 25px;
}

.single-post__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--of-red);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.single-post__copy h1 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.single-post__copy p {
    margin: 13px 0 0;
    color: var(--of-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.single-post__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
}

.single-post__action {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 92px;
    padding: 12px 6px;
    border: 1px solid var(--of-line);
    border-radius: 16px;
    background: #f6f6f8;
    color: var(--of-ink);
    cursor: pointer;
    text-align: center;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

button.single-post__action:hover {
    border-color: #d2d2d8;
    background: white;
    transform: translateY(-2px);
}

.single-post__action.liked,
.single-post__action[data-liked="1"] {
    border-color: rgba(239, 0, 22, 0.28);
    background: rgba(239, 0, 22, 0.08);
    color: var(--of-red);
}

.single-post__action:disabled {
    opacity: 0.72;
    cursor: wait;
}

.single-post__action--static {
    cursor: default;
}

.single-post__action-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
}

.single-post__action-icon svg {
    width: 24px;
    height: 24px;
}

.single-post__action strong,
.single-post__action small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-post__action strong {
    font-size: 0.82rem;
    line-height: 1.1;
}

.single-post__action small {
    margin-top: 3px;
    color: var(--of-muted);
    font-size: 0.67rem;
}

.single-post__source {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: var(--of-ink);
    color: white;
    font-weight: 850;
    cursor: pointer;
}

.single-post__source:hover {
    background: var(--of-red);
    color: white;
}

.single-post__source svg {
    width: 19px;
    height: 19px;
}

.single-post__hint {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: #f3f3f5;
}

.single-post__hint strong,
.single-post__hint span {
    display: block;
}

.single-post__hint strong {
    font-size: 0.79rem;
}

.single-post__hint span {
    margin-top: 4px;
    color: var(--of-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

/* Keep the complete video visible when the custom player enters fullscreen. */
.single-player:fullscreen,
.single-player:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0;
    background: #000;
    box-shadow: none;
}

.single-player:fullscreen .single-player__video,
.single-player:-webkit-full-screen .single-player__video,
.single-player__video:fullscreen,
.single-player__video:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #000;
}

.single-player:fullscreen .single-player__image,
.single-player:-webkit-full-screen .single-player__image {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.single-player:fullscreen .single-player__controls,
.single-player:-webkit-full-screen .single-player__controls {
    bottom: max(18px, env(safe-area-inset-bottom));
}

@media (max-width: 900px) {
    .single-post {
        grid-template-columns: minmax(0, 1fr);
        width: min(720px, 100%);
        margin-inline: auto;
    }

    .single-post__details {
        position: static;
    }

    .single-player {
        height: min(74dvh, 760px);
    }
}

@media (max-width: 600px) {
    .post-page .site-header {
        background: rgba(8, 8, 10, 0.96);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .post-page .site-menu-toggle {
        background: #202026;
    }

    .post-page .site-menu-toggle span {
        background: white;
    }

    .post-page .site-logo {
        filter: brightness(0) invert(1);
    }

    .single-post-page {
        width: 100%;
        padding: 0 0 38px;
    }

    .single-post-page__topbar {
        min-height: 48px;
        margin: 0;
        padding: 6px 10px;
        background: #0b0b0e;
    }

    .single-post-back {
        min-height: 36px;
        border-color: #29292f;
        background: #17171b;
        color: white;
        box-shadow: none;
    }

    .single-post-back:hover {
        color: white;
    }

    .single-post {
        display: block;
    }

    .single-player {
        height: calc(100dvh - var(--of-header-height) - 48px);
        min-height: 460px;
        max-height: 820px;
        border-radius: 0;
        box-shadow: none;
    }

    .single-player__centre-play {
        width: 72px;
        height: 72px;
    }

    .single-player__centre-play svg {
        width: 31px;
        height: 31px;
    }

    .single-player__controls {
        left: 9px;
        right: 9px;
        bottom: 9px;
        grid-template-columns: 38px minmax(70px, 1fr) auto;
        gap: 8px;
        min-height: 52px;
        padding: 6px 9px;
        border-radius: 15px;
    }

    .single-player__time {
        min-width: 78px;
        font-size: 0.66rem;
    }

    .single-player__type {
        top: 11px;
        left: 10px;
    }

    .single-player__top-controls {
        top: 9px;
        right: 9px;
    }

    .single-player__icon-button {
        width: 37px;
        height: 37px;
    }

    .single-post__details {
        margin: 0;
        padding: 21px 15px 26px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .single-post__copy {
        margin-top: 20px;
    }

    .single-post__copy h1 {
        font-size: 1.55rem;
    }

    .single-post__actions {
        margin-top: 20px;
    }

    .single-post__action {
        min-height: 86px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .single-player__centre-play,
    .single-player__controls,
    .single-player__top-controls,
    .single-post__action {
        transition: none;
    }
}

/* HilltopAds VAST sponsored feed cards */
.feed-post--sponsored {
    background: #09090c;
}

.sponsored-post__stage {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(239, 0, 22, 0.2), transparent 32%),
        radial-gradient(circle at 82% 72%, rgba(102, 51, 255, 0.18), transparent 34%),
        linear-gradient(145deg, #16161d, #08080a 66%);
}

.sponsored-post__content-video,
.sponsored-post__ad-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sponsored-post__content-video {
    object-fit: contain;
    background: #000;
}

.sponsored-post__ad-container {
    z-index: 4;
    overflow: hidden;
}

.sponsored-post__placeholder,
.sponsored-post__loading,
.sponsored-post__message,
.sponsored-post__complete {
    position: relative;
    z-index: 6;
    display: grid;
    justify-items: center;
    width: min(440px, calc(100% - 44px));
    padding: 34px 28px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;
    background: rgba(10, 10, 14, 0.78);
    color: white;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.sponsored-post__placeholder[hidden],
.sponsored-post__loading[hidden],
.sponsored-post__message[hidden],
.sponsored-post__complete[hidden] {
    display: none;
}

.sponsored-post__mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--of-red);
    color: white;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.sponsored-post__eyebrow {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.sponsored-post__placeholder h2,
.sponsored-post__message strong,
.sponsored-post__complete strong {
    margin: 8px 0 0;
    color: white;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.05;
}

.sponsored-post__placeholder p,
.sponsored-post__message span,
.sponsored-post__complete span,
.sponsored-post__loading {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.74);
}

.sponsored-post__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 22px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: white;
    color: #111116;
    font-weight: 850;
    cursor: pointer;
}

.sponsored-post__play:hover {
    transform: translateY(-1px);
}

.sponsored-post__note {
    margin-top: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.76rem;
}

.sponsored-post__loading {
    gap: 16px;
}

.sponsored-post__label,
.sponsored-post__continue {
    position: absolute;
    z-index: 10;
    top: 16px;
}

.sponsored-post__label {
    left: 16px;
    min-height: 32px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(8, 8, 10, 0.66);
    color: white;
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
}

.sponsored-post__continue {
    right: 16px;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(8, 8, 10, 0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.feed-post--sponsored.is-playing .sponsored-post__placeholder,
.feed-post--sponsored.is-playing .sponsored-post__loading,
.feed-post--sponsored.is-playing .sponsored-post__message {
    display: none;
}

.sponsored-post__sound {
    position: absolute;
    z-index: 10;
    left: 16px;
    bottom: 16px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(8, 8, 10, 0.72);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.sponsored-post__sound[hidden] {
    display: none;
}

.sponsored-post__sound:hover,
.sponsored-post__continue:hover {
    background: rgba(239, 0, 22, 0.88);
}

.feed-post--sponsored.is-paused::after {
    content: "Paused";
    position: absolute;
    z-index: 9;
    left: 50%;
    top: 50%;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(8, 8, 10, 0.72);
    color: white;
    font-size: 0.78rem;
    font-weight: 850;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (max-width: 600px) {
    .sponsored-post__placeholder,
    .sponsored-post__loading,
    .sponsored-post__message,
    .sponsored-post__complete {
        width: min(360px, calc(100% - 32px));
        padding: 28px 20px;
        border-radius: 20px;
    }

    .sponsored-post__label,
    .sponsored-post__continue {
        top: 11px;
    }

    .sponsored-post__label {
        left: 11px;
    }

    .sponsored-post__continue {
        right: 11px;
    }

    .sponsored-post__sound {
        left: 11px;
        bottom: 12px;
    }
}
