/* ============================================================
   ZO2Y COMMUNITY - STYLES (REVIEWS, MEMBER SEARCH & FOLLOWS)
   ============================================================ */

:root {
    --bg: #0b1633;
    --card: #132347;
    --card-2: #172b58;
    --muted: #8ca3c7;
    --text2: #9fb0cf;
    --accent: #f59e0b;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.12);
    --surface: rgba(19, 35, 71, 0.6);
    --radial-glow: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    --shadow-card: var(--shadow-md);
    --shadow-card-hover: var(--shadow-lg);
}

img.fade-in {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.fade-in.loaded {
    opacity: 1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0b1633 !important;
    color: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: -20% 0 0 0;
    background: var(--radial-glow);
    pointer-events: none;
    z-index: -2;
}

body::after {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === NAVIGATION TABS === */
.community-nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 22, 51, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.community-nav-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.community-nav-tabs::-webkit-scrollbar {
    display: none;
}

.community-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 12px 16px;
    min-height: var(--touch-min);
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: var(--muted) !important;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: capitalize;
}

.community-tab-btn i {
    display: none;
}

.community-tab-btn:hover {
    color: var(--white) !important;
}

.community-tab-btn.active {
    background: transparent !important;
    color: var(--white) !important;
    border-bottom-color: var(--accent) !important;
    font-weight: 700;
}

/* === CONTENT CONTAINER === */
.community-content {
    padding: 32px 32px 64px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.community-tab-pane {
    display: none;
}

.community-tab-pane.active {
    display: block;
    animation: fadeIn 0.18s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === SECTION HEADERS (Letterboxd-style) === */
.community-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.community-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.community-section-action {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.community-section-action:hover {
    opacity: 0.8;
}

/* === TWO-COLUMN GRID === */
.community-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.community-main-col {
    min-width: 0;
}

.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.community-sidebar-widget {
    background: var(--card);
    border-radius: 12px;
    padding: 16px;
}

.community-sidebar-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.community-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.community-stat-item {
    text-align: center;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.community-stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.community-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 2px;
}

.community-sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text2);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.community-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.community-sidebar-link i {
    color: var(--accent);
    font-size: 0.75rem;
    width: 18px;
    text-align: center;
}

/* === TOP BAR === */
.community-topbar {
    padding: 8px 0 0 0;
}

.community-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    min-height: var(--touch-min);
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-back-btn:hover {
    color: var(--white);
}

.community-back-btn i {
    font-size: 0.7rem;
}

/* === USER CARDS === */
.people-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.community-user-card {
    background: var(--card);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-user-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
}

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

.user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b1633;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-card-info {
    display: flex;
    flex-direction: column;
}

.user-card-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--white);
}

.user-profile-link,
.review-user-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.user-profile-link:hover,
.review-user-link:hover {
    color: var(--accent);
}

.user-card-fullname {
    font-size: 0.78rem;
    color: var(--muted);
}

/* === FOLLOW TOGGLE === */
.btn-follow-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    min-height: var(--touch-min);
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-follow-toggle:hover {
    background: var(--accent);
    color: #0b1633;
}

.btn-follow-toggle.following {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.btn-follow-toggle.following:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* === ACTIVITY FILTER BAR === */
.activity-filter-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(15, 31, 64, 0.6);
    margin-bottom: 12px;
}

.activity-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    min-height: var(--touch-min);
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px;
    color: var(--muted) !important;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-filter-btn:hover {
    color: var(--white) !important;
}

.activity-filter-btn.active {
    background: rgba(245, 158, 11, 0.15) !important;
    color: var(--accent) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    font-weight: 600;
}

/* === ACTIVITY FEED === */
.activity-feed-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skel-activity-card {
    background: var(--card);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skel-activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
    flex-shrink: 0;
}

.skel-activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skel-activity-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
}

.skel-activity-line:nth-child(1) { width: 70%; }
.skel-activity-line:nth-child(2) { width: 40%; }

.skel-activity-cover {
    width: 40px;
    height: 56px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
    flex-shrink: 0;
}

.skel-user-card {
    background: var(--card);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skel-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
    flex-shrink: 0;
}

.skel-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skel-user-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
}

.skel-user-line:nth-child(1) { width: 60%; }
.skel-user-line:nth-child(2) { width: 40%; }

.community-activity-card {
    background: var(--card);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-activity-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
}

/* Activity type variations */
.community-activity-card[data-type="review"] {
    min-height: 80px;
}

.community-activity-card[data-type="list"] {
    min-height: 70px;
}

.community-activity-card[data-type="follow"] {
    min-height: 56px;
    padding: 8px 14px;
}

.activity-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.activity-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b1633;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.activity-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.activity-card-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Expanded text for reviews */
.community-activity-card[data-type="review"] .activity-card-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-card-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-media-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: capitalize;
    flex-shrink: 0;
}

.activity-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.activity-card-time {
    color: var(--muted);
    font-size: 0.7rem;
    margin-left: 0;
}

.activity-cover-img {
    border-radius: 8px;
    flex-shrink: 0;
    margin-left: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.activity-cover-poster {
    width: 40px;
    height: 56px;
    object-fit: cover;
}

.activity-cover-wide {
    width: 56px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.activity-cover-square {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.activity-cover-album {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
}

.activity-poster-grid {
    display: flex;
    margin-left: 14px;
    flex-shrink: 0;
}

.activity-poster-thumb {
    width: 36px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--bg-card, #0f1f40);
    background: rgba(255, 255, 255, 0.04);
    margin-left: calc(var(--poster-i, 0) * -8px);
    z-index: calc(3 - var(--poster-i, 0));
}

.activity-list-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-left: 14px;
}

.activity-review-preview {
    margin-top: 8px;
    max-height: 80px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.activity-review-preview p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.activity-review-preview.expanded p {
    -webkit-line-clamp: unset;
}

.activity-review-preview.expanded .activity-review-toggle {
    display: none;
}

.activity-review-toggle {
    font-size: 0.75rem;
    color: var(--accent);
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
}

/* List poster thumbnails */
.activity-list-posters {
    display: flex;
    gap: 4px;
    margin-left: 14px;
    flex-shrink: 0;
}

.activity-list-poster {
    width: 32px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

/* === REVIEWS FEED === */
.reviews-feed-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community-review-card {
    background: var(--card);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-review-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b1633;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.review-user-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
}

.review-item-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

.review-item-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.review-item-link:hover {
    text-decoration: underline;
}

.review-stars-wrap {
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
}

.review-card-body-with-cover {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.review-cover-img {
    width: 54px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.review-text-content {
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pt-4 { padding-top: 4px; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

/* === EMPTY STATE === */
.community-empty-box {
    background: var(--card);
    border-radius: 12px;
    margin-top: 12px;
}

.empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.empty-desc {
    font-size: 0.82rem;
    color: var(--muted);
    max-width: 400px;
    margin-bottom: 16px;
}

.btn-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #0b1633;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

/* === SKELETON OVERRIDES === */
.skel-spotlight,
.community-spotlight-skel {
    width: 100% !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    border-radius: 14px !important;
    margin-bottom: 20px !important;
    border: 1px solid var(--border) !important;
}

/* === COMMUNITY LISTS RAIL LAYOUT === */

/* Mode bar */
.cml-mode-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cml-mode-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 4px;
    gap: 2px;
}

.cml-mode-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: rgba(255,255,255,0.09);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), width 0.22s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    z-index: 0;
}

.cml-mode-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: rgba(203,213,225,0.55);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.cml-mode-btn i { font-size: 0.8rem; transition: color 0.18s ease; }
.cml-mode-btn:hover { color: rgba(255,255,255,0.85); }
.cml-mode-btn.active { color: #fff; }
.cml-mode-btn.active i { color: var(--accent); }

/* Filter icon + dropdown */
.cml-filter-wrap {
    position: relative;
}

.cml-filter-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(203,213,225,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    font-size: 0.85rem;
}

.cml-filter-icon:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
}

.cml-filter-icon.is-active {
    background: rgba(245,158,11,0.15);
    color: var(--accent);
    border-color: rgba(245,158,11,0.3);
}

.cml-filter-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: rgba(15, 25, 50, 0.96);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    z-index: 100;
    display: none;
    animation: cmlDropIn 0.15s ease both;
    backdrop-filter: blur(12px);
}

.cml-filter-dropdown.is-open { display: block; }

@keyframes cmlDropIn {
    from { opacity: 0; transform: translateY(-4px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cml-filter-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(203,213,225,0.6);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    text-align: left;
    white-space: nowrap;
}

.cml-filter-opt:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.cml-filter-opt.active {
    background: rgba(245,158,11,0.12);
    color: var(--accent);
    font-weight: 600;
}

.cml-filter-opt i { font-size: 0.7rem; width: 16px; text-align: center; }

/* Mode panels */
.cml-mode-panel {
    display: grid;
    gap: 32px;
    animation: cmlPanelFadeIn 0.22s ease both;
}

@keyframes cmlPanelFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Rail */
.cml-rail { display: grid; gap: 14px; }
.cml-rail.cml-rail-hidden { display: none !important; }

.cml-rail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cml-rail-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--white);
    flex-wrap: wrap;
}

.cml-rail-user-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}
.cml-rail-user-link:hover { text-decoration: underline; }

/* Rail track (horizontal scroll of poster cards) */
.cml-rail-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    align-items: flex-start;
    justify-content: flex-start;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.cml-rail-track::-webkit-scrollbar { display: none; }

/* === CUSTOM LIST BADGE === */
.cml-custom-badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 600;
    font-family: inherit;
    color: #f59e0b;
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.cml-rail-icon {
    margin-right: 6px;
    font-size: 0.82em;
    color: #f59e0b;
    width: 16px;
    text-align: center;
}

/* === SKELETON LOADING === */
.cml-skeleton-rail {
    margin-bottom: 28px;
}

.cml-skeleton-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.cml-skeleton-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
    flex-shrink: 0;
}

.cml-skeleton-title {
    height: 14px;
    width: 220px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
}

.cml-skeleton-track {
    display: flex;
    gap: 12px;
    overflow: hidden;
}

.cml-skeleton-card {
    flex-shrink: 0;
    width: 136px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
    aspect-ratio: 2 / 3;
}

.cml-skeleton-card.is-square {
    aspect-ratio: 1 / 1;
}

.cml-skeleton-card.is-landscape {
    width: 170px;
    aspect-ratio: 4 / 3;
}

@keyframes cmlShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* === POSTER CARD (profile.html style) === */
.cml-poster {
    flex-shrink: 0;
    width: 136px;
    cursor: pointer;
    animation: cmlPosterIn 0.32s cubic-bezier(0.2,0.9,0.2,1) both;
}

.cml-poster:nth-child(1) { animation-delay: 0ms; }
.cml-poster:nth-child(2) { animation-delay: 40ms; }
.cml-poster:nth-child(3) { animation-delay: 80ms; }
.cml-poster:nth-child(4) { animation-delay: 120ms; }
.cml-poster:nth-child(5) { animation-delay: 160ms; }
.cml-poster:nth-child(6) { animation-delay: 200ms; }
.cml-poster:nth-child(7) { animation-delay: 240ms; }

@keyframes cmlPosterIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cml-poster-img-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    aspect-ratio: 2 / 3;
    transition: transform 0.22s cubic-bezier(0.2,0.9,0.2,1),
                box-shadow 0.22s ease;
}

.cml-poster.is-square .cml-poster-img-wrap { aspect-ratio: 1 / 1; }
.cml-poster.is-landscape { width: 170px; }
.cml-poster.is-landscape .cml-poster-img-wrap { aspect-ratio: 4 / 3; }

.cml-poster:hover .cml-poster-img-wrap {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0,0,0,0.55);
}

.cml-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.22s ease;
}

.cml-poster:hover .cml-poster-img { filter: brightness(1.06); }

.cml-poster.is-brand .cml-poster-img-wrap {
    background: linear-gradient(180deg,rgba(245,247,252,0.98),rgba(226,232,244,0.96));
}

.cml-poster.is-brand .cml-poster-img {
    object-fit: contain;
    padding: 16px;
}

/* Poster hover overlay — subtle lift only */
.cml-poster-overlay { display: none; }

/* Rail empty state */
.cml-rail-empty {
    width: 100%;
    height: 180px;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(203,213,225,0.3);
}

.cml-rail-empty i { font-size: 1.4rem; color: rgba(203,213,225,0.18); }
.cml-rail-empty-text { font-size: 0.82rem; font-weight: 500; }

/* Responsive */
@media (max-width: 1280px) { .cml-poster { width: 120px; } }
@media (max-width: 1024px) { .cml-poster { width: 110px; } }
@media (max-width: 768px) { .cml-poster { width: 110px; } .cml-poster.is-landscape { width: 140px; } }

/* === COMMUNITY SEARCH BAR === */
.community-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(15, 31, 64, 0.6);
    margin-bottom: 12px;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-search-bar:focus-within {
    border-color: rgba(245, 158, 11, 0.4);
}

.community-search-icon {
    color: var(--muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.community-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 0.85rem;
    font-family: inherit;
}

.community-search-input::placeholder {
    color: var(--muted);
}

/* === ACTIVITY CARD INTERACTIONS === */
.activity-card-interactions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-interact-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    min-height: var(--touch-min);
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-interact-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.activity-interact-btn.active-like {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.activity-interact-btn.active-dislike {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.activity-interact-btn i {
    font-size: 0.7rem;
}

.activity-interact-count {
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 8px;
    text-align: center;
}

/* Reply thread in activity card */
.activity-reply-thread {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: none;
}

.activity-reply-thread.open {
    display: block;
}

.activity-reply-input-row {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.activity-reply-input {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    font-size: 0.78rem;
    font-family: inherit;
    resize: none;
    min-height: 32px;
    max-height: 80px;
}

.activity-reply-input:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.4);
}

.activity-reply-submit {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent);
    font-size: 0.75rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.activity-reply-submit:hover {
    background: rgba(245, 158, 11, 0.35);
}

.activity-reply-list {
    margin-top: 6px;
    display: grid;
    gap: 6px;
}

.activity-reply-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-reply-item.is-depth-1,
.activity-reply-item.is-depth-2,
.activity-reply-item.is-depth-3,
.activity-reply-item.is-depth-4,
.activity-reply-item.is-depth-5 {
    margin-left: 16px;
    border-left: 2px solid rgba(245, 158, 11, 0.2);
}

.activity-reply-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.activity-reply-user {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.activity-reply-user:hover {
    text-decoration: underline;
}

.activity-reply-date {
    font-size: 0.65rem;
    color: var(--muted);
}

.activity-reply-body {
    font-size: 0.75rem;
    color: var(--text2);
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.activity-reply-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}

.activity-reply-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.65rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.activity-reply-action-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.activity-reply-action-btn.active-like {
    color: #22c55e;
}

.activity-reply-action-btn.active-dislike {
    color: #ef4444;
}

.activity-reply-action-btn.activity-reply-delete {
    opacity: 0;
    transition: opacity 0.15s;
}

.activity-reply-item:hover .activity-reply-delete {
    opacity: 1;
}

.activity-reply-action-btn.activity-reply-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.activity-reply-children {
    margin-top: 6px;
    display: grid;
    gap: 6px;
}

.nested-reply-form {
    display: none;
    margin-top: 6px;
}

.nested-reply-form.open {
    display: block;
}

/* === ACTIVITY LOADING === */
.activity-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .community-grid {
        grid-template-columns: 1fr;
    }
    .community-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .community-content {
        padding: 20px 14px 40px 14px;
    }

    .community-tab-btn {
        padding: 10px 12px;
        min-height: var(--touch-min);
        font-size: 0.78rem;
    }

    .community-sidebar {
        grid-template-columns: 1fr;
    }

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

    .community-stat-number {
        font-size: 1.1rem;
    }

    .activity-filter-bar {
        width: 100%;
    }

    .activity-card-interactions {
        flex-wrap: wrap;
    }

    .community-back-btn {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .activity-cover-poster { width: 36px; height: 50px; }
    .activity-cover-wide { width: 50px; height: 36px; }
    .activity-cover-square { width: 40px; height: 40px; padding: 3px; }
    .activity-cover-album { width: 40px; height: 40px; }

    .cml-poster { width: 110px; }

    .skel-spotlight,
    .community-spotlight-skel {
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
        margin-bottom: 14px !important;
    }
}

/* ============================================================
   DISCOVER FEED — Editorial Magazine-Style Layout
   ============================================================ */

/* Section wrapper */
.disc-section { margin-bottom: 48px; }

/* Section headers */
.disc-section-hdr {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.disc-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.disc-section-sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: lowercase;
}

/* === MEMBER STRIP === */
.disc-member-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.disc-member-strip::-webkit-scrollbar { display: none; }

.disc-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 64px;
    text-decoration: none;
    transition: transform 0.18s ease;
}

.disc-member:hover { transform: translateY(-2px); }

.disc-member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b1633;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: border-color 0.18s ease;
}

.disc-member:hover .disc-member-avatar { border-color: var(--accent); }

.disc-member-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.disc-skel-circle {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
}

/* === POSTER RAIL === */
.disc-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px 4px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.disc-rail::-webkit-scrollbar { display: none; }

.disc-poster {
    flex-shrink: 0;
    width: 130px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.disc-poster:hover { transform: translateY(-4px); }

.disc-poster-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: block;
}

.disc-poster-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text2);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disc-poster-date {
    font-size: 0.62rem;
    color: var(--muted);
    margin-top: 2px;
}

.disc-rail-wide .disc-poster { width: 200px; }
.disc-rail-wide .disc-poster-img { aspect-ratio: 16 / 9; object-fit: contain; background: rgba(0,0,0,0.3); }

.disc-skel-poster {
    flex-shrink: 0;
    width: 130px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
}

.disc-skel-wide { width: 200px; aspect-ratio: 16 / 9; }

/* === REVIEW CARD STACK === */
.disc-review-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.disc-review-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s var(--ease-smooth);
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.disc-review-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
}

.disc-review-cover {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    display: block;
    border-radius: 0;
    overflow: hidden;
}

.disc-review-cover-link {
    display: block;
    width: 60px;
    height: 80px;
    flex-shrink: 0;
}

.disc-review-cover-link {
    display: block;
    width: 60px;
    height: 80px;
    flex-shrink: 0;
}

.disc-review-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.disc-review-left {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
}

.disc-review-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.disc-review-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b1633;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.disc-review-username {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--white);
}

.disc-review-stars {
    font-size: 0.7rem;
    color: var(--accent);
    margin-left: auto;
}

.disc-review-text {
    font-size: 0.78rem;
    color: var(--text2);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.disc-review-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.disc-review-item-name {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
}

.disc-review-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.disc-review-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.disc-review-action-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.disc-review-action-btn.active-like {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.disc-review-action-btn.active-dislike {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.disc-review-action-btn i { font-size: 0.65rem; }

.disc-review-action-count {
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 6px;
    text-align: center;
}

.disc-skel-review {
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
}

/* === DISCOVER LISTS MODE SWITCHER === */
.disc-lists-mode-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.disc-lists-mode-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 4px;
    gap: 2px;
}

.disc-lists-mode-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: rgba(255,255,255,0.09);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), width 0.22s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    z-index: 0;
}

.disc-lists-mode-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: rgba(203,213,225,0.55);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.disc-lists-mode-btn i { font-size: 0.8rem; transition: color 0.18s ease; }
.disc-lists-mode-btn:hover { color: rgba(255,255,255,0.85); }
.disc-lists-mode-btn.active { color: #fff; }
.disc-lists-mode-btn.active i { color: var(--accent); }

.disc-lists-panel {
    display: grid;
    gap: 28px;
    animation: cmlPanelFadeIn 0.22s ease both;
}

.disc-skel-rail {
    height: 200px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
}

/* === SIDEBAR LIVE DATA === */
.disc-sidebar-users,
.disc-sidebar-lists {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.disc-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.disc-sidebar-user:hover { background: rgba(255, 255, 255, 0.04); }

.disc-sidebar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b1633;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.disc-sidebar-user-info { flex: 1; min-width: 0; }

.disc-sidebar-user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disc-sidebar-user-count {
    font-size: 0.62rem;
    color: var(--muted);
}

.disc-sidebar-list {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.disc-sidebar-list:hover { background: rgba(255, 255, 255, 0.04); }

.disc-sidebar-list-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.disc-sidebar-list-info { flex: 1; min-width: 0; }

.disc-sidebar-list-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disc-sidebar-list-meta {
    font-size: 0.62rem;
    color: var(--muted);
}

.disc-skel-sidebar-row {
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
}

/* === GLOBAL MODE SWITCHER === */
.disc-global-mode {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.disc-global-mode-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 4px;
    gap: 2px;
}

.disc-global-mode-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: rgba(255,255,255,0.09);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), width 0.22s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    z-index: 0;
}

.disc-global-mode-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    min-height: var(--touch-min);
    border-radius: 10px;
    border: none;
    background: transparent;
    color: rgba(203,213,225,0.55);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.disc-global-mode-btn i { font-size: 0.8rem; transition: color 0.18s ease; }
.disc-global-mode-btn:hover { color: rgba(255,255,255,0.85); }
.disc-global-mode-btn.active { color: #fff; }
.disc-global-mode-btn.active i { color: var(--accent); }

/* === POPULAR REVIEW HERO === */
.disc-review-hero {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
    min-height: 140px;
    display: flex;
    align-items: center;
    transition: all 0.2s var(--ease-smooth);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-card);
}

.disc-review-hero:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.disc-review-hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 1;
    filter: saturate(1.1) contrast(1.05) blur(8px);
    transform: scale(1.1);
    transform-origin: center top;
    transition: opacity 0.3s ease;
}

.disc-review-hero:hover .disc-review-hero-backdrop {
    opacity: 0.9;
}

.disc-review-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,22,51,1) 0%, rgba(11,22,51,0.7) 35%, rgba(11,22,51,0.2) 70%, rgba(11,22,51,0.1) 100%);
}

.disc-review-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    width: 100%;
    align-items: center;
}

.disc-review-hero-poster {
    width: 60px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.disc-review-hero-info {
    flex: 1;
    min-width: 0;
}

.disc-review-hero-user {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.disc-review-hero-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #0b1633;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.disc-review-hero-username {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--white);
}

.disc-review-hero-stars {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--accent);
}

.disc-review-hero-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.disc-review-hero-excerpt {
    font-size: 0.75rem;
    color: var(--text2);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.disc-review-hero-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.disc-review-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    min-height: var(--touch-min);
    border-radius: 6px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.disc-review-hero-action:hover { color: var(--white); }
.disc-review-hero-action.active-like { color: #22c55e; }
.disc-review-hero-action.active-dislike { color: #ef4444; }

.disc-skel-review-hero {
    height: 180px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
}

/* === ARTIST POSTERS (square with rounded corners) === */
.disc-poster-artist .disc-poster-img-round {
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* === BRAND POSTERS (contain, white bg) === */
.disc-poster-brand {
    background: #fff;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.disc-poster-brand .disc-poster-img-contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.disc-poster-brand .disc-poster-title {
    display: none;
}

/* === FLAG POSTERS (normal poster format) === */
.disc-flag-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.disc-flag-strip::-webkit-scrollbar { display: none; }

.disc-flag-item {
    flex-shrink: 0;
    width: 100px;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.18s ease;
    text-decoration: none;
    display: block;
}

.disc-flag-item:hover { transform: scale(1.05); }

.disc-flag-item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
}

/* === POPULAR LISTS — SPREAD CARDS === */
.disc-lists-stacks {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 8px 28px 8px;
}
.disc-lists-stacks::-webkit-scrollbar { display: none; }

.disc-list-stack {
    flex-shrink: 0;
    width: 170px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.disc-list-stack:hover {
    z-index: 50;
}

.disc-list-stack-deck {
    position: relative;
    width: 155px;
    height: 160px;
    margin-bottom: 10px;
    overflow: visible;
}

.disc-list-stack-card {
    position: absolute;
    top: 6px;
    width: 105px;
    height: 148px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--card);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s var(--ease-smooth),
                box-shadow 0.3s var(--ease-smooth),
                left 0.3s var(--ease-smooth),
                opacity 0.3s var(--ease-smooth);
    transform-origin: center bottom;
    cursor: pointer;
}

/* resting — spread horizontally with equal 18px gaps */
.disc-list-stack-card:nth-child(1) { left: 0; z-index: 5; }
.disc-list-stack-card:nth-child(2) { left: 18px; z-index: 4; }
.disc-list-stack-card:nth-child(3) { left: 36px; z-index: 3; }
.disc-list-stack-card:nth-child(4) { left: 54px; z-index: 2; opacity: 0.85; }
.disc-list-stack-card:nth-child(5) { left: 72px; z-index: 1; opacity: 0.7; }

/* single card — center it */
.disc-list-stack-deck:has(.disc-list-stack-card:nth-child(1):last-child) .disc-list-stack-card {
    left: 25px;
}

/* two cards — equal spread */
.disc-list-stack-deck:has(.disc-list-stack-card:nth-child(2):last-child) .disc-list-stack-card:nth-child(1) { left: 10px; }
.disc-list-stack-deck:has(.disc-list-stack-card:nth-child(2):last-child) .disc-list-stack-card:nth-child(2) { left: 28px; }

/* hover whole stack — spread cards further apart with equal gaps */
.disc-list-stack:hover .disc-list-stack-card:nth-child(1) { left: -10px; }
.disc-list-stack:hover .disc-list-stack-card:nth-child(2) { left: 14px; }
.disc-list-stack:hover .disc-list-stack-card:nth-child(3) { left: 38px; }
.disc-list-stack:hover .disc-list-stack-card:nth-child(4) { left: 62px; opacity: 0.95; }
.disc-list-stack:hover .disc-list-stack-card:nth-child(5) { left: 86px; opacity: 0.85; }

/* hover individual card — lift up high, no crop */
.disc-list-stack:hover .disc-list-stack-card {
    pointer-events: auto;
}

.disc-list-stack-card:hover {
    transform: translateY(-36px) scale(1.1);
    box-shadow: 0 24px 56px rgba(0,0,0,0.65);
    z-index: 20 !important;
    opacity: 1 !important;
    transition: transform 0.2s var(--ease-smooth),
                box-shadow 0.2s var(--ease-smooth);
}

/* brand/logo/travel variant — white background */
.disc-list-stack-card.is-brand,
.disc-list-stack-deck .is-brand {
    background: #ffffff !important;
    object-fit: contain !important;
    padding: 6px;
}

.disc-list-stack-label {
    text-align: center;
    max-width: 180px;
}

.disc-list-stack-user {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disc-list-stack-name {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.disc-list-stack-media {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    text-transform: capitalize;
    margin-top: 1px;
}

.disc-list-highlight-count {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.disc-skel-highlight {
    width: 140px;
    height: 200px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
    flex-shrink: 0;
}

/* === EMPTY STATES === */
.disc-empty {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
}

.disc-empty-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
    opacity: 0.3;
}

/* === SIDEBAR TODAY'S ACTIVITY === */
.disc-sidebar-activity-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.disc-sidebar-activity-stat {
    flex: 1;
    text-align: center;
}

.disc-sidebar-activity-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.disc-sidebar-activity-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.disc-sidebar-activity-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.disc-sidebar-activity-tag {
    font-size: 0.72rem;
    color: var(--muted);
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* === EDITORIAL CARD === */
.disc-editorial-card {
    display: flex;
    gap: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s var(--ease-smooth);
}

.disc-editorial-card:hover {
    background: rgba(255,255,255,0.06);
}

.disc-editorial-img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}

.disc-editorial-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245,158,11,0.1);
    color: var(--accent);
    font-size: 1.5rem;
}

.disc-editorial-body {
    padding: 12px 12px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.disc-editorial-stars {
    color: var(--accent);
    font-size: 0.85rem;
}

.disc-editorial-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.disc-editorial-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--muted);
}

.disc-editorial-media {
    background: rgba(255,255,255,0.06);
    padding: 2px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.disc-editorial-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === COMPACT ACTIVITY FEED === */
.disc-activity-compact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.disc-activity-compact:last-child {
    border-bottom: none;
}

.disc-activity-compact-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(245,158,11,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.disc-activity-compact-info {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--muted);
}

.disc-activity-compact-user {
    color: var(--white);
    font-weight: 600;
}

.disc-activity-compact-media {
    color: var(--accent);
    font-weight: 500;
}

.disc-activity-compact-time {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
}

.disc-skel-editorial {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: cmlShimmer 1.5s infinite;
}

/* === SIDEBAR CURRENTLY POPULAR === */
.disc-sidebar-popular-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.disc-sidebar-popular-item:last-child {
    border-bottom: none;
}

.disc-sidebar-popular-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(245,158,11,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.disc-sidebar-popular-info {
    min-width: 0;
}

.disc-sidebar-popular-name {
    font-size: 0.8rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disc-sidebar-popular-count {
    font-size: 0.7rem;
    color: var(--muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .disc-hero { height: 200px; }
    .disc-hero-title { font-size: 1.1rem; }
    .disc-hero-content { padding: 16px; }
    .disc-poster { width: 110px; }
    .disc-rail-wide .disc-poster { width: 160px; }
    .disc-list-card { width: 220px; }
    .disc-review-hero { min-height: 100px; }
    .disc-review-hero-content { flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; }
    .disc-review-hero-poster { width: 44px; height: 66px; border-radius: 6px; }
    .disc-review-hero-excerpt { -webkit-line-clamp: 1; font-size: 0.7rem; }
    .disc-review-hero-title { font-size: 0.75rem; }
    .disc-review-hero-avatar { width: 20px; height: 20px; font-size: 0.55rem; }
    .disc-review-hero-username { font-size: 0.68rem; }
    .disc-review-hero-stars { font-size: 0.65rem; }
    .disc-review-hero-action { font-size: 0.65rem; padding: 2px 6px; }
    .disc-lists-stacks { gap: 28px; padding: 16px 4px 20px 4px; }
    .disc-list-stack { width: 135px; }
    .disc-list-stack-deck { width: 125px; height: 125px; }
    .disc-list-stack-card { width: 85px; height: 120px; }
    .disc-list-stack-card:nth-child(1) { left: 0; }
    .disc-list-stack-card:nth-child(2) { left: 12px; }
    .disc-list-stack-card:nth-child(3) { left: 24px; }
    .disc-list-stack-card:nth-child(4) { left: 36px; }
    .disc-list-stack-card:nth-child(5) { left: 48px; }
    .disc-list-stack-deck:has(.disc-list-stack-card:nth-child(1):last-child) .disc-list-stack-card {
        left: 20px;
    }
    .disc-list-stack-deck:has(.disc-list-stack-card:nth-child(2):last-child) .disc-list-stack-card:nth-child(1) { left: 8px; }
    .disc-list-stack-deck:has(.disc-list-stack-card:nth-child(2):last-child) .disc-list-stack-card:nth-child(2) { left: 20px; }
    .community-sidebar.community-sidebar-discover-only { display: none; }
}

/* === SIDEBAR: discover-only toggle === */
.community-sidebar.community-sidebar-discover-only { display: none; }
.community-sidebar.community-sidebar-visible { display: flex; }
.community-grid.community-grid-single { grid-template-columns: 1fr; }
