* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

/* Header Styles */
header {
    background: var(--primary-gradient);
    color: white;
    padding: 25px 35px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.logo-section h1 {
    font-size: 32px;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

.controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-icon {
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #2196F3 0%, #0b7dda 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.btn-control {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-control:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.btn-icon {
    padding: 10px;
    min-width: 45px;
    justify-content: center;
}

.btn-icon-small {
    padding: 8px;
    min-width: 35px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-icon-small:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.url-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
}

.input-icon {
    position: absolute;
    left: 15px;
    font-size: 18px;
    z-index: 1;
}

#urlInput {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#urlInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#urlInput:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    display: flex;
    height: calc(100vh - 280px);
    min-height: 650px;
}

/* Sidebar */
.sidebar {
    width: 380px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 2px solid #dee2e6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    background: white;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.channel-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.search-box {
    padding: 18px;
    background: white;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 30px;
    font-size: 18px;
    color: #999;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-btn {
    position: absolute;
    right: 30px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Category Filter */
.category-filter {
    background: white;
    border-bottom: 2px solid #e0e0e0;
}

.category-header {
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 600;
    color: #495057;
}

.category-header:hover {
    background: #f8f9fa;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #667eea;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 18px;
    max-height: 200px;
    overflow-y: auto;
}

.category-list::-webkit-scrollbar {
    width: 6px;
}

.category-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.category-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.category-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: #667eea;
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.4);
    font-weight: 600;
}

.category-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.channel-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-message {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #666;
}

.empty-subtitle {
    font-size: 14px;
    opacity: 0.7;
}

.channel-group-header {
    padding: 12px 18px;
    font-weight: 700;
    color: #495057;
    font-size: 13px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    margin: 15px 0 10px 0;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.channel-item {
    padding: 18px;
    margin-bottom: 10px;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.channel-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.channel-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196F3;
    transform: translateX(8px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.channel-item:hover::before {
    transform: scaleY(1);
}

.channel-item.active {
    background: var(--primary-gradient);
    color: white;
    border-color: #667eea;
    box-shadow: var(--shadow-glow);
    transform: translateX(5px);
}

.channel-item.active::before {
    transform: scaleY(1);
    background: white;
}

.channel-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.channel-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
}

.channel-group {
    font-size: 12px;
    opacity: 0.7;
}

/* Player Section */
.player-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 25px;
    position: relative;
}

/* Ad Banner - Reklam Metni - Player İçinde */
.ad-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    padding: 12px 0;
    overflow: hidden;
    z-index: 5;
    border-radius: 0;
}

.ad-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.ad-link:hover {
    opacity: 0.9;
}

.ad-text {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
    display: inline-block;
    animation: scroll-ad 35s linear infinite;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    pointer-events: auto;
    cursor: pointer;
}

@keyframes scroll-ad {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ad-banner::before,
.ad-banner::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.ad-banner::before {
    left: 0;
    background: linear-gradient(to right, #000000, transparent);
}

.ad-banner::after {
    right: 0;
    background: linear-gradient(to left, #000000, transparent);
}

.video-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Ad Overlay - Reklam */
.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
}

.ad-overlay.active {
    display: flex;
}

.ad-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.skip-ad-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 21;
}

.skip-ad-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.7);
    background: linear-gradient(135deg, #ff3333 0%, #ff0000 100%);
}

.skip-ad-btn:active {
    transform: translateY(-1px);
}

.skip-ad-btn span {
    font-size: 20px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    min-height: 450px;
    background: #000;
    outline: none;
}

/* Custom Video Controls */
.custom-video-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.7) 50%, transparent 100%);
    padding: 0;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-container:hover .custom-video-controls {
    opacity: 1;
}

/* Video Info Top - Poster/Thumbnail */
.video-info-top {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-container:hover .video-info-top {
    opacity: 1;
    transform: translateY(0);
}

.channel-logo-small {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    overflow: hidden;
}

.channel-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-name-small {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.video-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 20px 25px;
    pointer-events: none;
}

.video-controls-bar {
    padding: 12px 25px 15px;
}

/* Progress Bar - KIRMIZI - ÜSTTE */
.progress-container {
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s ease;
    overflow: visible;
}

.progress-bar:hover {
    height: 8px;
}

.progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #ff0000 0%, #ff3333 50%, #ff5555 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 18px;
    height: 18px;
    background: #ff0000;
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.9), 0 0 40px rgba(255, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: grab;
}

.progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.3);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.progress-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Controls Bottom */
.controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Volume Container */
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.volume-slider-container {
    position: relative;
}

.volume-range {
    width: 100px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff0000;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.volume-range::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

.volume-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff0000;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.volume-text {
    color: white;
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* Time Display */
.time-display {
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.time-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    pointer-events: auto;
}

.channel-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    overflow: hidden;
}

.channel-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-details {
    flex: 1;
}

.channel-details h3 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.channel-details p {
    font-size: 13px;
    opacity: 0.8;
    word-break: break-all;
    margin-bottom: 10px;
}

.video-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.video-stats span {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 10px;
}

.volume-slider {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#volumeValue {
    color: white;
    font-size: 13px;
    font-weight: 600;
    min-width: 45px;
}

.quality-selector {
    position: relative;
}

.quality-select {
    padding: 10px 35px 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s ease;
}

.quality-select:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.quality-select option {
    background: #1a1a2e;
    color: white;
}

.status-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 18px 35px;
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #dee2e6;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.status-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Scrollbar Styling */
.channel-list::-webkit-scrollbar {
    width: 10px;
}

.channel-list::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 5px;
}

.channel-list::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 5px;
    border: 2px solid #e9ecef;
}

.channel-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        height: 400px;
    }

    .player-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls {
        width: 100%;
    }

    .url-input-wrapper {
        width: 100%;
    }

    .player-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        justify-content: space-between;
        width: 100%;
    }
}
