img {
    max-width: 100%;
    height: auto;
    display: block;
}

.carousel-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.carousel-wrapper:first-of-type {
    margin-bottom: 0;
}


/* Load More Button */
.load-more-container {
    text-align: center;
    /* margin-top: 40px; */
    padding: 20px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--accent), #ff9f3a);
    color: #000;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 180, 84, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 180, 84, 0.5);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn.hidden {
    display: none;
}

.tc-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    position: relative;
    align-items: center;
}

.tc-track::-webkit-scrollbar {
    height: 6px;
}

.tc-track::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.tc-card {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
    background: linear-gradient(180deg, #0f172a, #0b0f1a);
    border-radius: 14px;
    border: 1px solid #273047;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    padding: 8px;
    transition: transform 0.2s ease;
}

.tc-card:hover {
    transform: translateY(-4px);
}

.tc-shot {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #273047;
    aspect-ratio: 9/19.5;
}

.tc-shot img {
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
}

/* Video Container */
.tc-video-container {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.video-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    z-index: 10;
    border-radius: 10px 10px 0 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tc-video-container.playing .video-header {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

video::-webkit-media-controls {
    display: none !important;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 5;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.tc-video-container.playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Custom Video Controls */
.custom-video-controls {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px 12px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 0 0 6px 6px;
}

.tc-video-container.playing:hover .custom-video-controls,
.tc-video-container.playing .custom-video-controls.visible {
    opacity: 1;
}

.custom-play-pause {
    width: 32px;
    height: 32px;
    background: rgba(255, 180, 84, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.custom-play-pause:hover {
    transform: scale(1.1);
}

.custom-play-pause svg {
    width: 14px;
    height: 14px;
}

.custom-progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.custom-progress-bar {
    height: 100%;
    background: #ffb454;
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s ease;
}

/* 9:16 Video Cards */
.tc-video-card[data-aspect-ratio="9:16"] {
    width: 200px;
}

.tc-video-card[data-aspect-ratio="9:16"] .tc-shot {
    aspect-ratio: 9/19.5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.tc-video-card[data-aspect-ratio="9:16"] video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 16:9 Video Cards */
.tc-video-card[data-aspect-ratio="16:9"] {
    width: auto;
    flex-shrink: 0;
    align-self: center;
}

.tc-video-card[data-aspect-ratio="16:9"] .tc-shot {
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.tc-video-card[data-aspect-ratio="16:9"] video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .tc-video-card[data-aspect-ratio="16:9"] {
        width: calc(100vw - 36px);
    }

    .tc-video-card[data-aspect-ratio="16:9"] .tc-shot {
        width: calc(100vw - 36px);
        height: auto;
    }
}

@media (min-width: 769px) {
    .tc-video-card[data-aspect-ratio="16:9"] {
        width: 480px;
    }

    .tc-video-card[data-aspect-ratio="16:9"] .tc-shot {
        width: 480px;
        height: 270px;
    }

    .tc-video-card[data-aspect-ratio="16:9"] .video-play-btn svg {
        width: 80px;
        height: 80px;
    }
}

/* Navigation Buttons - positioned relative to .carousel-wrapper */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(235 163 30 / 91%);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.carousel-nav-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.left {
    left: -100px;
    /* Position outside the container */
}

.carousel-nav-btn.right {
    right: -100px;
    /* Position outside the container */
}

@media (max-width: 768px) {
    .carousel-nav-btn.right {
        right: -10px;
    }

    .carousel-nav-btn.left {
        left: -10px;
        /* Position outside the container */
    }
}

.carousel-nav-btn svg {
    width: 20px;
    height: 20px;
    fill: #000;
}

@media (max-width: 768px) {
    .carousel-nav-btn {
        display: none;
    }
}

/* YouTube iframe styling */
.tc-youtube-card .tc-shot {
    position: relative;
}

.tc-youtube-card iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

/* Custom overlay for YouTube videos */
.tc-youtube-card .youtube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.tc-youtube-card .youtube-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.tc-youtube-card .youtube-play-btn {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tc-youtube-card .youtube-play-btn:hover {
    transform: scale(1.1);
}

.tc-youtube-card .youtube-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    z-index: 3;
    border-radius: 10px 10px 0 0;
}

/* 16:9 YouTube videos */
.tc-youtube-card[data-aspect-ratio="16:9"] {
    width: auto;
    flex-shrink: 0;
    align-self: center;
}

.tc-youtube-card[data-aspect-ratio="16:9"] .tc-shot {
    aspect-ratio: 16/9;
    width: 480px;
    height: 270px;
}

/* 9:16 YouTube videos (vertical) */
.tc-youtube-card[data-aspect-ratio="9:16"] {
    width: 200px;
}

.tc-youtube-card[data-aspect-ratio="9:16"] .tc-shot {
    aspect-ratio: 9/19.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .tc-youtube-card[data-aspect-ratio="16:9"] .tc-shot {
        width: calc(100vw - 36px);
        height: auto;
    }
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-fullscreen-button,
video::-webkit-media-controls-overflow-button {
    display: none !important;
}