

/* Main Container */
.carousel-container {
width: 476px;
max-width: 100%;
padding: 20px 5px;
background:#212121;
}

/* Header */
.carousel-header {
padding: 0 20px 15px 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
margin-bottom: 15px;
}

.carousel-header h2 {
color: #000;
font-size: 20px;
font-weight: 700;
display: flex;
align-items: center;
gap: 8px;
}

.carousel-header h2 span {
background: #00bf63;
padding: 4px 10px;
border-radius: 20px;
font-size: 12px;
}

/* Horizontal Scroll Container */
.reels-scroll {
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
padding: 0 20px;
gap: 15px;
display: flex;
-ms-overflow-style: none;
scrollbar-width: none;
padding:5px;
}

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

/* Individual Reel Card */
.reel-card {
flex: 0 0 auto;
width: 180px;
scroll-snap-align: start;
border-radius: 16px;
overflow: hidden;
background: #212121;
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
position: relative;
}

.reel-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* Thumbnail Container */
.reel-thumbnail {
position: relative;
width: 100%;
height: 280px;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
overflow: hidden;
display: flex;
object-fit: cover;
align-items: center;
justify-content: center;
}

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

.video-preview {
width: 100%;
height: 100%;
object-fit: cover;
transition: opacity 0.3s ease;
}

.fallback-icon {
width: 60px;
height: 60px;
background: #00bf63;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.fallback-icon svg {
width: 30px;
height: 30px;
fill: white;
margin-left: 3px;
}

.play-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 2;
}

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

.play-btn {
width: 50px;
height: 50px;
background: #00bf63;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: transform 0.2s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
transform: scale(1.1);
}

.play-btn svg {
width: 24px;
height: 24px;
fill: white;
margin-left: 3px;
}

.duration-badge {
position: absolute;
bottom: 8px;
right: 8px;
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 3px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
backdrop-filter: blur(4px);
z-index: 2;
}

.reel-info {
padding: 12px;
background: #1a1a2e;
}

.reel-title {
color: white;
font-size: 14px;
font-weight: 600;
margin-bottom: 6px;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.watch-link {
display: inline-block;
width: 100%;
margin-top: 10px;
padding: 8px;
background: #00bf63;
color: #000;
text-decoration: none;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s ease;
text-align: center;
}

.watch-link:hover {
background: #AFFDD7;
}

.loading {
text-align: center;
padding: 40px;
color: white;
}

@media (max-width: 540px) {
.carousel-container {
width: 100%;
}

.reel-card {
width: 160px;
}

.reel-thumbnail {
height: 250px;
}
}