/* ============================================
   RECAP MODAL - COMPLETE PREMIUM DESIGN
   ============================================ */

/* ===== MODAL OVERLAY ===== */
#recap-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#recap-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

#recap-modal.hidden {
    display: none !important;
}

/* ===== MODAL CONTENT ===== */
.recap-modal-content {
    position: relative;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    background: linear-gradient(145deg, rgba(26, 31, 46, 0.98), rgba(15, 23, 42, 0.99));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 32px;
    padding: 36px 32px 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transform: scale(0.92) translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

#recap-modal:not(.hidden) .recap-modal-content {
    transform: scale(1) translateY(0);
}

/* Premium Gradient Border - Animated */
.recap-modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.4) 0%, 
        rgba(99, 102, 241, 0.2) 25%,
        rgba(236, 72, 153, 0.15) 50%,
        rgba(99, 102, 241, 0.2) 75%,
        rgba(139, 92, 246, 0.4) 100%
    );
    background-size: 300% 300%;
    animation: borderGlow 4s ease-in-out infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Glow Orb - Animated */
.recap-modal-content::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    50% { transform: scale(1.2) translate(-20px, -20px); opacity: 1; }
}

.recap-modal-content > * {
    position: relative;
    z-index: 1;
}

/* ===== CLOSE BUTTON - PREMIUM ===== */
.recap-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.recap-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.recap-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* ===== PROGRESS BAR - PREMIUM ===== */
.recap-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 28px;
    overflow: hidden;
    position: relative;
}

.recap-progress-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.recap-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366F1, #8B5CF6, #A78BFA, #8B5CF6, #6366F1);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progressGlow 3s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== SLIDES CONTAINER ===== */
.recap-slides {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.recap-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 4px 20px;
    animation: slideFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.recap-slide.active {
    display: flex;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   SLIDE ICON - FIXED
   ============================================ */

.slide-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.06));
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem;
    color: #8B5CF6;
    margin-bottom: 18px;
    border: 1px solid rgba(139, 92, 246, 0.06);
    transition: all 0.4s ease;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

/* Fix for icon inside */
.slide-icon i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem;
    line-height: 1;
    color: #8B5CF6;
    transition: all 0.4s ease;
    width: auto;
    height: auto;
}

/* Glow ring behind icon */
.slide-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.slide-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.recap-slide.active .slide-icon {
    animation: iconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.recap-slide.active .slide-icon::before {
    opacity: 1;
}

.recap-slide.active .slide-icon::after {
    opacity: 1;
}

.recap-slide.active .slide-icon i {
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes iconPop {
    0% { 
        transform: scale(0.5) rotate(-10deg); 
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.3);
    }
    60% { 
        transform: scale(1.15) rotate(3deg); 
        opacity: 1;
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1;
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.05);
    }
}

@keyframes iconBounce {
    0% { 
        transform: scale(0.3) rotate(-20deg);
        opacity: 0;
    }
    60% { 
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
    }
    100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ============================================
   SLIDE TYPOGRAPHY - PREMIUM
   ============================================ */

.recap-slide h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 60%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 4px 0;
    line-height: 1.1;
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.recap-slide .subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 4px 0;
    animation: fadeUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.recap-slide .period {
    font-size: 0.85rem;
    color: rgba(139, 92, 246, 0.5);
    font-weight: 600;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    animation: fadeUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.recap-slide .hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
    animation: fadeUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.recap-slide .score {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FBBF24;
    margin: 6px 0;
    animation: fadeUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.recap-slide .score i {
    margin-right: 8px;
    animation: starSpin 3s linear infinite;
}

@keyframes starSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

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

/* ===== SLIDE COUNTER ===== */
.slide-counter {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.08);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ===== STAT BADGE - PREMIUM ===== */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    transition: all 0.4s ease;
    animation: fadeUp 0.6s ease 0.3s forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.stat-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stat-badge:hover::before {
    transform: translateX(100%);
}

.stat-badge:hover {
    border-color: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

.stat-badge i {
    color: #8B5CF6;
    font-size: 0.9rem;
}

/* ===== RATING METER - PREMIUM ===== */
.rating-meter {
    width: 220px;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-top: 14px;
    overflow: hidden;
    position: relative;
    animation: fadeUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.rating-meter::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer 2s infinite;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B, #FBBF24, #FCD34D);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: meterPulse 2s ease-in-out infinite;
}

@keyframes meterPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== GENRE LIST - PREMIUM ===== */
.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
    animation: fadeUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.genre-badge {
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.genre-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.genre-badge:hover::before {
    transform: translateX(100%);
}

.genre-badge:hover {
    transform: translateY(-3px) scale(1.05);
}

.genre-badge.primary {
    background: rgba(139, 92, 246, 0.12);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.08);
}

.genre-badge.secondary {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.06);
}

.genre-badge.tertiary {
    background: rgba(236, 72, 153, 0.1);
    color: #EC4899;
    border: 1px solid rgba(236, 72, 153, 0.06);
}

/* ===== STREAK BAR - PREMIUM ===== */
.streak-bar {
    width: 220px;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-top: 14px;
    overflow: hidden;
    position: relative;
    animation: fadeUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.streak-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer 2s infinite;
}

.streak-fill {
    height: 100%;
    background: linear-gradient(90deg, #EF4444, #F59E0B, #FCD34D);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: streakPulse 2s ease-in-out infinite;
}

@keyframes streakPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== RECAP SUMMARY - PREMIUM ===== */
.recap-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin: 16px auto 0;
    animation: fadeUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.summary-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.summary-item:hover::before {
    transform: translateX(100%);
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.04);
}

.summary-item i {
    color: #8B5CF6;
    font-size: 1rem;
    transition: all 0.4s ease;
}

.summary-item:hover i {
    transform: scale(1.2);
    color: #A78BFA;
}

.summary-item span {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   CONTROLS - PREMIUM
   ============================================ */

.recap-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.recap-nav-btn {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.recap-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.04), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.recap-nav-btn:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.recap-nav-btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.04);
}

.recap-nav-btn.next:hover:not(:disabled) {
    transform: translateX(4px) translateY(-2px);
}

.recap-nav-btn.prev:hover:not(:disabled) {
    transform: translateX(-4px) translateY(-2px);
}

.recap-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.recap-nav-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.recap-nav-btn.prev:hover:not(:disabled) i {
    transform: translateX(-3px);
}

.recap-nav-btn.next:hover:not(:disabled) i {
    transform: translateX(3px);
}

.slide-counter-global {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 0.05em;
}

/* ============================================
   LIGHT THEME
   ============================================ */

[data-theme="light"] #recap-modal {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

[data-theme="light"] .recap-modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.99));
    border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .recap-modal-content::before {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2) 0%, 
        rgba(99, 102, 241, 0.1) 25%,
        rgba(236, 72, 153, 0.08) 50%,
        rgba(99, 102, 241, 0.1) 75%,
        rgba(139, 92, 246, 0.2) 100%
    );
}

[data-theme="light"] .recap-modal-content::after {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.04) 0%, transparent 70%);
}

[data-theme="light"] .recap-close {
    color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .recap-close:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .recap-slide h1 {
    background: linear-gradient(135deg, #0f172a 60%, rgba(15, 23, 42, 0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .recap-slide .subtitle {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .recap-slide .hint {
    color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .recap-slide .period {
    color: rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .slide-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.04));
    border-color: rgba(139, 92, 246, 0.06);
}

[data-theme="light"] .slide-icon i {
    color: #7C3AED;
}

[data-theme="light"] .slide-icon::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.04));
}

[data-theme="light"] .slide-icon::after {
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.06), transparent 70%);
}

[data-theme="light"] .stat-badge {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .stat-badge i {
    color: #7C3AED;
}

[data-theme="light"] .genre-badge.primary {
    background: rgba(139, 92, 246, 0.06);
    color: #7C3AED;
    border-color: rgba(139, 92, 246, 0.04);
}

[data-theme="light"] .genre-badge.secondary {
    background: rgba(59, 130, 246, 0.04);
    color: #2563EB;
    border-color: rgba(59, 130, 246, 0.03);
}

[data-theme="light"] .genre-badge.tertiary {
    background: rgba(236, 72, 153, 0.04);
    color: #DB2777;
    border-color: rgba(236, 72, 153, 0.03);
}

[data-theme="light"] .summary-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .summary-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(139, 92, 246, 0.04);
}

[data-theme="light"] .summary-item span {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .summary-item i {
    color: #7C3AED;
}

[data-theme="light"] .recap-controls {
    border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .recap-nav-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .recap-nav-btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.04);
    border-color: rgba(139, 92, 246, 0.06);
    color: #0f172a;
}

[data-theme="light"] .slide-counter,
[data-theme="light"] .slide-counter-global {
    color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .recap-progress-container {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .rating-meter,
[data-theme="light"] .streak-bar {
    background: rgba(0, 0, 0, 0.04);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .recap-modal-content {
        padding: 24px 20px 20px;
        border-radius: 24px;
        max-width: 100%;
        max-height: 95vh;
    }
    
    .recap-slide h1 {
        font-size: 2.4rem;
    }
    
    .recap-slide .subtitle {
        font-size: 1rem;
    }
    
    .recap-slides {
        min-height: 360px;
    }
    
    .slide-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        font-size: 1.6rem;
    }
    
    .slide-icon i {
        font-size: 1.6rem;
    }
    
    .recap-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .summary-item {
        font-size: 0.7rem;
        padding: 8px 12px;
    }
    
    .recap-nav-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
    
    .rating-meter,
    .streak-bar {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .recap-modal-content {
        padding: 16px 14px 16px;
        border-radius: 20px;
    }
    
    .recap-slide h1 {
        font-size: 1.8rem;
    }
    
    .recap-slide .subtitle {
        font-size: 0.85rem;
    }
    
    .recap-slide .hint {
        font-size: 0.75rem;
    }
    
    .recap-slides {
        min-height: 320px;
    }
    
    .slide-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .slide-icon i {
        font-size: 1.3rem;
    }
    
    .recap-summary {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .summary-item {
        font-size: 0.65rem;
        padding: 6px 10px;
        gap: 6px;
        border-radius: 10px;
    }
    
    .summary-item i {
        font-size: 0.75rem;
    }
    
    .recap-nav-btn {
        padding: 6px 12px;
        font-size: 0.65rem;
        gap: 4px;
    }
    
    .recap-nav-btn i {
        font-size: 0.55rem;
    }
    
    .slide-counter-global {
        font-size: 0.6rem;
    }
    
    .rating-meter,
    .streak-bar {
        width: 140px;
        height: 6px;
    }
    
    .stat-badge {
        font-size: 0.7rem;
        padding: 4px 14px;
    }
    
    .genre-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
    }
    
    .genre-list {
        gap: 6px;
    }
    
    .recap-progress-container {
        margin-bottom: 16px;
    }
    
    .recap-controls {
        margin-top: 16px;
        padding-top: 14px;
    }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    #recap-modal:not(.hidden) .recap-modal-content {
        transform: none !important;
    }
    
    .recap-slide {
        animation: none !important;
    }
    
    .recap-slide.active .slide-icon {
        animation: none !important;
    }
    
    .recap-slide.active .slide-icon i {
        animation: none !important;
    }
    
    .recap-slide.active .slide-icon::before {
        opacity: 1;
    }
    
    .recap-slide.active .slide-icon::after {
        opacity: 1;
    }
    
    .recap-close:hover {
        transform: none !important;
    }
    
    .recap-progress {
        animation: none !important;
    }
    
    .recap-progress-container::after {
        animation: none !important;
    }
    
    .meter-fill {
        animation: none !important;
    }
    
    .streak-fill {
        animation: none !important;
    }
    
    .recap-modal-content::before {
        animation: none !important;
    }
    
    .recap-modal-content::after {
        animation: none !important;
    }
    
    .recap-slide .score i {
        animation: none !important;
    }
    
    .stat-badge::before {
        display: none !important;
    }
    
    .genre-badge::before {
        display: none !important;
    }
    
    .summary-item::before {
        display: none !important;
    }
    
    .recap-nav-btn::before {
        display: none !important;
    }
}