/* ============================================
   HOMEPAGE - Comprehensive MAL/AniList Style
   ============================================ */

/* === LAYOUT === */
.home {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 8px 40px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* === HOME HERO (Guest Users) === */
.home-hero {
    margin-bottom: 48px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left side - Main message */
.hero-main {
    padding-right: 20px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8b5cf6;
    margin-bottom: 16px;
}

.home-hero .hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-strike {
    color: #6b7280;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 3px;
}

.hero-highlight {
    position: relative;
    color: #fff;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 2px;
    height: 12px;
    background: rgba(139, 92, 246, 0.4);
    z-index: -1;
    transform: skewX(-3deg);
}

.hero-cta {
    display: flex;
    gap: 12px;
}

.hero-btn {
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-btn.primary {
    background: #8b5cf6;
    color: #fff;
}

.hero-btn.primary:hover {
    background: #7c3aed;
}

.hero-btn.secondary {
    background: transparent;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-btn.secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Right side - Features stack */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid rgba(139, 92, 246, 0.2);
    padding-left: 32px;
}

.features-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.hero-feature:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-feature:hover {
    transform: translateX(6px);
}

.feature-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.feature-icon svg {
    width: 18px;
    height: 18px;
    color: #8b5cf6;
    transition: all 0.25s ease;
}

.hero-feature:hover .feature-icon {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}

.hero-feature:hover .feature-icon svg {
    color: #a78bfa;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hero-feature .feature-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.2s ease;
}

.hero-feature .feature-value {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.4;
}

.hero-feature:hover .feature-label {
    color: #a78bfa;
}

/* Hero responsive */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-main {
        padding-right: 0;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-features {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid rgba(139, 92, 246, 0.2);
        padding-top: 24px;
    }

    .features-header {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 36px 0;
        margin-bottom: 32px;
    }

    .home-hero .hero-title {
        font-size: 2rem;
    }

    .hero-feature {
        padding: 14px 0;
        gap: 12px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
    }

    .feature-icon svg {
        width: 16px;
        height: 16px;
    }

    .hero-feature .feature-label {
        font-size: 0.85rem;
    }

    .hero-feature .feature-value {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .home-hero .hero-title {
        font-size: 1.65rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
    }

    .feature-icon svg {
        width: 14px;
        height: 14px;
    }

    .hero-feature .feature-label {
        font-size: 0.8rem;
    }

    .hero-feature .feature-value {
        font-size: 0.72rem;
    }
}

/* === TOP ROW (Activity Feed + Community) === */
.top-row {
    margin-bottom: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* === ACTIVITY FEED === */
.activity-section {
    min-width: 0;
}

.activity-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.activity-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    padding: 3px;
    border-radius: 6px;
}

.activity-tab {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.activity-tab:hover {
    color: var(--text-primary);
}

.activity-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 532px; /* Exactly 5 cards: 5×100px + 4×8px gaps */
    overflow-y: auto;
    padding-right: 4px;
}

.activity-feed::-webkit-scrollbar {
    width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
    background: transparent;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Activity Feed Back to Top Button */
.activity-back-to-top {
    position: sticky;
    bottom: 12px;
    align-self: flex-end;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 10;
    margin-top: -40px;
    pointer-events: none;
}

.activity-back-to-top:hover {
    background: var(--bg-surface);
    border-color: var(--primary);
    color: var(--primary);
}

.activity-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.activity-back-to-top svg {
    width: 16px;
    height: 16px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    position: relative;
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    height: 100px;
    flex-shrink: 0;
}

.activity-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.activity-item:hover .activity-username {
    color: var(--primary);
}

/* Anime Activity Cards (AniList style) */
.activity-item.activity-anime {
    /* height inherited from .activity-item */
}

.activity-item.activity-anime .activity-cover {
    width: 70px;
    height: 100%;
}

.activity-item.activity-anime .activity-body {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
}

.activity-item.activity-anime .activity-header {
    margin-bottom: 8px;
}

.activity-action {
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.9;
    margin: 0;
    flex: 1;
}

.activity-action .anime-title {
    color: var(--primary);
    font-weight: 500;
}

.activity-action .progress-text {
    color: var(--primary);
    font-weight: 600;
}

.activity-action .score-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    margin-left: 4px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 6px;
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.82rem;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.activity-action .score-badge svg {
    width: 12px;
    height: 12px;
    fill: #fbbf24;
}

/* Status colors in activity text */
.activity-action .status-watching { color: #3b82f6; }
.activity-action .status-completed { color: #22c55e; }
.activity-action .status-on-hold { color: #f59e0b; }
.activity-action .status-dropped { color: #ef4444; }
.activity-action .status-planned { color: var(--primary); }
.activity-action .status-rewatching { color: #06b6d4; }

.activity-action .status-verb {
    font-weight: 600;
}

.activity-action .status-verb svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

.activity-action .anime-title,
.activity-action .progress-text,
.activity-action .score-badge {
    vertical-align: baseline;
}

.activity-review-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 4px 0 0;
}

.activity-footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.activity-footer .activity-metrics {
    margin-top: 0;
}

.activity-cover {
    width: 70px;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-surface);
    border-radius: 7px 0 0 7px; /* Match card's left corners */
}

.activity-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
    border-radius: 7px 0 0 7px;
}

.activity-item:hover .activity-cover img {
    transform: scale(1.05);
}

.activity-body {
    flex: 1;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.activity-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--bg-surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.activity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-avatar svg {
    width: 12px;
    height: 12px;
    color: #9ca3af;
}

.activity-username {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.activity-username:hover {
    color: var(--primary);
}

.activity-time {
    margin-left: auto;
    font-size: 0.65rem;
    color: #9ca3af;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.activity-text .anime-title {
    font-weight: 600;
    color: var(--primary);
}

.activity-text .score {
    color: #fbbf24;
    font-weight: 700;
}

.activity-text .status {
    color: var(--text-secondary);
    font-weight: 500;
}

.activity-text .category {
    color: #9ca3af;
    font-weight: 500;
}

.activity-text .followed-user {
    font-weight: 600;
    color: var(--primary);
}

/* Forum Activity Cards */
.activity-item.activity-forum {
    padding: 10px 12px;
}

.activity-forum .activity-body {
    padding: 0;
}

.activity-forum .activity-header {
    flex-wrap: wrap;
    gap: 4px 8px;
}

.activity-action-text {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.activity-icon-create {
    color: #10b981;
}

.activity-icon-reply {
    color: #3b82f6;
}

/* ---- Tier list activity card ---- */
.activity-item.activity-tierlist .activity-cover-tierlist {
    width: 70px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.06);
    border-radius: 7px 0 0 7px;
    overflow: hidden;
}

.activity-tierlist-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1px;
    filter: blur(0.4px);
    opacity: 0.55;
    transition: opacity 0.2s, filter 0.2s;
}
.activity-item:hover .activity-tierlist-preview {
    opacity: 0.8;
    filter: blur(0.2px);
}

.activity-tierlist-preview.activity-tierlist-icon {
    align-items: center;
    justify-content: center;
    filter: none;
    opacity: 1;
}
.activity-tierlist-icon svg {
    width: 28px;
    height: 28px;
    color: #a78bfa;
    opacity: 0.5;
}

.at-tier-row {
    display: flex;
    flex: 1;
    min-height: 0;
}

.at-tier-label {
    width: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.35rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    line-height: 1;
}

.at-tier-items {
    flex: 1;
    display: flex;
    gap: 1px;
    padding: 1px;
    background: rgba(0, 0, 0, 0.25);
    min-height: 0;
    overflow: hidden;
}
.at-tier-items img {
    height: 100%;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-tier-name {
    color: var(--primary);
    font-weight: 500;
}

.activity-tier-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.7;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-contest-tag {
    display: inline;
    padding: 1px 6px;
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: 2px;
}
.activity-contest-tag:hover {
    background: rgba(139, 92, 246, 0.22);
    color: #ddd6fe;
}

.activity-action-text .forum-category {
    color: var(--text-secondary);
    font-weight: 500;
}

.activity-forum .activity-time {
    margin-left: auto;
}

.activity-forum .activity-content {
    padding-left: 32px;
}

.activity-thread-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-forum:hover .activity-thread-title {
    color: var(--primary);
}

.activity-text .review-title-text {
    display: block;
    margin-top: 2px;
    color: var(--text-primary);
    font-weight: 500;
    font-style: italic;
    font-size: 0.75rem;
}

.activity-preview {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 4px 0 0;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    flex: 1;
    min-width: 0;
}

.activity-forum-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.activity-forum-footer .activity-metrics {
    margin-top: 0;
    flex-shrink: 0;
}

/* Activity Metrics */
.activity-metrics {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 0.68rem;
    color: #9ca3af;
}

.activity-metric {
    display: flex;
    align-items: center;
    gap: 3px;
}

.activity-metric svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.activity-metric.upvotes svg {
    color: #10b981;
}

.activity-metric.downvotes svg {
    color: #ef4444;
}

.activity-metric.replies svg {
    color: #3b82f6;
}

.activity-metric.views svg {
    color: #9ca3af;
}

.activity-item.activity-review {
    /* height inherited from .activity-item */
}

/* No cover variant (status updates without cover images) */
.activity-item.no-cover {
    padding: 12px 14px;
    align-items: center;
}

.activity-item.no-cover .activity-body {
    padding: 0;
    justify-content: center;
}

.activity-item.no-cover .activity-avatar {
    width: 36px;
    height: 36px;
}

.activity-item.no-cover .activity-avatar svg {
    width: 18px;
    height: 18px;
}

/* Status Post Activity Card */
.activity-item.activity-status {
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
}

.activity-item.activity-status .activity-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item.activity-status .activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.activity-item.activity-status .activity-avatar {
    width: 32px;
    height: 32px;
}

.activity-item.activity-status .activity-status-label {
    color: var(--text-muted);
    font-size: 12px;
}

.activity-item.activity-status .activity-status-content {
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
}

.activity-item.activity-status .activity-status-content p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Double-height status card for long content */
.activity-item.activity-status.status-large {
    height: 208px;  /* 100 + 100 + 8 gap */
}

.activity-item.activity-status.status-large .activity-status-content p {
    -webkit-line-clamp: 8;
}

/* Status rich text formatting */
.activity-status-content .spoiler {
    background: var(--text-primary);
    color: transparent;
    border-radius: 3px;
    padding: 0 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.activity-status-content .spoiler:hover,
.activity-status-content .spoiler.revealed {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.activity-status-content strong {
    font-weight: 600;
}

.activity-status-content em {
    font-style: italic;
}

.activity-status-content del {
    text-decoration: line-through;
    opacity: 0.7;
}

.activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.activity-empty-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    color: #9ca3af;
    opacity: 0.5;
}

.activity-empty-icon svg {
    width: 100%;
    height: 100%;
}

.activity-empty p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

.activity-load-more {
    width: 100%;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.activity-load-more:hover {
    background: var(--bg-hover);
    color: var(--primary);
    border-color: var(--primary);
}

.activity-skel {
    height: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.activity-skel::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-hover) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* === COMMUNITY ASIDE === */
.community-aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.community-aside .section {
    margin-bottom: 0;
}

.community-aside .section-header {
    margin-bottom: 12px;
}

.news-list,
.discussions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item,
.discussion-item {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}

.news-item:hover,
.discussion-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-item-content,
.discussion-item-content {
    flex: 1;
    min-width: 0;
}

.news-item-title,
.discussion-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px;
    padding-right: 90px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.news-item:hover .news-item-title,
.discussion-item:hover .discussion-item-title {
    color: var(--primary);
}

.news-item-meta,
.discussion-item-meta {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 0.7rem;
    color: #9ca3af;
}

.news-item-row,
.discussion-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-item-preview,
.discussion-item-preview {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Thread Metrics (for news and discussions) */
.thread-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.thread-metric {
    display: flex;
    align-items: center;
    gap: 3px;
}

.thread-metric svg {
    width: 11px;
    height: 11px;
    opacity: 0.7;
}

.thread-metric.views svg {
    color: #9ca3af;
}

.thread-metric.replies svg {
    color: #3b82f6;
}

.thread-metric.upvotes svg {
    color: #10b981;
}

.thread-metric.downvotes svg {
    color: #ef4444;
}

.news-item-skel,
.discussion-item-skel {
    height: 72px;
    background: var(--bg-surface);
    border-radius: 8px;
    animation: pulse 1.5s infinite;
}

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

/* === SECTIONS === */
.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0;
}

.section-header a {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: none;
}

.section-header a:hover {
    color: var(--primary);
}

/* === RECOMMENDATIONS SECTION === */
#recsSection .section-header {
    flex-wrap: wrap;
    gap: 12px;
}

#recsSection .recs-tabs {
    display: flex;
    gap: 6px;
}

#recsSection .recs-tab {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

#recsSection .recs-tab:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

#recsSection .recs-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.recs-refresh-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 4px;
    flex-shrink: 0;
}

.recs-refresh-btn svg {
    width: 14px;
    height: 14px;
}

.recs-refresh-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.recs-refresh-btn.spinning svg {
    animation: spin-refresh 0.8s linear infinite;
}

@keyframes spin-refresh {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hide empty user sections */
.user-section.empty-section {
    display: none !important;
}

.recs-cold-start {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.recs-cold-start p {
    margin: 0;
    font-size: 0.85rem;
}

/* Accuracy banner - shows when recs are based on quiz, not ratings */
.recs-accuracy-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.recs-accuracy-banner svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary);
}

.recs-accuracy-banner span {
    line-height: 1.4;
}

/* === RECOMMENDATIONS CAROUSEL === */
#recsSection {
    overflow: visible; /* Allow arrows to extend into margins */
}

.recs-carousel {
    position: relative;
    overflow: visible;
}

.recs-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.recs-scroll-container::-webkit-scrollbar {
    display: none;
}

.recs-cards {
    display: flex !important;
    grid-template-columns: unset !important;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
    padding: 4px 0;
}

.recs-cards .rec-card-wrapper,
.recs-cards .card-skel {
    flex-shrink: 0;
    /* Match 6-column grid cards: (container - 5 gaps) / 6 */
    /* Container = min(viewport, 1400px) - sidebar(300) - grid-gap(72) - home-padding(16) - main-padding(54) */
    width: calc((min(100vw - 16px, 1384px) - 426px - 80px) / 6);
    min-width: 120px;
}

.recs-cards .rec-card-wrapper .oku-card {
    width: 100%;
}

.recs-arrow {
    position: absolute;
    /* Center on card image (155px width * 1.5 aspect ratio = 232px height, /2 = 116px) */
    top: 116px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    z-index: 10;
}

/* Hide arrows during loading */
.recs-carousel.loading .recs-arrow {
    display: none;
}

.recs-arrow-left {
    left: -48px;
}

.recs-arrow-right {
    right: -54px;
}

.recs-arrow:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.recs-arrow.hidden {
    display: none;
}

.recs-arrow svg {
    width: 20px;
    height: 20px;
}

.recs-arrow .reload-icon {
    width: 18px;
    height: 18px;
}

/* Reload state for right arrow */
.recs-arrow-right.at-end svg:first-child {
    display: none;
}

.recs-arrow-right.at-end .reload-icon {
    display: block !important;
}

.recs-arrow-right.at-end {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-color: transparent;
    color: white;
    animation: reload-pulse 2s ease-in-out infinite;
    width: 42px;
    height: 42px;
}

@keyframes reload-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.6),
                    0 2px 8px rgba(0, 0, 0, 0.2);
        transform: translateY(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0),
                    0 4px 12px rgba(var(--primary-rgb), 0.3);
        transform: translateY(-50%) scale(1.08);
    }
}

.recs-arrow-right.at-end:hover {
    animation: none;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.5);
}

.oku-card.hidden-gem {
    position: relative;
}

/* === RECOMMENDATION CARD WRAPPER === */
.rec-card-wrapper {
    position: relative;
    min-width: 0;
}

/* Dismiss Button (Not Interested) - Expandable on hover */
.dismiss-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px;
    background: rgba(0, 0, 0, 0.75);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
    z-index: 10;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    overflow: hidden;
    max-width: 28px;
}

.dismiss-btn svg {
    width: 16px;
    height: 16px;
    color: #fff;
    flex-shrink: 0;
}

.dismiss-btn .dismiss-text {
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.2s ease, opacity 0.15s ease, margin 0.2s ease;
    margin-left: 0;
}

/* Expand on card hover */
.rec-card-wrapper:hover .dismiss-btn {
    opacity: 1;
    max-width: 120px;
    padding: 6px 10px;
    gap: 4px;
}

.rec-card-wrapper:hover .dismiss-btn .dismiss-text {
    max-width: 80px;
    opacity: 1;
    margin-left: 2px;
}

.dismiss-btn:hover {
    background: rgba(239, 68, 68, 0.95);
}

/* Dismissed Card (YouTube-style) */
.dismissed-card {
    aspect-ratio: 2/3;
    background: var(--bg-surface);
    border: 2px dashed var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dismissed-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    text-align: center;
}

.dismissed-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.undo-btn {
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.undo-btn:hover {
    background: var(--primary);
    color: white;
}

/* Dismiss Reason Picker */
.dismiss-reason-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    text-align: center;
}

.dismiss-reason-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.dismiss-reasons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dismiss-reason-pill {
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.dismiss-reason-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.dismiss-skip-btn {
    padding: 0;
    font-size: 0.65rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.dismiss-skip-btn:hover {
    opacity: 1;
}

/* Match Percentage Badge */
.match-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 5;
}

@media (max-width: 480px) {
    .dismiss-btn {
        opacity: 1;
        width: 24px;
        height: 24px;
        min-width: 24px;
        max-width: 24px;
        box-sizing: border-box;
    }

    /* Smaller carousel arrows on mobile */
    .recs-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* === NEWS GRID === */
.news-grid-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.community-grid-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.grid-view-all {
    position: absolute;
    top: -28px;
    right: 0;
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.grid-view-all:hover {
    color: var(--primary);
}

.news-grid {
    display: contents;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-height: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.15s;
}

.news-card:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.news-card-tag {
    display: inline-block;
    width: fit-content;
    padding: 2px 6px;
    background: var(--primary-subtle);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card-title {
    color: var(--primary);
}

.news-card-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    max-height: 4.5em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: auto;
}

.news-card-skel {
    height: 140px;
    background: var(--bg-surface);
    border-radius: 8px;
    animation: pulse 1.5s infinite;
}

/* === COMMUNITY GRID === */
.community-grid {
    display: contents;
}

/* === MAIN GRID === */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 72px;
}

.main-content {
    min-width: 0;
    padding-left: 54px; /* Space for carousel left arrow in margin */
}

/* === AIRING SCHEDULE === */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}

.schedule-item:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.schedule-time {
    min-width: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

.schedule-cover {
    width: 40px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-surface);
}

.schedule-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-info {
    flex: 1;
    min-width: 0;
}

.schedule-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-ep {
    font-size: 0.7rem;
    color: #9ca3af;
}

.schedule-skel {
    height: 76px;
    background: var(--bg-surface);
    border-radius: 8px;
    animation: pulse 1.5s infinite;
}

/* === CONTINUE WATCHING === */
.watching-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.watching-card {
    display: block;
    text-decoration: none;
}

.watching-cover {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-surface);
    margin-bottom: 8px;
}

.watching-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watching-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0,0,0,0.5);
}

.watching-progress-bar {
    height: 100%;
    background: var(--primary);
}

.watching-ep {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 6px;
    background: rgba(0,0,0,0.8);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
}

.watching-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* === CARD ROW === */
.cards-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    overflow: visible;
}


/* === THREAD CARD === */
.thread-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}

.thread-card:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.thread-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-surface);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thread-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thread-avatar svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.thread-body {
    flex: 1;
    min-width: 0;
}

.thread-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thread-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #9ca3af;
}

.thread-cat {
    padding: 2px 6px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.65rem;
}

/* === REVIEWS === */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.review-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.15s;
}

.review-card:hover {
    border-color: var(--primary);
}

.review-header {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-surface);
}

.review-cover {
    width: 50px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.review-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-media {
    flex: 1;
    min-width: 0;
}

.review-media-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #facc15;
}

.review-rating svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.review-body {
    padding: 12px;
}

.review-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 8px;
}

.review-author {
    font-size: 0.7rem;
    color: #9ca3af;
}

.review-skel {
    height: 180px;
    background: var(--bg-surface);
    border-radius: 8px;
    animation: pulse 1.5s infinite;
}

/* === SIDEBAR === */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sidebar-title h3 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin: 0;
}

.sidebar-title a {
    font-size: 0.75rem;
    color: #9ca3af;
    text-decoration: none;
}

.sidebar-title a:hover {
    color: var(--primary);
}

/* === TOP LIST === */
.top-list {
    display: flex;
    flex-direction: column;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s;
}

.top-item:hover {
    background: var(--bg-hover);
}

.top-rank {
    width: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #9ca3af;
    text-align: center;
}

.top-item:nth-child(1) .top-rank { color: #facc15; }
.top-item:nth-child(2) .top-rank { color: #a1a1aa; }
.top-item:nth-child(3) .top-rank { color: #d97706; }

.top-cover {
    width: 32px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-surface);
    flex-shrink: 0;
}

.top-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-info {
    flex: 1;
    min-width: 0;
}

.top-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.top-score {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* === SEASONS === */
.seasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.season-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-surface);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.season-link:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.season-icon {
    font-size: 1rem;
}

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-item {
    text-align: center;
    padding: 14px 10px;
    background: var(--bg-surface);
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-today {
    display: none;
    font-size: 0.6rem;
    color: var(--accent, #10b981);
    margin-top: 4px;
}

.stat-today:not(:empty) {
    display: block;
}

.stat-today.positive {
    color: var(--accent, #10b981);
}

.stat-today.negative {
    color: #ef4444;
}

.stat-value.stat-coming-soon {
    font-size: 0.8rem;
    color: #9ca3af;
    opacity: 0.7;
}

.stat-value.stat-updating {
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.15s ease;
}

.stat-value {
    transition: all 0.15s ease;
}

/* === SKELETONS === */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.card-skel {
    aspect-ratio: 2/3;
    background: var(--bg-surface);
    border-radius: 6px;
    animation: pulse 1.5s infinite;
}

.thread-skel {
    height: 70px;
    background: var(--bg-surface);
    border-radius: 8px;
    animation: pulse 1.5s infinite;
}

.top-skel {
    height: 45px;
    background: var(--bg-surface);
    border-radius: 6px;
    animation: pulse 1.5s infinite;
    margin-bottom: 4px;
}

/* === EMPTY STATE === */
.empty {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 12px;
    text-align: center;
    gap: 12px;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
}

.empty-state-icon svg {
    width: 100%;
    height: 100%;
}

.empty-state-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 280px;
}

/* === COMING SOON === */
/* Scoped to section to avoid affecting navbar dropdown items */
.section .coming-soon {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 10px;
    text-align: center;
}

.section .coming-soon-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--primary);
    opacity: 0.7;
}

.section .coming-soon-icon svg {
    width: 100%;
    height: 100%;
}

.section .coming-soon h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.section .coming-soon p {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0;
}

.coming-soon-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 16px;
    color: #9ca3af;
    text-align: center;
}

.coming-soon-small svg {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

.coming-soon-small span {
    font-size: 0.8rem;
    font-weight: 500;
}

.not-enough-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 32px 16px;
    color: #9ca3af;
    text-align: center;
}

.not-enough-data svg {
    width: 32px;
    height: 32px;
    opacity: 0.4;
    margin-bottom: 4px;
}

.not-enough-data span {
    font-size: 0.85rem;
    font-weight: 500;
}

.not-enough-data small {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* === REVIEWS SIDEBAR === */
.reviews-sidebar {
    display: flex;
    flex-direction: column;
}

.review-sidebar-item {
    display: block;
    padding: 10px 4px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s;
}

.review-sidebar-item:hover {
    background: var(--bg-hover);
}

.review-sidebar-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.review-sidebar-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-sidebar-anime {
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-sidebar-item:hover .review-sidebar-title {
    color: var(--primary);
}

.review-sidebar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.7rem;
    color: #9ca3af;
}

.review-sidebar-meta > span:first-child {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
}

.review-sidebar-meta > span:first-child > .supporter-tier-badge {
    flex-shrink: 0;
}

.review-sidebar-meta > span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .cards-row {
        grid-template-columns: repeat(5, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .top-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .community-aside {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .activity-feed {
        max-height: 424px; /* 4 cards on smaller screens: 4×100px + 3×8px */
    }

    .home-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .main-content {
        padding-left: 48px;
    }

    /* Rec cards: no sidebar, so wider container */
    .recs-cards .rec-card-wrapper,
    .recs-cards .card-skel {
        width: calc((100vw - 64px - 80px) / 6); /* viewport - home padding - main padding - gaps */
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cards-row {
        grid-template-columns: repeat(6, 1fr);
    }

    .news-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .watching-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Floating nav adjustments */
    .home {
        padding: 20px 12px 0; /* Footer handles floating nav spacing */
    }

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

    .activity-item {
        height: 80px;
    }

    .activity-feed {
        max-height: 344px; /* 4 cards: 4×80px + 3×8px */
    }

    .activity-cover {
        width: 50px;
        height: 100%;
    }

    .activity-item.activity-tierlist .activity-cover-tierlist {
        width: 50px;
    }

    .at-tier-label {
        width: 14px;
        font-size: 0.3rem;
    }

    .activity-body {
        padding: 6px 8px;
    }

    .activity-header {
        gap: 6px;
        margin-bottom: 3px;
    }

    .activity-avatar {
        width: 22px;
        height: 22px;
    }

    .activity-username {
        font-size: 0.75rem;
    }

    .activity-text {
        font-size: 0.72rem;
    }

    .cards-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .news-grid-wrapper {
        grid-template-columns: 1fr;
    }

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

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .watching-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .empty-state {
        padding: 32px 20px;
    }

    .empty-state-icon {
        width: 40px;
        height: 40px;
    }

    .empty-state-text {
        font-size: 0.85rem;
    }

    .main-content {
        padding-left: 42px;
    }

    .recs-arrow-left {
        left: -42px;
    }

    /* Rec cards: tablet size */
    .recs-cards .rec-card-wrapper,
    .recs-cards .card-skel {
        width: calc((100vw - 54px - 80px) / 6);
    }
}

@media (max-width: 550px) {
    .cards-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .section-header h2 {
        font-size: 0.75rem;
    }

    .seasons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .home {
        padding: 12px 12px 0; /* Footer handles floating nav spacing */
    }

    .cards-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .watching-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .cards-row .oku-card-image {
        border-radius: 6px;
    }

    .main-content {
        padding-left: 36px;
    }

    .recs-arrow-left {
        left: -32px;
    }

    .recs-arrow {
        width: 28px;
        height: 28px;
    }

    /* Rec cards: mobile size */
    .recs-cards .rec-card-wrapper,
    .recs-cards .card-skel {
        width: calc((100vw - 48px - 80px) / 6);
        min-width: 100px;
    }
}

/* ============================================
   SEQUEL ALERTS SECTION
   ============================================ */
.sequel-tagline,
.rewatch-tagline {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 400;
}

.sequel-alerts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.sequel-alert-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
    text-decoration: none;
}

.sequel-alert-card:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.sequel-card-img {
    position: relative;
    flex-shrink: 0;
}

.sequel-card-img img {
    width: 70px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.sequel-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sequel-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sequel-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sequel-meta {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.sequel-prequel {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: auto;
}

.sequel-empty,
.rewatch-empty {
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
}

/* ============================================
   REWATCH SUGGESTIONS SECTION
   ============================================ */
.rewatch-card {
    position: relative;
}

.rewatch-card .user-score {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.rewatch-ago {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 2px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sequel-alerts-list {
        grid-template-columns: 1fr;
    }

    .sequel-alert-card {
        padding: 10px;
    }

    .sequel-card-img img {
        width: 60px;
        height: 85px;
    }
}

@media (max-width: 480px) {
    .sequel-tagline,
    .rewatch-tagline {
        display: none;
    }
}

