* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --secondary: #2d2d2d;
    --accent: #42a5f5;
    --accent-hover: #00a885;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --background: #121212;
    --card-bg: #1e1e1e;
    --border: #333;
    --shadow: rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
	background: #0f1419;
	color: #e1e8ed;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

header {
	background: #16181d;
	border-bottom: 1px solid #2a2e38;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(10px);
}

.navbar {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #e1e8ed;
	font-weight: 700;
	font-size: 1.5rem;
}

.logo i {
	color: #42a5f5;
	font-size: 1.8rem;
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 2rem;
	align-items: center;
}

.mobile-li {
    display: none;
}

.desktop-li {
    display: block
}

.header-nav-link.mobile-li a {
    font-size: 1.3rem !important;
    color: #fff;
}

.header-nav-link.mobile-li a:hover {
    color: #fff;
}

.nav-links a {
	color: #fffeee;
	text-decoration: none;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
}

.nav-links a:hover {
	color: #42a5f5;
}

.btn-header {
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.btn-header:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.menu-toggle {
	display: none;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
}

.menu-toggle span {
	width: 25px;
	height: 3px;
	background: #e1e8ed;
	border-radius: 3px;
	transition: all 0.3s;
}

.menu-icon {
    height: 37.5px;
    position: relative;
    width: 37.5px;
}

.line {
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text);
    border-radius: 4px;
    left: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.line-1 {
    top: 0;
}

.line-2 {
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.line-3 {
    bottom: 0;
}

.active .line-1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.active .line-2 {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.active .line-3 {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.main-content {
	flex: 1;
	padding: 2rem;
	max-width: 1400px;
	width: 100%;
	transition: all 0.3s ease;
	margin: 76px auto 0px auto;
}

.player-container {
	margin-bottom: 2rem;
}

.player-section {
	background: #16181d;
	border: 1px solid #2a2e38;
	border-radius: 12px;
	padding: 1.5rem;
	transition: all 0.3s ease-in-out;
}

.video-wrapper {
	position: relative;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 1.5rem;
	cursor: none;
}

.video-wrapper:focus, .video-wrapper:active {
	outline: none !important;
}

.video-wrapper:hover {
	cursor: default;
}

.video-wrapper.controls-hidden {
	cursor: none !important;
}

.controls-hidden .custom-controls {
	opacity: 0 !important;
}

#video {
	width: 100%;
    aspect-ratio: 16 / 9;
	display: block;
}

.fs #video {
	top: 50%;
	position: relative;
	transform: translateY(-50%);
}

.unset-ratio {
	aspect-ratio: unset !important;
}

.seek-feedback {
    position: absolute;
	display: flex;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.seek-feedback.show {
    opacity: 1;
}

.seek-feedback.forward {
    right: 20px;
}

.seek-feedback.backward {
    left: 20px;
}

.seek-feedback.volume-feedback {
	gap: 15px;
	align-items: center;
    left: 50%;
    transform: translate(-50%, -50%);
}

.seek-feedback .volume-text {
	transform: translateY(-2px);
}

.seek-feedback.forward svg {
	order: 2;
}

.seek-feedback.forward .seek-text {
	order: 1;
}

.seek-feedback.volume-feedback svg {
	transform: translateX(10px);
}

.skparr2 {
	animation: skiparr2 0.5s forwards;
}

.skparr3 {
	animation: skiparr3 0.5s forwards;
}

.volarr2 {
	animation: volarr2 0.5s forwards;
}

.volarr3 {
	animation: volarr3 0.5s forwards;
}

@keyframes skiparr2 {
	0% {
		transform: translate(0px, 0px);
	}
	100% {
		transform: translate(-22.125px, 0px);
	}
}

@keyframes skiparr3 {
	0% {
		transform: translate(0px, 0px);
	}
	100% {
		transform: translate(-44.25px, 0px);
	}
}

@keyframes volarr2 {
	0% {
		transform: translate(0px, 0px);
	}
	100% {
		transform: translate(0px, -22.125px);
	}
}

@keyframes volarr3 {
	0% {
		transform: translate(0px, 0px);
	}
	100% {
		transform: translate(0px, -44.25px);
	}
}

.seek-text {
	align-items: center;
	display: flex;
	justify-content: center;
	margin-left: -20px;
}

.seek-text span {
	transform: translateY(-2px);
}

/* Context Menu Styles */
.context-menu {
    position: absolute;
    background: rgba(15, 20, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px;
    min-width: 220px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.2s ease;
    max-height: 70vh;
    overflow-y: auto;
}

.context-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.context-item {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.context-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

.context-item i:first-child {
    width: 16px;
    text-align: center;
}

.context-check {
    margin-left: auto;
}

.context-check i {
    color: #42a5f5;
    font-size: 12px;
}

.context-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}

.controls-section {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
}

input[type="text"] {
	flex: 1;
	padding: 12px 16px;
	background: #1a1e28;
	border: 1px solid #2a2e38;
	border-radius: 8px;
	color: #e1e8ed;
	font-size: 13px;
	font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
	transition: all 0.2s;
}

input[type="text"]:focus {
	outline: none;
	border-color: #1976d2;
	background: #1e2329;
}

input[type="text"]:-internal-autofill-selected {
    background-color: #1a1e28 !important;
    background: #1a1e28 !important;
}

.btn-load {
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-load:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.info-box {
	background: #1a1e28;
	border: 1px solid #2a2e38;
	border-radius: 8px;
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	font-size: 12px;
	color: #8b98ab;
	flex-wrap: wrap;
	gap: 10px;
}

.info-left {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
}

.info-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.toggle-container {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.toggle-label {
	font-size: 11px;
	color: #8b98ab;
}

.toggle-switch {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 18px;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #2a2e38;
	transition: .3s;
	border-radius: 34px;
}

.toggle-slider:before {
	position: absolute;
	content: "";
	height: 14px;
	width: 14px;
	left: 2px;
	bottom: 2px;
	background-color: #8b98ab;
	transition: .3s;
	border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
	background-color: #1976d2;
}

.toggle-switch input:checked + .toggle-slider:before {
	transform: translateX(18px);
	background-color: #e1e8ed;
}

.status {
	display: flex;
	align-items: center;
	gap: 8px;
}

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #6b7a90;
	transition: all 0.3s;
}

.status-dot.active {
	background: #42a5f5;
	box-shadow: 0 0 10px rgba(66, 165, 245, 0.5);
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}

.error-message {
	background: rgba(239, 83, 80, 0.1);
	border: 1px solid rgba(239, 83, 80, 0.3);
	color: #ef5350;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-size: 13px;
	display: none;
}

.error-message.show {
	display: block;
}

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.info-card {
	background: linear-gradient(135deg, #1a1e28 0%, #16181d 100%);
	border: 1px solid #2a2e38;
	border-radius: 12px;
	padding: 1.5rem;
	word-break: break-word;
}

.info-card div, .info-card p {
    color: rgb(139, 152, 171);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 5px;
}

.info-card h3 {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.info-card h3 i {
	color: #42a5f5;
}

.quick-links {
	list-style: none;
}

.quick-links li {
	margin-bottom: 0.75rem;
}

.quick-links a {
	color: #8b98ab;
	text-decoration: none;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.quick-links a:hover {
	color: #42a5f5;
}

.info-item {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem 0;
	border-bottom: 1px solid #2a2e38;
}

.info-item:last-child {
	border-bottom: none;
}

.info-label {
	color: #8b98ab;
	font-size: 0.9rem;
}

.info-value {
	color: #e1e8ed;
	font-weight: 600;
	font-size: 0.9rem;
}

.custom-controls {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 60%, transparent 100%);
	padding: 40px 20px 15px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 10;
}

.video-wrapper:hover .custom-controls,
.video-wrapper.playing .custom-controls {
	opacity: 1;
}

.video-wrapper.default-controls .custom-controls, .video-wrapper.default-controls .context-menu.active, .video-wrapper.default-controls .context-menu {
	display: none !important;
}

.video-wrapper.default-controls #video {
	cursor: default;
}

.video-wrapper.default-controls .progress-container {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 10px 0;
	margin-bottom: 0;
	background: rgba(0, 0, 0, 0.5);
}

.video-wrapper.default-controls .progress-bar-wrapper {
	height: 3px;
	background: rgba(255, 255, 255, 0.2);
}

.video-wrapper.default-controls .progress-filled {
	background: #1976d2;
}

.video-wrapper.default-controls .progress-handle {
	display: none;
}

.progress-container {
	width: 100%;
	margin-bottom: 12px;
	cursor: pointer;
	padding: 8px 0;
}

.progress-bar-wrapper {
	position: relative;
	height: 5px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	overflow: visible;
	transition: height 0.2s;
}

.progress-container:hover .progress-bar-wrapper {
	height: 7px;
}

.progress-buffer {
	position: absolute;
	height: 100%;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 10px;
	width: 0%;
	transition: width 0.2s;
}

.progress-filled {
	position: absolute;
	height: 100%;
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	border-radius: 10px;
	width: 0%;
	transition: width 0.1s linear;
}

.progress-handle {
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%) scale(0);
	width: 14px;
	height: 14px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	transition: transform 0.2s;
}

.progress-container:hover .progress-handle {
	transform: translateY(-50%) scale(1);
}

.controls-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.control-btn {
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	position: relative;
}

.control-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: scale(1.08);
}

.control-btn:hover .tooltip {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.tooltip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translate(-50%, 10px);
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	pointer-events: none;
	z-index: 1000;
	margin-bottom: 12px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 6px;
	border-style: solid;
	border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.play-pause-btn {
	font-size: 22px;
	min-width: 42px;
	height: 42px;
	background: rgba(102, 126, 234, 0.2);
}

.volume-control {
	display: flex;
	align-items: center;
	gap: 8px;
}

.volume-slider-wrapper {
	width: 0;
	opacity: 0;
	overflow: hidden;
	transition: all 0.3s ease;
}

.volume-control:hover .volume-slider-wrapper {
	width: 80px;
	padding: 5px;
	opacity: 1;
}

#volumeBar {
	width: 80px;
	height: 5px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	outline: none;
	transform: translateY(-2.5px);
	cursor: pointer;
	-webkit-appearance: none;
}

#volumeBar::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
}

.time-display {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.95);
	font-weight: 500;
	min-width: 100px;
	text-align: center;
}

.settings-wrapper {
	position: relative;
}

.settings-menu {
	position: absolute;
	bottom: calc(100% + 10px);
	right: 0;
	background: rgba(15, 20, 30, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	padding: 8px;
	min-width: 180px;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	transform: translateY(10px);
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s ease;
	z-index: 100;
}

.settings-menu.active {
	transform: translateY(0);
	opacity: 1;
	pointer-events: all;
}

.settings-menu-title {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	padding: 8px 10px 4px;
}

.settings-item {
	padding: 10px 12px;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.2s;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: rgba(255, 255, 255, 0.9);
}

.settings-item:hover {
	background: rgba(102, 126, 234, 0.2);
}

.settings-item.active {
	background: rgba(102, 126, 234, 0.15);
	color: #667eea;
}

.controls-spacer {
	flex: 1;
}

.loading-overlay {
	position: absolute;
	top: 50%;
	padding: 18px;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100px;
	height: 100px;
	opacity: 0;
	pointer-events: none;
	z-index: 15;
}

.video_sspinner {
    position: relative;
    width: 64px;
    height: 64px;
    z-index: 18;
    pointer-events: none;
}

.video_sspinner-container {
    pointer-events: none;
    position: absolute;
    width: 100%;
    padding-bottom: 100%;
    top: 50%;
    left: 50%;
    margin-top: -50%;
    margin-left: -50%;
    animation: video_sspinner-linspin 1568.23529647ms linear infinite;
    -webkit-animation: video_sspinner-linspin 1568.23529647ms linear infinite;
}

.video_sspinner-rotator {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-animation: video_sspinner-easespin 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
    animation: video_sspinner-easespin 5332ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
}

.video_sspinner-left {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
}

.video_sspinner-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.video_sspinner-left {
    right: 49%;
}

.video_sspinner-right {
    left: 49%;
}

.video_sspinner-circle {
    box-sizing: border-box;
    position: absolute;
    width: 200%;
    height: 100%;
    border-style: solid;
    border-color: #ddd #ddd transparent;
    border-radius: 50%;
    border-width: 6px;
}

.video_sspinner-left .video_sspinner-circle {
    left: 0;
    right: -100%;
    border-right-color: transparent;
    -webkit-animation: video_sspinner-left-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
    animation: video_sspinner-left-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
}

.video_sspinner-right .video_sspinner-circle {
    left: -100%;
    right: 0;
    border-left-color: transparent;
    -webkit-animation: video_sright-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
    animation: video_sright-spin 1333ms cubic-bezier(0.4, 0.0, 0.2, 1) infinite both;
}

@-webkit-keyframes video_sspinner-linspin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes video_sspinner-linspin {
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes video_sspinner-easespin {
    12.5% {
        -webkit-transform: rotate(135deg);
    }
    25% {
        -webkit-transform: rotate(270deg);
    }
    37.5% {
        -webkit-transform: rotate(405deg);
    }
    50% {
        -webkit-transform: rotate(540deg);
    }
    62.5% {
        -webkit-transform: rotate(675deg);
    }
    75% {
        -webkit-transform: rotate(810deg);
    }
    87.5% {
        -webkit-transform: rotate(945deg);
    }
    to {
        -webkit-transform: rotate(1080deg);
    }
}

@keyframes video_sspinner-easespin {
    12.5% {
        transform: rotate(135deg);
    }
    25% {
        transform: rotate(270deg);
    }
    37.5% {
        transform: rotate(405deg);
    }
    50% {
        transform: rotate(540deg);
    }
    62.5% {
        transform: rotate(675deg);
    }
    75% {
        transform: rotate(810deg);
    }
    87.5% {
        transform: rotate(945deg);
    }
    to {
        transform: rotate(1080deg);
    }
}

@-webkit-keyframes video_sspinner-left-spin {
    0% {
        -webkit-transform: rotate(130deg);
    }
    50% {
        -webkit-transform: rotate(-5deg);
    }
    to {
        -webkit-transform: rotate(130deg);
    }
}

@keyframes video_sspinner-left-spin {
    0% {
        transform: rotate(130deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    to {
        transform: rotate(130deg);
    }
}

@-webkit-keyframes video_sright-spin {
    0% {
        -webkit-transform: rotate(-130deg);
    }
    50% {
        -webkit-transform: rotate(5deg);
    }
    to {
        -webkit-transform: rotate(-130deg);
    }
}

@keyframes video_sright-spin {
    0% {
        transform: rotate(-130deg);
    }
    50% {
        transform: rotate(5deg);
    }
    to {
        transform: rotate(-130deg);
    }
}

.loading-overlay.active {
	opacity: 1;
}

@keyframes spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.stats-overlay {
	position: absolute;
	left: 12px;
	top: 12px;
	width: calc(100% - 24px);
	pointer-events: none;
	display: none;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	z-index: 20;
}

.stats-overlay.active {
	display: flex;
	animation: floatIn 0.4s ease-out;
}

@keyframes floatIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.stats-panel {
	background: rgba(10, 10, 10, 0.92);
	color: #e6eef3;
	padding: 12px 14px;
	border-radius: 8px;
	pointer-events: auto;
	font-size: 12px;
	line-height: 1.4;
	max-width: 48%;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
}

.stats-panel small {
	color: #98a0a6;
	display: block;
	margin-bottom: 8px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}

.stats-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.stats-item {
	min-width: 140px;
	margin-bottom: 8px;
}

.stats-label {
	color: #98a0a6;
	font-size: 11px;
	margin-bottom: 2px;
}

.stats-value {
	font-weight: 600;
	color: #e6eef3;
	font-size: 13px;
}

.stats-bar {
	height: 6px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 4px;
	margin-top: 6px;
	overflow: hidden;
}

.stats-bar > i {
	display: block;
	height: 100%;
	width: 0%;
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	transition: width 0.3s;
}

.small-right {
	text-align: right;
}

.pip-feedback {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	z-index: 30;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}

.pip-feedback.show {
	opacity: 1;
}

.stats-panel::-webkit-scrollbar {
    width: 5px;
    -webkit-appearance: none;
    z-index: 1000000;
}

::-webkit-scrollbar {
    width: 7.5px;
    -webkit-appearance: none;
    z-index: 1000000;
}

::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 4px;
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}

::-webkit-scrollbar-track {
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #707070;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

::-webkit-overflow-scrolling:touch {
    background: #707070;
    width: 5px;
}

@media (max-width: 1024px) {
	.stats-overlay {
		flex-direction: column;
	}

	.stats-panel {
		max-width: 100%;
	}
}

@media (max-width: 933px) {
    .btn-header {
        display: none !important;
    }
}

@media (max-width: 789px) {
	.controls-row {
		gap: 8px;
	}

	.control-btn {
		min-width: 32px;
		height: 32px;
		font-size: 16px;
	}
	
	.info-box {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.info-left, .info-right {
		width: 100%;
		justify-content: space-between;
	}
	
	.tooltip {
		display: none;
	}

	.main-content {
		padding: 0px;
		margin: 70px auto 0px auto;
	}

	.player-section {
		border: 0px solid #2a2e38;
		border-radius: 0px;
		padding: 10px;
	}

	.player-container {
		margin-bottom: 0px;
	}
}

@media (max-width: 789px) {
	.nav-links {
		display: none;
	}

	.menu-toggle {
		display: flex;
	}

    .nav-links.active {
        right: 0;
    }

    .nav-links {
        display: flex;
        list-style: none;
        gap: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: #16181d;
        width: 80%;
        height: calc(100vh - 80px);
        padding: 40px 20px;
        transition: var(--transition);
        box-shadow: -5px 0 15px var(--shadow);
        border-left: 1px solid var(--border);
    }

    .nav-links li {
        text-align: left;
        width: 100%;
    }

    .desktop-li {
        display: none;
    }
    
    .mobile-li {
        display: block;
    }
}

@media (max-width: 405px) {
	#backwardBtn, #forwardBtn, .volume-control, .settings-wrapper {
		display: none;
	}

	.stats-overlay {
		font-size: 10px !important;
	}

	.stats-overlay {
        flex-direction: row;
    }

	.stats-panel {
        max-width: 48%;
		max-height: 130px;
		overflow-y: scroll;
    }

	.stats-item {
		max-width: 100%;
		min-width: 100%;
	}
}

@media (max-width: 355px) {
	.main-content {
		display: none;
	}
}