/* Community feed, scoped to .social-community */
.social-community {
    --sc-bg: transparent;
    --sc-card: #1a1c22;
    --sc-border: rgba(255, 255, 255, 0.08);
    --sc-text: #f2f3f5;
    --sc-muted: #9aa0a8;
    --sc-accent: var(--or, #f7641f);
    background: var(--sc-bg);
    color: var(--sc-text);
    padding: 0.25rem 1.25rem 3rem;
}

.social-community__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.social-community__layout {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr) 276px;
    gap: 10px;
    max-width: 1360px;
    margin: 0 auto;
    align-items: start;
}

.social-community__hero {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-height: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(90deg, rgba(8, 9, 12, 0.88) 0%, rgba(8, 9, 12, 0.55) 46%, rgba(8, 9, 12, 0.28) 100%),
        radial-gradient(ellipse at 8% 110%, rgba(247, 100, 31, 0.55), transparent 42%),
        radial-gradient(ellipse at 92% 0%, rgba(56, 110, 210, 0.55), transparent 46%),
        linear-gradient(115deg, #3a1d12 0%, #1a140f 28%, #12151c 62%, #1b2740 100%);
}

.social-community__hero::before,
.social-community__hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.social-community__hero::before {
    width: 280px;
    height: 180px;
    left: -40px;
    bottom: -70px;
    background: radial-gradient(circle, rgba(255, 140, 60, 0.35), transparent 70%);
}

.social-community__hero::after {
    width: 340px;
    height: 200px;
    right: 80px;
    top: -80px;
    background: radial-gradient(circle, rgba(90, 150, 255, 0.28), transparent 70%);
}

.social-community__hero-copy,
.social-community__stats,
.social-community__share-video {
    position: relative;
    z-index: 1;
}

.social-community__stats {
    display: flex;
    gap: 10px;
}

.social-community__stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    text-align: center;
}

.social-community__stats i {
    font-size: 13px;
    color: #fff;
    margin-bottom: 1px;
}

.social-community__stats strong {
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.social-community__stats span {
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10px;
    margin-top: 2px;
}

.social-community__share-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: var(--sc-accent);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(247, 100, 31, 0.35);
}

.social-community__share-video:hover {
    filter: brightness(1.06);
}

.social-community__muted,
.social-community__creator-meta span,
.social-community__trend em,
.social-community__trend small {
    color: var(--sc-muted);
    font-size: 12px;
}

.social-community__panel,
.social-community__nav,
.social-community__notifications {
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 12px;
}

.social-community__aside {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-community__nav {
    padding: 4px;
}

.social-community__panel {
    padding: 8px 10px;
}

.social-community__nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.social-community__nav a,
.social-community__category {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sc-text);
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 12.5px;
}

.social-community__nav a i,
.social-community__category-label i {
    width: 18px;
    text-align: center;
    color: var(--sc-muted);
}

.social-community__nav a.is-active,
.social-community__category.is-active {
    background: rgba(247, 100, 31, 0.18);
    color: #ffb088;
}

.social-community__nav a.is-active i,
.social-community__category.is-active i {
    color: var(--sc-accent);
}

.social-community__category-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.social-community__category-count {
    margin-left: auto;
    color: var(--sc-muted);
    font-size: 13px;
}

.social-community__panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.social-community__panel-head h2 {
    font-size: 13px;
    margin: 0;
}

.social-community__panel-head a,
.social-community__panel-head span {
    color: var(--sc-muted);
    font-size: 12px;
}

.social-community__panel-head a {
    color: var(--sc-accent);
    font-weight: 600;
}

.social-community__follow {
    margin-left: auto;
    flex-shrink: 0;
}

.social-community__badge {
    margin-left: auto;
    background: var(--sc-accent);
    color: #fff;
    border-radius: 999px;
    min-width: 18px;
    padding: 0 6px;
    font-size: 11px;
    text-align: center;
}

.social-community__rank {
    width: 16px;
    color: var(--sc-muted);
    font-size: 13px;
    font-weight: 600;
}

.social-community__creator,
.social-community__trend {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    color: inherit;
    text-decoration: none;
}

.social-community__creator-meta,
.social-community__trend-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.social-community__creator-meta strong,
.social-community__trend-copy strong {
    font-size: 13px;
    line-height: 1.3;
}

.social-community__trend-copy strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-community__trend-copy em {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-community__creator .social-community__avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.social-community__trend-thumb {
    width: 56px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.social-community__trend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-community__trend-rank {
    width: 14px;
    color: var(--sc-muted);
    font-weight: 700;
}

.social-community__trend-counts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: auto;
    color: var(--sc-muted);
    font-size: 11px;
    white-space: nowrap;
}

.social-community__follow,
.social-community__text-btn {
    border: 1px solid var(--sc-accent);
    background: transparent;
    color: var(--sc-accent);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

.social-community__follow.is-following {
    background: var(--sc-accent);
    color: #fff;
}

.social-community__filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.social-community__search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 999px;
    padding: 4px 4px 4px 12px;
}

.social-community__search input {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--sc-text);
    outline: none;
}

.social-community__search button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    color: var(--sc-text);
    cursor: pointer;
}

.social-community__promo {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px 8px 40px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(145deg, #5a2dff 0%, #7a3cff 42%, #ff5a1f 140%);
    overflow: hidden;
}

.social-community__promo-icon {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 18px;
}

.social-community__promo em {
    color: #fff;
    font-style: normal;
    font-weight: 700;
    margin-top: 4px;
    font-size: 13px;
}

.social-community__promo strong {
    font-size: 14px;
}

.social-community__promo > span:not(.social-community__promo-icon) {
    font-size: 12px;
    line-height: 1.35;
}

.social-community__rules {
    list-style: none;
    margin: 6px 0 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-community__rules li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--sc-text);
}

.social-community__rules i {
    color: #3dcc7a;
    margin-top: 2px;
}

.social-community__rules-link {
    color: var(--sc-accent);
    font-size: 13px;
    font-weight: 700;
}

.social-community__select,
.social-community__field-label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

.social-community__select {
    background: #18191a;
    color: var(--sc-text);
    border: 1px solid var(--sc-border);
    border-radius: 8px;
    padding: 8px;
}

.social-community__ack {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 8px 0;
    font-size: 13px;
}

.social-community__toast {
    margin-top: 12px;
    color: var(--sc-accent);
}

.social-community-post__status {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: var(--sc-accent);
}

.social-community-comment--removed .social-community-comment__bubble {
    color: var(--sc-muted);
    font-style: italic;
}

.social-community__notifications {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 14px 8px;
}

.social-community__notifications-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--sc-border);
}

.social-community__notifications-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.social-community__notifications-head p {
    margin: 4px 0 0;
    color: var(--sc-muted);
    font-size: 12px;
}

.social-community__notifications .social-community__text-btn {
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.social-community__notifications-list {
    display: flex;
    flex-direction: column;
}

.social-community__notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 8px;
    margin: 0 -8px;
    border-bottom: 1px solid var(--sc-border);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

.social-community__notification:last-child {
    border-bottom: 0;
}

.social-community__notification:hover {
    background: rgba(255, 255, 255, 0.04);
}

.social-community__notification.is-unread {
    background: rgba(247, 100, 31, 0.08);
}

.social-community__notification-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: visible;
    background: #3a3b3c;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.social-community__notification-avatar img,
.social-community__notification-avatar > span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.social-community__notification-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2a2c33;
    border: 2px solid var(--sc-card);
    color: var(--sc-accent);
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-community__notification-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
}

.social-community__notification-copy strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--sc-text);
}

.social-community__notification.is-unread .social-community__notification-copy strong {
    color: #fff;
}

.social-community__notification-copy em {
    font-style: normal;
    color: var(--sc-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-community__notification time {
    flex-shrink: 0;
    color: var(--sc-muted);
    font-size: 11px;
    white-space: nowrap;
    padding-top: 4px;
}

.social-community__notifications-empty {
    display: none;
}

.social-community__notifications-empty.is-on {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 56px 20px 48px;
    color: var(--sc-muted);
}

.social-community__notifications-empty > i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 6px;
}

.social-community__notifications-empty strong {
    color: var(--sc-text);
    font-size: 15px;
    font-weight: 600;
}

.social-community__notifications-empty p {
    margin: 0;
    max-width: 28rem;
    font-size: 13px;
    line-height: 1.45;
}

.social-community__notifications-empty a {
    color: var(--sc-accent);
    font-weight: 600;
}

@media (max-width: 1100px) {
    .social-community__layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .social-community__aside--right {
        grid-column: 1 / -1;
    }

    .social-community__hero {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .social-community__stats {
        justify-content: flex-start;
    }
}

@media (max-width: 800px) {
    .social-community__layout {
        grid-template-columns: 1fr;
    }

    .social-community__nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .social-community__nav a {
        white-space: nowrap;
    }

    .social-community__stats {
        flex-wrap: wrap;
    }
}

.social-community__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 2px;
    letter-spacing: -0.03em;
}

.social-community__subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.35;
    margin: 0;
    max-width: 460px;
}

.social-community__subtitle a {
    color: #fff;
    text-decoration: underline !important;
}

.social-community__pending-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: rgba(247, 100, 31, 0.12);
    border: 1px solid rgba(247, 100, 31, 0.35);
    border-radius: 8px;
    font-size: 14px;
    color: var(--sc-text);
    width: 100%;
    text-align: left;
}

.social-community__pending-banner--clickable {
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.social-community__pending-banner--clickable:hover {
    background: rgba(247, 100, 31, 0.18);
    border-color: rgba(247, 100, 31, 0.5);
}

.social-community__pending-banner-chevron {
    margin-left: auto;
    color: var(--sc-muted);
    font-size: 13px;
}

.social-community-pending-modal__intro {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--sc-muted);
    line-height: 1.45;
}

.social-community-pending-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-community-pending-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--sc-border);
    background: rgba(255, 255, 255, 0.03);
}

.social-community-pending-card__body-wrap {
    flex: 1;
    min-width: 0;
}

.social-community-pending-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(247, 100, 31, 0.16);
    border: 1px solid rgba(247, 100, 31, 0.35);
    color: #ff9a5c;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.social-community-pending-card__text {
    font-size: 14px;
    line-height: 1.45;
    color: var(--sc-text);
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 6px;
}

.social-community-pending-card__meta {
    font-size: 12px;
    color: var(--sc-muted);
}

.social-community-pending-card__thumb {
    width: 88px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}

.social-community-pending-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-community-pending-empty,
.social-community-pending-loading {
    text-align: center;
    padding: 24px 12px;
    color: var(--sc-muted);
    font-size: 14px;
}

.social-community-modal__panel--pending {
    width: min(560px, 100%);
}

.social-community-modal__panel--success {
    width: min(480px, 100%);
}

.social-community-post-success__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.social-community-post-success__icon.is-pending {
    background: rgba(247, 100, 31, 0.16);
    color: #ff9a5c;
    border: 1px solid rgba(247, 100, 31, 0.35);
}

.social-community-post-success__icon.is-published {
    background: rgba(61, 214, 140, 0.14);
    color: #3dd68c;
    border: 1px solid rgba(61, 214, 140, 0.35);
}

.social-community-post-success__lead {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--sc-text);
    text-align: center;
}

.social-community-post-success__steps {
    margin: 0 0 20px;
    padding-left: 1.2rem;
    color: var(--sc-muted);
    font-size: 14px;
    line-height: 1.55;
}

.social-community-post-success__steps li {
    margin-bottom: 8px;
}

.social-community-post-success__steps li:last-child {
    margin-bottom: 0;
}

.social-community-post-success__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-community-post-success__actions .social-community__btn-primary {
    width: 100%;
}

.social-community-post-success__secondary {
    width: 100%;
}

.social-community__composer-card,
.social-community-post {
    background: var(--sc-card);
    border: 1px solid var(--sc-border);
    border-radius: 8px;
    margin-bottom: 16px;
}

.social-community__composer-card,
.social-community-post {
    border-radius: 12px;
}

.social-community__composer-card {
    margin-bottom: 10px;
    border-radius: 12px;
}

.social-community__composer-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 10px;
    cursor: pointer;
}

.social-community__composer-placeholder {
    flex: 1;
    background: #111318;
    border: 1px solid var(--sc-border);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--sc-muted);
    font-size: 13px;
}

.social-community__composer-tool {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sc-muted);
    background: rgba(255, 255, 255, 0.04);
}

.social-community__composer-post {
    background: var(--sc-accent);
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
}

.social-community__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #3a3b3c;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.social-community__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-community-post__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px 0;
}

.social-community-post__meta {
    flex: 1;
    min-width: 0;
}

.social-community-post__name {
    font-weight: 600;
    font-size: 15px;
}

.social-community-post__time {
    font-size: 12px;
    color: var(--sc-muted);
}

.social-community-post__body {
    padding: 8px 16px 12px;
    font-size: 15px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.social-community-post__owner-note {
    margin: 0 16px 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--sc-accent);
    border-radius: 4px;
    font-size: 14px;
}

.social-community-post__owner-note-edit {
    margin: 0 16px 12px;
}

.social-community-post__owner-note-edit input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--sc-border);
    background: #3a3b3c;
    color: var(--sc-text);
    font-size: 14px;
}

.social-community-youtube-card {
    display: block;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.social-community-youtube-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.social-community-youtube-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-community-youtube-card__embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.social-community-youtube-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 0 0 4px;
    transition: background 0.2s ease;
}

.social-community-youtube-card__play:hover {
    background: rgba(255, 102, 0, 0.92);
}

.social-community-youtube-card--playing .social-community-youtube-card__play {
    display: none;
}

.social-community-youtube-card__info {
    padding: 12px 16px 2px;
    background: transparent;
}

.social-community-youtube-card__domain {
    font-size: 11px;
    color: var(--sc-muted);
    text-transform: uppercase;
}

.social-community-youtube-card__title {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.social-community-post__footer {
    margin: 0 8px;
}

.social-community-post__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    border-top: 1px solid var(--sc-border);
    padding: 4px 8px;
}

.social-community-post__actions-spacer {
    flex: 1;
}

.social-community-post__action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--sc-muted);
    font-size: 14px;
    cursor: pointer;
}

.social-community-post__action--sort {
    padding: 8px 10px;
}

.social-community-post__action--sort i {
    font-size: 16px;
}

.social-community-post__action:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.social-community-post__action.liked {
    color: #e41e3f;
}

.social-community-post__comments {
    padding: 8px 4px 12px;
    border-top: 1px solid var(--sc-border);
    --sc-thread-line: rgba(255, 255, 255, 0.2);
    --sc-thread-avatar: 40px;
    --sc-thread-avatar-nested: 28px;
    --sc-thread-gap: 6px;
}

.social-community-post__comments-compose {
    margin-bottom: 8px;
}

.social-community-post__comments-compose .social-community-comment-form {
    margin-top: 0;
}

.social-community-post__comments-list:empty {
    display: none;
}

.social-community-comment {
    position: relative;
    margin-bottom: 6px;
    display: grid;
    grid-template-columns: var(--sc-thread-avatar) 1fr;
    column-gap: var(--sc-thread-gap);
}

.social-community-comment--nested {
    position: relative;
    grid-template-columns: var(--sc-thread-avatar-nested) 1fr;
}

.social-community-comment__main {
    display: contents;
}

.social-community-comment__main > .social-community__avatar {
    grid-column: 1;
    grid-row: 1;
}

.social-community-comment__body {
    grid-column: 2;
    grid-row: 1;
    flex: 1;
    min-width: 0;
}

.social-community-comment:not(.social-community-comment--nested) > .social-community-comment-children {
    --thread-elbow-width: calc(var(--sc-thread-avatar) / 2 + var(--sc-thread-gap));
    margin-left: calc(var(--sc-thread-avatar) / 2);
    padding-left: var(--thread-elbow-width);
}

.social-community-comment--nested > .social-community-comment-children {
    --thread-elbow-width: calc(var(--sc-thread-avatar-nested) / 2 + var(--sc-thread-gap));
    margin-left: calc(var(--sc-thread-avatar-nested) / 2);
    padding-left: var(--thread-elbow-width);
}

.social-community-comment-children {
    grid-column: 1 / -1;
    margin-top: 2px;
    position: relative;
}

.social-community-comment-children > .social-community-comment--nested {
    margin-bottom: 0;
    padding-bottom: 6px;
}

.social-community-comment-children > .social-community-comment--nested:last-child {
    padding-bottom: 0;
}

.social-community-comment-children--collapsed {
    display: none;
}

.social-community-comment__replies {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    align-items: center;
    min-height: 22px;
    margin-top: 2px;
}

@supports not (grid-template-columns: subgrid) {
    .social-community-comment__replies {
        grid-template-columns: var(--sc-thread-avatar) 1fr;
        column-gap: var(--sc-thread-gap);
    }

    .social-community-comment--nested > .social-community-comment__replies {
        grid-template-columns: var(--sc-thread-avatar-nested) 1fr;
    }
}

.social-community-comment__replies-rail {
    grid-column: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
}

.social-community-comment__replies-rail::before {
    content: '';
    width: 2px;
    height: 10px;
    background: var(--sc-thread-line);
}

.social-community-comment--replies-open > .social-community-comment__replies .social-community-comment__replies-rail::before {
    display: none;
}

.social-community-comment__replies-toggle {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    color: var(--sc-accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0 4px;
    line-height: 1.2;
    justify-self: start;
}

.social-community-comment__replies-toggle:hover {
    text-decoration: underline;
}

.social-community-comment__replies-toggle i {
    font-size: 14px;
}

.social-community-comment--replies-open > .social-community-comment-children {
    margin-top: 0;
}

.social-community-comment--nested::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--thread-elbow-width));
    top: 0;
    width: 2px;
    background: var(--sc-thread-line);
    height: calc(var(--sc-thread-avatar-nested) / 2);
}

.social-community-comment-children > .social-community-comment--nested:not(:last-child)::before {
    height: 100%;
}

.social-community-comment--replies-open > .social-community-comment-children > .social-community-comment--nested:first-child::before {
    top: -10px;
}

.social-community-comment--replies-open > .social-community-comment-children > .social-community-comment--nested:first-child:not(:last-child)::before {
    height: calc(100% + 10px);
}

.social-community-comment--replies-open > .social-community-comment-children > .social-community-comment--nested:first-child:last-child::before {
    height: calc(var(--sc-thread-avatar-nested) / 2 + 10px);
}

.social-community-comment--nested::after {
    content: '';
    position: absolute;
    left: calc(-1 * var(--thread-elbow-width));
    top: calc(var(--sc-thread-avatar-nested) / 2 - 1px);
    width: calc(var(--thread-elbow-width) - 2px);
    height: 2px;
    background: var(--sc-thread-line);
}

.social-community-comment--nested .social-community__avatar {
    width: var(--sc-thread-avatar-nested);
    height: var(--sc-thread-avatar-nested);
    font-size: 12px;
}

.social-community-comment--nested .social-community-comment__bubble {
    font-size: 13px;
    padding: 5px 9px;
}

.social-community-comment__bubble {
    background: #3a3b3c;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.35;
}

.social-community-comment__author {
    font-weight: 600;
    font-size: 13px;
    margin-right: 4px;
}

.social-community-comment__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    min-height: 18px;
}

.social-community-comment__time {
    font-size: 11px;
    color: var(--sc-muted);
    line-height: 1;
}

.social-community-comment__reply-btn {
    background: none;
    border: none;
    color: var(--sc-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.social-community-comment__reply-btn:hover {
    color: var(--sc-text);
    text-decoration: underline;
}

.social-community-comment--reply-target > .social-community-comment__main > .social-community-comment__body > .social-community-comment__bubble {
    box-shadow: 0 0 0 1px var(--sc-accent);
}

.social-community-comment-reply-slot {
    margin-top: 4px;
}

.social-community-comment-form--reply {
    margin-top: 2px;
    margin-bottom: 2px;
}

.social-community-comment--nested .social-community-comment-form--reply {
    margin-left: 0;
}

.social-community-comment--nested .social-community-comment-form .social-community__avatar {
    width: var(--sc-thread-avatar-nested);
    height: var(--sc-thread-avatar-nested);
    font-size: 12px;
}

.social-community-comment-cancel {
    flex-shrink: 0;
    border: none;
    border-radius: 16px;
    background: transparent;
    color: var(--sc-muted);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.social-community-comment-form--reply .social-community-comment-cancel,
.social-community-comment-form--active .social-community-comment-cancel {
    display: inline-flex;
}

.social-community-comment-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sc-text);
}

.social-community-comment-form {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}

.social-community-comment-form input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 18px;
    border: none;
    background: #3a3b3c;
    color: var(--sc-text);
    font-size: 14px;
}

.social-community-comment-form input:disabled {
    opacity: 0.7;
    cursor: pointer;
}

.social-community__btn-primary {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: var(--sc-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.social-community__btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.social-community__btn-outline {
    padding: 10px 20px;
    border: 1px solid var(--sc-border);
    border-radius: 6px;
    background: transparent;
    color: var(--sc-text);
    cursor: pointer;
}

.social-community__load-more {
    text-align: center;
    margin: 16px 0;
}

.social-community__empty,
.social-community__skeleton {
    text-align: center;
    padding: 32px;
    color: var(--sc-muted);
}

.social-community-modal {
    --sc-bg: #18191a;
    --sc-card: #242526;
    --sc-border: rgba(255, 255, 255, 0.1);
    --sc-text: #e4e6eb;
    --sc-muted: #b0b3b8;
    --sc-accent: var(--or, #f7641f);
    --sc-input-bg: #3a3b3c;
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--sc-text);
}

.social-community-modal.is-open {
    display: flex;
}

.social-community-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(2px);
}

.social-community-modal__panel {
    position: relative;
    z-index: 1;
    width: min(500px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    background: var(--sc-card);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--sc-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.social-community-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sc-border);
}

.social-community-modal__head h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--sc-text);
    font-weight: 700;
}

.social-community-modal__close {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--sc-muted);
    font-size: 24px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-community-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--sc-text);
}

.social-community-modal__user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.social-community-modal__user-name {
    color: var(--sc-text);
    font-weight: 600;
    font-size: 15px;
}

.social-community-modal__user .social-community__avatar {
    color: var(--sc-text);
}

.social-community-modal__textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: var(--sc-input-bg);
    color: var(--sc-text);
    font-size: 16px;
    line-height: 1.45;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 12px;
    padding: 12px 14px;
}

.social-community-modal__textarea::placeholder {
    color: var(--sc-muted);
}

.social-community-modal__textarea:focus {
    outline: none;
    border-color: rgba(247, 100, 31, 0.65);
    box-shadow: 0 0 0 2px rgba(247, 100, 31, 0.2);
}

.social-community-modal .social-community__btn-primary {
    width: 100%;
    padding: 11px 16px;
    border: none;
    border-radius: 8px;
    background: var(--sc-accent);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.social-community-modal .social-community__btn-primary:hover:not(:disabled) {
    background: #e55a18;
}

.social-community-modal .social-community__btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.social-community-modal__message {
    margin-top: 10px;
    font-size: 14px;
    color: var(--sc-muted);
}

.social-community-youtube-preview {
    margin-bottom: 12px;
}

.social-community-youtube-preview .social-community-youtube-card {
    margin: 0;
    cursor: pointer;
}

.social-community-youtube-card--loading .social-community-youtube-card__thumb {
    position: relative;
}

.social-community-youtube-preview-loading__label {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: #e4e6eb;
    font-size: 12px;
    white-space: nowrap;
}

.social-community-modal .social-community-youtube-card__thumb {
    cursor: pointer;
}

.social-community-modal .social-community-youtube-card__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 52px;
    height: 36px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.social-community-modal .social-community-youtube-card:not(:has(iframe)) .social-community-youtube-card__thumb::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    z-index: 1;
    pointer-events: none;
}

.social-community-modal .social-community-youtube-card:not(:has(iframe)) .social-community-youtube-card__thumb:hover::after {
    opacity: 1;
}

/* Social paywall modal (Join to share) */
.paywall-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    z-index: 10003;
    padding: 1rem;
    box-sizing: border-box;
}

.paywall-overlay.is-open {
    display: flex;
}

.paywall-card {
    position: relative;
    display: flex;
    width: min(720px, 100%);
    max-width: 100%;
    background: #171717;
    color: #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.paywall-left {
    width: 45%;
    min-height: 280px;
    padding: 18px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paywall-left::before {
    content: "";
    width: 100%;
    height: 100%;
    min-height: 220px;
    border-radius: 12px;
    background-image: url('/images/siteimages/paywall-card-img.png');
    background-size: cover;
    background-position: center;
    display: block;
}

.paywall-right {
    flex: 1;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.paywall-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.paywall-text {
    font-size: 14px;
    color: #c6c6c6;
    line-height: 1.5;
}

.paywall-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: #f7641f;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
}

.paywall-cta:hover {
    background: #e55a18;
    color: #fff;
}

.paywall-sub {
    font-size: 12px;
    color: #b3b3b3;
}

.paywall-sub a {
    color: #e8e8e8;
    text-decoration: none;
    font-weight: 600;
}

.paywall-sub a:hover {
    color: #fff;
    text-decoration: underline;
}

.paywall-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cfcfcf;
    font-size: 20px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.paywall-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

@media (max-width: 640px) {
    .paywall-card {
        flex-direction: column;
    }

    .paywall-left {
        width: 100%;
        min-height: 160px;
    }

    .paywall-right {
        padding: 20px;
    }
}
