/* ============================================
   Reel Video Styles - 7 Seas Pro Shop
   ============================================ */

/* Variables */
:root {
    --reel-primary: #E74339;
    --reel-secondary: #2f3542;
    --reel-text: #333333;
    --reel-text-light: #666666;
    --reel-bg: #ffffff;
    --reel-bg-dark: #000000;
    --reel-border: #e0e0e0;
    --reel-shadow: rgba(0, 0, 0, 0.1);
}

/* ============================================
   Page Layout
   ============================================ */
.reel-page {
    padding: 20px 0 40px;
    min-height: 60vh;
}

.reel-page-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.reel-page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--reel-text);
    margin: 0;
}

/* ============================================
   Category Tabs
   ============================================ */
.reel-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.reel-category-tab {
    padding: 10px 20px;
    border: 1px solid var(--reel-border);
    border-radius: 25px;
    background: var(--reel-bg);
    color: var(--reel-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.reel-category-tab:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: var(--reel-text);
}

.reel-category-tab.active {
    background: var(--reel-primary);
    border-color: var(--reel-primary);
    color: white;
}

/* Hashtag Filter */
.reel-hashtag-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.reel-hashtag-filter .filter-label {
    color: #666;
    font-size: 14px;
}

.reel-hashtag-filter .filter-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #000;
    color: white;
    border-radius: 15px;
    font-size: 14px;
}

.reel-hashtag-filter .filter-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    text-decoration: none;
    font-size: 12px;
}

.reel-hashtag-filter .filter-clear:hover {
    background: var(--reel-primary);
    color: white;
}

/* ============================================
   Video Card
   ============================================ */
.reel-video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--reel-bg);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reel-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--reel-shadow);
}

.reel-video-card .thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 ratio */
    background: #f0f0f0;
    overflow: hidden;
}

.reel-video-card .thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-video-card .thumbnail .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.reel-video-card:hover .play-overlay {
    opacity: 1;
}

.reel-video-card .play-overlay i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

/* Bottom Gradient Overlay with Title & View Count */
.reel-video-card .video-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.reel-video-card .video-card-title {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.reel-video-card .video-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 12px;
}

.reel-video-card .video-card-views i {
    font-size: 12px;
    opacity: 0.9;
}

/* ============================================
   Video Grid
   ============================================ */
.reel-video-grid {
    display: grid;
    gap: 16px;
}

/* Desktop: 7 columns */
@media (min-width: 1200px) {
    .reel-video-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* Large tablet: 5 columns */
@media (min-width: 992px) and (max-width: 1199px) {
    .reel-video-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Tablet: 4 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .reel-video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile: 3 columns */
@media (min-width: 576px) and (max-width: 767px) {
    .reel-video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small mobile: 2 columns */
@media (max-width: 575px) {
    .reel-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .reel-category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .reel-category-tab {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* ============================================
   Loading & Empty States
   ============================================ */
.reel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--reel-text-light);
}

.reel-loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.reel-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.reel-empty i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.reel-empty p {
    font-size: 18px;
    color: #999;
    margin: 0;
}

/* ============================================
   Load More
   ============================================ */
.reel-load-more {
    display: flex;
    justify-content: center;
    padding: 30px;
    margin-top: 20px;
}

.reel-load-more-btn {
    padding: 12px 30px;
    background: var(--reel-primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.reel-load-more-btn:hover {
    background: #c42f26;
}

.reel-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ============================================
   Video Player Modal
   ============================================ */
.reel-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reel-player-modal.active {
    display: flex;
    opacity: 1;
}

/* Close Button */
.reel-player-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-player-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Player Wrapper */
.reel-player-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* Vertical Navigation (Up/Down) - Far right of screen */
.reel-player-nav-vertical {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100000;
}

.reel-nav-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(58, 59, 60, 0.8);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
}

.reel-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

/* Player Container */
.reel-player-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: visible;
    background: #000;
    box-shadow: none;
    border: none;
}

/* Video Element */
.reel-player-video {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    object-fit: cover;
    background: #000;
    border-radius: 8px;
}

/* Play/Pause Toggle Overlay */
.reel-play-toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show on hover */
.reel-play-toggle:hover {
    opacity: 1;
}

/* Show play icon when paused (not hovering) */
.reel-play-toggle.paused {
    opacity: 1;
}

/* Hide when playing, show on hover */
.reel-play-toggle.playing {
    opacity: 0;
}

.reel-play-toggle.playing:hover {
    opacity: 1;
}

.reel-play-icon,
.reel-pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
    text-align: center;
    align-content: center;
}

.reel-play-toggle:hover .reel-play-icon,
.reel-play-toggle:hover .reel-pause-icon {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

.reel-play-icon svg,
.reel-pause-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Loading */
.reel-player-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40px;
    z-index: 3;
    display: none;
}

/* Product Button - inside .reel-player-info, moves with content */
.reel-player-product-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    padding-right: 12px;
    margin-bottom: 12px;
    background: white;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.reel-player-product-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    color: #333;
    text-decoration: none;
}

.reel-player-product-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--reel-primary, #E74339);
    color: white;
    font-size: 14px;
    margin-right: 8px;
    border-radius: 6px 0 0 6px;
}

/* Video Info (Bottom) */
.reel-player-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 70px;
    padding: 80px 15px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    z-index: 2;
    border-radius: 0 0 8px 8px;
    width: 100%;
}

.reel-player-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.reel-player-description {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.reel-player-hashtags {
    display: inline;
}

.reel-player-hashtag {
    color: #E7F3FF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.reel-player-hashtag:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Actions (Right Side - Outside Container) */
.reel-player-actions {
    position: absolute;
    right: -70px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 5;
}

.reel-player-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 60px;
    padding: 0;
}

.reel-player-action:hover {
    transform: scale(1.05);
}

/* Action Icon Wrapper - white circular background */
.reel-player-action .action-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.reel-player-action .action-icon {
    display: block;
}

.reel-player-action i {
    font-size: 28px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: white;
    border-radius: 50%;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.reel-player-action span {
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Liked state - red filled heart */
.reel-player-action.liked .action-icon path {
    fill: #E74339 !important;
    stroke: #E74339 !important;
}

.reel-player-action.liked i {
    color: #E74339;
}

.reel-player-views {
    cursor: default;
}

/* Share Link Popup */
.reel-share-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.reel-share-popup-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.2s ease-out;
}

.reel-share-popup-content h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.reel-share-link-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.reel-share-url-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    color: #666;
    outline: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reel-share-copy-btn {
    background: #007bff;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.reel-share-copy-btn:hover {
    background: #0056b3;
}

.reel-share-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reel-share-copy-full-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.reel-share-copy-full-btn.btn-primary {
    background: #007bff;
    color: #fff;
}

.reel-share-copy-full-btn.btn-primary:hover {
    background: #0056b3;
}

.reel-share-copy-full-btn.copied {
    background: #28a745 !important;
}

.reel-share-popup .reel-share-close-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.reel-share-popup .reel-share-close-btn:hover {
    background: #f5f5f5;
}

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

/* Mobile adjustments for share popup */
@media (max-width: 480px) {
    .reel-share-popup-content {
        width: 95%;
        padding: 20px;
    }

    .reel-share-url-input {
        font-size: 12px;
    }
}

/* Login Modal */
.reel-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100002;
}

.reel-login-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 320px;
}

.reel-login-content > i {
    font-size: 48px;
    color: var(--reel-primary);
    margin-bottom: 15px;
    display: block;
}

.reel-login-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.reel-login-content p {
    margin: 0 0 20px 0;
    color: #666;
}

.reel-login-content .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

/* Product Modal */
.reel-product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100001;
}

.reel-product-content {
    background: white;
    width: 100%;
    max-width: 450px;
    max-height: 70vh;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reel-product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.reel-product-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.reel-product-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.reel-product-close:hover {
    color: #333;
}

/* Product Category Tabs */
.reel-product-categories {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
}

.reel-product-categories::-webkit-scrollbar {
    display: none;
}

.reel-product-category-tab {
    flex-shrink: 0;
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    height: 32px;
    box-sizing: border-box;
}

.reel-product-category-tab:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.reel-product-category-tab.active {
    background: var(--reel-primary, #E74339);
    border-color: var(--reel-primary, #E74339);
    color: #fff;
}

/* Product Loading */
.reel-product-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

.reel-product-loading i {
    margin-right: 8px;
}

/* Product Empty State */
.reel-product-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.reel-product-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.reel-product-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

.reel-product-item:last-child {
    border-bottom: none;
}

.reel-product-link {
    flex-shrink: 0;
}

.reel-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.reel-product-link:hover .reel-product-image {
    opacity: 0.8;
}

.reel-product-name-link {
    text-decoration: none;
    color: inherit;
}

.reel-product-name-link:hover .reel-product-name {
    color: #E74339;
}

.reel-product-info {
    flex: 1;
    min-width: 0;
}

.reel-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.reel-product-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.reel-product-sale-price {
    font-size: 15px;
    font-weight: 600;
    color: #E74339;
}

.reel-product-add-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.reel-product-add-btn:hover {
    background: #333;
    color: white;
    text-decoration: none;
}

/* Toast */
.reel-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 100003;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.reel-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .reel-player-modal {
        background: #000;
    }

    .reel-player-wrapper {
        padding: 0;
        height: 100%;
        width: 100%;
    }

    .reel-player-container {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        overflow: hidden;
    }

    .reel-player-video {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        object-fit: cover;
        border-radius: 0;
    }

    .reel-player-nav-vertical {
        display: none; /* Use swipe on mobile */
    }

    .reel-player-actions {
        position: fixed;
        right: 15px;
        bottom: 150px;
    }

    .reel-player-action .action-icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .reel-player-action .action-icon {
        width: 22px;
        height: 22px;
    }

    .reel-player-action i {
        font-size: 22px;
        width: 44px;
        height: 44px;
        line-height: 44px;
    }

    .reel-player-action span {
        font-size: 11px;
    }

    .reel-player-close {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 100001;
    }

    .reel-player-info {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 80px;
        padding: 60px 15px 20px;
        border-radius: 0;
    }

    .reel-player-product-btn {
        position: relative;
        padding-right: 12px;
        font-size: 13px;
        margin-bottom: 10px;
    }

    .reel-player-product-btn i {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-right: 8px;
    }

    .reel-page-title {
        font-size: 22px;
    }
}

/* Icon spin animation */
.icon-spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   Cart Popup Notification
   ============================================ */
.reel-cart-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100010;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 320px;
}

.reel-cart-popup--visible {
    transform: translateX(0);
}

.reel-cart-popup--success {
    border-left: 4px solid #22c55e;
}

.reel-cart-popup--success .reel-cart-popup__icon {
    color: #22c55e;
}

.reel-cart-popup--error {
    border-left: 4px solid #ef4444;
}

.reel-cart-popup--error .reel-cart-popup__icon {
    color: #ef4444;
}

.reel-cart-popup__icon {
    flex-shrink: 0;
}

.reel-cart-popup__message {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.reel-cart-popup__link {
    flex-shrink: 0;
    padding: 6px 12px;
    background: #3b82f6;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.reel-cart-popup__link:hover {
    background: #2563eb;
    color: #fff;
}

/* Button Loading Spinner */
.reel-cart-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

/* ============================================
   Product Discount & Price Display
   ============================================ */
.reel-product-image {
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1;
}

.reel-product-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-original {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 13px;
}

.price-sale {
    color: #ef4444;
    font-size: 15px;
    font-weight: 700;
}

.price-normal {
    color: red;
    font-size: 15px;
    font-weight: 700;
}

.price-save {
    display: block;
    color: #22c55e;
    font-size: 11px;
    width: 100%;
}

/* Point Display */
.reel-product-point {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #d97706;
    font-size: 12px;
    margin-top: 4px;
}

.reel-product-point svg {
    flex-shrink: 0;
}

/* Mobile Cart Popup */
@media (max-width: 640px) {
    .reel-cart-popup {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 20px;
        transform: translateY(120%);
        max-width: none;
    }

    .reel-cart-popup--visible {
        transform: translateY(0);
    }
}

/* ============================================
   TikTok-Style Video Slider
   ============================================ */

/* Video Slider Container */
.reel-video-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

/* Video Slides Wrapper */
.reel-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Video Slide */
.reel-video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

/* Disable transition during drag or instant swap */
.reel-video-slide.no-transition {
    transition: none !important;
}

/* Slide Positions */
.reel-video-slide[data-position="prev"] {
    transform: translateY(-100%);
}

.reel-video-slide[data-position="current"] {
    transform: translateY(0);
}

.reel-video-slide[data-position="next"] {
    transform: translateY(100%);
}

/* Video Element in Slide */
.reel-video-slide video {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    object-fit: cover;
    background: #000;
    border-radius: 8px;
}

/* Loading State for Slides */
.reel-video-slide .slide-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40px;
    z-index: 5;
}

/* Preload Indicator */
.reel-preload-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.reel-preload-indicator.visible {
    opacity: 1;
}

/* Swipe Hint Animation (first time) */
.reel-swipe-hint {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    opacity: 0;
    animation: swipeHint 3s ease-in-out forwards;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.reel-swipe-hint svg {
    animation: swipeArrow 1s ease-in-out infinite;
}

.reel-swipe-hint span {
    margin-top: 8px;
    font-size: 14px;
}

@keyframes swipeHint {
    0%, 100% { opacity: 0; }
    15%, 85% { opacity: 1; }
}

@keyframes swipeArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   Mobile Optimizations for Slider
   ============================================ */
@media (max-width: 767px) {
    .reel-video-slide video {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .reel-video-slider {
        touch-action: none; /* Full control over touch */
    }

    /* Larger touch targets */
    .reel-player-action .action-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .reel-swipe-hint {
        bottom: 160px;
    }
}

/* Safe area for iPhone notch */
@supports (padding-top: env(safe-area-inset-top)) {
    .reel-player-modal .reel-player-close {
        top: calc(15px + env(safe-area-inset-top));
    }

    .reel-player-modal .reel-player-info {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}
