/* --- 1. CORE VARIABLES --- */
:root {
	--primary: #2c3e50;
	--accent: #e67e22;
	--accent-hover: #d35400;
	--bg-body: #f8fbfb;
	--white: #ffffff;
	--text-main: #2d3436;
	--text-muted: #636e72;
	--yt-red: #ff0000;

	/* Glassmorphism & Effects */
	--glass-bg: rgba(255, 255, 255, 0.05);
	--glass-border: rgba(255, 255, 255, 0.1);
	--shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
	--shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 2. GLOBAL RESET & LAYOUT --- */
body {
	font-family: 'Inter', -apple-system, sans-serif;
	background-color: var(--bg-body);
	color: var(--text-main);
	line-height: 1.7;
	margin: 0;
}

.container {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
}

footer {
	text-align: center;
	padding: 60px 0;
	color: var(--text-muted);
	border-top: 1px solid #eee;
}

/* --- 3. NAVIGATION --- */
.header-bar {
	background: #1a1a1a;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-brand {
	color: var(--accent);
	font-weight: bold;
	text-decoration: none;
	font-size: 1.4rem;
}

.nav-links a {
	color: #ccc;
	text-decoration: none;
	margin-left: 20px;
	font-weight: 500;
}

.nav-links a.active {
	color: white;
	border-bottom: 2px solid var(--accent);
}

/* --- 4. HERO & HOME PAGE --- */
.hero {
	padding: 100px 20px;
	background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
	color: white;
	text-align: center;
	clip-path: ellipse(150% 100% at 50% 0%);
}

.hero h1 {
	font-size: clamp(2.5rem, 6vw, 4rem);
	letter-spacing: -1px;
	margin-bottom: 1.5rem;
	background: linear-gradient(to right, #fff, #bdc3c7);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.features-box {
	background: rgba(255, 255, 255, 0.08);
	/* Slightly more visible */
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	/* Safari support */
	border: 1px solid var(--glass-border);
	border-radius: 20px;
	padding: 40px;
}

.tagline {
	text-align: center;
	color: var(--text-muted);
	font-style: italic;
	margin: 40px 0;
	font-size: 1.1rem;
}

/* --- 5. SEARCH UI & HEADERS --- */
.page-header {
	background: linear-gradient(180deg, #1a1a1a 0%, #2c3e50 100%);
	padding: 40px 20px 60px;
	/* Reduced from 80px/100px */
	text-align: center;
	color: white;
}

/* Slightly smaller title to match the compact height */
.page-header h1 {
	font-size: 2rem;
	/* Reduced from 2.5rem */
	margin: 0;
}

.subtext {
	color: #bdc3c7;
	font-style: italic;
	margin-top: 10px;
}

.glass-panel {
	background: var(--white);
	border-radius: 20px;
	padding: 30px;
	display: flex;
	justify-content: space-around;
	margin-top: -60px;
	box-shadow: var(--shadow-hover);
	position: relative;
	z-index: 10;
}

.filter-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	background: rgba(255, 255, 255, 0.98);
	padding: 30px;
	border-radius: 20px;
	box-shadow: var(--shadow-soft);
	margin-bottom: 30px;
	position: sticky;
	top: 20px;
	z-index: 100;
	backdrop-filter: blur(8px);
}


.sort-controls {
	margin-bottom: 25px;
	text-align: center;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.btn-clear {
	/* Remove the absolute positioning that causes the drift */
	position: relative;
	right: auto;
	top: auto;
	transform: none;

	/* Alignment */
	display: inline-flex;
	align-items: center;
	justify-content: center;

	/* Styling */
	text-decoration: none;
	color: var(--text-muted);
	font-size: 1.5rem;
	/* Slightly larger for easier clicking */
	padding: 0 10px;
	cursor: pointer;
	transition: var(--transition);
}

.btn-clear:hover {
	color: var(--yt-red);
}

.active-sort {
	font-weight: bold;
	color: var(--primary) !important;
}

/* --- 6. VIDEO GRID & CARDS --- */
.grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
}

.grid-item {
	background: var(--white);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.grid-item:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-hover);
}


.video-content {
	padding: 15px 15px 5px 15px;
	flex-grow: 1;
}

.video-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--primary);
	margin-bottom: 8px;
	line-height: 1.4;
	height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}

.video-meta {
	font-size: 0.8rem;
	color: var(--text-muted);
	display: flex;
	gap: 5px;
	align-items: center;
}

.grid-item:hover .video-title {
	color: var(--accent);
	/* Title turns orange when the card is hovered */
}

/* --- 7. BUTTONS & LINKS --- */
.btn-main,
.btn-primary {
	background: var(--accent);
	color: white;
	padding: 12px 28px;
	border-radius: 50px;
	border: none;
	text-decoration: none;
	font-weight: bold;
	cursor: pointer;
	transition: var(--transition);
}

.btn-main:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
}

.btn-outline {
	border: 2px solid rgba(255, 255, 255, 0.4);
	color: #ffffff !important;
	padding: 12px 30px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	transition: var(--transition);
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #ffffff;
}

.btn-outline-dark {
	border: 2px solid var(--primary);
	color: var(--primary);
	padding: 8px 20px;
	border-radius: 50px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	transition: 0.3s;
}

.btn-outline-dark:hover {
	background: var(--primary);
	color: white;
}

.watch-link {
	display: block;
	margin: 10px 15px 15px;
	padding: 10px;
	text-align: center;
	text-decoration: none;
	font-weight: bold;
	color: var(--yt-red);
	border: 2px solid var(--yt-red);
	border-radius: 8px;
	transition: var(--transition);
}

.watch-link:hover {
	background: var(--yt-red);
	color: white;
}

/* --- 8. UPDATES PAGE & PAGINATION --- */
.updates-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

.update-card {
	background: white;
	border-left: 5px solid var(--accent);
	border-radius: 0 12px 12px 0;
	padding: 25px;
	box-shadow: var(--shadow-soft);
}

.update-tag {
	background: rgba(230, 126, 34, 0.1);
	color: var(--accent);
	font-weight: 800;
	font-size: 0.7rem;
	padding: 4px 12px;
	border-radius: 4px;
	text-transform: uppercase;
}

.pagination-nav {
	margin: 50px 0;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	font-weight: 600;
}

.pagination-nav a {
	color: var(--accent);
	text-decoration: none;
	padding: 8px 20px;
	border: 2px solid var(--accent);
	border-radius: 50px;
	transition: var(--transition);
}

.pagination-nav a:hover {
	background: var(--accent);
	color: white;
}

/* --- Polished Sort Controls --- */
.sort-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin: 20px 0 30px;
	font-size: 0.9rem;
}

.sort-label {
	color: var(--text-muted);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.75rem;
}

.sort-pills {
	display: flex;
	background: #eee;
	padding: 4px;
	border-radius: 50px;
	gap: 5px;
}

.sort-pill {
	text-decoration: none;
	color: var(--text-main);
	padding: 6px 18px;
	border-radius: 50px;
	transition: var(--transition);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 5px;
}

.sort-pill:hover {
	background: rgba(0, 0, 0, 0.05);
}

.sort-pill.active {
	background: var(--white);
	color: var(--primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sort-icon {
	font-size: 1rem;
	color: var(--accent);
}





/* Container to keep them perfectly aligned */
.button-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}



/* Special Hero Outline (White border for dark backgrounds) */
.btn-outline-white {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.4);
	color: white !important;
}

.btn-outline-white:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: white;
}



/* --- Multi-Select Channel Selector --- */
.channel-selector {
	display: flex;
	background: #eee;
	padding: 4px;
	border-radius: 50px;
	gap: 5px;
}

/* Hide the actual checkbox square */
.channel-option input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.channel-label {
	display: inline-flex;
	align-items: center;
	padding: 8px 18px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-muted);
	cursor: pointer;
	border-radius: 50px;
	transition: var(--transition);
	gap: 6px;
}

/* Style when checked */
.channel-option input[type="checkbox"]:checked+.channel-label {
	background: var(--primary);
	color: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Optional: Add a little checkmark icon via CSS when selected */
.channel-option input[type="checkbox"]:checked+.channel-label::before {
	content: '✓';
	font-size: 0.8rem;
}



.channel-selector {
	display: flex;
	justify-content: center;
	gap: 10px;
	background: #f1f3f4;
	/* Slightly darker than white for contrast */
	padding: 6px;
	border-radius: 50px;
}



/* Polish the meta text */
.video-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-top: 8px;
}

.video-meta strong {
	color: var(--text-main);
}

.close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 20;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}


@keyframes pulse {
	0% {
		opacity: 0.5;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0.5;
	}
}

.loading-text {
	animation: pulse 1.5s infinite;
	color: var(--accent);
	text-align: center;
	padding: 20px;
}





/* --- Dynamic Stats Table --- */
.stats-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 15px;
	border: 1px solid #eee;
	border-radius: 12px;
	overflow: hidden;
	/* Clips corners of rows to match border-radius */
}

.stats-table tr {
	transition: background-color 0.2s ease;
}

/* Zebra Striping */
.stats-table tr:nth-child(even) {
	background-color: #fcfcfc;
}

.stats-table tr:hover {
	background-color: rgba(230, 126, 34, 0.05);
	/* Very light accent tint */
}

.stats-table td {
	padding: 14px 20px;
	font-size: 0.95rem;
	border-bottom: 1px solid #eee;
}

.stats-table tr:last-child td {
	border-bottom: none;
}

.stats-table td:first-child {
	color: var(--text-muted);
	font-weight: 500;
}

.stats-value {
	text-align: right;
	font-weight: 700;
	color: var(--accent);
	/* Changed from primary to accent for visibility */
	font-family: 'Monaco', 'Consolas', monospace;
	/* Monospace for numbers */
}

.stats-value {
	text-align: right;
	font-weight: 700;
	color: var(--primary);
	/* Keeps numbers aligned if they vary in length */
	font-variant-numeric: tabular-nums;
}

/* --- 10. ADMIN DASHBOARD SPECIFIC --- */
.admin-card {
	background: var(--white);
	border-radius: 20px;
	padding: 40px;
	box-shadow: var(--shadow-hover);
	max-width: 900px;
	margin: 40px auto;
}

.stats-wrapper {
	margin-bottom: 30px;
}

/* Specific styling for the Reimport button to make it stand out */
#reimportBtn {
	margin-top: 20px;
	width: auto;
	/* Overriding mobile full-width if desired */
	background-color: #27ae60;
	/* Success green */
	color: white !important;
	border: none;
}



/* Specific styling for the section spacing */
.admin-section {
	margin: 30px 0;
}

.button-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	/* Wraps buttons on mobile devices */
}

#reimportBtn:hover {
	background-color: #219150;
	transform: translateY(-2px);
}

/* The Spinning Animation you used in the JS */
@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.spinning {
	animation: spin 1s linear infinite;
	display: inline-block;
}

.quick-actions {
	display: flex;
	gap: 15px;
	margin-top: 10px;
	justify-content: center;
	align-items: center;
	/* This keeps all three buttons level with each other */
}


#playAllLink:hover {
	background-color: var(--yt-red) !important;
	color: white !important;
	transform: translateY(-2px);
}

/* Update your scroll-loader styling */
#scroll-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 40px 0;
	color: var(--accent);
	font-weight: 600;
}

/* Create the spinning ring */
#scroll-loader::before {
	content: "";
	width: 24px;
	height: 24px;
	border: 3px solid rgba(230, 126, 34, 0.2);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

/* Ensure 'spin' exists in your keyframes */
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* --- UNIFIED UI SYSTEM --- */
.btn-ui,
#playAllLink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 24px;
	border-radius: 50px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: var(--transition);
	border: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	gap: 10px;

	/* Fix for vertical text alignment */
	line-height: 1;
	padding-top: 1px;
	/* Tiny nudge to center text vertically */
}

.btn-ui,
#playAllLink {
	padding: 0 24px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--transition);
	border: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	gap: 10px;
	line-height: 1;
	/* This fixes the sinking text issue */
}

/* Matching the 'Watch on YouTube' red outline style */
#playAllLink {
	background-color: transparent !important;
	border: 2px solid var(--yt-red) !important;
	color: var(--yt-red) !important;
}

#playAllLink:hover {
	background-color: var(--yt-red) !important;
	color: white !important;
}

/* Variant: Solid (Search) */
.btn-solid {
	background-color: var(--accent);
	color: white !important;
}

.btn-solid:hover {
	background-color: var(--accent-hover);
	transform: translateY(-2px);
}

/* Variant: Outline (Today / Random) */
.btn-outline-ui {
	background-color: transparent;
	border: 2px solid var(--primary);
	color: var(--primary) !important;
}

.btn-outline-ui:hover {
	background-color: var(--primary);
	color: white !important;
}

/* Variant: YouTube Red (Play All) */
#playAllLink {
	background-color: transparent !important;
	border: 2px solid var(--yt-red) !important;
	color: var(--yt-red) !important;
}

#playAllLink:hover {
	background-color: var(--yt-red) !important;
	color: white !important;
	transform: translateY(-2px);
}


/* --- UNIFIED BUTTON & LINK SYSTEM --- */

/* Base class for all UI buttons */
.btn-ui,
.watch-link,
#playAllLink {
	display: inline-flex !important;
	align-items: center;
	/* Perfect vertical centering */
	justify-content: center;
	/* Perfect horizontal centering */
	height: 48px;
	/* Standard height across the site */
	padding: 0 24px;
	border-radius: 50px;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: var(--transition);
	border: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	gap: 8px;
	line-height: 1;
	/* Prevents text from sinking/floating */
	box-sizing: border-box;
}

/* Variant: Solid (Search, Modal Primary) */
.btn-solid {
	background-color: var(--accent);
	color: white !important;
}

.btn-solid:hover {
	background-color: var(--accent-hover);
	transform: translateY(-2px);
}

/* Variant: Outline (Today, Random, Copy Link) */
.btn-outline-ui {
	background-color: transparent;
	border: 2px solid var(--primary) !important;
	color: var(--primary) !important;
}

.btn-outline-ui:hover {
	background-color: var(--primary);
	color: white !important;
}

/* Variant: YouTube Red (Grid Cards & Play All) */
.watch-link,
#playAllLink {
	background-color: transparent !important;
	border: 2px solid var(--yt-red) !important;
	color: var(--yt-red) !important;
	margin: 10px 15px 15px;
	/* Margin specifically for Grid items */
}

/* Specific fix for Play All (no margin needed in filter panel) */
#playAllLink {
	margin: 0 !important;
	background-color: #ff0000 !important;
	/* Matches your HTML style */
	color: white !important;
	border: none !important;
}

.watch-link:hover,
#playAllLink:hover {
	background-color: var(--yt-red) !important;
	color: white !important;
	transform: translateY(-2px);
}


.search-input-group {
	display: flex;
	align-items: center;
	gap: 10px;
	/* Provides consistent spacing between input, X, and button */
	width: 100%;
	position: relative;
}

.search-input-group input {
	flex-grow: 1;
	/* Stretches to fill available space */
	height: 48px;
	padding: 0 20px;
	border-radius: 50px;
	border: 2px solid #eee;
	outline: none;
}

.btn-clear {
	/* REMOVE: position: absolute, right: 140px, top: 50%, transform */
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--text-muted);
	font-size: 1.2rem;
	padding: 0 5px;
	transition: var(--transition);
	flex-shrink: 0;
	/* Prevents the X from squishing */
}

.btn-clear:hover {
	color: var(--yt-red);
}

/* --- TAG STYLING --- */
.tag-badge {
	background: rgba(230, 126, 34, 0.1);
	/* Light version of your --accent */
	color: var(--accent);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 50px;
	text-transform: lowercase;
	border: 1px solid rgba(230, 126, 34, 0.2);
	transition: var(--transition);
	text-decoration: none;
	/* Removes underline from links */
	cursor: pointer;
	display: inline-block;
}

.tag-badge:hover {
	background: var(--accent);
	color: white;
	transform: translateY(-1px);
	background: var(--accent);
	color: white !important;
	/* Forces white text on hover */
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(230, 126, 34, 0.2);
}


/* Ensure all stats values are consistent */
.stats-value {
	color: var(--text-main);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Ensure this exists in your style.css for consistent badges */








/* --- NEW MODAL STYLING --- */
/* --- NEW MODAL SYSTEM --- */
/* --- FINAL MODAL SYSTEM --- */

/* The Dialog Wrapper */
#videoModal {
	padding: 0;
	border: none;
	border-radius: 15px;
	background: transparent;
	max-width: 650px;
	width: 90%;
	overflow: hidden;
	/* Clips image to the 15px radius */
}

#videoModal::backdrop {
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(5px);
}

/* The Glass Container */
#videoModal .glass-panel {
	padding: 0 !important;
	/* Removes padding for full-width thumbnail */
	margin: 0;
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--glass-border);
}




/* Content Section */
.modal-body {
	padding: 25px 30px;
	background: var(--white);
}

/* Overlay Badges (Matches Grid) */
#videoModal {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 5;
}


/* Enhanced Close Button */
.btn-close {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.6);
	color: white;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}

.btn-close:hover {
	background: var(--yt-red);
	transform: scale(1.1);
}

/* --- UNIFIED MEDIA BADGES (Grid & Modal) --- */


.modal-header {
	position: relative;
	width: 100%;
	border-radius: 15px 15px 0 0;
	overflow: hidden;
}



.thumb-wrapper {
	position: relative;
	/* CRITICAL for keeping badges inside */
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #000;
	display: block;
	/* Change from inline-flex back to block */
	border-radius: 12px;
	/* Your rounded edges */
	margin: 0;
	/* Ensures no weird shifting */
}

.thumb-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Ensures the image fills the 16/9 box without gaps */
	display: block;
	transition: transform 0.5s ease;
}

/* 2. Base Badge Styles */
.channel-badge,
.duration-badge {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	font-family: 'Inter', sans-serif;
}

/* 3. Channel Badge (Top Left) */
/* Position the channel badge over the image */
/* Position the channel badge over the image */
.channel-badge {
	position: absolute;
	top: 12px;
	left: 12px;

	/* THE FIX: Vertical padding and centering */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	/* Increased from 4px to 8px for height */
	line-height: 1;
	/* Ensures text doesn't drift up or down */


	font-size: 0.75rem;
	/* Slightly larger text */
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 8px;
	/* Slightly rounder to match the new height */
	color: white;
	z-index: 5;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-adam {
	background-color: var(--primary);
}

.badge-daily {
	background-color: var(--accent);
}

#modalImg {
	width: 100%;
	height: auto;
	display: block;
}

/* 4. Duration Badge (Bottom Right) */
.duration-badge {
	position: absolute;
	bottom: 12px;
	right: 12px;
	padding: 6px 10px;
	/* Increased vertical padding */
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	z-index: 5;
}

/* 5. Modal Specific Overrides (Slightly larger badges for the larger image) */
#videoModal .channel-badge {
	top: 15px;
	left: 15px;
	font-size: 0.8rem;
}

#videoModal .duration-badge {
	bottom: 15px;
	right: 15px;
	font-size: 0.85rem;
}

@media (max-width: 768px) {
	.filter-panel {
		position: relative;
		top: 0;
		padding: 20px;
	}

	.search-input-group {
		flex-direction: column;
		width: 100%;
	}

	.quick-actions {
		flex-direction: column;
		width: 100%;
	}

	.btn-ui,
	#playAllLink {
		width: 100%;
	}

	.glass-panel {
		margin-top: -30px;
		padding: 20px;
	}
}