/* chronoVidComponent.css */

/* --- Base Card Structure --- */
.chronoVid-card-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px; /* Adjust padding around the card */
    font-family: 'Segoe UI', Arial, sans-serif; /* Modern font */
    color: #E0E0E0; /* Light text for dark background */
}

.chronoVid-card {
    background: #1A1A1A; /* Dark charcoal */
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.2), 0 0 15px rgba(0, 255, 255, 0.1); /* Cyan glow shadow */
    width: 100%;
    max-width: 600px; /* Max width for the entire card */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 255, 255, 0.3); /* Subtle cyan border */
}

/* --- Header & Title --- */
.chronoVid-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(30, 30, 30, 0.7); /* Slightly lighter header background */
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.chronoVid-main-title {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #00FFFF; /* Bright cyan */
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.7);
}

/* --- Stream Selection Module (Category Dropdown) --- */
.chronoVid-stream-selector {
    position: relative;
    cursor: pointer;
    user-select: none;
    font-size: 0.9em;
}

.chronoVid-selector-label {
    display: block;
    color: #888;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chronoVid-current-category-display {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    color: #E0E0E0;
    font-weight: 500;
}

.chronoVid-category-name {
    color: #00FFFF; /* Highlight active category name */
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.chronoVid-dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #E0E0E0;
    transition: transform 0.3s ease;
}

.chronoVid-stream-selector.chronoVid-active .chronoVid-dropdown-arrow {
    transform: rotate(180deg);
}

.chronoVid-category-dropdown {
    position: absolute;
    top: 100%; /* Position below the current category display */
    right: 0;
    background: #2A2A2A; /* Slightly lighter background for dropdown */
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
    min-width: 150px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.chronoVid-stream-selector.chronoVid-active .chronoVid-category-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chronoVid-dropdown-item {
    display: block;
    padding: 8px 15px;
    color: #E0E0E0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.chronoVid-dropdown-item:hover {
    background-color: rgba(0, 255, 255, 0.2);
    color: #00FFFF;
}
.chronoVid-dropdown-item.chronoVid-active-item {
    background-color: rgba(0, 255, 255, 0.3);
    color: #00FFFF;
    font-weight: bold;
}


/* --- Card Body --- */
.chronoVid-card-body {
    padding: 20px 25px;
}

/* --- Main Video Player --- */
.chronoVid-main-video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); /* Stronger glow for the main video */
}

.chronoVid-main-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Video Information --- */
.chronoVid-video-info {
    margin-top: 10px;
    padding: 15px 20px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.15);
    text-align: center;
}

.chronoVid-video-info .chronoVid-title {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #00FFFF;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

.chronoVid-video-info .chronoVid-channel {
    margin: 0;
    font-size: 0.7em;
    color: #E0E0E0;
}

/* --- Content Stream Carousel --- */
.chronoVid-content-stream-carousel {
    margin-top: 10px;
    position: relative;
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on touch devices */
    padding-bottom: 10px; /* Space for scrollbar */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #00FFFF #333; /* Firefox */
}
/* Webkit scrollbar styles */
.chronoVid-content-stream-carousel::-webkit-scrollbar {
    height: 8px;
}
.chronoVid-content-stream-carousel::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}
.chronoVid-content-stream-carousel::-webkit-scrollbar-thumb {
    background-color: #00FFFF;
    border-radius: 10px;
    border: 2px solid #333;
}


.chronoVid-carousel-inner {
    display: flex;
    gap: 15px; /* Space between thumbnails */
    padding: 10px 0;
    white-space: nowrap; /* Prevent wrapping */
    align-items: center; /* Vertically align items */
}

.chronoVid-thumbnail-item {
    flex-shrink: 0; /* Prevent items from shrinking */
    width: 160px; /* Default size for inactive */
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(0, 255, 255, 0.1); /* Subtle inactive border */
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.05);
    transition: all 0.3s ease-in-out;
    transform: scale(0.9); /* Slightly smaller by default */
    opacity: 0.7;
}

.chronoVid-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7) grayscale(0.2); /* Slightly muted for inactive */
    transition: filter 0.3s ease;
}

.chronoVid-thumbnail-item:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    transform: scale(0.95);
    opacity: 0.9;
    filter: brightness(0.9) grayscale(0.1);
}

.chronoVid-thumbnail-item.chronoVid-active {
    border-color: #00FFFF; /* Bright active border */
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 10px rgba(0, 255, 255, 0.5) inset;
    transform: scale(1.1); /* Larger for active */
    width: 200px; /* Active size */
    height: 112.5px; /* Maintain aspect ratio */
    opacity: 1;
    z-index: 5; /* Ensure active is on top */
}

.chronoVid-thumbnail-item.chronoVid-active img {
    filter: brightness(1) grayscale(0); /* Full brightness/color for active */
}

.chronoVid-no-videos {
    color: #888;
    text-align: center;
    width: 100%;
    padding: 20px;
}