/* Eternal Garden — Nexus Social Network (social / fan fiction) */

/* Light blue accent for highlights on feed & signals pages */
.feed-page {
    --primary-green: #6ec1ff;
    background: var(--darker-bg, #050505);
    min-height: 100vh;
}

.feed-main {
    padding-top: 80px;
    min-height: 100vh;
}

/* Three-column layout (desktop) */
.feed-layout {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

@media (min-width: 1260px) {
    .feed-layout {
        flex-direction: row;
        min-height: calc(100vh - 80px);
    }
}

/* ——— Left navigation ——— */
.feed-nav {
    display: none;
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    width: 244px;
    padding: 1.5rem 0.75rem 1.5rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 10, 0.95);
    z-index: 100;
    flex-shrink: 0;
    flex-direction: column;
}

@media (min-width: 1260px) {
    .feed-nav {
        display: flex;
    }
}

.feed-nav-logo {
    display: block;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: var(--text-white);
}

.feed-nav-logo-text {
    font-family: 'Heliosext', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.04em;
}

.feed-nav-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 0;
}

.feed-nav-spacer {
    flex: 1;
    min-height: 0.5rem;
}

.feed-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: var(--text-light);
    font-family: 'Hudson', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 8px;
    width: 100%;
    text-align: left;
    position: relative;
}

.feed-nav-item i {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.feed-nav-item:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
}

.feed-nav-item:hover i {
    color: var(--primary-green);
}

.feed-nav-item-active {
    color: var(--primary-green);
    font-weight: 600;
}

.feed-nav-item-active i {
    color: var(--primary-green);
}

.feed-nav-item-badge {
    padding-right: 2.25rem;
}

.feed-nav-item-badge::after {
    content: attr(data-badge);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary-green);
    color: var(--dark-bg);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ——— Center column (feed always centered) ——— */
.feed-center {
    flex: 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

@media (min-width: 1260px) {
    .feed-center {
        padding-left: calc(244px + 1.5rem);
        padding-right: calc(320px + 1.5rem);
    }
}

/* Center all feed content in a fixed-width column */
.feed-center > .feed-hero,
.feed-center > .feed-stories,
.feed-center > .feed-section {
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.feed-center > .feed-section.feed-section--dual {
    max-width: 1320px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.feed-section.feed-section--dual .feed-feed-bar {
    flex-shrink: 0;
}

.feed-section.feed-section--dual .feed-columns {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 0 1rem;
}

/* ——— Stories bar ——— */
.feed-stories {
    padding: 1.25rem 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.5rem;
}

.feed-stories-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.feed-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-light);
    font-family: 'Hudson', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.feed-story-item:hover {
    color: var(--primary-green);
    transform: scale(1.02);
}

.feed-story-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(0, 255, 136, 0.4);
    display: block;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-story-item:hover .feed-story-avatar {
    border-color: var(--primary-green);
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.25);
}

.feed-story-name {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ——— Right sidebar ——— */
.feed-aside {
    display: none;
    position: fixed;
    right: 0;
    top: 80px;
    bottom: 0;
    width: 320px;
    padding: 1.5rem 1.5rem 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 10, 10, 0.95);
    z-index: 100;
    overflow-y: auto;
    flex-shrink: 0;
}

@media (min-width: 1260px) {
    .feed-aside {
        display: block;
    }
}

.feed-aside-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-aside-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.feed-aside-avatar-sm {
    width: 36px;
    height: 36px;
}

.feed-aside-profile-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.feed-aside-username {
    font-family: 'Hudson', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

a.feed-aside-username {
    text-decoration: none;
}

a.feed-aside-username:hover {
    color: var(--primary-green);
}

.feed-aside-handle {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feed-aside-switch {
    background: none;
    border: none;
    color: var(--primary-green);
    font-family: 'Hudson', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.feed-aside-switch:hover {
    opacity: 0.85;
}

.feed-aside-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.feed-aside-title {
    font-family: 'Heliosext', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.feed-aside-see-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.feed-aside-see-all:hover {
    color: var(--primary-green);
}

.feed-aside-suggested {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.feed-aside-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
}

.feed-aside-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.feed-aside-watched {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.feed-aside-watch {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.feed-aside-watch:hover {
    opacity: 0.85;
}

.feed-aside-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-aside-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
}

.feed-aside-links a {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.feed-aside-links a:hover {
    color: var(--text-light);
}

.feed-aside-copy {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ——— Floating Signals ——— */
.feed-signals-float {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-white);
    font-family: 'Hudson', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 1260px) {
    .feed-signals-float {
        display: flex;
    }
}

.feed-signals-float:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 4px 24px rgba(0, 255, 136, 0.15);
}

.feed-signals-float-avatars {
    display: flex;
    align-items: center;
}

.feed-signals-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--dark-bg);
    margin-left: -10px;
}

.feed-signals-dot:first-child {
    margin-left: 0;
}

.feed-signals-float-label {
    padding-right: 0.25rem;
}

.feed-signals-float-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary-green);
    color: var(--dark-bg);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button.feed-signals-float {
    font: inherit;
}

/* ——— Signals popup (messages list) ——— */
.signals-popup-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 1999;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 1.5rem 6rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.signals-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.signals-popup {
    width: 100%;
    max-width: 400px;
    max-height: 75vh;
    background: rgba(28, 28, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  position: relative;
}

.signals-popup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.signals-popup-title {
    font-family: 'Heliosext', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-white);
    margin: 0;
}

.signals-popup-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #e53935;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.signals-popup-header-actions {
    margin-left: auto;
    display: flex;
    gap: 0.25rem;
}

.signals-popup-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.signals-popup-btn:hover {
    color: var(--text-white);
}

.signals-popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
}

.signals-popup-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.signals-popup-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.signals-popup-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.signals-popup-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.signals-popup-name {
    font-family: 'Hudson', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
}

.signals-popup-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signals-popup-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.signals-popup-item-unread .signals-popup-dot {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-green);
    flex-shrink: 0;
}

.signals-popup-item-unread .signals-popup-time {
    margin-right: 14px;
}

.signals-popup-compose {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(40, 40, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease, color 0.2s ease;
}

.signals-popup-compose:hover {
    background: rgba(60, 60, 65, 0.98);
    color: var(--primary-green);
}

/* Popup: list vs thread view */
.signals-popup-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.signals-popup-view-thread {
    display: none;
}

.signals-popup.has-thread-open .signals-popup-view-list {
    display: none;
}

.signals-popup.has-thread-open .signals-popup-view-thread {
    display: flex;
}

.signals-popup.has-thread-open .signals-popup-view-thread[aria-hidden="false"] {
    display: flex;
}

.signals-popup-view-thread[aria-hidden="true"] {
    display: none !important;
}

/* Popup thread header */
.signals-popup-thread-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.signals-popup-thread-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 0.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.signals-popup-thread-back:hover {
    color: var(--text-white);
}

.signals-popup-thread-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.signals-popup-thread-name {
    font-family: 'Hudson', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
}

/* Popup thread messages */
.signals-popup-thread-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 180px;
}

.signals-popup-msg {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 85%;
}

.signals-popup-msg-me {
    align-self: flex-end;
    align-items: flex-end;
}

.signals-popup-msg-them {
    align-self: flex-start;
    align-items: flex-start;
}

.signals-popup-msg-bubble {
    padding: 0.6rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.signals-popup-msg-them .signals-popup-msg-bubble {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

.signals-popup-msg-me .signals-popup-msg-bubble {
    background: rgba(50, 150, 255, 0.55);
    color: var(--text-white);
}

.signals-popup-msg-time {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Popup thread input */
.signals-popup-thread-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 18, 0.98);
    flex-shrink: 0;
}

.signals-popup-thread-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.2s ease;
}

.signals-popup-thread-input:focus {
    border-color: var(--primary-green);
}

.signals-popup-thread-input::placeholder {
    color: var(--text-muted);
}

.signals-popup-send {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.signals-popup-send:hover {
    color: var(--text-white);
}

/* Hero */
.feed-hero {
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

@media (min-width: 1260px) {
    .feed-hero-compact {
        min-height: 24vh;
        padding: 2rem 1rem;
    }
    .feed-hero-compact .feed-hero-title {
        font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    }
    .feed-hero-compact .feed-hero-subtitle {
        margin-bottom: 1rem;
    }
}

.feed-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 255, 136, 0.08) 0%, transparent 55%),
                linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, var(--darker-bg, #050505) 100%);
    z-index: 0;
}

.feed-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
}

.feed-hero-label {
    font-family: 'Hudson', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
}

.feed-hero-title {
    font-family: 'Heliosext', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.feed-hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.feed-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 1rem 2rem;
    font-family: 'Hudson', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(12px 0%, calc(100% - 12px) 0%, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0% calc(100% - 12px), 0% 12px);
}

.feed-cta-btn:hover {
    background: rgba(0, 255, 136, 0.12);
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.2);
}

/* Feed section */
.feed-section {
    padding: 2rem 0 4rem;
}

.feed-feed-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem 1rem;
    flex-wrap: wrap;
}

.feed-feed-bar-label {
    font-family: 'Hudson', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.feed-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: 'Hudson', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 8px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.feed-mode-toggle:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.feed-mode-toggle[aria-pressed="true"] {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.feed-columns[hidden],
.feed-single[hidden] {
    display: none !important;
}

.feed-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 0 1rem;
    max-width: 1320px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .feed-columns {
        grid-template-columns: 1fr 1fr;
    }
    .feed-column-broadcasts {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .feed-columns {
        grid-template-columns: 1fr;
    }
    .feed-column-broadcasts {
        grid-column: auto;
    }
}

.feed-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 0 0.5rem;
}

.feed-section.feed-section--dual .feed-column .feed-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.feed-section.feed-section--dual .feed-column .feed-container::-webkit-scrollbar {
    display: none;
}

.feed-column-title {
    font-family: 'Heliosext', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
    padding: 0 0.5rem;
    flex-shrink: 0;
    min-height: 2rem;
    display: flex;
    align-items: center;
}

.feed-column-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    padding: 0 0.5rem;
    line-height: 1.35;
    flex-shrink: 0;
}

.feed-column .feed-container {
    padding: 0 0.5rem;
}

.feed-single {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feed-broadcasts-opt {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.feed-broadcasts-opt-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-light);
}

.feed-broadcasts-opt-label input {
    accent-color: var(--primary-green);
}

.feed-broadcasts-opt-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
    line-height: 1.4;
}

.feed-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.feed-tab {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: 'Hudson', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    margin-bottom: -1px;
}

.feed-tab:hover {
    color: var(--text-light);
}

.feed-tab.feed-tab-active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.feed-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Post card — 9:16 vertical (phone-style), clickable for detail */
.feed-post {
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    clip-path: polygon(
        20px 0%,
        calc(100% - 20px) 0%,
        100% 20px,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        20px 100%,
        0% calc(100% - 20px),
        0% 20px
    );
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 360px;
    margin: 0 auto;
}

.feed-post:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(110, 193, 255, 0.7), 0 0 40px rgba(110, 193, 255, 0.5), 0 0 60px rgba(110, 193, 255, 0.25);
}

.feed-post-media {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: var(--dark-bg);
    overflow: hidden;
}

.feed-post-header-overlay {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    z-index: 2;
    pointer-events: none;
}

.feed-post-header-overlay .feed-post-author {
    margin: 0;
}

.feed-post-header-overlay .feed-post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.6);
}

.feed-post-header-overlay .feed-post-username {
    color: var(--text-white);
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.feed-post-track {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--text-white);
    padding: 0.4rem 1.15rem;
    font-family: 'Hudson', sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.feed-post-track:hover {
    background: rgba(0, 0, 0, 0.55);
}

.feed-post-media img,
.feed-post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.feed-post-media video {
    object-fit: cover;
    object-position: center;
}

/* Seed post (id 14): shift video 400px left so it frames correctly */
.feed-post[data-post-id="14"] .feed-post-media video {
    object-position: calc(50% - 400px) center;
}

.feed-post-body {
    padding: 1.25rem 1.5rem;
}

/* Match localhost: creator/caption white, actions & time explicit (no link blue on deploy) */
.feed-post-body .feed-post-caption-author,
.feed-post-body .feed-post-caption-text,
.feed-post-body .feed-post-caption {
    color: #fff !important;
}
.feed-post-body a.feed-post-caption-author {
    color: #fff !important;
}
.feed-post-body a.feed-post-caption-author:hover {
    color: var(--primary-green) !important;
}
.feed-post-body .feed-post-actions .feed-post-action,
.feed-post-body .feed-post-actions .feed-post-action i,
.feed-post-body .feed-post-actions .feed-post-action span {
    color: #e0e0e0 !important;
}
.feed-post-body .feed-post-actions .feed-post-action:hover,
.feed-post-body .feed-post-actions .feed-post-action:hover i,
.feed-post-body .feed-post-actions .feed-post-action:hover span {
    color: var(--primary-green) !important;
}
.feed-post-body .feed-post-actions .feed-post-action.liked,
.feed-post-body .feed-post-actions .feed-post-action.liked i,
.feed-post-body .feed-post-actions .feed-post-action.liked span {
    color: #ff6b9d !important;
}
.feed-post-body .feed-post-time {
    color: #b0b0b0 !important;
}

.feed-post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feed-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-orange));
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.feed-post-username {
    font-family: 'Hudson', sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

a.feed-post-username {
    text-decoration: none;
}

a.feed-post-username:hover {
    color: var(--primary-green);
}

.feed-post-caption-row {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.feed-post-caption-author {
    font-family: 'Hudson', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    text-decoration: none;
}

.feed-post-caption-author:hover {
    color: var(--primary-green);
}

.feed-post-caption-text {
    font-size: 0.95rem;
    color: #fff;
}

.feed-post-caption {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.feed-post-actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.feed-post-actions-detail {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    gap: 1rem;
}

.feed-post-actions-detail .feed-post-action span {
    font-size: 0.8rem;
}

.feed-post-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.feed-post-action:hover {
    color: var(--primary-green);
    opacity: 0.95;
}

.feed-post-action.liked {
    color: #ff6b9d;
}

.feed-post-action i {
    font-size: 1.2rem;
}

.feed-post-action.feed-seed-btn {
    color: #fff;
}

.feed-post-action.feed-seed-btn:hover {
    color: var(--primary-green);
}

.feed-seed-count {
    font-family: 'Hudson', sans-serif;
    font-size: 0.8rem;
}

.feed-post-comments-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-post-time {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.feed-post-comments-preview button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
}

.feed-post-comments-preview button:hover {
    color: var(--primary-green);
}

/* Modal */
.feed-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.feed-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.feed-modal {
    background: rgba(14, 14, 14, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    clip-path: polygon(
        24px 0%,
        calc(100% - 24px) 0%,
        100% 24px,
        100% calc(100% - 24px),
        calc(100% - 24px) 100%,
        24px 100%,
        0% calc(100% - 24px),
        0% 24px
    );
    display: flex;
    flex-direction: column;
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.feed-modal-overlay.is-open .feed-modal {
    transform: scale(1);
}

.feed-modal-wide {
    max-width: 900px;
    width: 100%;
}

.feed-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-modal-title {
    font-family: 'Heliosext', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feed-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.feed-modal-close:hover {
    color: var(--text-white);
}

.feed-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

/* Post detail: two columns — media left, scrollable comments right */
.feed-modal-body-post {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

/* Share modal */
.feed-modal-share {
    max-width: 640px;
}

.feed-modal-body-share {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.share-search-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.share-search-row i {
    color: var(--text-muted);
}

.share-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.25rem 1rem;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.share-user {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.share-user-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-light);
}

.share-user:hover {
    background: rgba(255, 255, 255, 0.08);
}

.share-footer {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.share-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    font-family: 'Hudson', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.share-footer-btn i {
    font-size: 0.95rem;
}

.feed-detail-layout {
    display: flex;
    min-height: 0;
    flex: 1;
}

.feed-detail-media {
    flex: 0 0 auto;
    width: 50%;
    max-width: 400px;
    max-height: 85vh;
    aspect-ratio: 9 / 16;
    background: var(--dark-bg);
    overflow: hidden;
    position: relative;
}

.feed-detail-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.feed-detail-media--seed video {
    object-position: calc(50% - 400px) center;
}

.feed-detail-overlay-top,
.feed-detail-overlay-bottom {
    display: none;
}

.feed-detail-comment-bar {
    display: none;
}

.feed-detail-sidebar {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* When mobile fullscreen layout is used, hide sidebar (fixes deploy cache / missing mobile-social.css) */
#postDetailModal[data-detail-fullscreen] .feed-detail-sidebar,
#postDetailContent:has(.feed-detail-fullscreen) .feed-detail-sidebar {
    display: none !important;
}

.feed-detail-sidebar .feed-post-author {
    margin-bottom: 0.75rem;
}

.feed-detail-sidebar .feed-post-caption {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-detail-sidebar .feed-comments-list {
    flex: 1;
    min-height: 0;
    margin-bottom: 1rem;
}

.feed-detail-sidebar .feed-comment-form {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-modal-body .feed-post-media {
    aspect-ratio: 9 / 16;
    max-height: 70vh;
    width: 100%;
}

.feed-modal-body .feed-post-media video {
    object-fit: cover;
    object-position: center;
}

.feed-modal-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.feed-prompt-input,
.feed-caption-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    padding: 0.9rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.feed-prompt-input:focus,
.feed-caption-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.feed-prompt-input::placeholder,
.feed-caption-input::placeholder {
    color: var(--text-muted);
}

.feed-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary-green);
    border: none;
    color: var(--dark-bg);
    padding: 0.9rem 1.75rem;
    font-family: 'Hudson', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0% calc(100% - 10px), 0% 10px);
}

.feed-generate-btn:hover:not(:disabled) {
    background: #00cc6a;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
}

.feed-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feed-generate-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary-green);
    min-height: 1.5em;
}

.feed-generate-status.error {
    color: var(--primary-orange);
}

/* Comment list in detail modal */
.feed-comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.feed-comment {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.feed-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.feed-comment-author {
    font-family: 'Hudson', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-green);
}

a.feed-comment-author {
    text-decoration: none;
}

a.feed-comment-author:hover {
    text-decoration: underline;
}

.feed-comment-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.45;
}

.feed-comment-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feed-comment-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.feed-comment-form input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.feed-comment-form button {
    background: var(--primary-green);
    border: none;
    color: var(--dark-bg);
    padding: 0.65rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.feed-comment-form button:hover {
    opacity: 0.9;
}

/* Nav tag for feed */
.nav-tag-feed {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-white, #ffffff);
}

.menu-item-active span {
    color: var(--primary-green);
}

@media (max-width: 768px) {
    .feed-hero {
        min-height: 36vh;
        padding: 3rem 1.5rem;
    }

    .feed-container {
        padding: 0 1rem;
    }

    .feed-post-body {
        padding: 1rem 1.25rem;
    }
}
