/* === FEED STYLES === */
.feed-header {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-8) 0;
}

.feed-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-12);
    margin-bottom: var(--spacing-8);
}

.feed-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-16);
}

.activity-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-12);
}

.feed-subtitle {
    color: var(--text-sub);
    font-size: 16px;
    margin: 0;
}

/* Empty Feed State */
.empty-feed {
    text-align: center;
    padding: var(--spacing-64) var(--spacing-24);
    max-width: 500px;
    margin: 0 auto;
}

.empty-feed-icon {
    font-size: 64px;
    color: var(--text-sub);
    margin-bottom: var(--spacing-24);
}

.empty-feed h3 {
    color: var(--text);
    margin-bottom: var(--spacing-16);
}

.empty-feed p {
    color: var(--text-sub);
    margin-bottom: var(--spacing-32);
    line-height: 1.6;
}

.feed-actions {
    display: flex;
    gap: var(--spacing-16);
    justify-content: center;
    flex-wrap: wrap;
}

/* Feed Container */
.feed-container {
    max-width: 600px;
    min-height: 200px;
    margin: 0 auto;
}

/* Feed Date Separators */
.feed-date-separator {
    display: flex;
    align-items: center;
    gap: var(--spacing-12);
    padding: var(--spacing-8) 0 var(--spacing-4);
    margin-bottom: var(--spacing-8);
}

.feed-date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--background-hover);
}

.feed-date-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: none;
}

/* Feed Items */
.feed-item {
    display: flex;
    background: var(--background-light);
    margin-bottom: var(--spacing-16);
    border-radius: var(--spacing-8);
    position: relative;
    flex-direction: column;
}

.feed-group {
    padding: var(--spacing-16) var(--spacing-16) var(--spacing-8) var(--spacing-16);
    display: flex;
    flex-direction: row;
    gap: var(--spacing-16);
}

.feed-item .feed-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-16);
    max-width: none;
    margin: 0;
    padding: var(--spacing-16) var(--spacing-16) var(--spacing-8);
    flex: 1;
    min-width: 0;
}

.rating-row{
    display: table;
    border-spacing: 0 var(--spacing-8);
}

.rating-col {
    display: table-row;
}

/* Highlight-Card: Avatar-Badge + dezente rote Tönung der ganzen Card.
   Macht eine Empfehlung visuell unverwechselbar, ohne aggressiv zu sein. */
.feed-item[data-is-highlighted="1"] {
    background:
        linear-gradient(320deg, rgba(254, 45, 82, 0.1), rgba(254, 45, 82, 0.02) 100%, transparent),
        var(--background-light);
}

.feed-item[data-is-highlighted="1"] .feed-avatar,
.feed-item[data-is-highlighted="1"] .feed-avatar-group {
    position: relative;
}

.feed-item[data-is-highlighted="1"] .feed-avatar::after,
.feed-item[data-is-highlighted="1"] .feed-avatar-group::after {
    /* Phosphor ph-shooting-star direkt aus der bereits geladenen Webfont
       gezeichnet (codepoint U+ECFA, siehe assets/css/phosphor/regular/style.css).
       So kriegen wir das echte Icon und nicht eine Annäherung als SVG-Inline. */
    content: "\ecfa";
    font-family: 'Phosphor';
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 20px;
    height: 20px;
    background: var(--accent-red, #fe2d52);
    color: #fff;
    border-radius: 50%;
    border: 2px solid var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    pointer-events: none;
    /* Bei merged-watchlog haben die gestackten avatare z-index 1-4
       (siehe a.feed-avatar-stacked-0..3). Badge muss darüber liegen. */
    z-index: 5;
}

span.rating-text {
    font-size: 14px;
    display: table-cell;
    padding-right: var(--spacing-8);
}

.rating-span{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.user-rating-span{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 12px;
}

.feed-footer {
    padding: 0 var(--spacing-16) var(--spacing-8) var(--spacing-16);
}

.feed-avatar {
    flex-shrink: 0;
}

a.feed-avatar {
    text-decoration: none;
}

/* Merged Watchlog: Stacked Avatars */
.feed-avatar-group {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 48px;
}

a.feed-avatar-stacked {
    position: absolute;
    top: 0;
    display: block;
    text-decoration: none;
}

a.feed-avatar-stacked img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--background-light);
}

a.feed-avatar-stacked-0 {
    left: 0;
    z-index: 4;
}

a.feed-avatar-stacked-1 {
    left: 18px;
    top: 10px;
    z-index: 3;
}

a.feed-avatar-stacked-2 {
    left: 4px;
    top: 22px;
    z-index: 2;
}

a.feed-avatar-stacked-3 {
    left: 22px;
    top: 24px;
    z-index: 1;
}

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

.feed-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--background);
}

.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-content > * + * {
    margin-top: var(--spacing-8);
}

.feed-text {
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

.feed-text strong {
    color: var(--text-link);
    font-weight: 300;
    border-bottom: var(--border-champagne);
}

.feed-time {
    color: var(--text-sub);
    font-size: 14px;
    margin: 0;
}

.feed-media-link {
    margin-top: var(--spacing-12);
}

.media-link {
    /* display: inline-flex; */
    align-items: center;
    gap: var(--spacing-4);
    color: var(--primary-color);
    text-decoration: none;
    /* padding: var(--spacing-4) var(--spacing-8); */
    border-radius: var(--spacing-4);
    transition: background-color 0.2s ease;
}

.feed-icon {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: var(--spacing-4);
}

.feed-icon i {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--background);
}

/* Activity Type Colors */
.feed-item[data-activity="rating"] .feed-icon i {
    color: var(--accent-green);
    background: rgba(90, 196, 88, 0.1);
}

.feed-item[data-activity="interest"] .feed-icon i {
    color: var(--accent-red);
    background: rgba(254, 45, 82, 0.1);
}

.feed-item[data-activity="abandoned"] .feed-icon i {
    color: var(--error-color);
    background: rgba(220, 53, 69, 0.1);
}

.feed-item[data-activity="list_created"] .feed-icon i,
.feed-item[data-activity="list_item_added"] .feed-icon i {
    color: var(--primary-color);
    background: rgba(72, 168, 233, 0.1);
}

.feed-item[data-activity="follow"] .feed-icon i {
    color: var(--warning-color);
    background: rgba(255, 193, 7, 0.1);
}

.feed-item[data-activity="friendship"] .feed-icon i {
    color: var(--accent-green);
    background: rgba(90, 196, 88, 0.1);
}

.feed-item[data-activity="review"] .feed-icon i {
    color: var(--sky-blue);
    background: rgba(72, 168, 233, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .feed-item {
        gap: var(--spacing-12);
    }

    .feed-avatar img {
        width: 40px;
        height: 40px;
    }

    .feed-text {
        font-size: 15px;
    }

    .feed-actions {
        flex-direction: column;
        align-items: center;
    }

    .feed-actions .button {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .feed-header {
        padding: var(--spacing-16) 0;
    }

    .empty-feed {
        padding: var(--spacing-32) var(--spacing-16);
    }
}

/* Loading States */
.feed-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-64);
}

.feed-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--grey-400);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animation for new feed items */
@keyframes feedItemSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-item.new {
    animation: feedItemSlideIn 0.3s ease-out;
}

/* Notification-Target-Highlight: wenn der User aus dem Notification-Overlay
   auf einen Community-Beitrag klickt und die Karte bereits auf der Seite
   sichtbar ist, scrollen wir hin und blinken sie kurz an. Klasse wird per
   JS gesetzt (notifications.js::openCommentOrReactionTarget) und nach 2.4s
   wieder entfernt. */
@keyframes feedItemNotifTarget {
    0%   { box-shadow: 0 0 0 3px rgba(72, 168, 233, 0.7); }
    100% { box-shadow: 0 0 0 3px rgba(72, 168, 233, 0); }
}

.feed-item--notif-target {
    animation: feedItemNotifTarget 2.4s ease-out;
}

/* === FEED LINKS === */
.feed-text a.user-link {
    color: var(--text-link);
    text-decoration: none;
    border-bottom: var(--border-champagne);
    font-weight: 300;
    transition: color 0.2s ease;
}

.feed-text a.user-link:hover {
    color: var(--text-link-hover);
}

.feed-text a.media-link {
    color: var(--text-link);
    text-decoration: none;
    border-bottom: var(--border-champagne);
    font-weight: 300;
    transition: color 0.2s ease;
}

.feed-text a.media-link:hover {
    color: var(--text-link-hover);
}

.feed-text a.season-link {
    color: var(--text-link);
    text-decoration: none;
    border-bottom: var(--border-champagne);
    font-weight: 300;
    transition: color 0.2s ease;
}

.feed-text a.season-link:hover {
    color: var(--text-link-hover);
}

.feed-text a.list-link {
    color: var(--text-link);
    text-decoration: none;
    border-bottom: var(--border-champagne);
    font-weight: 300;
    transition: color 0.2s ease;
}

.feed-text a.list-link:hover {
    color: var(--text-link-hover);
}

/* Spezifische Styles für verschiedene Feed-Typen */
.feed-item[data-activity="rating"] {
    border-radius: var(--spacing-8);
}

.feed-item[data-activity="rating"] .feed-time {
    margin: 0 0 var(--spacing-16) 0;
}

/*
.feed-item[data-activity="rating"] .feed-group, .feed-item[data-activity="rating"] .feed-footer {
    border-left: 4px solid var(--accent-green);
}
 
.feed-item[data-activity="interest"] {
    border-left: 4px solid var(--accent-red);
}

.feed-item[data-activity="abandoned"] {
    border-left: 4px solid var(--error-color);
}

.feed-item[data-activity="list_created"],
.feed-item[data-activity="list_item_added"] {
    border-left: 4px solid var(--primary-color);
}

.feed-item[data-activity="follow"] {
    border-left: 4px solid var(--warning-color);
}

.feed-item[data-activity="friendship"] {
    border-left: 4px solid var(--accent-green);
} */

/* Hover-Effekte für Feed-Items */
/* .feed-item[data-activity="rating"]:hover {
    background: rgba(90, 196, 88, 0.05);
}

.feed-item[data-activity="interest"]:hover {
    background: rgba(254, 45, 82, 0.05);
}

.feed-item[data-activity="abandoned"]:hover {
    background: rgba(220, 53, 69, 0.05);
}

.feed-item[data-activity="list_created"]:hover,
.feed-item[data-activity="list_item_added"]:hover {
    background: rgba(72, 168, 233, 0.05);
}

.feed-item[data-activity="follow"]:hover {
    background: rgba(255, 193, 7, 0.05);
}

.feed-item[data-activity="friendship"]:hover {
    background: rgba(90, 196, 88, 0.05);
} */

/* Feed Reactions */
.feed-reactions {
    margin-top: var(--spacing-12);
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--background-hover);
}

.emoji-reactions {
    display: flex;
    gap: var(--spacing-8);
    align-items: center;
    flex-wrap: wrap;
}

.reaction-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    padding: var(--spacing-4) var(--spacing-8);
    background: var(--background-light);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.reaction-button:hover {
    background: var(--background-hover);
    transform: scale(1.05);
}

.reaction-button.user-reacted {
    background: var(--background-active);
    border-color: var(--background-active);
    color: var(--text);
}

.reaction-button .emoji {
    font-size: 16px;
    line-height: 1;
}

.reaction-button .count {
    font-size: 12px;
    font-weight: 600;
    min-width: 12px;
    text-align: center;
    color: var(--text);
}

.add-reaction-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--background-hover);
    border: 1px solid var(--background-hover);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
}

.add-reaction-btn:hover {
    background: var(--background-active);
    border-color: var(--background-active);
}

.emoji-picker {
    position: absolute;
    background: var(--background);
    border: 1px solid var(--background);
    border-radius: var(--radius-md);
    padding: var(--spacing-8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: var(--z-overlay);
    display: flex;
    flex-wrap: wrap;
    width: 256px;
    gap: var(--spacing-4);
    margin-top: var(--spacing-4);
    justify-content: space-between;
}

.emoji-option {
    font-size: 20px;
    padding: var(--spacing-4);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    background: transparent;
    border: none;

}

.emoji-option:hover {
    background: var(--background-hover);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .emoji-reactions {
        gap: var(--spacing-4);
    }
    
    .reaction-button .emoji {
        font-size: 14px;
    }
}

/* Neuer kreisförmiger Spinner für Feed */
.feed-loading {
    display: none;
    text-align: center;
    padding: var(--spacing-32) var(--spacing-16);
    color: var(--text-sub);
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: var(--spacing-16);
}

/* Kreisförmiger Spinner */
.spinner-circle {
    width: 40px;
    height: 40px;
    border: 3px solid var(--background-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin-circle 1s linear infinite;
}

@keyframes spin-circle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner-text {
    color: var(--text-sub);
    font-size: 0.875rem;
    margin: 0;
}


.loading-spinner p {
    color: var(--text-sub);
    margin: 0;
}

.scroll-trigger {
    height: 1px;
    margin-bottom: 2rem;
}

/* Add-Reaction-Button Icon Fix */
.add-reaction-btn i {
    font-size: 10px;
    opacity: 0.7;
    color: var(--text);
}

.add-reaction-btn:hover i {
    opacity: 1;
    color: var(--primary-color);
}


/* Feed Backdrop für Rating-Beiträge */
.feed-backdrop {
    position: relative;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
}

.feed-backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-16);
}

.feed-backdrop-content {
    display: flex;
    gap: var(--spacing-16);
    width: 100%;
    color: var(--white);
}

.feed-backdrop .feed-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.feed-backdrop .feed-content {
    flex: 1;
    min-width: 0;
}

.feed-backdrop .feed-content > * + * {
    margin-top: var(--spacing-8);
}

.feed-backdrop .feed-text {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.feed-backdrop .feed-text a {
    color: var(--white);
    text-decoration: none;
}

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

.feed-backdrop .feed-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Feed Ratings wie auf Media Card */
.feed-ratings {
    display: flex;
    gap: var(--spacing-8);
    margin-top: var(--spacing-8);
}

.feed-ratings .rating-circle {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* TMDB-Rating-Background/Color kommt vom zentralen .rating-tmdb-Selektor. */

.feed-ratings .rating-circle.user {
    background: var(--accent-red);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .feed-backdrop {
        height: 150px;
    }
    
    .feed-backdrop-content {
        gap: var(--spacing-12);
        padding: var(--spacing-12);
    }
    
    .feed-backdrop .feed-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .feed-backdrop .feed-text {
        font-size: 15px;
    }
    
    .feed-ratings .rating-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Feed Backdrop */
.feed-backdrop {
    width: 100%;
    min-height: 180px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    position: relative;
}

.feed-backdrop img {
    width: 100%;
    min-height: 150px;
    object-fit: cover;
}

/* Gradient Overlay für bessere Lesbarkeit */
/* .feed-backdrop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    pointer-events: none;
} */

/* Responsive */
@media (max-width: 768px) {
    .feed-backdrop {
        height: 100px;
    }
}

/* Reaction Info Popup - erweiterte Styles */
.reaction-info-popup {
    position: fixed;
    z-index: 10000;
    background: var(--background-light);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-width: 300px;
    animation: reactionPopupFadeIn 0.2s ease-out;
}

@keyframes reactionPopupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reaction-info-content {
    padding: 12px;
}

.reaction-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--background-hover);
    gap: 8px;
}

.reaction-emoji {
    font-size: 20px;
    line-height: 1;
}

/* Add-Button im Header (rechts neben Emoji) */
.add-reaction-header {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--background-light);
    border: 1px solid var(--background-hover);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
}

.add-reaction-header:hover {
    background: var(--primary-color-hover);
    transform: scale(1.1);
}

.reaction-info-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-sub);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    margin-left: auto;
}

.reaction-info-users {
    max-height: 200px;
    overflow-y: auto;
}

.reaction-user {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--background-hover);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reaction-user:last-child {
    border-bottom: none;
}

/* Inline Remove-Button (neben eigenem Namen) */
.remove-reaction-inline {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--background-light);
    border: 1px solid var(--background-hover);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
}

/* Mobile Tap Indicator */
.reaction-button.mobile-tappable {
    position: relative;
    color: var(--text);
}

.reaction-button.mobile-tappable::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.7;
    animation: mobileTapPulse 2s infinite;
}

/* Compact feed card with right-side poster */
.feed-item .feed-backdrop {
    display: none !important;
}

.feed-context-menu {
    top: 12px !important;
    right: 12px !important;
}

.feed-context-menu .menu-toggle {
    font-size: 18px;
    width: 32px;
    height: 32px;
}

.feed-context-menu .media-menu {
    right: 0;
}

.feed-main {
    display: flex;
    flex-direction: column;
}

.feed-main-top {
    display: flex;
    align-items: flex-start;
}

.feed-main-content {
    flex: 1;
    min-width: 0;
}

.feed-poster-link {
    width: 80px;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: var(--spacing-8);
    margin: var(--spacing-16) var(--spacing-16) var(--spacing-8) 0;
}

.feed-poster {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}



@media (max-width: 768px) {
    .feed-poster-link {
        width: 68px;
    }
}

@keyframes mobileTapPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .reaction-info-popup {
        max-width: calc(100vw - 20px);
        min-width: 250px;
    }
    
    .reaction-button.mobile-tappable::after {
        display: none; /* Verstecke Indikator nach erstem Tap */
    }
    
    .reaction-button:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
    
    .add-reaction-btn {
        padding: 8px 12px;
    }
}

/* --- Feed Review Block --- */
/* Sitzt als direktes Kind von .feed-main, auf voller Breite */
.feed-review-block {
    margin: 0 var(--spacing-16);
    padding: var(--spacing-8) var(--spacing-12);
    border-left: 3px solid var(--sky-blue);
}

.feed-review-text {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    line-height: 1.6;
    word-break: break-word;
}

.feed-spoiler-hint {
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-sub);
}

.feed-spoiler-reveal-btn {
    background: none;
    border: none;
    color: var(--text-link);
    font-size: var(--font-size-base);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.feed-spoiler-reveal-btn:hover {
    color: var(--text-link-hover);
}

.feed-review-block .spoiler-hidden {
    display: none;
}

.feed-review-block.spoiler-revealed .spoiler-hidden {
    display: block;
}

.feed-review-block.spoiler-revealed .feed-spoiler-hint {
    display: none;
}

.feed-review-readmore {
    display: inline-block;
    margin-top: var(--spacing-4);
    background: none;
    border: none;
    color: var(--text-link);
    font-size: var(--font-size-base);
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.feed-review-readmore:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
}

.feed-review-full {
    display: none !important;
}

.feed-review-block.review-expanded > .feed-review-text:not(.feed-review-full) {
    display: none;
}

.feed-review-block.review-expanded .feed-review-full {
    display: block !important;
}

.feed-review-block.review-expanded .feed-review-readmore {
    display: none !important;
}

/* Review activity color */
[data-activity="review"] .feed-body::before {
    background-color: var(--sky-blue);
}

/* --- Items mit Review-Block: Poster floats right, Text fließt darum herum --- */
/* Poster wird im HTML als erstes Kind von .feed-main gerendert (vor feed-main-top),
   damit der Float sowohl die Avatar-Zeile als auch den Review-Text umfließen kann. */
.feed-item:has(.feed-review-block) .feed-main {
    display: block;
}

.feed-item:has(.feed-review-block) .feed-poster-link {
    float: right;
    margin: var(--spacing-16) var(--spacing-16) var(--spacing-8) var(--spacing-8);
}

.feed-item:has(.feed-review-block) .feed-footer {
    clear: right;
}

