/* ==========================================================================
   Shorts Video Player Styles (9:16 Vertical Video Feed)
   ========================================================================== */

.shorts-feed-container {
    width: 100%;
    max-width: 440px;
    height: calc(100vh - 60px);
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: var(--radius-xl);
    scrollbar-width: none; /* Firefox */
}

.shorts-feed-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.short-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    background-color: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Play / Pause Animated Tap Overlay */
.short-play-state-indicator {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 25;
}

.short-play-state-indicator.show {
    opacity: 1;
    transform: scale(1);
}

/* Sound Wave / Mute Control */
.short-sound-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 30;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
}

.short-sound-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

/* Equalizer sound wave bars */
.equalizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.equalizer-bar {
    width: 2.5px;
    background-color: #FFF;
    border-radius: 1px;
}

.equalizer-bars.playing .equalizer-bar:nth-child(1) { animation: soundWave 0.6s infinite ease-in-out; }
.equalizer-bars.playing .equalizer-bar:nth-child(2) { animation: soundWave 0.8s infinite ease-in-out 0.2s; }
.equalizer-bars.playing .equalizer-bar:nth-child(3) { animation: soundWave 0.5s infinite ease-in-out 0.4s; }

/* Shorts Overlay Elements */
.short-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 76px;
    padding: 28px 18px 20px 18px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: #FFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
    pointer-events: none;
}

.short-overlay-bottom * {
    pointer-events: auto;
}

.short-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.short-author .avatar {
    width: 38px;
    height: 38px;
    border: 2px solid #FFF;
}

.short-author .name {
    font-weight: 800;
    font-size: 15px;
    color: #FFF;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.short-follow-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.short-follow-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.short-caption {
    font-size: 13.5px;
    line-height: 1.45;
    max-height: 70px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.short-caption .hashtag {
    color: #38BDF8;
    font-weight: 700;
}

/* Shorts Right Action Bar */
.short-actions-right {
    position: absolute;
    bottom: 24px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.short-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF;
    gap: 4px;
    cursor: pointer;
}

.short-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.short-action-icon:hover {
    transform: scale(1.15);
    background-color: rgba(0, 0, 0, 0.65);
}

.short-action-item.liked .short-action-icon {
    color: var(--like);
    border-color: rgba(255, 45, 85, 0.4);
    background: rgba(255, 45, 85, 0.2);
}

.short-action-item.liked .short-action-icon i {
    animation: bounceScale 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.short-action-label {
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Video Seek / Progress Bar */
.short-progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 25;
    cursor: pointer;
}

.short-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s linear;
}

