/**
 * CityConnect - Reels Player Stylesheet
 * Fullscreen vertical snap layout, engagement buttons, double tap heart animation
 */

.reels-container-wrapper {
    position: relative;
    max-width: 440px;
    margin: 20px auto 40px;
    height: 82vh;
    background: #000;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.reels-scroll-container {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reels-scroll-container::-webkit-scrollbar {
    display: none;
}

.reel-item {
    position: relative;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Gradient overlays */
.reel-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    z-index: 10;
    pointer-events: none;
}

.reel-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    z-index: 10;
    pointer-events: none;
}

/* Side Action Buttons */
.reel-actions {
    position: absolute;
    right: 16px;
    bottom: 40px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.reel-btn {
    width: 48px;
    height: 48px;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.reel-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
    border-color: var(--primary);
}

.reel-btn.liked {
    color: #FF2E93;
    background: rgba(255, 46, 147, 0.2);
    border-color: #FF2E93;
}

.action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.action-count {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Reel Details */
.reel-details {
    position: absolute;
    left: 18px;
    bottom: 24px;
    right: 80px;
    z-index: 20;
}

.reel-user-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.reel-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.reel-username {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.reel-caption {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Big Animated Heart on Double Tap */
.heart-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 80px;
    color: #FF2E93;
    pointer-events: none;
    z-index: 30;
    filter: drop-shadow(0 0 20px rgba(255, 46, 147, 0.8));
}

.heart-animation.animate {
    animation: popHeart 0.8s ease forwards;
}

@keyframes popHeart {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1) translateY(-60px); opacity: 0; }
}

/* Sound Indicator */
.sound-toggle-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 20;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Reel Top Bar */
.reels-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
