/* Shared: star rating, reactions, watch CTA, download CTA, report */

/* ── Rating Widget — Compact Modern ─────────────────────── */
.star-rating-wrap {
    margin-bottom: 20px;
    padding: 16px 18px;
    background: linear-gradient(135deg,
            rgba(250, 204, 21, 0.04) 0%,
            rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid rgba(250, 204, 21, 0.1);
    border-radius: 14px;
}

.star-rating-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.star-avg-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    min-width: 52px;
}

.star-avg {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.star-count {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    margin-top: 3px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.star-interactive-block {
    flex: 1;
    min-width: 0;
}

.star-rating-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stars-interactive {
    display: flex;
    gap: 4px;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.star {
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.star:hover {
    transform: scale(1.3);
}

.star.preview {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.star.glow {
    color: #f59e0b;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.star-msg {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    margin-top: 6px;
    min-height: 14px;
    transition: color 0.3s;
}

.star-msg.success {
    color: #34d399;
}

/* ── Reactions ─────────────────────────────────────────────── */
.reaction-bar {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}

.reaction-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 10px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.reaction-btn:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.reaction-btn .ri-count {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.reaction-btn .ri-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}\n\n/* ── Poster Sidebar Buttons ────────────────────────────────── */
.watch-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e50914, #ec4899);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 10px;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.3);
    transition: all 0.25s;
}

.watch-now-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(229, 9, 20, 0.5);
}

/* ── Primary Download CTA — EYE-CATCHING ────────────── */
.dl-main-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 50%, #059669 100%);
    background-size: 200% 200%;
    animation: dlGradientShift 4s ease infinite;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(5, 150, 105, 0.5),
        0 0 40px rgba(5, 150, 105, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

/* gradient animation */
@keyframes dlGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* shimmer sweep */
.dl-main-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: dlMainShine 2.5s ease-in-out infinite;
}

@keyframes dlMainShine {
    0% {
        left: -100%;
    }

    60%,
    100% {
        left: 150%;
    }
}

/* glow pulse */
.dl-main-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981, #0ea5e9, #10b981);
    z-index: -1;
    animation: dlGlowPulse 2s ease-in-out infinite;
    opacity: 0.6;
    filter: blur(8px);
}

@keyframes dlGlowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.03);
    }
}

.dl-main-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 32px rgba(5, 150, 105, 0.6),
        0 0 60px rgba(5, 150, 105, 0.3);
}

.dl-main-btn:active {
    transform: scale(0.98);
}

/* icon animation */
.dl-main-btn .dl-icon {
    font-size: 18px;
    animation: dlIconBounce 1.8s ease-in-out infinite;
}

@keyframes dlIconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

/* ── Report Link — subtle, clean ───────────────────── */
.report-link-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    margin-top: 2px;
}

.report-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

.report-link-btn:hover {
    color: #f87171;
}

.report-link-btn i {
    font-size: 14px;
}

/* ── Movie tags (Alpine toggle) ─────────────────────────── */
.movie-tags-section {
    margin-bottom: 20px;
}
.movie-tags-section .tags-toggle-header {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.movie-tags-section .tags-toggle-header:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
}
.movie-tags-section .tags-toggle-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}
.movie-tags-section .tags-count {
    font-size: 9px;
    font-weight: 700;
    color: rgba(139, 92, 246, 0.5);
    margin-left: 2px;
}
.movie-tags-section .tags-arrow {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.2);
    margin-left: auto;
    transition: transform 0.3s ease;
}
.movie-tags-section .tags-collapsible {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}
.movie-tags-section .tags-collapsible.is-open {
    max-height: 300px;
    opacity: 1;
}
.movie-tags-section .tags-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
}
.movie-tags-section .seo-tag-link {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: rgba(196, 181, 253, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   Telegram Join Button — full card is a single <a> link
   Desktop: one-line flex row (icon | text | pill)
   Mobile : same single-line row, pill shrinks to icon-only
═══════════════════════════════════════════════════════════ */

@keyframes tgJoinFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tgIconPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(14,165,233,.4), 0 0 0 0 rgba(14,165,233,0); }
    50%       { box-shadow: 0 4px 16px rgba(14,165,233,.5), 0 0 0 5px rgba(14,165,233,.1); }
}
@keyframes tgBtnShine {
    0%        { left: -80%; }
    60%, 100% { left: 130%; }
}

a.tg-join-wrap {
    display: block;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14,165,233,.07) 0%, rgba(56,189,248,.04) 100%);
    border: 1px solid rgba(14,165,233,.2);
    animation: tgJoinFadeIn 0.5s ease both;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: rgba(14,165,233,.15);
}
a.tg-join-wrap:focus-visible {
    box-shadow: 0 0 0 2px rgba(14,165,233,.5), 0 0 0 4px rgba(0,0,0,.4);
}
a.tg-join-wrap::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(14,165,233,.3), rgba(56,189,248,.12), transparent 55%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
a.tg-join-wrap:hover::before { opacity: 1; }

/* ── inner row ── */
.tg-join-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    min-height: 0;
}

/* ── icon square ── */
.tg-join-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(14,165,233,.4), 0 0 0 1px rgba(14,165,233,.15);
    animation: tgIconPulse 3s ease-in-out infinite;
}
.tg-join-icon {
    color: #fff;
    font-size: 21px;
    line-height: 1;
}

/* ── text block ── */
.tg-join-text {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tg-join-kicker {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(56, 189, 248, 0.85);
    line-height: 1.2;
}
.tg-join-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #f1f5f9;
    text-shadow: 0 1px 12px rgba(14, 165, 233, 0.12);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tg-join-sub {
    display: block;
    font-size: 11.5px;
    color: rgba(226, 232, 240, 0.55);
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── pill / CTA ── */
.tg-join-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 11px;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(14,165,233,.35), inset 0 1px 0 rgba(255,255,255,.15);
    transition: all 0.25s cubic-bezier(0.175,0.885,0.32,1.275);
    position: relative;
    overflow: hidden;
    pointer-events: none;
    letter-spacing: .02em;
}
.tg-join-pill::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    animation: tgBtnShine 2.8s ease-in-out infinite;
}
a.tg-join-wrap:hover .tg-join-pill {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14,165,233,.55), inset 0 1px 0 rgba(255,255,255,.2);
}
a.tg-join-wrap:active .tg-join-pill { transform: scale(0.97); }

.tg-join-pill-icon { font-size: 13px; flex-shrink: 0; }

/* ── mobile: collapse pill to icon-only badge, keep single row ── */
@media (max-width: 479px) {
    .tg-join-inner {
        padding: 11px 12px;
        gap: 10px;
    }
    .tg-join-icon-wrap {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        animation: none;
    }
    .tg-join-icon { font-size: 19px; }

    .tg-join-kicker { font-size: 8px; letter-spacing: 0.12em; }
    .tg-join-label {
        font-size: 12px;
    }
    .tg-join-sub { font-size: 10px; }

    /* pill: icon only + short text hidden — keeps single-row height */
    .tg-join-pill {
        padding: 7px 11px;
        gap: 0;
        border-radius: 10px;
    }
    .tg-join-pill-text {
        display: none;  /* hide label on narrow screens → icon-only badge */
    }
    .tg-join-pill-icon { font-size: 15px; }
}

/* very small (≤359px) — tighten further */
@media (max-width: 359px) {
    .tg-join-inner { padding: 10px; gap: 8px; }
    .tg-join-icon-wrap { width: 36px; height: 36px; border-radius: 10px; }
    .tg-join-icon { font-size: 17px; }
    .tg-join-kicker { font-size: 8px; }
    .tg-join-label { font-size: 11px; }
    .tg-join-sub { font-size: 10px; }
    .tg-join-pill { padding: 6px 10px; }
}

/* ── Screenshots block ─────────────────────────────────── */
.single-screenshots-section {
    margin-bottom: 40px;
}
.single-screenshots-title {
    font-size: 18px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 12px;
}
.single-screenshots-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 16px;
}
.screenshots-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
