/**
 * Cinema Preview Styles - Cinematic Documentary Experience
 * Version: 24.3.0 - Film-strip-style Social Trail redesign
 */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --bp-bg: #0a0a0f;
    --bp-card: rgba(15, 20, 35, 0.95);
    --bp-cyan: #00ffff;
    --bp-magenta: #ff00ff;
    --bp-gold: #ffd700;
    --bp-text: rgba(255, 255, 255, 0.9);
    --bp-text-muted: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   MAIN CONTAINER
   ========================================================================== */
.cn-cinema-preview-section {
    background: var(--bp-bg);
    color: var(--bp-text);
    padding: 20px 0;
    position: relative;
}

/* ==========================================================================
   FILM STRIP SECTION
   ========================================================================== */
.film-strip-section {
    padding: 0 5%;
    margin-bottom: 20px;
    margin-top: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: inherit;
}

.film-strip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.film-strip-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    margin: 0;
}

.film-strip-title span {
    color: rgba(255, 255, 255, 0.4);
}

.film-strip-nav {
    display: flex;
    gap: 8px;
}

.film-nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--bp-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.film-nav-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--bp-cyan);
}

.film-nav-btn svg {
    width: 18px;
    height: 18px;
}

/* Film Strip Track */
.film-strip-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    padding-top: 10px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.film-strip-track::-webkit-scrollbar {
    height: 4px;
}

.film-strip-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.film-strip-track::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 2px;
}

/* Film Card */
.film-card {
    flex: 0 0 160px;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.film-card:hover {
    transform: translateY(-5px);
}

.film-card.active {
    transform: translateY(-5px);
}

.film-card.active .film-card-media {
    border-color: var(--bp-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.film-card-media {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #0a0a12;
    position: relative;
}

.film-card-media img,
.film-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film-card-overlay {
    padding: 10px 0;
}

.film-card-type {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bp-magenta);
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(255, 0, 255, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.film-card-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-card-date {
    font-size: 0.7rem;
    color: var(--bp-text-muted);
}

/* ==========================================================================
   SOCIAL TRAIL - Button on film cards + overlay
   ========================================================================== */

/* Social Trail button on film card media — ALWAYS VISIBLE for discoverability */
.film-card-social-trail-btn {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(168, 85, 247, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 5;
    opacity: 0.7;
    transform: translateY(0);
    animation: socialBtnPulseOnce 2s ease 1s 1 forwards;
}

/* Subtle one-time pulse to draw the eye on first load */
@keyframes socialBtnPulseOnce {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
    30% { box-shadow: 0 0 8px 3px rgba(168, 85, 247, 0.5); }
    60% { box-shadow: 0 0 12px 5px rgba(168, 85, 247, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); opacity: 0.7; }
}

.film-card:hover .film-card-social-trail-btn,
.film-card.active .film-card-social-trail-btn {
    opacity: 1;
    transform: translateY(0);
    background: rgba(168, 85, 247, 0.9);
}

.film-card-social-trail-btn:hover {
    background: rgba(168, 85, 247, 1);
    transform: scale(1.08) !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.film-card-social-trail-btn svg {
    flex-shrink: 0;
}

/* Social trail dot indicator — sits above the card to show it has a trail */
.film-card-social-dot {
    position: absolute;
    top: -4px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #a855f7;
    border-radius: 50%;
    border: 2px solid #0a0a12;
    z-index: 6;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.6);
}

/* Social Trail discovery tooltip — one-time hint */
.cn-social-trail-hint {
    position: absolute;
    bottom: calc(100% + 12px);
    right: -4px;
    background: #a855f7;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    animation: socialHintAppear 0.4s ease 2.5s forwards, socialHintFade 0.4s ease 7s forwards;
    z-index: 50;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.cn-social-trail-hint::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 14px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #a855f7;
}

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

@keyframes socialHintFade {
    from { opacity: 1; }
    to { opacity: 0; pointer-events: none; }
}

/* Social Trail mode - darkens non-target cards */
body.cn-social-trail-active .film-card {
    opacity: 0.15;
    filter: brightness(0.4) saturate(0.3);
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

body.cn-social-trail-active .film-card.social-trail-target {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: scale(1);
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

/* Pulsing glow on the target moment */
body.cn-social-trail-active .film-card.social-trail-target .film-card-media {
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    animation: socialTrailPulse 2s ease-in-out infinite;
}

@keyframes socialTrailPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 35px rgba(168, 85, 247, 0.7), 0 0 60px rgba(168, 85, 247, 0.2); }
}

/* Social Trail Overlay - Film-strip-inspired social media timeline */
.cn-social-trail-overlay {
    position: relative;
    z-index: 20;
    margin: 0 auto 20px;
    max-width: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0.95) 0%, rgba(15, 15, 30, 0.92) 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: socialTrailSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    padding-bottom: 4px;
}

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

/* Header */
.cn-social-trail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px 10px;
}

.cn-social-trail-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cn-st-header-icon {
    width: 28px;
    height: 28px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
}

.cn-social-trail-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #a855f7;
    font-family: 'Inter', -apple-system, sans-serif;
}

.cn-st-header-arrow {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}

.cn-social-trail-moment-title {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.cn-social-trail-moment-title::before {
    content: '';
}

/* Save as Inspo button in social trail header */
.cn-st-header-inspo-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    color: #a78bfa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    white-space: nowrap;
    opacity: 0.5;
    pointer-events: none;
}

.cn-st-header-inspo-btn.cn-st-inspo-ready {
    opacity: 1;
    pointer-events: auto;
}

.cn-st-header-inspo-btn.cn-st-inspo-ready:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.cn-st-header-inspo-btn:active {
    transform: translateY(0) scale(0.97);
}

.cn-st-header-inspo-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Selected card state — user clicked a card to select it */
.cn-st-card.cn-st-card-selected .cn-st-media-panel {
    border-color: rgba(139, 92, 246, 0.6) !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2), 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

.cn-st-card.cn-st-card-selected::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #a78bfa;
    border-radius: 2px;
}

.cn-social-trail-close {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.cn-social-trail-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.cn-social-trail-close.cn-close-pulse {
    color: #ff4466;
    border-color: rgba(255, 68, 102, 0.6);
    background: rgba(255, 68, 102, 0.15);
    animation: stClosePulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255, 68, 102, 0.3);
}

@keyframes stClosePulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 68, 102, 0.3); transform: scale(1); }
    50% { box-shadow: 0 0 24px rgba(255, 68, 102, 0.6); transform: scale(1.15); }
}

/* Track — horizontal scroll strip */
/* Hide native scrollbar entirely — we use a custom one below */
.cn-social-trail-track {
    display: flex;
    gap: 0;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 10px 24px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    scrollbar-width: none; /* Firefox: hide native */
    -ms-overflow-style: none; /* IE/Edge: hide native */
}

.cn-social-trail-track::-webkit-scrollbar {
    height: 0;
    display: none; /* WebKit: hide native scrollbar */
}

/* Custom always-visible scrollbar — rendered as a real element, never hidden by macOS */
.cn-social-trail-scrollbar {
    position: relative;
    height: 6px;
    margin: 0 24px 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.cn-social-trail-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    min-width: 40px;
    background: linear-gradient(90deg, #a855f7, #7c3aed);
    border-radius: 3px;
    cursor: grab;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.3);
}

.cn-social-trail-scrollbar-thumb:hover,
.cn-social-trail-scrollbar-thumb.dragging {
    background: linear-gradient(90deg, #c084fc, #a855f7);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    cursor: grabbing;
}

/* ==========================================================================
   SOCIAL TRAIL CARDS — Film-strip-style with media + content panels
   ========================================================================== */

.cn-st-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: cnStCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
}

@keyframes cnStCardIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- MEDIA PANEL (Left side of card) --- */
.cn-st-media-panel {
    flex: 0 0 200px;
    width: 200px;
    position: relative;
    background: #0a0a14;
    border: 2px solid rgba(168, 85, 247, 0.15);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.cn-st-card:hover .cn-st-media-panel {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.2), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cn-st-card-playing .cn-st-media-panel {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3), 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Date chip — floating above media */
.cn-st-date-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 4px;
    padding: 3px 8px;
}

.cn-st-date-text {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Countdown chip — days until single release, positioned below the engagement bar */
.cn-st-countdown-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(168, 85, 247, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 4px;
    padding: 4px 10px;
    margin: 4px 8px 6px 8px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
    font-family: 'Inter', -apple-system, sans-serif;
    white-space: nowrap;
    opacity: 0;
    animation: cnStCountdownIn 0.4s ease forwards;
    animation-delay: 0.6s;
}

.cn-st-countdown-chip svg {
    flex-shrink: 0;
    opacity: 0.8;
}

@keyframes cnStCountdownIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Platform badge — floating on media */
.cn-st-platform-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cn-st-platform-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Media container */
.cn-st-media {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    background: #08080f;
}

.cn-st-media img,
.cn-st-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cn-st-card:hover .cn-st-media img,
.cn-st-card:hover .cn-st-media video {
    transform: scale(1.05);
}

.cn-st-video {
    display: block;
}

/* Play ring overlay — appears on video cards */
.cn-st-play-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cn-st-play-ring svg {
    margin-left: 2px;
}

.cn-st-card:hover .cn-st-play-ring {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(168, 85, 247, 0.5);
    border-color: rgba(168, 85, 247, 0.8);
}

.cn-st-card-playing .cn-st-play-ring {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

/* Media placeholder (when no actual media) */
.cn-st-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cn-st-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.cn-st-placeholder-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* Engagement bar at bottom of media panel */
.cn-st-engagement {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cn-st-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.cn-st-stat svg {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.cn-st-stat-views {
    margin-left: auto;
}

/* --- CONTENT PANEL (Right side of card) --- */
.cn-st-content-panel {
    flex: 0 0 220px;
    width: 220px;
    background: rgba(15, 15, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 320px;
}

.cn-st-content-panel::-webkit-scrollbar {
    width: 2px;
}

.cn-st-content-panel::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 2px;
}

/* User header */
.cn-st-user-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cn-st-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(168, 85, 247, 0.4);
}

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

.cn-st-avatar span {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.cn-st-user-info {
    flex: 1;
    min-width: 0;
}

.cn-st-username {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cn-st-verified {
    flex-shrink: 0;
}

.cn-st-post-menu {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    letter-spacing: 2px;
    cursor: default;
    flex-shrink: 0;
}

/* Caption */
.cn-st-caption {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.cn-st-caption-user {
    font-weight: 700;
    color: #fff;
}

/* Comments section */
.cn-st-comments-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
}

.cn-st-comment {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.cn-st-comment-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    margin-top: 1px;
}

.cn-st-comment-body {
    flex: 1;
    min-width: 0;
}

.cn-st-comment-user {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.cn-st-comment-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.cn-st-comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.cn-st-comment-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
}

.cn-st-comment-action {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    cursor: default;
}

.cn-st-comment-like {
    background: none;
    border: none;
    padding: 2px;
    color: rgba(255, 255, 255, 0.25);
    cursor: default;
    flex-shrink: 0;
    margin-top: 2px;
}

.cn-st-comments-more {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    cursor: default;
    padding-top: 2px;
}

/* Campaign insight annotation — LEGACY (hidden, replaced by genie insight below card) */
.cn-st-annotation {
    display: none;
}

.cn-st-annotation-icon {
    color: #a855f7;
    flex-shrink: 0;
    margin-top: 1px;
}

.cn-st-annotation-text {
    font-size: 10px;
    font-weight: 500;
    color: #c4b5fd;
    line-height: 1.5;
    font-style: italic;
}

/* ==========================================================================
   GENIE INSIGHT — Apple-like animated annotation below each social trail card
   Always visible, word-by-word text reveal on load, staggered per card
   ========================================================================== */

.cn-st-genie-insight {
    position: relative;
    flex-basis: 100%;
    width: 100%;
    max-width: 420px;
    align-self: center;
    margin: 2px auto 0;
    opacity: 0;
    animation: genieInsightIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 5;
    flex-shrink: 0;
}

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

/* The beam — a thin glowing line connecting card to insight */
.cn-st-genie-beam {
    width: 2px;
    height: 0;
    margin: 0 auto 6px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.5), rgba(168, 85, 247, 0.05));
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.2);
    animation: genieBeamGrow 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes genieBeamGrow {
    from { height: 0; }
    to { height: 14px; }
}

.cn-st-genie-content {
    background: rgba(15, 10, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(168, 85, 247, 0.06) inset,
                0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

/* Subtle shimmer sweep on load */
.cn-st-genie-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(168, 85, 247, 0.03) 40%,
        rgba(168, 85, 247, 0.07) 50%,
        rgba(168, 85, 247, 0.03) 60%,
        transparent 100%);
    pointer-events: none;
    animation: genieShimmer 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

@keyframes genieShimmer {
    from { left: -100%; }
    to { left: 200%; }
}

.cn-st-genie-icon-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.cn-st-genie-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(168, 85, 247, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b5fd;
    flex-shrink: 0;
    animation: genieIconPulse 3s ease-in-out 1.5s infinite;
}

@keyframes genieIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
    50% { box-shadow: 0 0 10px 2px rgba(168, 85, 247, 0.15); }
}

.cn-st-genie-text {
    font-size: 11.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.01em;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
}

/* Staggered word-by-word reveal — plays on load */
.cn-st-genie-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(5px);
    filter: blur(3px);
    animation: genieWordIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes genieWordIn {
    from {
        opacity: 0;
        transform: translateY(5px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Card layout: column with inner row for panels + connector, genie below */
.cn-st-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 4px;
    margin-bottom: 0;
}

/* Inner row: media panel + content panel + timeline connector */
.cn-st-card-inner {
    display: flex;
    align-items: stretch;
}

/* ==========================================================================
   SOCIAL TRAIL SECTIONS — Grouping banners for post categories (Organic, etc.)
   ========================================================================== */

/* --- Section Opener: visible inline card within the social post strip --- */
.cn-st-section-opener {
    flex: 0 0 auto;
    width: 260px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    margin: 0 2px;
    position: relative;
    background: linear-gradient(160deg, rgba(34, 197, 94, 0.10) 0%, rgba(10, 10, 18, 0.95) 40%, rgba(34, 197, 94, 0.06) 100%);
    border: 2px solid var(--sec-border, rgba(34, 197, 94, 0.35));
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.08), 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(34, 197, 94, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 3;
    animation: cnStSectionIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
    overflow: hidden;
}

/* Soft glow shimmer across the opener */
.cn-st-section-opener::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(34, 197, 94, 0.06) 40%, rgba(34, 197, 94, 0.12) 50%, rgba(34, 197, 94, 0.06) 60%, transparent 100%);
    pointer-events: none;
    animation: cnStOpenerShimmer 3s ease-in-out 1s forwards;
}

@keyframes cnStOpenerShimmer {
    from { left: -100%; }
    to { left: 200%; }
}

@keyframes cnStSectionIn {
    from { opacity: 0; transform: translateX(-20px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.cn-st-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.cn-st-section-icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sec-color-light, rgba(34, 197, 94, 0.15));
    border: 2px solid var(--sec-border, rgba(34, 197, 94, 0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.12);
    animation: cnStSectionPulse 3s ease-in-out 1.5s infinite;
}

@keyframes cnStSectionPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 0 20px rgba(34, 197, 94, 0.12); transform: scale(1); }
    50% { box-shadow: 0 0 20px 6px rgba(34, 197, 94, 0.2), 0 0 30px rgba(34, 197, 94, 0.08); transform: scale(1.05); }
}

.cn-st-section-icon {
    color: var(--sec-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cn-st-section-badge {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--sec-color, #22c55e);
    background: var(--sec-color-light, rgba(34, 197, 94, 0.15));
    border: 1px solid var(--sec-border, rgba(34, 197, 94, 0.35));
    padding: 6px 18px;
    border-radius: 20px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.1);
    animation: cnStBadgePulse 2.5s ease-in-out 1s infinite;
    position: relative;
}

/* Pulsing glow ring behind the badge */
.cn-st-section-badge::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 24px;
    border: 1px solid var(--sec-color, #22c55e);
    opacity: 0;
    animation: cnStBadgeRing 2.5s ease-in-out 1s infinite;
    pointer-events: none;
}

@keyframes cnStBadgePulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.1);
        text-shadow: 0 0 0 transparent;
    }
    50% {
        box-shadow: 0 0 22px rgba(34, 197, 94, 0.3), 0 0 40px rgba(34, 197, 94, 0.08);
        text-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
    }
}

@keyframes cnStBadgeRing {
    0%, 100% { opacity: 0; transform: scale(1); }
    30% { opacity: 0.6; transform: scale(1); }
    70% { opacity: 0; transform: scale(1.15); }
}

.cn-st-section-body {
    text-align: center;
    max-width: 220px;
}

.cn-st-section-tagline {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 10px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    font-style: italic;
}

.cn-st-section-message {
    font-size: 11.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.65;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
}

/* Staggered word reveal for section message */
.cn-st-section-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(4px);
    filter: blur(2px);
    animation: cnStSectionWordIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cnStSectionWordIn {
    from { opacity: 0; transform: translateY(4px); filter: blur(2px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* --- Animated line connector between section opener and first post --- */
.cn-st-section-connector {
    flex: 0 0 auto;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    position: relative;
    z-index: 2;
    animation: cnStSectionIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.cn-st-section-connector-line {
    position: absolute;
    left: 0;
    right: 14px;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--sec-border, rgba(34, 197, 94, 0.35)), var(--sec-color, #22c55e));
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    animation: cnStConnectorDraw 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.15);
}

@keyframes cnStConnectorDraw {
    from { transform: translateY(-50%) scaleX(0); }
    to { transform: translateY(-50%) scaleX(1); }
}

/* Dot at the end of the connector */
.cn-st-section-connector-dot {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sec-color, #22c55e);
    transform: translateY(-50%) scale(0);
    animation: cnStConnectorDotIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    z-index: 2;
}

@keyframes cnStConnectorDotIn {
    from { transform: translateY(-50%) scale(0); }
    to { transform: translateY(-50%) scale(1); }
}

/* Pulsing ring around the dot */
.cn-st-section-connector-pulse {
    position: absolute;
    right: 0px;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--sec-color, #22c55e);
    transform: translateY(-50%) scale(0);
    opacity: 0;
    animation: cnStConnectorPulse 2s ease-out 1.4s infinite;
    z-index: 1;
}

@keyframes cnStConnectorPulse {
    0% { transform: translateY(-50%) scale(0.5); opacity: 0.7; }
    100% { transform: translateY(-50%) scale(2); opacity: 0; }
}

/* --- Section-tagged cards: red border + glow on the entire card --- */
.cn-st-section-card.cn-st-section-organic {
    position: relative;
}

.cn-st-section-card.cn-st-section-organic .cn-st-media-panel {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.10), 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cn-st-section-card.cn-st-section-organic:hover .cn-st-media-panel {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.18), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Small "AUTHENTIC" label — removed from individual cards, only shows in section opener */
.cn-st-section-card.cn-st-section-organic .cn-st-media-panel::after {
    display: none;
}

/* Organic badge overlay on the media panel — keep platform badge, add subtle organic indicator */
.cn-st-section-card.cn-st-section-organic .cn-st-platform-badge {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* --- Section End: takeaway card after the section --- */
.cn-st-section-end {
    flex: 0 0 auto;
    width: 200px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    position: relative;
    animation: cnStSectionEndIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

@keyframes cnStSectionEndIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.cn-st-section-end-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--sec-border), transparent);
    margin-bottom: 10px;
    border-radius: 1px;
}

.cn-st-section-end-card {
    background: rgba(15, 10, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--sec-border);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(34, 197, 94, 0.06) inset;
}

.cn-st-section-end-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(34, 197, 94, 0.03) 40%,
        rgba(34, 197, 94, 0.08) 50%,
        rgba(34, 197, 94, 0.03) 60%,
        transparent 100%);
    pointer-events: none;
    animation: cnStSectionEndShimmer 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards;
}

@keyframes cnStSectionEndShimmer {
    from { left: -100%; }
    to { left: 200%; }
}

.cn-st-section-end-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--sec-color);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
}

.cn-st-section-end-badge svg {
    width: 12px;
    height: 12px;
}

.cn-st-section-end-text {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
}

/* ==========================================================================
   SOCIAL TRAIL INTRO TOOLTIP — First-time education overlay
   ========================================================================== */

.cn-st-intro-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.cn-st-intro-overlay.cn-st-intro-visible {
    opacity: 1;
    pointer-events: auto;
}

.cn-st-intro-card {
    max-width: 420px;
    padding: 36px 32px 28px;
    background: rgba(15, 10, 30, 0.96);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(168, 85, 247, 0.1);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cn-st-intro-overlay.cn-st-intro-visible .cn-st-intro-card {
    transform: scale(1) translateY(0);
}

.cn-st-intro-glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: introGlowPulse 3s ease-in-out infinite;
}

@keyframes introGlowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.cn-st-intro-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b5fd;
}

.cn-st-intro-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
}

.cn-st-intro-body {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin: 0 0 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
}

.cn-st-intro-body em {
    color: #c4b5fd;
    font-style: italic;
}

.cn-st-intro-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0 0 20px;
}

.cn-st-intro-hint strong {
    color: rgba(255, 255, 255, 0.6);
}

.cn-st-intro-dismiss {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border: none;
    border-radius: 10px;
    padding: 10px 32px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.cn-st-intro-dismiss:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.45);
    background: linear-gradient(135deg, #b562ff, #8b5cf6);
}

/* --- TIMELINE CONNECTOR between cards — heat animation builds toward release --- */
.cn-st-timeline-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
    align-self: center;
}

.cn-st-timeline-line {
    width: 28px;
    height: 2px;
    border-radius: 1px;
    position: relative;
    transition: all 0.4s ease;
}

.cn-st-timeline-line::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transition: all 0.4s ease;
}

/* --- Heat level 1: Cool — early posts (purple, calm) --- */
.cn-st-timeline-connector[data-heat="1"] .cn-st-timeline-line {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.25), rgba(168, 85, 247, 0.15));
    height: 2px;
}
.cn-st-timeline-connector[data-heat="1"] .cn-st-timeline-line::after {
    background: rgba(168, 85, 247, 0.2);
    box-shadow: none;
}

/* --- Heat level 2: Warming — getting closer (brighter purple) --- */
.cn-st-timeline-connector[data-heat="2"] .cn-st-timeline-line {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.45), rgba(192, 100, 255, 0.35));
    height: 2px;
    animation: heatPulse2 3s ease-in-out infinite;
}
.cn-st-timeline-connector[data-heat="2"] .cn-st-timeline-line::after {
    background: rgba(192, 100, 255, 0.4);
    box-shadow: 0 0 4px rgba(192, 100, 255, 0.2);
}

/* --- Heat level 3: Warm — momentum building (purple-pink) --- */
.cn-st-timeline-connector[data-heat="3"] .cn-st-timeline-line {
    background: linear-gradient(90deg, rgba(192, 100, 255, 0.5), rgba(236, 72, 153, 0.45));
    height: 3px;
    animation: heatPulse3 2.5s ease-in-out infinite;
}
.cn-st-timeline-connector[data-heat="3"] .cn-st-timeline-line::after {
    background: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 6px rgba(236, 72, 153, 0.3);
    width: 7px;
    height: 7px;
}

/* --- Heat level 4: Hot — almost there (pink-orange) --- */
.cn-st-timeline-connector[data-heat="4"] .cn-st-timeline-line {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.6), rgba(249, 115, 22, 0.55));
    height: 3px;
    animation: heatPulse4 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.15);
}
.cn-st-timeline-connector[data-heat="4"] .cn-st-timeline-line::after {
    background: rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
    width: 8px;
    height: 8px;
}

/* --- Heat level 5: On fire — final connector before release (orange-red, glowing) --- */
.cn-st-timeline-connector[data-heat="5"] .cn-st-timeline-line {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.7), rgba(239, 68, 68, 0.8));
    height: 4px;
    animation: heatPulse5 1.5s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25), 0 0 24px rgba(249, 115, 22, 0.15);
}
.cn-st-timeline-connector[data-heat="5"] .cn-st-timeline-line::after {
    background: rgba(239, 68, 68, 0.8);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.6), 0 0 28px rgba(249, 115, 22, 0.3);
    width: 9px;
    height: 9px;
    animation: heatDotGlow 1.2s ease-in-out infinite;
}

/* --- Heat pulse animations — faster & more intense at higher levels --- */
@keyframes heatPulse2 {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes heatPulse3 {
    0%, 100% { opacity: 0.75; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.2); }
}

@keyframes heatPulse4 {
    0%, 100% { opacity: 0.8; filter: brightness(1); box-shadow: 0 0 8px rgba(249, 115, 22, 0.15); }
    50% { opacity: 1; filter: brightness(1.3); box-shadow: 0 0 16px rgba(249, 115, 22, 0.3); }
}

@keyframes heatPulse5 {
    0%, 100% { opacity: 0.85; filter: brightness(1); box-shadow: 0 0 12px rgba(239, 68, 68, 0.25), 0 0 24px rgba(249, 115, 22, 0.15); }
    50% { opacity: 1; filter: brightness(1.4); box-shadow: 0 0 20px rgba(239, 68, 68, 0.5), 0 0 40px rgba(249, 115, 22, 0.3); }
}

@keyframes heatDotGlow {
    0%, 100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 14px rgba(239, 68, 68, 0.6), 0 0 28px rgba(249, 115, 22, 0.3); }
    50% { transform: translateY(-50%) scale(1.3); box-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 0 40px rgba(249, 115, 22, 0.5); }
}

.cn-st-timeline-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    align-self: center;
}

.cn-st-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
    animation: cnStDotPulse 2s ease-in-out infinite;
}

.cn-st-timeline-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(168, 85, 247, 0.6);
    white-space: nowrap;
}

/* ==========================================================================
   HIDE SIDEBAR WHEN SOCIAL TRAIL IS ACTIVE
   ========================================================================== */
.cn-te-sidebar.cn-st-sidebar-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-50%) translateX(40px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ==========================================================================
   MOMENT CULMINATION CARD — The key moment these posts built to
   Replaces the simple dot+label at the end of the social trail
   ========================================================================== */
.cn-st-moment-culmination {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0 8px 0 0;
    align-self: center;
    flex-shrink: 0;
    animation: cnStMomentAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes cnStMomentAppear {
    from { opacity: 0; transform: scale(0.85) translateX(-12px); }
    to { opacity: 1; transform: scale(1) translateX(0); }
}

/* Converging lines — visual energy flowing into the moment */
.cn-st-moment-converge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    position: relative;
}

.cn-st-moment-converge-line {
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.7));
    border-radius: 1px;
    position: relative;
    animation: cnStConvergePulse 2s ease-in-out infinite;
}

@keyframes cnStConvergePulse {
    0%, 100% { 
        background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.7));
        box-shadow: none;
    }
    50% { 
        background: linear-gradient(90deg, rgba(168, 85, 247, 0.4), rgba(168, 85, 247, 1));
        box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
    }
}

/* Energy particles flowing along the line */
.cn-st-moment-converge-line::before,
.cn-st-moment-converge-line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a855f7;
    top: 50%;
    transform: translateY(-50%);
    animation: cnStParticleFlow 1.8s ease-in-out infinite;
}

.cn-st-moment-converge-line::before {
    animation-delay: 0s;
}

.cn-st-moment-converge-line::after {
    animation-delay: 0.9s;
    width: 4px;
    height: 4px;
    background: #c4b5fd;
}

@keyframes cnStParticleFlow {
    0% { left: 0; opacity: 0; box-shadow: none; }
    20% { opacity: 1; box-shadow: 0 0 6px rgba(168, 85, 247, 0.6); }
    80% { opacity: 1; box-shadow: 0 0 10px rgba(168, 85, 247, 0.8); }
    100% { left: calc(100% - 6px); opacity: 0; box-shadow: none; }
}

/* The moment card itself */
.cn-st-moment-card {
    width: 180px;
    background: rgba(10, 10, 24, 0.95);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.25),
                0 8px 40px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(168, 85, 247, 0.1) inset;
    animation: cnStMomentGlow 3s ease-in-out infinite;
}

@keyframes cnStMomentGlow {
    0%, 100% { 
        border-color: rgba(168, 85, 247, 0.4);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.25),
                    0 8px 40px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(168, 85, 247, 0.1) inset;
    }
    50% { 
        border-color: rgba(168, 85, 247, 0.7);
        box-shadow: 0 0 50px rgba(168, 85, 247, 0.4),
                    0 0 80px rgba(168, 85, 247, 0.15),
                    0 8px 40px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(168, 85, 247, 0.2) inset;
    }
}

/* Shimmer overlay on the moment card */
.cn-st-moment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(168, 85, 247, 0.05) 40%,
        rgba(168, 85, 247, 0.12) 50%,
        rgba(168, 85, 247, 0.05) 60%,
        transparent 100%);
    z-index: 2;
    pointer-events: none;
    animation: cnStMomentShimmer 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s infinite;
}

@keyframes cnStMomentShimmer {
    0% { left: -100%; }
    40% { left: 200%; }
    100% { left: 200%; }
}

/* Moment media thumbnail */
.cn-st-moment-media {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #08080f;
}

.cn-st-moment-media img,
.cn-st-moment-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) saturate(1.15);
}

/* Pulsing ring overlay on the moment media */
.cn-st-moment-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.6);
    background: rgba(168, 85, 247, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: cnStMomentRingPulse 2.5s ease-in-out infinite;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@keyframes cnStMomentRingPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        border-color: rgba(168, 85, 247, 0.6);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        border-color: rgba(168, 85, 247, 0.9);
        box-shadow: 0 0 20px 8px rgba(168, 85, 247, 0.3);
    }
}

.cn-st-moment-ring svg {
    color: #c4b5fd;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}

/* "MOMENT" label chip at top of media */
.cn-st-moment-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background: rgba(168, 85, 247, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 3px 10px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    animation: cnStMomentBadgePulse 3s ease-in-out infinite;
}

@keyframes cnStMomentBadgePulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 2px 20px rgba(168, 85, 247, 0.7), 0 0 40px rgba(168, 85, 247, 0.2); }
}

/* Moment info below media */
.cn-st-moment-info {
    padding: 10px 12px 12px;
    text-align: center;
    position: relative;
}

.cn-st-moment-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.cn-st-moment-subtitle {
    font-size: 10px;
    font-weight: 500;
    color: #c4b5fd;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: cnStMomentTextReveal 0.6s ease forwards;
    animation-delay: 1.2s;
}

.cn-st-moment-date {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 6px;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: cnStMomentTextReveal 0.6s ease forwards;
    animation-delay: 1.4s;
}

.cn-st-moment-arrow-trail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 2px;
}

.cn-st-moment-arrow-trail span {
    display: inline-block;
    font-size: 10px;
    color: rgba(168, 85, 247, 0.5);
    animation: cnStArrowFlow 1.5s ease-in-out infinite;
}

.cn-st-moment-arrow-trail span:nth-child(1) { animation-delay: 0s; }
.cn-st-moment-arrow-trail span:nth-child(2) { animation-delay: 0.15s; }
.cn-st-moment-arrow-trail span:nth-child(3) { animation-delay: 0.3s; }

@keyframes cnStArrowFlow {
    0%, 100% { opacity: 0.3; color: rgba(168, 85, 247, 0.3); }
    50% { opacity: 1; color: #a855f7; }
}

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

/* "Built to this" flowing text label */
.cn-st-moment-buildup-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(168, 85, 247, 0.5);
    white-space: nowrap;
    margin-bottom: 4px;
    opacity: 0;
    animation: cnStMomentTextReveal 0.5s ease forwards;
    animation-delay: 0.8s;
}

/* ==========================================================================
   Responsive tweaks for Social Trail cards
   ========================================================================== */
@media (max-width: 768px) {
    .cn-st-media-panel {
        flex: 0 0 160px;
        width: 160px;
    }
    .cn-st-content-panel {
        flex: 0 0 180px;
        width: 180px;
        padding: 10px;
    }
    .cn-st-media {
        aspect-ratio: 3/4;
    }
}

/* ==========================================================================
   GOAL TRACKING HUD
   ========================================================================== */
.goal-tracking-hud {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 15px 25px;
    background: var(--bp-card);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hud-goal-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bp-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hud-goal-sub {
    font-size: 0.7rem;
    color: var(--bp-text-muted);
}

.hud-stats {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--bp-text-muted);
}

.hud-stats strong {
    color: var(--bp-cyan);
}

/* Plan Focus completion states */
.hud-complete {
    border-color: rgba(0, 255, 100, 0.4) !important;
    background: rgba(0, 255, 100, 0.08) !important;
}

.hud-complete .hud-goal-label {
    color: #00ff64 !important;
}

.hud-stat-complete {
    color: #00ff64 !important;
}

.hud-stat-complete strong {
    color: #00ff64 !important;
}

/* Generic placeholder for spine cards without translation media */
.spine-generic-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* ==========================================================================
   SCENE VIEWER
   ========================================================================== */
.scene-viewer {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Act Header */
.scene-act-header {
    text-align: center;
    margin-bottom: 16px;
}

.scene-act-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--bp-cyan);
    text-transform: uppercase;
    margin: 0 0 8px;
}

.scene-act-title {
    font-size: 1.4rem;
    font-weight: 300;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: 1px;
}

.scene-act-range {
    font-size: 12px;
    color: var(--bp-text-muted);
    letter-spacing: 1px;
    margin: 0;
}

/* Scene Card Wrapper — narrower to leave room for sidebar on right */
.scene-card-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Scene Card */
.scene-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bp-card);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 14px;
    overflow: hidden;
    flex: 1;
    min-height: 200px;
    max-height: 340px;
}

/* Scene Media — fills grid row, no fixed aspect ratio so card height
   is driven by content.  object-fit:cover handles image cropping. */
.scene-media-wrapper {
    position: relative;
    overflow: hidden;
    background: #0a0a12;
}

.scene-media {
    width: 100%;
    height: 100%;
}

.scene-media img,
.scene-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scene-media .scene-type {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--bp-magenta);
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--bp-magenta);
    border-radius: 4px;
    z-index: 5;
}

/* Scene Content */
.scene-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scene-date {
    font-size: 12px;
    color: var(--bp-cyan);
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 0 10px;
}

.scene-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.scene-description {
    font-size: 0.82rem;
    color: var(--bp-text-muted);
    line-height: 1.5;
    margin: 0 0 10px;
}

.scene-fact {
    font-size: 0.85rem;
    color: var(--bp-cyan);
    border-left: 2px solid var(--bp-cyan);
    padding-left: 12px;
    margin-bottom: 15px;
    font-style: italic;
}

.scene-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.scene-badge {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    color: var(--bp-cyan);
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.scene-stats {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.scene-stat {
    text-align: left;
}

.scene-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bp-cyan);
}

.scene-stat-lbl {
    font-size: 10px;
    color: var(--bp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Scene Navigation — absolute positioned, floats above everything including sidebar */
.scene-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 20, 30, 0.92);
    border: 1.5px solid rgba(0, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--bp-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
    pointer-events: auto;
}

.scene-nav:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--bp-cyan);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
}

.scene-nav svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.scene-nav-prev {
    left: -60px;
}

.scene-nav-next {
    right: -60px;
}

/* ==========================================================================
   VOICEOVER SECTION (Why This Mattered)
   ========================================================================== */
.voiceover-section {
    width: 100%;
    max-width: 800px;
    margin: 40px auto 20px;
    padding: 0 30px;
    text-align: center;
}

.voiceover-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--bp-cyan);
    margin-bottom: 20px;
    opacity: 0.8;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.voiceover-label svg {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.6));
}

.voiceover-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 100%;
    letter-spacing: 0.03em;
    text-align: center;
}

/* Animated word effect */
.voiceover-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
    transition: 
        opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.voiceover-word.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ==========================================================================
   ACTION CTAs
   ========================================================================== */
.action-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 900px;
    padding: 0 20px;
}

.bp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.bp-btn-primary {
    background: linear-gradient(135deg, var(--bp-cyan), #00b8b8);
    color: #000;
    border-color: var(--bp-cyan);
}

.bp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.4);
}

.bp-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.bp-btn-story {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 8px 14px;
    font-size: 0.7rem;
}

.bp-btn-story:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #a78bfa;
}

/* Social Trail CTA in action bar */
.social-trail-cta-btn {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c4b5fd !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    position: relative;
}

.social-trail-cta-btn:hover {
    background: rgba(168, 85, 247, 0.3) !important;
    border-color: #a855f7 !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.social-trail-cta-btn svg {
    color: #a855f7;
}

/* ==========================================================================
   YOUR CAMPAIGN SPINE - Matches Campaign Timeline styling exactly
   ========================================================================== */
.spine-strip-section {
    margin-top: 40px;
}

/* Empty spine card styling */
.spine-card-empty {
    cursor: pointer;
}

.spine-card-empty:hover {
    transform: translateY(-5px);
}

.spine-card-empty:hover .film-card-media {
    border-color: rgba(0, 255, 200, 0.5);
}

.spine-empty-media {
    background: rgba(0, 20, 30, 0.8) !important;
    border: 2px dashed rgba(255, 255, 255, 0.15) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spine-empty-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.spine-empty-icon {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.spine-card-empty:hover .spine-empty-icon {
    color: #00ffc8;
    transform: scale(1.2);
}

/* Spine strip section - allow overflow for hover effects */
.spine-strip-section {
    overflow: visible !important;
}

.spine-strip-section .film-strip-track {
    overflow: visible !important;
    padding-top: 15px;
    padding-bottom: 10px;
}

/* Spine card with cyan highlight for filled */
.spine-card:not(.spine-card-empty) .film-card-media {
    border: 2px solid rgba(0, 255, 200, 0.3);
    position: relative;
}

.spine-card:not(.spine-card-empty):hover .film-card-media {
    border-color: #00ffc8;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
}

/* Spine card hover glow effect - SCOPED TO SPINE SECTION ONLY */
.spine-strip-section .spine-card-hover {
    transform: translateY(-10px) scale(1.03);
    z-index: 10;
}

.spine-strip-section .spine-card-hover .film-card-media {
    border-color: #ff00ff !important;
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.5),
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 60px rgba(0, 255, 200, 0.2) !important;
    animation: spineCardGlow 2s ease-in-out infinite;
}

@keyframes spineCardGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 0, 255, 0.5),
            0 0 40px rgba(255, 0, 255, 0.3),
            0 0 60px rgba(0, 255, 200, 0.2);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(0, 255, 200, 0.5),
            0 0 50px rgba(255, 0, 255, 0.4),
            0 0 70px rgba(0, 255, 200, 0.3);
    }
}

/* Spine card title - prevent cutoff - SCOPED TO SPINE ONLY */
.spine-strip-section .spine-card .film-card-title {
    font-size: 12px;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Spine card date row - more prominent */
.spine-card-date-row {
    margin-top: 4px;
}

.spine-card-date {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 255, 200, 0.15);
    border: 1px solid rgba(0, 255, 200, 0.4);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #00ffc8;
    letter-spacing: 0.5px;
}

/* Spine card meta section - compact metrics and source - SCOPED */
.spine-strip-section .spine-card-meta {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spine-strip-section .spine-meta-metric {
    font-size: 9px;
    font-weight: 600;
    color: rgba(0, 255, 100, 0.7);
    transition: all 0.3s ease;
}

.spine-strip-section .spine-card-hover .spine-meta-metric {
    color: #00ff64;
    text-shadow: 0 0 10px rgba(0, 255, 100, 0.8);
    animation: metricGlow 1.5s ease-in-out infinite;
}

@keyframes metricGlow {
    0%, 100% { 
        text-shadow: 0 0 8px rgba(0, 255, 100, 0.6);
        color: #00ff64;
    }
    50% { 
        text-shadow: 0 0 15px rgba(0, 255, 200, 0.9);
        color: #00ffd4;
    }
}

.spine-strip-section .spine-meta-source {
    font-size: 9px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.spine-strip-section .spine-card-hover .spine-meta-source {
    color: rgba(255, 0, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

/* Remove button for spine cards - SCOPED */
.spine-strip-section .spine-card-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 50, 50, 0.8);
    border: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.spine-strip-section .spine-card:hover .spine-card-remove {
    opacity: 1;
}

.spine-strip-section .spine-card-remove:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Remove notification styling */
.cn-remove-notif {
    background: rgba(255, 50, 50, 0.9) !important;
    border-color: rgba(255, 100, 100, 0.5) !important;
}

/* ==========================================================================
   TRANSLATION FOCUS MODE
   Shows connection between spine moment and source SOUR moment
   ========================================================================== */

/* Dark overlay for rest of site */
.translation-focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 120px;
    animation: focusFadeIn 0.3s ease;
}

@keyframes focusFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.translation-focus-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.translation-focus-close:hover {
    border-color: #ff00ff;
    color: #ff00ff;
    transform: scale(1.1);
}

.translation-focus-connection {
    text-align: center;
    margin-bottom: 30px;
}

.translation-focus-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.translation-focus-label strong {
    color: #00ffc8;
}

.translation-focus-icon {
    margin-right: 8px;
}

.translation-focus-source-name {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    animation: sourceNameGlow 2s ease-in-out infinite;
    margin-bottom: 15px;
}

.translation-focus-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto;
}

/* Translation Focus Info Panel - thin horizontal bar */
.translation-focus-info-panel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 99995;
    padding: 8px 15px;
    margin: 0;
    width: 100%;
}

.focus-info-content {
    background: rgba(0, 20, 30, 0.8);
    border-top: 1px solid rgba(0, 255, 200, 0.2);
    border-bottom: 1px solid rgba(0, 255, 200, 0.2);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.focus-info-budget {
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline;
}

.focus-info-budget .budget-label {
    color: rgba(255, 255, 255, 0.5);
}

.focus-info-budget .budget-value {
    color: #00ffc8;
    font-weight: 600;
    margin-left: 3px;
}

.focus-info-tip {
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.7);
    display: inline;
}

.focus-info-close-hint {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    margin-left: 10px;
}

@keyframes sourceNameGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px rgba(0, 255, 200, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 255, 200, 0.7), 0 0 50px rgba(255, 0, 255, 0.5);
    }
}

/* When in focus mode, hide other elements completely */
body.translation-focus-mode .cinema-actions,
body.translation-focus-mode .why-this-mattered,
body.translation-focus-mode #cn-te-sidebar,
body.translation-focus-mode .goal-tracking-hud,
body.translation-focus-mode .act-header,
body.translation-focus-mode .scene-act-header,
body.translation-focus-mode .scene-content-description,
body.translation-focus_mode .scene-content-highlight,
body.translation-focus-mode .scene-content-badges,
body.translation-focus-mode .scene-stats-row,
body.translation-focus-mode .also-in-phase,
body.translation-focus-mode .film-strip-section:not(.spine-strip-section),
body.translation-focus-mode .film-strip-header,
body.translation-focus-mode .spine-subtitle,
body.translation-focus-mode .action-ctas {
    display: none !important;
}

/* Voiceover section is used to show the info panel in focus mode */
body.translation-focus-mode .voiceover-section {
    visibility: visible !important;
}

/* Keep scene viewer and spine visible, bring above overlay */
body.translation-focus-mode .scene-viewer {
    position: relative;
    z-index: 99991;
}

body.translation-focus-mode .spine-strip-section {
    position: relative;
    z-index: 99991;
}

/* Glow effect on main section (source moment) */
body.translation-focus-mode .scene-viewer .scene-media {
    animation: sourceMomentGlow 2s ease-in-out infinite;
    border-radius: 12px;
}

@keyframes sourceMomentGlow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(255, 0, 255, 0.6),
            0 0 60px rgba(255, 0, 255, 0.4),
            0 0 100px rgba(0, 255, 200, 0.3),
            inset 0 0 30px rgba(255, 0, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(0, 255, 200, 0.6),
            0 0 80px rgba(255, 0, 255, 0.5),
            0 0 120px rgba(0, 255, 200, 0.4),
            inset 0 0 40px rgba(0, 255, 200, 0.1);
    }
}

/* Focused spine card gets extra glow */
body.translation-focus-mode .spine-card.spine-focus-active {
    transform: scale(1.05);
}

body.translation-focus-mode .spine-card.spine-focus-active .film-card-media {
    box-shadow: 
        0 0 25px rgba(0, 255, 200, 0.7),
        0 0 50px rgba(255, 0, 255, 0.5) !important;
    border-color: #00ffc8 !important;
}

/* Hide other spine cards slightly */
body.translation-focus-mode .spine-card:not(.spine-focus-active) {
    opacity: 0.3;
}

/* Connector line visual - connects spine card to main moment above */
body.translation-focus-mode .spine-focus-active::before {
    content: '';
    position: absolute;
    top: -130px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 130px;
    background: linear-gradient(to bottom, rgba(255, 0, 255, 0.9), rgba(0, 255, 200, 0.9));
    animation: connectorPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(0, 255, 200, 0.3);
}

@keyframes connectorPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Legacy - keep for modal */
.cn-goal-edit-header {
    margin-top: 10px;
}

.cn-goal-edit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--bp-text-muted);
    cursor: pointer;
}

.cn-goal-edit-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   KEYBOARD HINT
   ========================================================================== */
.scene-keyboard-hint {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin: 25px 0;
    padding: 10px 20px;
    background: rgba(0, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
}

.scene-keyboard-hint kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 8px;
    font-family: inherit;
    font-size: 10px;
    transition: all 0.3s ease;
}

.scene-keyboard-hint kbd.cn-arrow-glow {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.5);
    color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    animation: arrowKeyPulse 1.5s ease-in-out infinite;
}

@keyframes arrowKeyPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 255, 0.2); }
    50% { box-shadow: 0 0 18px rgba(0, 255, 255, 0.5); }
}

.scene-keyboard-hint strong {
    color: #00ffcc;
}

/* ==========================================================================
   ALSO IN THIS PHASE
   ========================================================================== */
.also-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

.also-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bp-text-muted);
    margin-bottom: 15px;
}

.also-strip {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.also-strip::-webkit-scrollbar {
    height: 4px;
}

.also-strip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.also-strip::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 2px;
}

.also-card {
    flex: 0 0 140px;
    min-width: 140px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.also-card:hover {
    transform: translateY(-5px);
}

.also-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(20, 30, 50, 0.8);
    margin-bottom: 8px;
}

.also-card-img img,
.also-card-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.also-card-title {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.3;
}

/* ==========================================================================
   STORY OVERLAY - Netflix x Apple Cinematic Experience
   ========================================================================== */

/* Hide site navigation when story mode is active */
body.story-mode-active {
    overflow: hidden !important;
}

body.story-mode-active #main-header,
body.story-mode-active .et-fixed-header,
body.story-mode-active header,
body.story-mode-active nav,
body.story-mode-active .site-header {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.5s ease !important;
}

.story-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 999999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-overlay.active {
    display: flex;
    animation: storyFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes storyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Centered Logo */
.story-logo {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.story-logo:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
}

.story-logo img {
    height: 40px;
    width: auto;
}

/* Close button - minimal Apple style */
.story-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.story-close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Story content area - Flexbox for proper centering */
.story-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 60px 120px;
    text-align: center;
    position: relative;
    gap: 20px;
    overflow-y: auto;
}

/* Transition animations between scenes */
.story-content.transitioning {
    animation: sceneTransition 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes sceneTransition {
    0% { opacity: 1; transform: scale(1); }
    40% { opacity: 0; transform: scale(1.02); filter: blur(10px); }
    60% { opacity: 0; transform: scale(0.98); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Story media - Cinematic but not overwhelming */
.story-media {
    width: 70%;
    max-width: 700px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #0a0a0a;
    margin-bottom: 30px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8),
                0 0 60px rgba(0, 255, 255, 0.08);
    position: relative;
    animation: mediaFloat 6s ease-in-out infinite;
}

@keyframes mediaFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 255, 255, 0.08);
    }
    50% { 
        transform: translateY(-8px) scale(1.01); 
        box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 80px rgba(0, 255, 255, 0.12);
    }
}

.story-media::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: imageFloat 8s ease-in-out infinite, mediaReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes imageFloat {
    0%, 100% { 
        transform: scale(1.02); 
        filter: brightness(1);
    }
    25% { 
        transform: scale(1.05) translateX(1%); 
        filter: brightness(1.05);
    }
    50% { 
        transform: scale(1.03) translateY(-1%); 
        filter: brightness(1.02);
    }
    75% { 
        transform: scale(1.04) translateX(-1%); 
        filter: brightness(1.03);
    }
}

.story-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: mediaReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes mediaReveal {
    from {
        opacity: 0;
        transform: scale(1.1);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Story info line - refined */
.story-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    animation: floatUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

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

.story-category {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--bp-magenta);
    text-transform: uppercase;
}

.story-date {
    font-family: 'SF Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* Story title - Apple keynote style */
.story-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 24px;
    letter-spacing: -0.5px;
    animation: floatUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

/* Story text - dreamy floating animation */
.story-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    perspective: 1000px;
}

.story-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-15deg) scale(0.9);
    filter: blur(6px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode: forwards;
}

.story-word.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
    animation: wordFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--word-index, 0) * 0.1s);
}

@keyframes wordFloat {
    0%, 100% { 
        transform: translateY(0) rotateX(0); 
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: translateY(-3px) rotateX(2deg); 
        text-shadow: 0 5px 30px rgba(255, 255, 255, 0.2);
    }
}

/* Ambient glow effect */
.story-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, 
        rgba(0, 255, 255, 0.08) 0%, 
        rgba(255, 0, 255, 0.05) 30%,
        transparent 70%);
    pointer-events: none;
    animation: ambientPulse 8s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Story controls at bottom - sleek Netflix style */
.story-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 100;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.story-overlay:hover .story-controls {
    opacity: 1;
}

/* Progress bar - thin elegant line */
.story-progress {
    width: 500px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}

.story-progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.3s linear;
    position: relative;
}

.story-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Navigation buttons - minimal */
.story-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.story-nav-btn,
.story-play-pause {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.story-nav-btn:hover,
.story-play-pause:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.story-play-pause {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Counter - episode style */
.story-counter {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* Chapter markers on progress bar */
.chapter-markers {
    position: absolute;
    width: 500px;
    height: 20px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 105px;
    pointer-events: auto;
}

.chapter-marker {
    position: absolute;
    transform: translateX(-50%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.chapter-marker:hover,
.chapter-marker.active {
    opacity: 1;
}

.chapter-marker-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.chapter-marker.active .chapter-marker-dot {
    width: 8px;
    height: 8px;
    background: var(--bp-cyan);
    box-shadow: 0 0 10px var(--bp-cyan);
}

.chapter-marker-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.chapter-marker.active .chapter-marker-label {
    color: var(--bp-cyan);
}

/* Chapter header in story content */
.story-chapter-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    animation: floatUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.story-chapter-label {
    font-family: 'SF Mono', monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--bp-cyan);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.story-chapter-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* Beat role badge */
.story-beat-role {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
    animation: floatUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.beat-role-badge {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Role-specific colors */
.beat-role-setup { background: rgba(0, 200, 255, 0.15); border-color: rgba(0, 200, 255, 0.3); color: #00c8ff; }
.beat-role-inciting-incident { background: rgba(255, 100, 0, 0.15); border-color: rgba(255, 100, 0, 0.3); color: #ff6400; }
.beat-role-escalation { background: rgba(255, 200, 0, 0.15); border-color: rgba(255, 200, 0, 0.3); color: #ffc800; }
.beat-role-twist { background: rgba(255, 0, 100, 0.15); border-color: rgba(255, 0, 100, 0.3); color: #ff0064; }
.beat-role-response { background: rgba(200, 0, 255, 0.15); border-color: rgba(200, 0, 255, 0.3); color: #c800ff; }
.beat-role-amplification { background: rgba(0, 255, 150, 0.15); border-color: rgba(0, 255, 150, 0.3); color: #00ff96; }
.beat-role-resolution-attempt { background: rgba(100, 150, 255, 0.15); border-color: rgba(100, 150, 255, 0.3); color: #6496ff; }
.beat-role-payoff { background: rgba(255, 215, 0, 0.15); border-color: rgba(255, 215, 0, 0.3); color: #ffd700; }
.beat-role-aftermath { background: rgba(150, 150, 150, 0.15); border-color: rgba(150, 150, 150, 0.3); color: #aaa; }

.beat-date-range {
    font-family: 'SF Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Thread tags */
.story-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    animation: floatUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

.story-tag {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

/* Story conclusion screen */
.story-conclusion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px;
}

.conclusion-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4rem;
    font-weight: 300;
    font-style: italic;
    color: #fff;
    margin-bottom: 40px;
    animation: floatUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.conclusion-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 300;
    font-style: italic;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-bottom: 50px;
    animation: floatUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.conclusion-restart {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #000;
    background: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: floatUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.conclusion-restart:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

/* Continue watching prompt */
.continue-watching-prompt {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 99999;
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.continue-watching-prompt.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.continue-icon {
    font-size: 20px;
    color: var(--bp-cyan);
}

.continue-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.continue-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.continue-title {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.continue-btn {
    background: var(--bp-cyan);
    color: #000;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-btn:hover {
    transform: scale(1.05);
}

.continue-dismiss {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.continue-dismiss:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Media placeholder */
.story-media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   SCENE TEMPLATES - Cinematic Variety
   ========================================================================== */

/* Story Arc Mini-Map */
.story-arc-map {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 50;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.story-overlay:hover .story-arc-map {
    opacity: 1;
}

.arc-segment {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.arc-segment.active {
    color: #fff;
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.arc-connector {
    width: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   SCENE: COLD OPEN (Chapter Intro)
   ========================================================================== */
.scene-cold-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    position: relative;
}

.scene-cold-open .cold-open-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 30, 60, 0.8) 0%, #000 70%);
    animation: coldOpenBgPulse 8s ease-in-out infinite;
}

@keyframes coldOpenBgPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.scene-cold-open .cold-open-grain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.scene-cold-open .chapter-number {
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--bp-cyan);
    margin-bottom: 20px;
    opacity: 0;
    animation: coldOpenFadeIn 1s ease 0.3s forwards;
}

.scene-cold-open .chapter-main-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 30px;
    letter-spacing: 2px;
    opacity: 0;
    animation: coldOpenSlideUp 1.2s ease 0.5s forwards;
}

.scene-cold-open .chapter-thesis {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    line-height: 1.8;
    opacity: 0;
    animation: coldOpenFadeIn 1.5s ease 1s forwards;
}

@keyframes coldOpenFadeIn {
    to { opacity: 1; }
}

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

/* ==========================================================================
   SCENE: QUOTE / PULL-QUOTE
   ========================================================================== */
.scene-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    position: relative;
}

.scene-quote .quote-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.scene-quote .quote-bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(30px) brightness(0.3);
    transform: scale(1.1);
}

.scene-quote .quote-mark {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.scene-quote .quote-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    max-width: 800px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: quoteReveal 1s ease 0.3s forwards;
}

.scene-quote .quote-attribution {
    margin-top: 30px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bp-magenta);
    opacity: 0;
    animation: quoteReveal 1s ease 0.8s forwards;
}

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

/* ==========================================================================
   SCENE: HEADLINE (Press Montage)
   ========================================================================== */
.scene-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
}

.headline-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px 40px;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    animation: headlineSlideIn 0.8s ease forwards;
}

.headline-card:nth-child(1) { animation-delay: 0.2s; }
.headline-card:nth-child(2) { animation-delay: 0.5s; }
.headline-card:nth-child(3) { animation-delay: 0.8s; }

@keyframes headlineSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

.headline-card .headline-source {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bp-cyan);
    margin-bottom: 10px;
}

.headline-card .headline-text {
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

/* ==========================================================================
   SCENE: SOCIAL THREAD (TikTok/Twitter Cards)
   ========================================================================== */
.scene-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 15px;
}

.social-card {
    background: #16181c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 20px;
    max-width: 500px;
    width: 90%;
    opacity: 0;
    transform: translateX(-50px);
    animation: socialSlideIn 0.6s ease forwards;
}

.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.4s; transform: translateX(50px); }
.social-card:nth-child(3) { animation-delay: 0.7s; }

@keyframes socialSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

.social-card.twitter { border-left: 3px solid #1da1f2; }
.social-card.tiktok { border-left: 3px solid #ff0050; }
.social-card.reddit { border-left: 3px solid #ff4500; }

.social-card .social-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.social-card .social-platform {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.social-card.twitter .social-platform { color: #1da1f2; }
.social-card.tiktok .social-platform { color: #ff0050; }
.social-card.reddit .social-platform { color: #ff4500; }

.social-card .social-username {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.social-card .social-text {
    font-size: 15px;
    color: #fff;
    line-height: 1.5;
}

.social-card .social-reactions {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.social-card .social-reactions span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   SCENE: MONTAGE (Fast Cuts)
   ========================================================================== */
.scene-montage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.montage-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 800px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
}

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

.montage-image.active {
    animation: montageFlash 1s ease forwards;
}

@keyframes montageFlash {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

.montage-caption {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: montageCaptionIn 0.5s ease 0.8s forwards;
}

@keyframes montageCaptionIn {
    to { opacity: 1; }
}

/* ==========================================================================
   STANDARD SCENE - Enhanced with Ken Burns
   ========================================================================== */
.story-media.ken-burns-zoom-in img {
    animation: kenBurnsZoomIn 12s ease-in-out infinite;
}

.story-media.ken-burns-zoom-out img {
    animation: kenBurnsZoomOut 12s ease-in-out infinite;
}

.story-media.ken-burns-drift-left img {
    animation: kenBurnsDriftLeft 12s ease-in-out infinite;
}

.story-media.ken-burns-drift-right img {
    animation: kenBurnsDriftRight 12s ease-in-out infinite;
}

@keyframes kenBurnsZoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes kenBurnsZoomOut {
    0% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes kenBurnsDriftLeft {
    0% { transform: scale(1.1) translateX(3%); }
    100% { transform: scale(1.1) translateX(-3%); }
}

@keyframes kenBurnsDriftRight {
    0% { transform: scale(1.1) translateX(-3%); }
    100% { transform: scale(1.1) translateX(3%); }
}

/* Poster-to-Video Morph */
.story-media.poster-mode .poster-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.8s ease;
}

.story-media.poster-mode .poster-frame.fading {
    opacity: 0;
}

.story-media.poster-mode video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sequential Summary Reveal */
.story-summary-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 700px;
    margin-top: 20px;
}

.summary-line {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s ease;
}

.summary-line.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Narration Line (appears first) */
.narration-line {
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--bp-cyan);
    margin-bottom: 15px;
    opacity: 0;
    animation: narrationIn 0.8s ease 0.2s forwards;
}

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

/* Deep Dive Hint */
.deep-dive-hint {
    position: absolute;
    bottom: 130px;
    right: 40px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-overlay:hover .deep-dive-hint {
    opacity: 1;
}

.deep-dive-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 2px 6px;
    margin-right: 5px;
}

/* Music indicator */
.story-audio-indicator {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.story-audio-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.story-audio-bars span {
    width: 2px;
    background: var(--bp-cyan);
    animation: audioBar 0.5s ease-in-out infinite alternate;
}

.story-audio-bars span:nth-child(1) { height: 4px; animation-delay: 0s; }
.story-audio-bars span:nth-child(2) { height: 8px; animation-delay: 0.1s; }
.story-audio-bars span:nth-child(3) { height: 6px; animation-delay: 0.2s; }
.story-audio-bars span:nth-child(4) { height: 10px; animation-delay: 0.3s; }

@keyframes audioBar {
    to { height: 12px; }
}

/* Responsive */
@media (max-width: 900px) {
    .scene-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    
    .scene-media-wrapper {
        aspect-ratio: 16/9;
    }
    
    .scene-content {
        padding: 25px;
    }
    
    .scene-nav-prev {
        left: 5px;
    }
    
    .scene-nav-next {
        right: 5px;
    }
    
    .scene-nav {
        width: 40px;
        height: 40px;
    }
    
    .voiceover-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .film-strip-section {
        padding: 0 3%;
    }
    
    .scene-act-title {
        font-size: 1.3rem;
    }
    
    .scene-title {
        font-size: 1.1rem;
    }
    
    .action-ctas {
        gap: 8px;
    }
    
    .bp-btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
    
    .goal-tracking-hud {
        flex-direction: column;
        text-align: center;
    }
}
