/* Sharing Experiences - Instagram Reels Style */

.sharing-experiences-section {
    padding: 70px 0 60px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f8fafc 100%);
    overflow: hidden;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}

.sharing-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f3952;
    margin-bottom: 5px;
}

.sharing-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Carousel Wrapper with Arrows */
.sharing-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0f3952;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
    background: #0f3952;
    color: white;
    box-shadow: 0 6px 20px rgba(15, 57, 82, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.left {
    left: 5px;
}

.carousel-arrow.right {
    right: 5px;
}

/* Horizontal Carousel */
.sharing-carousel {
    overflow: hidden;
    padding: 50px 0;
    position: relative;
}

/* Track that slides */
.carousel-track {
    display: flex;
    gap: 20px;
    align-items: center;
    will-change: transform;
}

/* ===== Individual Card ===== */
.experience-card {
    flex: 0 0 auto;
    width: 160px;
    aspect-ratio: 9 / 15;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background-color: #111;
    opacity: 0.4;
    transform: scale(0.72);
    filter: blur(2px) brightness(0.7);
    transition: all 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== Center Card — HERO ===== */
.experience-card.center-card {
    width: 280px;
    transform: scale(1);
    opacity: 1;
    filter: blur(0) brightness(1);
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 
                0 0 0 3px rgba(15, 57, 82, 0.15);
    border-radius: 22px;
}

/* ===== Adjacent Cards ===== */
.experience-card.adjacent-card {
    opacity: 0.75;
    transform: scale(0.82);
    filter: blur(1.5px) brightness(0.8);
    z-index: 5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

/* ===== Far Cards ===== */
.experience-card.far-card {
    opacity: 0.35;
    transform: scale(0.68);
    filter: blur(3px) brightness(0.6);
    z-index: 1;
}

/* Center card glow effect */
.experience-card.center-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 57, 82, 0.2), rgba(26, 92, 133, 0.1), transparent);
    z-index: -1;
    pointer-events: none;
}

.experience-card:hover {
    opacity: 0.9;
    filter: blur(0.5px) brightness(0.9);
}

.experience-card.center-card:hover {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* ===== Tablet: clear size hierarchy ===== */
@media (max-width: 992px) {
    .sharing-carousel-wrapper {
        padding: 0 50px;
    }
    .sharing-carousel {
        padding: 40px 0;
    }
    .carousel-track {
        gap: 16px;
    }
    .experience-card {
        width: 120px;
    }
    .experience-card.center-card {
        width: 220px;
    }
    .carousel-arrow {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* ===== Mobile: 1 big center + 2 small blurred sides ===== */
@media (max-width: 576px) {
    .sharing-experiences-section {
        padding: 45px 0 40px;
    }
    .sharing-title {
        font-size: 1.6rem;
    }
    .sharing-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    .sharing-carousel-wrapper {
        padding: 0 35px;
    }
    .sharing-carousel {
        padding: 30px 0;
    }
    .carousel-track {
        gap: 10px;
    }
    .experience-card {
        width: 75px;
        border-radius: 14px;
        filter: blur(2.5px) brightness(0.6);
        opacity: 0.35;
        transform: scale(0.7);
    }
    .experience-card.center-card {
        width: 180px;
        border-radius: 18px;
        filter: blur(0) brightness(1);
        opacity: 1;
        transform: scale(1);
    }
    .experience-card.adjacent-card {
        width: 80px;
        opacity: 0.55;
        transform: scale(0.78);
        filter: blur(2px) brightness(0.7);
    }
    .experience-card.far-card {
        opacity: 0.25;
        transform: scale(0.6);
        filter: blur(3.5px) brightness(0.5);
    }
    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }
    .carousel-arrow.left {
        left: 2px;
    }
    .carousel-arrow.right {
        right: 2px;
    }
}

/* Media (Video/Image) - MUST cover full card */
.experience-card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

/* Lazy loading placeholder */
.experience-card-media.lazy-media {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    opacity: 0.7;
}

.experience-card-media.lazy-media:not([src]) {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.experience-card-media.loaded {
    opacity: 1;
}

/* Overlay Gradient */
.experience-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.45) 0%, 
        rgba(0,0,0,0) 30%, 
        rgba(0,0,0,0) 55%, 
        rgba(0,0,0,0.75) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 12px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Show overlay only on center card */
.experience-card.center-card .experience-card-overlay {
    opacity: 1;
}

/* Title at TOP */
.experience-card-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* Button Container at BOTTOM */
.experience-card-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Styled Buttons */
.sharing-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
    flex: 1;
    max-width: 160px;
    backdrop-filter: blur(4px);
    text-align: center;
    white-space: nowrap;
}

.sharing-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.btn-orange { background: linear-gradient(135deg, #f25e1d, #ff7a3d); }
.btn-green { background: linear-gradient(135deg, #1ea84a, #2ecc71); }
.btn-blue { background: linear-gradient(135deg, #084c9e, #1a6fce); }

/* Play Icon */
.experience-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    color: white;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
    transition: opacity 0.35s ease;
}

/* Show play icon only on center card */
.experience-card.center-card .experience-play-icon {
    opacity: 0.9;
}

.experience-card.center-card:hover .experience-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Tablet adjustments for card content */
@media (max-width: 992px) {
    .experience-card-overlay {
        padding: 12px 8px;
    }
    .experience-card-title {
        font-size: 0.85rem;
    }
    .sharing-btn {
        padding: 7px 12px;
        font-size: 0.75rem;
        max-width: 120px;
    }
    .experience-play-icon {
        font-size: 1.8rem;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .experience-card-overlay {
        padding: 10px 6px;
    }
    .experience-card-title {
        font-size: 0.7rem;
        line-height: 1.1;
    }
    .sharing-btn {
        padding: 5px 10px;
        font-size: 0.6rem;
        max-width: 100px;
        border-radius: 5px;
    }
    .experience-play-icon {
        font-size: 1.4rem;
    }
}


/* ========== REELS VIEWER (Full Screen) ========== */
.reels-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: none;
    flex-direction: column;
}

.reels-overlay.active {
    display: flex;
}

.reels-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

/* ========== Reels Search Bar (Glass Style) ========== */
.reels-search-wrapper {
    flex: 1;
    max-width: 260px;
    position: relative;
    display: flex;
    align-items: center;
}

.reels-search-input {
    width: 100%;
    padding: 8px 34px 8px 32px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    font-size: 0.82rem;
    outline: none;
    transition: all 0.3s ease;
}

.reels-search-input::placeholder {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
}

.reels-search-input:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 0 12px rgba(255,255,255,0.1);
}

.reels-search-icon {
    position: absolute;
    left: 11px;
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    pointer-events: none;
}

.reels-search-clear {
    position: absolute;
    right: 6px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.65rem;
    transition: background 0.2s;
}

.reels-search-clear:hover {
    background: rgba(255,255,255,0.35);
}

/* No Results State */
.reels-no-results {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .reels-search-wrapper {
        max-width: 180px;
    }
    .reels-search-input {
        font-size: 0.75rem;
        padding: 7px 30px 7px 28px;
    }
}

.reels-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.reels-container {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}
.reels-container::-webkit-scrollbar { display: none; }

.reel-item {
    width: 100%;
    height: 100%;
    position: relative;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 500px;
}

@media(max-width: 768px) {
    .reel-video {
        object-fit: cover;
        max-width: 100%;
    }
}

/* Reel Interface */
.reel-interface {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

/* Side Actions (Likes, Comments, Share) */
.reel-actions-side {
    position: absolute;
    right: 15px;
    bottom: 150px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: auto;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.action-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
    transition: transform 0.2s, color 0.2s;
}

.action-icon.liked {
    color: #ff3b5c;
    animation: heartBeat 0.4s;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Bottom Metadata */
.reel-metadata {
    padding: 20px;
    padding-bottom: 30px;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    pointer-events: auto;
    text-align: left;
    width: 100%;
}

.reel-user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.reel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.reel-description {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.4;
    max-width: 80%;
}

.reel-cta-button {
    width: 100%;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.reel-cta-button .sharing-btn {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    text-align: center;
}

/* ========== COMMENTS MODAL ========== */
.comments-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 60%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 100001;
    display: none;
    flex-direction: column;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
}

.comments-modal.active {
    display: flex;
}

.comments-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.comments-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-user {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.comment-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 3px;
}

.comments-input-area {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.comments-input-area input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
}

.comments-input-area input:focus {
    border-color: #0f3952;
}

.comments-input-area button {
    padding: 12px 20px;
    background: #0f3952;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
}

.no-comments {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

/* Shared CTA Buttons Section */
.sharing-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.sharing-cta {
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    border: 2px solid;
}

.sharing-cta-primary {
    background-color: #0f3952;
    color: white;
    border-color: #0f3952;
}

.sharing-cta-primary:hover {
    background-color: #1a5c85;
}

.sharing-cta-secondary {
    background-color: transparent;
    border-color: #0f3952;
    color: #0f3952;
}

.sharing-cta-secondary:hover {
    background-color: #0f3952;
    color: white;
}

/* Mobile CTA Buttons */
@media (max-width: 576px) {
    .sharing-cta-buttons {
        gap: 10px;
        margin-top: 15px;
    }
    .sharing-cta {
        padding: 10px 20px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
}

/* ========== SHARE MODAL ========== */
.share-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 100001;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-height: 80vh;
    overflow-y: auto;
}

.share-modal.active {
    transform: translateY(0);
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f3952;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.share-modal-body {
    padding: 25px 20px;
}

.share-platforms {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 70px;
}

.share-platform-btn:hover {
    transform: scale(1.1);
}

.share-platform-btn:active {
    transform: scale(0.95);
}

.share-platform-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.share-platform-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.share-platform-icon.tiktok {
    background: #000;
}

.share-platform-icon.facebook {
    background: #1877F2;
}

.share-platform-icon.twitter {
    background: #000;
}

.share-platform-icon.whatsapp {
    background: #25D366;
}

.share-platform-icon.copy {
    background: #6c757d;
}

.share-platform-name {
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
}

.share-divider {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin: 25px 0 20px;
    position: relative;
}

.share-divider::before,
.share-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #ddd;
}

.share-divider::before {
    left: 10%;
}

.share-divider::after {
    right: 10%;
}

.share-link-box {
    display: flex;
    gap: 10px;
    padding: 0 10px;
}

.share-link-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #333;
    background: #f5f5f5;
}

.share-copy-btn {
    padding: 12px 20px;
    background: #0f3952;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.share-copy-btn:hover {
    background: #1a5c85;
}

.share-copy-btn.copied {
    background: #26a655;
}

/* Mobile share modal */
@media (max-width: 576px) {
    .share-platform-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .share-platforms {
        gap: 15px;
    }
    .share-platform-name {
        font-size: 0.75rem;
    }
}

/* ====== Social Video Clean Fallback (no iframe embeds) ====== */
.social-video-clean {
    position: relative;
    overflow: hidden;
}

.social-video-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.social-watch-btn:hover {
    background: rgba(255,255,255,0.35) !important;
    border-color: rgba(255,255,255,0.7) !important;
    transform: scale(1.05);
}

.social-watch-btn:active {
    transform: scale(0.98);
}

/* Social thumbnail cards in carousel — clean gradient look */
.social-thumb-card {
    position: relative;
    overflow: hidden;
}

.social-thumb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

/* ====== Profile Link in Reels Viewer ====== */
.reel-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    pointer-events: auto;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background 0.25s ease;
    cursor: pointer;
}

.reel-user-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
}

.reel-user-link .reel-username {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.reel-user-link .reel-avatar {
    flex-shrink: 0;
}

/* YouTube clean embed — hide any residual branding */
.youtube-clean-embed {
    border: none !important;
    outline: none !important;
}

/* YouTube embed wrapper — contains iframe + unmute button */
.youtube-embed-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.youtube-embed-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* YouTube unmute button — floating on top of embed */
.yt-unmute-btn {
    position: absolute;
    bottom: 120px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.yt-unmute-btn:hover {
    background: rgba(0,0,0,0.8);
    border-color: #fff;
    transform: scale(1.1);
}

/* ============================================
   SEARCH RESULTS GRID — Flat professional panel
   ============================================ */
.reels-search-results {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f6fa;
    z-index: 50;
    overflow-y: auto;
    padding: 20px 16px 40px;
    animation: searchSlideIn 0.25s ease-out;
}
@keyframes searchSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Single results card */
.search-results-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 18px;
}

.search-results-header {
    margin-bottom: 16px;
}
.search-results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #555;
}
.search-results-count i {
    color: #e74c3c;
    font-size: 1rem;
}
.search-results-count strong {
    color: #222;
}

/* Thumbnail grid — 3 columns */
.search-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.search-thumb-item {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #e8e8f0;
    transition: transform 0.15s;
}
.search-thumb-item:hover {
    transform: scale(1.03);
}
.search-thumb-item:hover .search-thumb-play {
    opacity: 1;
}

.search-thumb-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s;
    color: #fff;
    font-size: 1.4rem;
    pointer-events: none;
}

/* City/location label on each thumbnail */
.search-thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 6px 6px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.3px;
    pointer-events: none;
}

/* Placeholder thumb when no image available */
.search-thumb-item.thumb-placeholder,
.search-thumb-item.thumb-error {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
}

/* "View All Videos" button */
.search-view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 0;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.search-view-all-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}
.search-view-all-btn i {
    font-size: 1.1rem;
}

/* "Back to Search" floating button — shown when viewing filtered reels */
.back-to-search-btn {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 28px;
    background: rgba(255,255,255,0.95);
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s;
}
.back-to-search-btn:hover {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    transform: translateX(-50%) translateY(-2px);
}
.back-to-search-btn i {
    font-size: 0.85rem;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .reels-search-results {
        padding: 14px 10px 30px;
    }
    .search-results-card {
        padding: 14px;
        border-radius: 12px;
    }
    .search-thumb-grid {
        gap: 4px;
    }
    .search-thumb-item {
        border-radius: 8px;
    }
    .back-to-search-btn {
        bottom: 20px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .reels-search-results {
        max-width: 520px;
        margin: 0 auto;
        padding: 24px 20px 40px;
    }
}
