/* General Styles */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 120px;
    flex-shrink: 0;
}
.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.popular-scroll::-webkit-scrollbar {
    display: none;
}
.search-input {
    transition: all 0.3s ease;
    height: 40px;
}
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.search-button {
    height: 50px;
    width: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-form {
    border-radius: 9999px;
    overflow: hidden;
}
.search-form input,
.search-form button {
    border: none;
}
.search-form input:focus + button {
    outline: none;
}
.video-thumbnail {
    aspect-ratio: 16/9;
}
.play-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.video-card:hover .play-icon {
    opacity: 1;
}
.sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.sidebar.open {
    transform: translateX(0);
}
.overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Video Player Styling */
.video-container {
    aspect-ratio: 16/9;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.video-wrapper {
    position: relative;
}
.video-wrapper:hover .controls {
    opacity: 1;
}
.video-blur {
    filter: blur(10px);
    transition: filter 0.3s ease;
}
.video-blur.playing {
    filter: none;
}
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.video-wrapper.playing .play-icon-overlay {
    opacity: 0;
}
.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}
.controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}
.controls button:hover {
    color: #10B981;
}
.progress-container {
    flex-grow: 1;
    margin: 0 10px;
    position: relative;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
}
.progress-bar {
    height: 100%;
    background: #10B981;
    border-radius: 5px;
    width: 0;
}
.volume-container {
    position: relative;
    width: 30px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin-left: 10px;
    margin-right: 10px;
}
.volume-bar {
    height: 100%;
    background: #10B981;
    border-radius: 5px;
    width: 50%;
}
.time-display {
    font-size: 0.9rem;
    margin: 0 10px;
}