* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: "Inter"; */
    font-family: "Plus Jakarta Sans", sans-serif;
    background: linear-gradient(135deg, #f5f0ff 0%, #e8e3f5 100%);
    /* min-height: 100vh; */
}

a {
    text-decoration: none;
    color: var(--body-text);
}

a:hover {
    text-decoration: none;
    color: #7E3FFF;
}

/* Categories */

.hosts-wrapper {
    position: relative;
}

.hosts-scroll-container {
  max-width: 1400px;
  margin: 0 auto;
  height: calc(100vh - 300px); /* adjust height so header + categories stay visible */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 12px 40px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;    
}

/* Custom scrollbar for webkit */
.hosts-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Responsive: shorter height for small screens */
@media (max-width: 768px) {
  .hosts-scroll-container {
    height: calc(100vh - 200px);
    padding-bottom: 80px;
  }
}

.categories-container {
    max-width: 1400px;
    margin: 100px auto 0;
    position: relative;
    padding: 0;
    /* margin: 150px auto 0; */
}

.categories {
    margin: 140px auto 0;
    display: flex;
    gap: 12px;
    padding: 0.5rem 0.5rem 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.categories::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.category-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 24px;
    border: 1px solid #E9D4FF80;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    color: #7E3FFF;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.15);
}

.category-btn.active {
    color: white;
    background: linear-gradient(180deg, #7E3FFF 0%, #A56CFF 100%);
box-shadow: 0px 8px 10px -6px #AD46FF4D;

box-shadow: 0px 10px 25px -5px #AD46FF4D;


}

/* Mobile tweaks (keep your existing ones + this small adjust) */
@media (max-width: 768px) {

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }

    .categories-container {
        padding: 0px;
        margin: 95px auto 0;
    }

    .main-content {
        padding: 15px !important;
    }
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 0;
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3.5rem 1rem;
    margin-bottom: 3rem;
}


/* Host Card */
.host-card {
    position: relative;
    border-radius: 28px;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.host-card:hover {
    box-shadow: 0 12px 32px rgba(107, 70, 193, 0.3);
}

.host-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 1.5rem;
    color: white;
}

.host-card-info {
    margin-bottom: 1rem;
}

.host-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.host-status.live {
    background: #ef4444;
    /* red */
}


.host-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.host-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #10b981;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.host-country {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.host-actions {
    display: flex;
    justify-content: center;
}

.video-call-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6b46c1 100%);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    color: white;
    font-size: 1.2rem;
}

.video-call-btn:hover {
    transform: scale(1.1);
}

/* Loading & Error */
.loading,
.error {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(107, 70, 193, 0.1);
    border-top-color: #6b46c1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error p {
    color: #dc2626;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hosts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .host-card {
        /* height: 320px; */
        margin-bottom: 2rem;
    }

    .categories {
        margin: 15px 0px 20px 15px;
        justify-content: start;
    }

    .category-btn {

        padding: 10px 15px;

        font-size: 14px;

    }
}


/* ===============================
   LIVU STYLE SKELETON LOADER
   =============================== */

.hosts-skeleton {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    max-height: 300px;
    gap: 1rem;
    margin-top: 2rem;
}

.skeleton-card {
    width: 100%;
    height: 300px;
    background: #f1f1f5;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

/* LIVU LOGO Placeholder */
.skeleton-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.12;
    font-size: 22px;
    font-weight: 700;
    color: #b0b0b0;
    letter-spacing: 2px;
}

.skeleton-logo img {
    opacity: 25%;
}

/* Shimmer Effect */
.skeleton-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.55),
            transparent);
    transform: translateX(-100%);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* // Placeholder  */
/* === GLOBAL PLACEHOLDER (shared) === */
.media-skeleton,
.logo-skeleton {
  position: relative;
  background: #f3e8ff;
  border-radius: 20px;
  overflow: hidden;
}

/* subtle brand logo in center */
.media-skeleton::before,
.logo-skeleton::before {
  content: "";
  position: absolute;
  inset: 20px;
  background: url("../images/favicon.png") center/50% no-repeat;
  opacity: 0.10;             /* ⬅️ lowered for softer look */
  filter: grayscale(100%);
}

/* shimmer animation */
.media-skeleton::after,
.logo-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

/* fade-in for actual media */
.media-img,
.media-video,
.reel-img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}


/* Mobile responsive */
@media (max-width: 768px) {
    .hosts-skeleton {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .reel-card{
        height: 250px !important;
    }
}

/* ---- REEL CARD BASE ---- */
.reel-card {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ---- IMAGE ---- */
.reel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;  
}

/* On hover: only image scales, card stays fixed */
.reel-card:hover .reel-img {
    transform: scale(1.07);
}


/* ---- TOP LEFT FLAG ---- */
/* .reel-flag-wrapper {
    position: absolute;
    top: 5px;
    left: 10px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: capitalize;
    font-size: 12px;
    font-weight: 600;
    color: #333;
} */

.reel-flag-text {
    padding-top: 2.5px;
}

.reel-flag-img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

/* LIVE badge */
.reel-live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 999;
    border: 1px solid #00EC0496;
    padding: 4px 10px;
    border-radius: 20px;
    background-color: #ffffff3d;
    color: #00d492;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0px 4px 6px -4px #00BC7D4D;

    box-shadow: 0px 10px 15px -3px #00BC7D4D;
}

.reel-live-badge .dot {
    width: 10px;
    height: 10px;
    background: #00D492;
    border-radius: 50%;
}

.reel-card-bottom {
    position: absolute;
    width: 100%;
    height: 100px;
    left: 0;
    right: 0;
    bottom: 0px;

    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* glassmorphism */
    background: #0f123054;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(3px);
    border-top: 1px solid #ffffff21;

}

.reel-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    /* center under name */
    gap: 6px;
    font-size: 12px;
    color: #ffffff;
    text-transform: capitalize;
    padding-top: 4px;
}

.reel-meta-flag {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}



/* Name bottom */
.reel-bottom-name {
    position: absolute;
    bottom: 32px;
    width: 100%;
    text-align: center;
}

.reel-bottom-name span {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Purple Floating Call Button */
.reel-call-btn {
    position: absolute;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 10px 20px rgba(127, 50, 255, 0.4);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s ease;
}

.reel-call-btn:hover {
    transform: translateX(-50%) scale(1.08);
}

#initialSkeleton {
    display: none;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.next-loading {
    text-align: center;
    color: #666;
    padding: 20px;
    display: none;
    font-size: 14px;
}

.no-data-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 4rem 0;

    /* VERY IMPORTANT so it centers on screen */
    min-height: 50vh;
}

.no-data-img {
    width: 200px;
    /* adjust as needed */
    height: auto;
    opacity: 0.85;
}

#hostsGrid,
#hostsSkeleton,
#initialSkeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}


/* new header  */
.discover-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    backdrop-filter: blur(16px);
    box-shadow: 0px 4px 6px -4px #AD46FF0D;

    box-shadow: 0px 10px 15px -3px #AD46FF0D;



}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-inner .logo img {
    width: 172px;
    height: 56px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    letter-spacing: 0.5px;
    font-weight: 400;
    transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.pill-outline {
    background: #ffffff;
    color: #7E3FFF;
    border: 1px solid #7E3FFF33;
}

.pill-outline:hover {
    /* color: #7E3FFF; */
    background: #ffffff;
    color: #7E3FFF;
    box-shadow: 0 10px 20px rgba(166, 56, 230, 0.274);
    /* soft purple glow */
    /* transform: translateY(-1px);  */
}

.pill-solid {
    background: linear-gradient(180deg, #7E3FFF 0%, #A56CFF 100%);
    color: #ffffff;
}

.pill-solid:hover {
    /* color:white; */
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(127, 67, 255, 0.336);
    /* stronger glow */
    transform: scale(1.04);
}


.pill img {
    width: 20px;
    height: 20px;
}


@media (max-width: 768px) {
    .header-inner {
        padding: 16px;
    }

    .pill {
        padding: 11px 17px;
        font-size: 13px;
    }

    .header-actions .pill span {
        display: none;
    }
}


/* New reel card  */
/* Dedicated wrapper for reel cards so it doesn't mix with .host-card */
.reel-card-wrapper {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reel-card-wrapper:hover {
    transform: translateY(-6px);
}

.reel-card-new {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(127, 50, 255, 0.15);
}

.reel-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* TOP BADGE */
.reel-card-top {
    position: absolute;
    top: 12px;
    right: 12px;
}

.reel-card-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    letter-spacing: 0.3px;
}

.reel-card-badge.live {
    background: #e53935;
}

.reel-card-badge.online {
    background: #22c55e;
}

.reel-card-badge .dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

/* BOTTOM OVERLAY */
/* .reel-card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 90%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid #FFFFFF33;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
} */

.reel-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.reel-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.reel-country {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #fff;
    opacity: 0.9;
}

.reel-country img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

/* CALL BUTTON */
.reel-call-btn-new {
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(180deg, #7E3FFF 0%, #A56CFF 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 24px rgba(127, 50, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.reel-call-btn-new:hover {
    transform: translateX(-50%) scale(1.08);
}

.reel-call-btn-new img {
    width: 22px;
    height: 22px;
    filter: brightness(100);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .reel-card-new {
        border-radius: 18px;
    }

    .reel-card-bottom {
        padding: 16px;
    }

    .reel-name {
        font-size: 14px;
    }

    .reel-country {
        font-size: 12px;
    }

    .reel-call-btn-new {
        width: 46px;
        height: 46px;
        bottom: -20px;
    }
     .no-data-wrapper {
    padding: 2rem 1rem;
    min-height: calc(100vh - 220px); /* adjust for header + category pills */
    justify-content: center;
  }

  .no-data-img {
    width: 60%;
    max-width: 220px;
    height: auto;
  }
}
