/**
 * Einheitliche Aktionsleiste: Feed-Posts + Entdecken/Suche (gleiche Position rechts).
 */

/* Rail am Kartenrand, nicht im Flex-Overlay (sonst rutscht der Text unten weg) */
.ta-tiktok-post-overlay .ta-explore-rail {
    display: none !important;
}

.ta-ng-feed-item .ta-explore-rail,
.ta-tiktok-post-card .ta-explore-rail {
    position: absolute;
    right: var(--ta-feed-actions-right, 24px);
    bottom: calc(var(--ta-safe-bottom, env(safe-area-inset-bottom, 16px)) + var(--ta-feed-actions-offset, 108px) + var(--ta-feed-actions-rise, 8px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ta-explore-rail-gap, 16px);
    z-index: 12;
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

.ta-explore-rail__btn--icon.btn-listing-detail .ta-explore-rail__glyph--business svg {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ta-explore-rail__slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 54px;
}

.ta-explore-rail__btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.ta-explore-rail__btn:active {
    transform: scale(0.9);
}

.ta-explore-rail__btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Standard-Icons (Herz, Kommentar, Profil, Teilen) */
.ta-explore-rail__btn--icon .ta-explore-rail__glyph {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ta-explore-rail__btn--icon .ta-explore-rail__glyph svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: #fff;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.85));
}

.ta-explore-rail__btn--icon .ta-explore-rail__glyph--comment svg,
.ta-explore-rail__btn--icon .ta-explore-rail__glyph--info svg {
    width: 28px;
    height: 28px;
}

.ta-explore-rail__btn--icon .ta-explore-rail__glyph--comment svg path,
.ta-explore-rail__btn--icon .ta-explore-rail__glyph--info svg path {
    fill: inherit;
}

.ta-explore-rail__glyph--share svg {
    width: 26px;
    height: 26px;
}

.ta-explore-rail__btn--icon.btn-profile .ta-explore-rail__glyph svg {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ta-explore-rail__btn--icon.btn-like.is-liked .ta-explore-rail__glyph svg,
.ta-explore-rail__btn--icon.btn-like.is-liked .ta-explore-rail__glyph--like svg,
.ta-explore-rail__btn--icon.btn-listing-like.is-liked .ta-explore-rail__glyph svg,
.ta-explore-rail__btn--icon.btn-listing-like.is-liked .ta-explore-rail__glyph--like svg,
.ta-explore-rail__btn--icon.btn-user-like.is-liked .ta-explore-rail__glyph svg,
.ta-explore-rail__btn--icon.btn-user-like.is-liked .ta-explore-rail__glyph--like svg {
    fill: #ff2a6d;
    filter: drop-shadow(0 0 10px rgba(255, 42, 109, 0.65));
}

.ta-explore-rail__btn--icon.btn-dislike.is-disliked .ta-explore-rail__glyph svg,
.ta-explore-rail__btn--icon.btn-dislike.is-disliked .ta-explore-rail__glyph--dislike svg {
    fill: #ff3b3b;
    filter: drop-shadow(0 0 10px rgba(255, 59, 59, 0.7));
}

.ta-explore-rail__btn--icon.btn-like.is-like-pulsing .ta-explore-rail__glyph--like svg,
.ta-explore-rail__btn--icon.btn-like.is-like-pulsing .ta-explore-rail__glyph svg,
.ta-explore-rail__btn--icon.btn-listing-like.is-like-pulsing .ta-explore-rail__glyph--like svg,
.ta-explore-rail__btn--icon.btn-listing-like.is-like-pulsing .ta-explore-rail__glyph svg {
    animation: ta-like-heart-pulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.ta-explore-rail__btn--icon.btn-dislike.is-dislike-pulsing .ta-explore-rail__glyph--dislike svg,
.ta-explore-rail__btn--icon.btn-dislike.is-dislike-pulsing .ta-explore-rail__glyph svg {
    animation: ta-like-heart-pulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.ta-explore-rail__btn--icon .ta-explore-rail__glyph--like svg,
.ta-explore-rail__btn--icon .ta-explore-rail__glyph--dislike svg {
    width: 26px;
    height: 26px;
}

.ta-explore-rail__btn--icon .ta-explore-rail__glyph--like svg path,
.ta-explore-rail__btn--icon .ta-explore-rail__glyph--dislike svg path {
    fill: inherit;
}

@keyframes ta-like-heart-pulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.25);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.ta-like-rising-particle {
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ta-like-rise-sway 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.ta-like-rising-particle svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ta-dislike-rising-particle {
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ta-like-rise-sway 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    filter: drop-shadow(0 0 10px rgba(255, 59, 59, 0.55));
}

@keyframes ta-like-rise-sway {
    0% {
        transform: translate(-50%, -50%) translateY(0) scale(0.4);
        opacity: 0;
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) translate(var(--ta-like-sway-1, 0px), -60px) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--ta-like-sway-2, 0px), -320px) scale(0.6);
        opacity: 0;
    }
}

/* Beitrag bearbeiten: Stift im Kreis — Light & Dark */
.ta-explore-rail__btn--edit {
    --ta-edit-btn-bg: #121216;
    --ta-edit-btn-border: #ffffff;
    --ta-edit-btn-color: #ffffff;
    --ta-edit-btn-shadow: rgba(255, 255, 255, 0.1);
    --ta-edit-btn-shadow-hover: rgba(37, 244, 238, 0.5);
}

html:not([data-lp-color-scheme="dark"]) .ta-explore-rail__btn--edit,
body.ta-tiktok-app-mode.light-mode .ta-explore-rail__btn--edit {
    --ta-edit-btn-bg: #ffffff;
    --ta-edit-btn-border: #121216;
    --ta-edit-btn-color: #121216;
    --ta-edit-btn-shadow: rgba(0, 0, 0, 0.08);
    --ta-edit-btn-shadow-hover: rgba(37, 244, 238, 0.4);
}

.ta-explore-rail__btn--edit:active {
    transform: none;
}

.ta-explore-rail__btn--edit .ta-explore-rail__glyph--edit {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--ta-edit-btn-border);
    background: var(--ta-edit-btn-bg);
    color: var(--ta-edit-btn-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px var(--ta-edit-btn-shadow);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.ta-explore-rail__btn--edit .ta-explore-rail__glyph--edit svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    filter: none;
}

.ta-explore-rail__btn--edit:hover .ta-explore-rail__glyph--edit,
.ta-explore-rail__btn--edit:focus-visible .ta-explore-rail__glyph--edit {
    transform: scale(1.08);
    border-color: #25f4ee;
    box-shadow: 0 0 20px var(--ta-edit-btn-shadow-hover);
}

/* Folgen: Cyber-Lock Plus/Kreis — Light & Dark */
.ta-explore-rail__btn--follow {
    --ta-follow-btn-bg: #121216;
    --ta-follow-btn-border: #ffffff;
    --ta-follow-btn-color: #ffffff;
    --ta-follow-btn-shadow: rgba(255, 255, 255, 0.1);
    --ta-follow-btn-shadow-hover: rgba(37, 244, 238, 0.5);
    --ta-follow-secured-bg: #09090b;
    --ta-follow-secured-border: #fe2c55;
    --ta-follow-secured-shadow: rgba(254, 44, 85, 0.6);
    --ta-follow-secured-color: #ffffff;
}

html:not([data-lp-color-scheme="dark"]) .ta-explore-rail__btn--follow,
body.ta-tiktok-app-mode.light-mode .ta-explore-rail__btn--follow {
    --ta-follow-btn-bg: #ffffff;
    --ta-follow-btn-border: #121216;
    --ta-follow-btn-color: #121216;
    --ta-follow-btn-shadow: rgba(0, 0, 0, 0.08);
    --ta-follow-btn-shadow-hover: rgba(37, 244, 238, 0.4);
    --ta-follow-secured-bg: #ffffff;
    --ta-follow-secured-border: #fe2c55;
    --ta-follow-secured-shadow: rgba(254, 44, 85, 0.4);
    --ta-follow-secured-color: #fe2c55;
}

.ta-explore-rail__btn--follow:active:not(.is-glitch-active) {
    transform: none;
}

.ta-explore-rail__btn--follow .ta-explore-rail__glyph--follow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--ta-follow-btn-border);
    background: var(--ta-follow-btn-bg);
    color: var(--ta-follow-btn-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px var(--ta-follow-btn-shadow);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.ta-explore-rail__btn--follow .ta-explore-rail__glyph--follow svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
    stroke: none;
    filter: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.ta-explore-rail__btn--follow:not(.is-following):hover .ta-explore-rail__glyph--follow,
.ta-explore-rail__btn--follow:not(.is-following):focus-visible .ta-explore-rail__glyph--follow {
    transform: scale(1.08);
    border-color: #25f4ee;
    box-shadow: 0 0 20px var(--ta-follow-btn-shadow-hover);
}

.ta-explore-rail__btn--follow.is-following .ta-explore-rail__glyph--follow,
.ta-explore-rail__btn--follow .ta-explore-rail__glyph--follow.is-secured {
    background: var(--ta-follow-secured-bg);
    border-color: var(--ta-follow-secured-border);
    color: var(--ta-follow-secured-color);
    box-shadow: 0 0 18px var(--ta-follow-secured-shadow);
}

.ta-explore-rail__btn--follow.is-glitch-active .ta-explore-rail__glyph--follow,
.ta-explore-rail__btn--follow .ta-explore-rail__glyph--follow.is-glitch-active {
    animation: ta-follow-cyber-glitch 0.18s linear forwards;
}

@keyframes ta-follow-cyber-glitch {
    0% {
        transform: scale(1.12) translate(0);
        box-shadow: -3px 2px #25f4ee, 3px -2px #fe2c55;
    }
    20% {
        transform: scale(1.12) translate(-3px, 2px);
        box-shadow: 3px -2px #25f4ee, -3px 2px #fe2c55;
    }
    40% {
        transform: scale(1.06) translate(3px, -2px);
        box-shadow: -2px -2px #25f4ee, 2px 2px #fe2c55;
    }
    60% {
        transform: scale(1.1) translate(-2px, -2px);
        box-shadow: 2px 3px #25f4ee, -2px -3px #fe2c55;
    }
    80% {
        transform: scale(1.04) translate(2px, 2px);
        box-shadow: -3px -1px #25f4ee, 3px 1px #fe2c55;
    }
    100% {
        transform: scale(1.06) translate(0);
        box-shadow: 0 0 18px var(--ta-follow-secured-shadow);
    }
}

.ta-follow-cyber-wave {
    position: fixed;
    width: var(--ta-follow-cyber-size, 48px);
    height: var(--ta-follow-cyber-size, 48px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2802;
    animation: ta-follow-cyber-wave-expand 0.7s cubic-bezier(0.1, 0.8, 0.15, 1) forwards;
}

.ta-follow-cyber-wave--cyan {
    border: 3px solid #25f4ee;
    transform: translate(-51%, -49%);
}

.ta-follow-cyber-wave--magenta {
    border: 3px solid #fe2c55;
    transform: translate(-49%, -51%);
}

@keyframes ta-follow-cyber-wave-expand {
    0% {
        width: var(--ta-follow-cyber-size, 48px);
        height: var(--ta-follow-cyber-size, 48px);
        opacity: 1;
    }
    100% {
        width: calc(var(--ta-follow-cyber-size, 48px) * 4.2);
        height: calc(var(--ta-follow-cyber-size, 48px) * 4.2);
        opacity: 0;
        filter: blur(2px);
    }
}

.ta-follow-cyber-spark {
    position: fixed;
    pointer-events: none;
    z-index: 2803;
    border-radius: 4px;
    animation: ta-follow-cyber-spark 0.65s cubic-bezier(0.1, 0.8, 0.15, 1) forwards;
}

@keyframes ta-follow-cyber-spark {
    0% {
        width: 0;
        height: 3px;
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--ta-follow-cyber-angle, 0rad)) translateX(0);
    }
    30% {
        width: 28px;
        height: 2px;
        opacity: 1;
    }
    100% {
        width: 0;
        height: 1px;
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--ta-follow-cyber-angle, 0rad)) translateX(var(--ta-follow-cyber-dist, 80px));
    }
}

.ta-follow-cyber-pixel {
    position: fixed;
    width: 5px;
    height: 5px;
    pointer-events: none;
    z-index: 2804;
    animation: ta-follow-cyber-pixel 0.75s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes ta-follow-cyber-pixel {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--ta-follow-cyber-tx, 0), var(--ta-follow-cyber-ty, 0)) scale(0);
        opacity: 0;
    }
}

.ta-explore-rail__count,
.ta-explore-rail__label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    min-height: 14px;
    letter-spacing: 0.01em;
    text-align: center;
}

.ta-explore-rail__label {
    display: block;
    max-width: 56px;
    white-space: nowrap;
}

.ta-explore-rail__count--ghost {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

/* Benutzer-Karte: Vollbild-Avatar, dezente Info unten */
.ta-tiktok-user-card .ta-ng-feed-media--user,
.ta-tiktok-user-card .ta-ng-feed-media--user-fallback {
    object-fit: contain;
    object-position: center center;
    background: #000;
}

.ta-tiktok-user-card .ta-ng-feed-info {
    left: 16px;
    right: var(--ta-feed-actions-reserve, 98px);
    width: auto;
}

/* Kommentar-Drawer (Standorte + Benutzer-Pinnwand) am body */
.ta-explore-comments-sheet {
    --ta-explore-sheet-backdrop: rgba(0, 0, 0, 0.55);
    --ta-explore-sheet-bg: rgba(12, 14, 24, 0.98);
    --ta-explore-sheet-bg-footer: rgba(10, 12, 20, 0.98);
    --ta-explore-sheet-text: #fff;
    --ta-explore-sheet-text-muted: rgba(255, 255, 255, 0.62);
    --ta-explore-sheet-text-soft: rgba(255, 255, 255, 0.88);
    --ta-explore-sheet-border: rgba(255, 255, 255, 0.08);
    --ta-explore-sheet-surface: rgba(255, 255, 255, 0.06);
    --ta-explore-sheet-surface-strong: rgba(255, 255, 255, 0.08);
    --ta-explore-sheet-input-bg: rgba(255, 255, 255, 0.05);
    --ta-explore-sheet-input-border: rgba(255, 255, 255, 0.1);
    --ta-explore-sheet-placeholder: rgba(255, 255, 255, 0.42);
    --ta-explore-sheet-handle: rgba(255, 255, 255, 0.52);
    --ta-explore-sheet-handle-hover: rgba(255, 255, 255, 0.85);
    --ta-explore-sheet-shadow: 0 -24px 60px rgba(0, 0, 0, 0.4);
    --ta-explore-sheet-cancel-bg: rgba(255, 255, 255, 0.04);
    --ta-explore-sheet-cancel-border: rgba(255, 255, 255, 0.12);
    --ta-explore-sheet-link: var(--ta-neon-primary, #00f2fe);
}

html:not([data-lp-color-scheme="dark"]) .ta-explore-comments-sheet {
    --ta-explore-sheet-backdrop: rgba(15, 23, 42, 0.42);
    --ta-explore-sheet-bg: rgba(255, 255, 255, 0.98);
    --ta-explore-sheet-bg-footer: #f8fafc;
    --ta-explore-sheet-text: var(--lp-text-main, #0f172a);
    --ta-explore-sheet-text-muted: var(--lp-text-muted, #64748b);
    --ta-explore-sheet-text-soft: #334155;
    --ta-explore-sheet-border: rgba(15, 23, 42, 0.1);
    --ta-explore-sheet-surface: rgba(15, 23, 42, 0.04);
    --ta-explore-sheet-surface-strong: rgba(15, 23, 42, 0.07);
    --ta-explore-sheet-input-bg: #fff;
    --ta-explore-sheet-input-border: rgba(15, 23, 42, 0.14);
    --ta-explore-sheet-placeholder: #94a3b8;
    --ta-explore-sheet-handle: #64748b;
    --ta-explore-sheet-handle-hover: #0f172a;
    --ta-explore-sheet-shadow: 0 -20px 48px rgba(15, 23, 42, 0.16);
    --ta-explore-sheet-cancel-bg: #fff;
    --ta-explore-sheet-cancel-border: rgba(15, 23, 42, 0.12);
    --ta-explore-sheet-link: #0e7490;
}

.ta-explore-comments-sheet[hidden] {
    display: none !important;
}

body.ta-explore-comments-open,
body.ta-profile-wall-open {
    overflow: hidden;
}

.ta-explore-comments-sheet,
.ta-profile-wall-sheet,
.ta-listing-comments-sheet,
.ta-feed-post-comments-sheet {
    position: fixed;
    inset: 0;
    z-index: 3200;
    pointer-events: none;
}

.ta-explore-comments-sheet:not([hidden]),
.ta-profile-wall-sheet:not([hidden]),
.ta-listing-comments-sheet:not([hidden]),
.ta-feed-post-comments-sheet:not([hidden]) {
    pointer-events: auto;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__backdrop {
    position: fixed;
    inset: 0;
    z-index: 3201;
    background: var(--ta-explore-sheet-backdrop);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ta-explore-comments-sheet .ta-post-comments-sheet__panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 3202;
    width: min(100%, 480px);
    max-height: min(78dvh, 760px);
    transform: translateX(-50%);
    border-radius: 24px 24px 0 0;
    background: var(--ta-explore-sheet-bg);
    border: 1px solid var(--ta-explore-sheet-border);
    color: var(--ta-explore-sheet-text);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    box-shadow: var(--ta-explore-sheet-shadow);
    box-sizing: border-box;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--ta-explore-sheet-border);
}

.ta-explore-comments-sheet .ta-post-comments-sheet__head h3 {
    margin: 0;
    font-size: 1.02rem;
    color: var(--ta-explore-sheet-text);
}

.ta-explore-comments-sheet .ta-post-comments-sheet__head p {
    margin: 4px 0 0;
    color: var(--ta-explore-sheet-text-muted);
    font-size: 0.82rem;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ta-explore-sheet-surface-strong);
    color: var(--ta-explore-sheet-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__context {
    padding: 14px 18px;
    border-bottom: 1px solid var(--ta-explore-sheet-border);
    min-width: 0;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ta-explore-sheet-surface-strong);
    color: var(--ta-explore-sheet-text);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    font-weight: 800;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__meta {
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__meta strong {
    display: inline;
    font-size: 0.95rem;
    color: var(--ta-explore-sheet-text);
}

.ta-explore-comments-sheet .ta-post-comments-sheet__meta .ta-wall-comment__handle,
.ta-explore-comments-sheet .ta-post-comments-sheet__meta #ta-listing-comments-city {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ta-explore-sheet-handle);
}

.ta-explore-comments-sheet .ta-post-comments-sheet__meta a.ta-wall-comment__handle {
    color: var(--ta-explore-sheet-link);
}

.ta-explore-comments-sheet .ta-post-comments-sheet__meta a.ta-wall-comment__handle:hover,
.ta-explore-comments-sheet .ta-post-comments-sheet__meta a.ta-wall-comment__handle:focus-visible {
    color: var(--ta-explore-sheet-handle-hover);
    text-decoration: underline;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__body {
    margin: 10px 0 0;
    color: var(--ta-explore-sheet-text-soft);
    font-size: 0.9rem;
    line-height: 1.4;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__body:empty {
    display: none;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__list {
    overflow-y: auto;
    padding: 10px 18px 18px;
    display: grid;
    gap: 12px;
    min-height: 0;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__empty {
    color: var(--ta-explore-sheet-text-muted);
    font-size: 0.92rem;
    text-align: center;
    padding: 24px 0;
    margin: 0;
}

.ta-wall-comment {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--ta-explore-sheet-surface);
    border: 1px solid var(--ta-explore-sheet-border);
}

.ta-wall-comment__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.ta-wall-comment__author {
    display: inline;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
    color: var(--ta-explore-sheet-text);
}

.ta-wall-comment__handle {
    color: var(--ta-explore-sheet-handle);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
}

.ta-explore-comments-sheet .ta-wall-comment__handle {
    color: var(--ta-explore-sheet-link);
}

.ta-wall-comment__handle:hover,
.ta-wall-comment__handle:focus-visible {
    color: var(--ta-explore-sheet-handle-hover);
    text-decoration: underline;
    outline: none;
}

.ta-wall-comment__body {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--ta-explore-sheet-text-soft);
    word-break: break-word;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__form,
.ta-explore-comments-sheet .ta-post-comments-sheet__login {
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--ta-explore-sheet-border);
    background: var(--ta-explore-sheet-bg-footer);
    min-width: 0;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__form textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    border-radius: 16px;
    border: 1px solid var(--ta-explore-sheet-input-border);
    background: var(--ta-explore-sheet-input-bg);
    color: var(--ta-explore-sheet-text);
    padding: 12px 14px;
    box-sizing: border-box;
    font: inherit;
    display: block;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__form textarea::placeholder {
    color: var(--ta-explore-sheet-placeholder);
}

.ta-explore-comments-sheet .ta-post-comments-sheet__form textarea:focus {
    outline: none;
    border-color: var(--ta-explore-sheet-link);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ta-explore-sheet-link) 28%, transparent);
}

.ta-explore-comments-sheet .ta-post-comments-sheet__actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.ta-explore-comments-sheet .ta-post-comments-sheet__cancel {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--ta-explore-sheet-cancel-border);
    background: var(--ta-explore-sheet-cancel-bg);
    color: var(--ta-explore-sheet-text);
    font-weight: 700;
    cursor: pointer;
    font: inherit;
    text-align: center;
}

.ta-explore-comments-sheet .ta-tiktok-btn-primary,
.ta-explore-comments-sheet .ta-comments-sheet-submit {
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    background: #fe2c55;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    font-family: inherit;
}

.ta-explore-comments-sheet .ta-comments-sheet-submit {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    text-align: center;
}

.ta-explore-comments-sheet .ta-comments-sheet-submit:active {
    transform: scale(0.98);
}

.ta-explore-comments-sheet .ta-post-comments-sheet__login .ta-tiktok-btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

/* Standort-Aktionen im Feed (Webseite / Bestellen / Buchen / Abholen) — gleicher Slot-Abstand wie Folgen/Like */
.ta-explore-rail__slot--location-action {
    min-height: 48px;
    gap: 0;
}

.ta-explore-rail--post {
    --ta-feed-rail-website-color: #22c55e;
    --ta-feed-rail-website-border: #22c55e;
    --ta-feed-rail-booking-color: #00f2fe;
    --ta-feed-rail-booking-border: #00f2fe;
    --ta-feed-rail-order-color: #fe0979;
    --ta-feed-rail-order-border: #fe0979;
    --ta-feed-rail-pickup-color: #fe2c55;
    --ta-feed-rail-pickup-border: #fe2c55;
    --ta-feed-rail-action-bg: #121216;
    --ta-feed-rail-action-icon: #ffffff;
    --ta-feed-rail-action-shadow: rgba(255, 255, 255, 0.1);
    --ta-feed-rail-action-shadow-hover: rgba(37, 244, 238, 0.5);
}

html:not([data-lp-color-scheme="dark"]) .ta-explore-rail--post,
body.ta-tiktok-app-mode.light-mode .ta-explore-rail--post {
    --ta-feed-rail-website-color: #16a34a;
    --ta-feed-rail-website-border: #16a34a;
    --ta-feed-rail-booking-color: #008b96;
    --ta-feed-rail-booking-border: #008b96;
    --ta-feed-rail-order-color: #d60062;
    --ta-feed-rail-order-border: #d60062;
    --ta-feed-rail-pickup-color: #e11d48;
    --ta-feed-rail-pickup-border: #e11d48;
    --ta-feed-rail-action-bg: #ffffff;
    --ta-feed-rail-action-icon: #121216;
    --ta-feed-rail-action-shadow: rgba(0, 0, 0, 0.08);
    --ta-feed-rail-action-shadow-hover: rgba(37, 244, 238, 0.4);
}

.ta-explore-rail__btn--location-action:active:not(.is-clicked) {
    transform: none;
}

.ta-explore-rail__btn--location-action .ta-explore-rail__glyph--location-action {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ta-feed-rail-action-bg);
    color: var(--ta-feed-rail-action-icon);
    box-shadow: 0 0 14px var(--ta-feed-rail-action-shadow);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.ta-explore-rail__btn--location-action .ta-explore-rail__glyph--location-action svg,
.ta-explore-rail__btn--location-action .ta-explore-rail__glyph--location-action .ta-feed-rail-icon {
    display: block;
    flex-shrink: 0;
    fill: currentColor;
    filter: none;
    overflow: visible;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.ta-feed-rail-icon--website {
    display: block;
    width: 28px;
    height: 28px;
    max-width: none;
    overflow: visible;
}

.ta-feed-rail-icon--booking {
    width: 28px;
    height: 28px;
}

.ta-feed-rail-icon--delivery {
    width: 26px;
    height: 26px;
}

.ta-feed-rail-icon--pickup {
    display: block;
    height: 26px;
    width: auto;
    max-width: 30px;
}

.ta-feed-rail-action-btn--website {
    --ta-feed-rail-accent: var(--ta-feed-rail-website-color);
    color: var(--ta-feed-rail-action-icon);
}

.ta-feed-rail-action-btn--website .ta-explore-rail__glyph--location-action {
    border-color: var(--ta-feed-rail-website-border);
}

.ta-feed-rail-action-btn--booking {
    --ta-feed-rail-accent: var(--ta-feed-rail-booking-color);
    color: var(--ta-feed-rail-action-icon);
}

.ta-feed-rail-action-btn--booking .ta-explore-rail__glyph--location-action {
    border-color: var(--ta-feed-rail-booking-border);
}

.ta-feed-rail-action-btn--order {
    --ta-feed-rail-accent: var(--ta-feed-rail-order-color);
    color: var(--ta-feed-rail-action-icon);
}

.ta-feed-rail-action-btn--order .ta-explore-rail__glyph--location-action {
    border-color: var(--ta-feed-rail-order-border);
}

.ta-feed-rail-action-btn--pickup {
    --ta-feed-rail-accent: var(--ta-feed-rail-pickup-color);
    color: var(--ta-feed-rail-action-icon);
}

.ta-feed-rail-action-btn--pickup .ta-explore-rail__glyph--location-action {
    border-color: var(--ta-feed-rail-pickup-border);
}

html:not([data-lp-color-scheme="dark"]) .ta-feed-rail-action-btn--website,
body.ta-tiktok-app-mode.light-mode .ta-feed-rail-action-btn--website {
    color: var(--ta-feed-rail-website-color);
}

html:not([data-lp-color-scheme="dark"]) .ta-feed-rail-action-btn--booking,
body.ta-tiktok-app-mode.light-mode .ta-feed-rail-action-btn--booking {
    color: var(--ta-feed-rail-booking-color);
}

html:not([data-lp-color-scheme="dark"]) .ta-feed-rail-action-btn--order,
body.ta-tiktok-app-mode.light-mode .ta-feed-rail-action-btn--order {
    color: var(--ta-feed-rail-order-color);
}

html:not([data-lp-color-scheme="dark"]) .ta-feed-rail-action-btn--pickup,
body.ta-tiktok-app-mode.light-mode .ta-feed-rail-action-btn--pickup {
    color: var(--ta-feed-rail-pickup-color);
}

.ta-feed-rail-action-btn--website:hover .ta-explore-rail__glyph--location-action,
.ta-feed-rail-action-btn--website:focus-visible .ta-explore-rail__glyph--location-action,
.ta-feed-rail-action-btn--booking:hover .ta-explore-rail__glyph--location-action,
.ta-feed-rail-action-btn--booking:focus-visible .ta-explore-rail__glyph--location-action,
.ta-feed-rail-action-btn--order:hover .ta-explore-rail__glyph--location-action,
.ta-feed-rail-action-btn--order:focus-visible .ta-explore-rail__glyph--location-action,
.ta-feed-rail-action-btn--pickup:hover .ta-explore-rail__glyph--location-action,
.ta-feed-rail-action-btn--pickup:focus-visible .ta-explore-rail__glyph--location-action {
    transform: scale(1.08);
    border-color: #25f4ee;
    box-shadow: 0 0 20px var(--ta-feed-rail-action-shadow-hover);
}

.ta-feed-rail-action-btn.is-clicked,
.ta-feed-rail-action-btn.is-clicked:hover {
    pointer-events: none;
}

.ta-feed-rail-action-btn.is-clicked .ta-explore-rail__glyph--location-action,
.ta-feed-rail-action-btn.is-clicked:hover .ta-explore-rail__glyph--location-action {
    animation: ta-feed-rail-action-pulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 1;
}

@keyframes ta-feed-rail-action-pulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.ta-feed-rail-action-shockwave {
    position: fixed;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    border: 3px solid var(--ta-feed-rail-fx-color, #00f2fe);
    box-shadow: 0 0 22px var(--ta-feed-rail-fx-color, #00f2fe);
    z-index: 2800;
    width: 48px;
    height: 48px;
    animation: ta-feed-rail-action-wave 0.8s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}

@keyframes ta-feed-rail-action-wave {
    0% {
        width: 48px;
        height: 48px;
        opacity: 1;
    }
    100% {
        width: 360px;
        height: 360px;
        opacity: 0;
    }
}

.ta-feed-rail-action-particle {
    position: fixed;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2801;
    animation: ta-feed-rail-action-particle 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes ta-feed-rail-action-particle {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--ta-feed-rail-tx, 0), var(--ta-feed-rail-ty, 0)) scale(0);
        opacity: 0;
    }
}

