        /* YouTube Music Dark Theme */
        :root {
            --ytm-bg-primary: #121212;
            --ytm-bg-secondary: #1e1e1e;
            --ytm-bg-tertiary: #2a2a2a;
            --ytm-bg-hover: #3a3a3a;
            --ytm-text-primary: #ffffff;
            --ytm-text-secondary: #aaaaaa;
            --ytm-text-muted: #717171;
            --ytm-accent: #8ab4f8;
            --ytm-accent-hover: #aecbfa;
            --ytm-border: #3a3a3a;
            --ytm-sidebar-width: 240px;
        }

        /* 메인페이지 애니메이션 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }

        /* 호버 효과 */
        .ytm-btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(138, 180, 248, 0.3);
        }

        /* 모바일 반응형 디자인 */
        @media (max-width: 768px) {
            /* 헤더 섹션 모바일 최적화 */
            header.ytm-header {
                padding: 20px !important;
                margin-bottom: 16px !important;
            }

            /* 새로운 헤더 구조 모바일 최적화 */
            .world-header-content {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                gap: 20px !important;
            }

            .world-header-text {
                text-align: center !important;
            }

            .world-header-icon {
                display: none !important;
            }

            header.ytm-header .ytm-title img {
                width: 180px !important;
            }

            header.ytm-header .ytm-subtitle {
                font-size: 1rem !important;
            }

            /* 버튼 그룹 모바일 최적화 */
            header.ytm-header .d-flex.gap-3 {
                justify-content: center !important;
            }

            /* 통계 카드 모바일 최적화 */
            .ytm-card {
                margin-bottom: 16px !important;
                padding: 20px !important;
            }

            .ytm-card h4 {
                font-size: 2rem !important;
            }

            .ytm-card .fa-2x {
                font-size: 1.5rem !important;
            }

            /* 섹션 헤더 모바일 최적화 */
            .d-flex.justify-content-between.align-items-center {
                flex-direction: column !important;
                gap: 16px !important;
                padding: 16px !important;
            }

            .d-flex.align-items-center {
                justify-content: flex-start !important;
            }

            /* 애니메이션 모바일에서 간소화 */
            [style*="animation"] {
                animation: none !important;
            }

            /* 호버 효과 모바일에서 제거 */
            [onmouseover], [onmouseout] {
                pointer-events: none !important;
            }
        }

        @media (max-width: 480px) {
            /* 매우 작은 화면용 */
            header.ytm-header .ytm-title img {
                width: 150px !important;
            }

            .ytm-card h4 {
                font-size: 1.8rem !important;
            }

            .ytm-card {
                padding: 16px !important;
            }
        }

        * {
            box-sizing: border-box;
        }

        html {
            overflow-y: scroll; /* Always show vertical scrollbar to prevent layout shift */
        }

        body {
            font-family: 'Instrument Sans', sans-serif;
            background-color: var(--ytm-bg-primary);
            color: var(--ytm-text-primary);
            margin: 0;
            padding: 0;
            overflow-x: hidden; /* Prevent horizontal scroll */
            overflow-y: auto; /* Allow vertical scroll */
            transition: opacity 0.3s ease-in-out; /* AJAX 로딩 시 부드러운 전환 */
            width: 100%; /* Ensure body takes full width */
            max-width: 100vw; /* Prevent body overflow */
        }

        /* Layout Structure */
        .ytm-app {
            display: flex;
            min-height: 100vh; /* Allow natural height */
            overflow-x: hidden; /* Prevent horizontal overflow */
            width: 100%; /* Ensure full width */
            max-width: 100vw; /* Prevent overflow on mobile */
        }

        /* 1450px 이상에서 전체 레이아웃 중앙 정렬 */
        @media (min-width: 1450px) {
            .ytm-app {
                position: absolute !important;
                left: 50% !important;
                top: 0 !important;
                transform: translateX(-50%) !important;
                width: 1440px !important;
                max-width: 1440px !important;
                min-height: 100vh !important;
            }

            .ytm-sidebar {
                position: sticky !important;
                top: 0 !important;
                height: 100vh !important;
                flex-shrink: 0 !important;
                background: linear-gradient(to bottom, var(--ytm-bg-secondary) 0%, transparent 100%) !important;
            }

            .ytm-sidebar::before {
                content: '' !important;
                position: absolute !important;
                left: 0 !important;
                top: 0 !important;
                bottom: 0 !important;
                width: 1px !important;
                background: linear-gradient(to bottom, var(--ytm-border) 0%, transparent 100%) !important;
                z-index: 1 !important;
            }

            .ytm-sidebar::after {
                content: '' !important;
                position: absolute !important;
                right: 0 !important;
                top: 0 !important;
                bottom: 0 !important;
                width: 1px !important;
                background: linear-gradient(to bottom, var(--ytm-border) 0%, transparent 100%) !important;
                z-index: 1 !important;
            }

            .ytm-main {
                margin-left: 0 !important;
                flex: 1 !important;
            }

            /* 1450px 이상에서 페이지 콘텐츠 너비 조정 */
            .home-page-content,
            .world-page-content,
            .mypage-page-content,
            .channel-page-content {
                max-width: 1400px !important;
                padding: 0 20px !important;
            }

        }

        .ytm-sidebar {
            width: var(--ytm-sidebar-width);
            background: linear-gradient(to bottom, var(--ytm-bg-secondary) 0%, transparent 100%);
            position: fixed;
            left: 0;
            top: 0;
            height: 100vh;
            overflow-y: auto;
            z-index: 1000;
            transition: transform 0.3s ease;
        }

        /* 768px 이하에서는 단색 배경 */
        @media (max-width: 768px) {
            .ytm-sidebar {
                background: var(--ytm-bg-secondary);
            }

            .ytm-sidebar::before,
            .ytm-sidebar::after {
                display: none;
            }
        }

        .ytm-sidebar::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 1px;
            background: linear-gradient(to bottom, var(--ytm-border) 0%, transparent 100%);
            z-index: 1;
        }

        .ytm-sidebar::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 1px;
            background: linear-gradient(to bottom, var(--ytm-border) 0%, transparent 100%);
            z-index: 1;
        }

        .ytm-main {
            flex: 1;
            margin-left: var(--ytm-sidebar-width);
            background-color: var(--ytm-bg-primary);
            min-height: 100vh;
            border-left: 1px solid var(--ytm-border);
            border-right: 1px solid var(--ytm-border);
            width: 100%; /* Ensure full width */
            max-width: 100vw; /* Prevent overflow on mobile */
        }

        .ytm-content {
            margin: 0;
            overflow: hidden; /* Prevent any scrolling in content area */
            padding-bottom: 200px; /* 모든 페이지 하단에 200px 공백 추가 */
            width: 100%; /* Ensure full width */
            max-width: 100%; /* Prevent overflow */
        }

        /* 홈과 전세계, 마이페이지, 채널 컨텐츠 최대 너비 제한 */
        .home-page-content,
        .world-page-content,
        .mypage-page-content,
        .channel-page-content {
            max-width: 1200px;
            margin: 0 auto; /* Center the content */
            width: 100%;
            box-sizing: border-box;
        }

        .home-page-content,
        .mypage-page-content {
            padding: 0px 20px;
        }

        /* 마이페이지 컨테이너의 중복 패딩 제거 */
        .mypage-page-content .container {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        /* 팟캐스트 페이지는 전체 너비 사용 */
        .podcasts-page-content {
            width: 100%;
        }

        /* 데스크톱에서만 사이드바 있을 때 패딩 적용 */
        @media (min-width: 769px) {
            .home-page-content,
            .world-page-content,
            .mypage-page-content,
            .channel-page-content {
                padding: 0 20px;
                margin: 0 auto; /* Center the content */
            }
        }

        /* 모든 페이지의 컨테이너를 중앙 정렬로 변경 */
        .container {
            margin-left: auto !important;
            margin-right: auto !important;
        }

        /* 모든 정책 페이지의 terms-container를 중앙 정렬로 변경 */
        .terms-container {
            margin: 0 auto !important;
            max-width: 1200px !important;
        }

        /* Navigation Styles */
        .ytm-nav-item {
            display: flex;
            align-items: center;
            padding: 12px 24px;
            color: var(--ytm-text-secondary);
            text-decoration: none;
            border-radius: 8px;
            margin: 4px 16px;
            transition: all 0.2s ease;
            font-weight: 500;
        }

        .ytm-nav-item:hover {
            background-color: var(--ytm-bg-hover);
            color: var(--ytm-text-primary);
        }

        .ytm-nav-item.active {
            background-color: var(--ytm-accent);
            color: var(--ytm-bg-primary);
        }

        .ytm-nav-item i {
            margin-right: 16px;
            width: 24px;
            text-align: center;
        }

        /* Dropdown Menu Styles */
        .ytm-dropdown-menu {
            background-color: var(--ytm-bg-secondary);
            border: 1px solid var(--ytm-border);
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            max-height: 300px;
            overflow-y: auto;
            overflow-x: hidden;
            /* Firefox scrollbar styling */
            scrollbar-width: thin;
            scrollbar-color: var(--ytm-accent) var(--ytm-bg-tertiary);
        }

        /* Custom Scrollbar for Dropdown Menu (Webkit browsers) */
        .ytm-dropdown-menu::-webkit-scrollbar {
            width: 8px;
        }

        .ytm-dropdown-menu::-webkit-scrollbar-track {
            background: var(--ytm-bg-tertiary);
            border-radius: 4px;
        }

        .ytm-dropdown-menu::-webkit-scrollbar-thumb {
            background: var(--ytm-accent);
            border-radius: 4px;
        }

        .ytm-dropdown-menu::-webkit-scrollbar-thumb:hover {
            background: #aecbfa;
        }

        .ytm-dropdown-menu .dropdown-item {
            color: var(--ytm-text-secondary);
            padding: 10px 16px;
            border-radius: 4px;
            margin: 2px 4px;
            transition: all 0.2s ease;
        }

        .ytm-dropdown-menu .dropdown-item:hover {
            background-color: var(--ytm-bg-hover);
            color: var(--ytm-text-primary);
        }

        .ytm-dropdown-menu .dropdown-item.active {
            background-color: var(--ytm-accent);
            color: var(--ytm-bg-primary);
        }

        .ytm-dropdown-menu .dropdown-item small {
            font-size: 0.75rem;
        }

        /* Card Styles */
        .ytm-card {
            background-color: var(--ytm-bg-secondary);
            border: 1px solid var(--ytm-border);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
            transition: all 0.2s ease;
        }

        .ytm-card:hover {
            background-color: var(--ytm-bg-tertiary);
            transform: translateY(-2px);
        }

        /* 카드 요소들의 border를 1px로 강제 적용 */
        .card {
            border: 1px solid var(--ytm-border) !important;
        }

        .card.shadow-lg {
            border: 1px solid var(--ytm-border) !important;
            box-shadow: none !important;
        }

        /* Button Styles */
        .ytm-btn-primary {
            background-color: var(--ytm-accent);
            color: var(--ytm-bg-primary);
            border: none;
            border-radius: 20px;
            padding: 8px 16px;
            font-weight: 500;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.2s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ytm-btn-primary:hover {
            background-color: var(--ytm-accent-hover);
            transform: scale(1.05);
        }

        .ytm-btn-secondary {
            background-color: transparent;
            color: var(--ytm-text-primary);
            border: 1px solid var(--ytm-border);
            border-radius: 20px;
            padding: 8px 16px;
            font-weight: 500;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.2s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ytm-btn-secondary:hover {
            background-color: var(--ytm-bg-hover);
            border-color: var(--ytm-accent);
        }

        /* Bootstrap Button Styles */
        .btn {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Form Styles */
        .ytm-input {
            background-color: var(--ytm-bg-tertiary);
            border: 1px solid var(--ytm-border);
            border-radius: 8px;
            color: var(--ytm-text-primary);
            padding: 12px 16px;
            width: 100%;
            transition: all 0.2s ease;
        }

        .ytm-input:focus {
            outline: none;
            border-color: var(--ytm-accent);
            box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.2);
        }

        .ytm-input::placeholder {
            color: var(--ytm-text-muted);
        }

        /* Mobile Header */
        .ytm-mobile-header {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background-color: var(--ytm-bg-primary);
            border-bottom: 1px solid var(--ytm-border);
            z-index: 1001;
            height: 56px;
        }

        .ytm-mobile-header-content {
            display: flex;
            align-items: center;
            height: 100%;
            padding: 0 16px;
        }

        .ytm-hamburger-btn {
            background: none;
            border: none;
            color: var(--ytm-text-primary);
            font-size: 1.2rem;
            padding: 8px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        /* 호버 효과 제거 - 배경색상 변경 불필요 */

        .ytm-hamburger-btn.close {
            transform: scale(1.1);
        }

        .ytm-hamburger-btn.close .fa-bars {
            display: none;
        }

        .ytm-hamburger-btn.close::before {
            content: "\f00d"; /* Font Awesome times (X) icon */
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
        }

        .ytm-mobile-logo {
            display: flex;
            align-items: center;
            margin-left: 12px;
        }

        .ytm-mobile-logo img {
            height: 32px;
            width: auto;
        }

        .ytm-mobile-spacer {
            flex: 1;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .ytm-mobile-header {
                display: block;
            }

            .ytm-sidebar {
                transform: translateX(-100%);
                z-index: 1002;
            }

            .ytm-sidebar.show {
                transform: translateX(0);
            }

            .ytm-main {
                margin-left: 0;
                padding-top: 56px; /* Mobile header height */
                width: 100vw; /* Ensure full viewport width on mobile */
                max-width: 100vw; /* Prevent any overflow */
            }

            .ytm-content {
                max-width: 100% !important;
                overflow: hidden; /* Prevent any scrolling in content area */
            }

            /* 모바일에서는 홈과 전세계, 마이페이지, 채널 컨텐츠도 전체 너비 사용 */
            .home-page-content,
            .world-page-content,
            .mypage-page-content,
            .channel-page-content {
                max-width: 100% !important;
                width: 100% !important;
                margin: 0 !important;
                box-sizing: border-box !important;
            }

            /* 팟캐스트 페이지는 항상 전체 너비 */
            .podcasts-page-content {
                max-width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            /* Sidebar overlay for mobile */
            .ytm-sidebar-overlay {
                display: none;
                position: fixed;
                top: 56px; /* Mobile header height */
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 1001;
            }

            .ytm-sidebar-overlay.show {
                display: block;
            }
        }

        /* Flag Icons Styling */
        .fi {
            display: inline-block;
            border-radius: 2px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            vertical-align: middle;
        }

        /* Language switcher flag improvements */
        .dropdown-item .fi {
            flex-shrink: 0;
            margin-top: 1px;
        }

        .dropdown-toggle .fi {
            vertical-align: text-bottom;
            transform: translateY(-4px);
        }

        /* Scrollbar Styling */
        .ytm-sidebar::-webkit-scrollbar {
            width: 8px;
        }

        .ytm-sidebar::-webkit-scrollbar-track {
            background: var(--ytm-bg-secondary);
        }

        .ytm-sidebar::-webkit-scrollbar-thumb {
            background: var(--ytm-border);
            border-radius: 4px;
        }

        .ytm-sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--ytm-accent);
        }

        /* Sidebar Logo Styles */
        .ytm-sidebar-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px 0;
        }

        .ytm-sidebar-logo img {
            height: 48px;
            width: auto;
            max-width: 200px;
        }

        /* Header Styles */
        .ytm-header {
            background-color: var(--ytm-bg-primary);
            border-bottom: 1px solid var(--ytm-border);
            padding: 16px 24px;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .ytm-title {
            font-size: 2rem;
            font-weight: 600;
            margin: 0 0 4px 0;
            color: var(--ytm-text-primary);
        }

        .ytm-subtitle {
            color: var(--ytm-text-secondary);
            margin: 0;
            font-size: 0.9rem;
        }

        /* Search and Filter */
        .ytm-search-container {
            background-color: var(--ytm-bg-secondary);
            border: 1px solid var(--ytm-border);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 24px;
        }

        .ytm-form-row {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr auto;
            gap: 16px;
            align-items: end;
        }

        .category-slider {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 8px;
            scrollbar-width: none;
            -ms-overflow-style: none;
            scroll-behavior: smooth;
        }

        .category-slider::-webkit-scrollbar {
            display: none;
        }

        .category-btn {
            white-space: nowrap;
            padding: 8px 16px;
            border: 1px solid var(--ytm-border);
            background: var(--ytm-bg-primary);
            color: var(--ytm-text-primary);
            border-radius: 20px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .category-btn:hover {
            background: var(--ytm-accent-light, #f0f0f0);
            border-color: var(--ytm-accent);
        }

        .category-btn.active {
            background: var(--ytm-accent);
            color: var(--ytm-bg-primary);
            border-color: var(--ytm-accent);
        }

        @media (max-width: 768px) {
            .ytm-form-row {
                grid-template-columns: 1fr;
                gap: 12px;
            }
        }

        /* Footer Link Styles */
        .ytm-footer-link {
            display: block;
            text-decoration: none;
            color: var(--ytm-text-muted);
            font-size: 0.85rem;
            padding: 6px 0;
        }

        .ytm-footer-link:hover {
            color: var(--ytm-text-primary);
        }

/* Consent Banner Styles */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ytm-bg-primary);
    border-top: 1px solid var(--ytm-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    padding: 20px;
}

.consent-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.consent-banner-text {
    flex: 1;
}

.consent-banner-text h3 {
    color: var(--ytm-text-primary);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.consent-banner-text p {
    color: var(--ytm-text-secondary);
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.consent-banner-details {
    margin-top: 12px !important;
}

.consent-banner-details a {
    color: var(--ytm-accent);
    text-decoration: none;
}

.consent-banner-details a:hover {
    color: var(--ytm-accent-hover);
    text-decoration: underline;
}

.consent-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.consent-banner-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.consent-banner-buttons .btn-primary {
    background: var(--ytm-accent);
    border-color: var(--ytm-accent);
    color: #000;
}

.consent-banner-buttons .btn-primary:hover {
    background: var(--ytm-accent-hover);
    border-color: var(--ytm-accent-hover);
    transform: translateY(-1px);
}

.consent-banner-buttons .btn-outline-secondary {
    border-color: var(--ytm-border);
    color: var(--ytm-text-secondary);
}

.consent-banner-buttons .btn-outline-secondary:hover {
    background: var(--ytm-bg-hover);
    border-color: var(--ytm-text-secondary);
    color: var(--ytm-text-primary);
}

/* Consent Modal Styles */
.consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.consent-modal-content {
    background: var(--ytm-bg-primary);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.consent-modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.consent-modal-header h3 {
    color: var(--ytm-text-primary);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.consent-modal-close {
    background: none;
    border: none;
    color: var(--ytm-text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.consent-modal-close:hover {
    background: var(--ytm-bg-hover);
    color: var(--ytm-text-primary);
}

.consent-modal-body {
    padding: 20px 24px 24px 24px;
}

.consent-modal-body h4 {
    color: var(--ytm-text-primary);
    margin: 24px 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
}

.consent-modal-body h4:first-child {
    margin-top: 0;
}

.consent-modal-body ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.consent-modal-body li {
    color: var(--ytm-text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.consent-modal-body li strong {
    color: var(--ytm-text-primary);
}

.consent-modal-body p {
    color: var(--ytm-text-secondary);
    line-height: 1.5;
    margin: 12px 0;
}

.consent-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--ytm-border);
}

.consent-modal-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .consent-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .consent-banner-buttons {
        width: 100%;
        justify-content: center;
    }

    .consent-banner-buttons .btn {
        flex: 1;
        max-width: 140px;
    }

    .consent-modal-content {
        margin: 20px;
        max-height: 90vh;
    }

    .consent-modal-header {
        padding: 20px 20px 0 20px;
    }

    .consent-modal-body {
        padding: 16px 20px 20px 20px;
    }
}

/* Profile Edit Modal File Input Styling */
#profileEditModal .form-control[type="file"] {
    background-color: var(--ytm-bg-secondary) !important;
    border: 1px solid var(--ytm-border) !important;
    color: var(--ytm-text) !important;
    border-radius: 8px !important;
    padding: 12px !important;
}

#profileEditModal .form-control[type="file"]:focus {
    background-color: var(--ytm-bg-secondary) !important;
    border-color: var(--ytm-accent) !important;
    color: var(--ytm-text) !important;
    box-shadow: 0 0 0 0.2rem rgba(138, 180, 248, 0.25) !important;
}

#profileEditModal .form-control[type="file"]::file-selector-button {
    background-color: var(--ytm-accent) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    margin-right: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#profileEditModal .form-control[type="file"]::file-selector-button:hover {
    background-color: var(--ytm-accent-hover, #5a7fd4) !important;
    transform: translateY(-1px) !important;
}

/* Webkit browsers (Chrome, Safari) */
#profileEditModal .form-control[type="file"]::-webkit-file-upload-button {
    background-color: var(--ytm-accent) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    margin-right: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#profileEditModal .form-control[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--ytm-accent-hover, #5a7fd4) !important;
    transform: translateY(-1px) !important;
}

/* Profile Edit Modal Dark Mode Styling */
#profileEditModal .modal-content {
    background: var(--ytm-bg-primary) !important;
    border: 1px solid var(--ytm-border) !important;
    color: var(--ytm-text-primary) !important;
}

#profileEditModal .modal-header {
    border-bottom: 1px solid var(--ytm-border) !important;
}

#profileEditModal .modal-title {
    color: var(--ytm-text-primary) !important;
}

#profileEditModal .modal-body {
    color: var(--ytm-text-primary) !important;
}

#profileEditModal .form-label {
    color: var(--ytm-text-primary) !important;
}

#profileEditModal .form-control {
    background-color: var(--ytm-bg-secondary) !important;
    border: 1px solid var(--ytm-border) !important;
    color: var(--ytm-text-primary) !important;
}

#profileEditModal .form-control:focus {
    background-color: var(--ytm-bg-secondary) !important;
    border-color: var(--ytm-accent) !important;
    color: var(--ytm-text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(138, 180, 248, 0.25) !important;
}

#profileEditModal .form-text {
    color: var(--ytm-text-secondary) !important;
}

#profileEditModal .btn {
    color: var(--ytm-text-primary) !important;
}

#profileEditModal .btn[style*="background: var(--ytm-bg-secondary)"] {
    background-color: var(--ytm-bg-secondary) !important;
    border-color: var(--ytm-border) !important;
    color: var(--ytm-text-primary) !important;
}

#profileEditModal .btn[style*="background: var(--ytm-bg-secondary)"]:hover {
    background-color: var(--ytm-bg-hover) !important;
    border-color: var(--ytm-border) !important;
    color: var(--ytm-text-primary) !important;
}

#profileEditModal .btn[style*="background: var(--ytm-accent)"] {
    background-color: var(--ytm-accent) !important;
    border-color: var(--ytm-accent) !important;
    color: white !important;
}

#profileEditModal .btn[style*="background: var(--ytm-accent)"]:hover {
    background-color: var(--ytm-accent-hover, #5a7fd4) !important;
    border-color: var(--ytm-accent-hover, #5a7fd4) !important;
    color: white !important;
}

/* Crop Modal Dark Mode Styling */
#cropModal .modal-content {
    background: var(--ytm-bg-primary) !important;
    border: 1px solid var(--ytm-border) !important;
    color: var(--ytm-text-primary) !important;
}

#cropModal .modal-header {
    border-bottom: 1px solid var(--ytm-border) !important;
}

#cropModal .modal-title {
    color: var(--ytm-text-primary) !important;
}

#cropModal .modal-body {
    color: var(--ytm-text-primary) !important;
}

#cropModal .modal-footer {
    border-top: 1px solid var(--ytm-border) !important;
}

#cropModal .btn {
    color: var(--ytm-text-primary) !important;
}

#cropModal .btn-secondary {
    background-color: var(--ytm-bg-secondary) !important;
    border-color: var(--ytm-border) !important;
    color: var(--ytm-text-primary) !important;
}

#cropModal .btn-secondary:hover {
    background-color: var(--ytm-bg-hover) !important;
    border-color: var(--ytm-border) !important;
    color: var(--ytm-text-primary) !important;
}

#cropModal .btn[style*="background: var(--ytm-bg-secondary)"] {
    background-color: var(--ytm-bg-secondary) !important;
    border-color: var(--ytm-border) !important;
    color: var(--ytm-text-primary) !important;
}

#cropModal .btn[style*="background: var(--ytm-bg-secondary)"]:hover {
    background-color: var(--ytm-bg-hover) !important;
    border-color: var(--ytm-border) !important;
    color: var(--ytm-text-primary) !important;
}

#cropModal .btn[style*="background: var(--ytm-accent)"] {
    background-color: var(--ytm-accent) !important;
    border-color: var(--ytm-accent) !important;
    color: white !important;
}

#cropModal .btn[style*="background: var(--ytm-accent)"]:hover {
    background-color: var(--ytm-accent-hover, #5a7fd4) !important;
    border-color: var(--ytm-accent-hover, #5a7fd4) !important;
    color: white !important;
}

#cropModal .text-muted {
    color: var(--ytm-text-secondary) !important;
}

/* Crop Modal Size and Layout Improvements */
#cropModal .modal-dialog {
    max-width: 95vw !important;
    width: 95vw !important;
}

#cropModal .modal-content {
    min-height: 80vh !important;
}

#cropModal .modal-body {
    padding: 20px !important;
    min-height: 60vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

#cropContainer {
    width: 100% !important;
    height: 120px !important;
    max-height: min(30vh, 150px) !important;
    background: var(--ytm-bg-secondary) !important;
    border-radius: 8px !important;
    border: 1px solid var(--ytm-border) !important;
    overflow: hidden !important;
    position: relative !important;
}

#cropImage {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Cropper.js styles removed - using default library styles */

/* Override Cropper.js container size */
.cropper-container {
    width: 100% !important;
    height: 100% !important;
    max-height: inherit !important;
    box-sizing: border-box !important;
}

/* Ensure crop container controls the cropper */
#cropContainer .cropper-container {
    height: inherit !important;
    max-height: inherit !important;
    width: inherit !important;
}

/* Force cropper to respect parent container */
#cropContainer .cropper-container[style] {
    height: 100% !important;
    width: 100% !important;
    max-height: none !important;
}

/* Mobile responsive crop modal */
@media (max-width: 768px) {
    #cropModal .modal-dialog {
        max-height: 85vh !important;
        margin: 10px;
        max-width: 95vw !important;
    }

    #cropContainer {
        min-height: 50vh !important;
        height: 50vh !important;
    }
}

@media (max-width: 480px) {
    #cropModal .modal-dialog {
        max-height: 85vh !important;
        margin: 5px;
        max-width: 95vw !important;
    }

    #cropContainer {
        min-height: 50vh !important;
        height: 50vh !important;
    }
}

@media (max-width: 400px) {
    #cropModal .modal-dialog {
        max-height: 85vh !important;
        margin: 5px;
        max-width: 95vw !important;
    }

    #cropContainer {
        min-height: 50vh !important;
        height: 50vh !important;
    }
}

/* Extra small screens (375px width and below) */
@media (max-width: 375px) {
    #cropModal .modal-dialog {
        max-height: 85vh !important;
        margin: 3px;
        max-width: 98vw !important;
    }

    #cropContainer {
        min-height: 50vh !important;
        height: 50vh !important;
    }

    #cropModal .modal-footer {
        padding: 0.5rem !important;
    }

    #cropModal .btn {
        font-size: 0.8rem !important;
        padding: 0.375rem 0.75rem !important;
    }

    #cropModal h5 {
        font-size: 0.9rem !important;
    }

    #cropModal .modal-body p {
        font-size: 0.75rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
    }

    #cropModal .modal-footer .gap-2 {
        gap: 0.5rem !important;
    }
}

/* Bootstrap Button Dark Mode Overrides for Profile Modals */
#profileEditModal .btn-outline-secondary,
#cropModal .btn-outline-secondary {
    color: var(--ytm-text-primary) !important;
    border-color: var(--ytm-border) !important;
    background-color: transparent !important;
}

#profileEditModal .btn-outline-secondary:hover,
#cropModal .btn-outline-secondary:hover {
    color: var(--ytm-text-primary) !important;
    background-color: var(--ytm-bg-hover) !important;
    border-color: var(--ytm-border) !important;
}

#profileEditModal .btn-outline-danger {
    color: var(--ytm-danger, #dc3545) !important;
    border-color: var(--ytm-danger, #dc3545) !important;
    background-color: transparent !important;
}

#profileEditModal .btn-outline-danger:hover {
    color: white !important;
    background-color: var(--ytm-danger, #dc3545) !important;
    border-color: var(--ytm-danger, #dc3545) !important;
}

#profileEditModal .btn-primary,
#cropModal .btn-primary {
    background-color: var(--ytm-accent) !important;
    border-color: var(--ytm-accent) !important;
    color: white !important;
}

#profileEditModal .btn-primary:hover,
#cropModal .btn-primary:hover {
    background-color: var(--ytm-accent-hover, #5a7fd4) !important;
    border-color: var(--ytm-accent-hover, #5a7fd4) !important;
    color: white !important;
}

#profileEditModal .btn-secondary,
#cropModal .btn-secondary {
    background-color: var(--ytm-bg-secondary) !important;
    border-color: var(--ytm-border) !important;
    color: var(--ytm-text-primary) !important;
}

#profileEditModal .btn-secondary:hover,
#cropModal .btn-secondary:hover {
    background-color: var(--ytm-bg-hover) !important;
    border-color: var(--ytm-border) !important;
    color: var(--ytm-text-primary) !important;
}

/* ===== AUDIO PLAYER STYLES ===== */
.global-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ytm-bg-secondary);
    color: var(--ytm-text-primary);
    z-index: 9999;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--ytm-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    display: none;
    min-height: 120px;
    height: auto;
}

.global-audio-player.show {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.global-audio-player.hide {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Top Progress Bar */
.player-top-progress {
    padding: 10px 12px 0px 12px;
    padding-bottom: 0px;
    position: relative;
}

.progress-time-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-time {
    font-size: 0.75rem !important;
    color: var(--ytm-text-secondary) !important;
    opacity: 0.9 !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    min-width: 35px !important;
    text-align: center !important;
    font-variant-numeric: tabular-nums !important;
}

.progress-time-container .player-progress {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-time-container .player-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 4px;
}

.progress-time-container .progress-bar {
    background: var(--ytm-accent);
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 15px rgba(138, 180, 248, 0.4);
}

.progress-time-container .progress-bar:hover {
    box-shadow: 0 0 20px rgba(138, 180, 248, 0.6);
}

/* Main Layout - Modern Flexbox */
.player-main-layout {
    display: flex;
    align-items: flex-start;
    padding: 16px 24px;
    min-height: 80px;
    position: relative;
}

/* Subtle animated background */
.player-main-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.global-audio-player:hover .player-main-layout::before {
    opacity: 1;
}

/* Left Section - Artwork and Info */
.player-left-section {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    z-index: 1;
    max-width: 90vw;
}

.player-artwork {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.player-artwork:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.player-info {
    min-width: 0;
    flex: 1;
}

.player-info h6 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    color: var(--ytm-text-primary) !important;
    letter-spacing: -0.01em !important;
}

.player-info small {
    font-size: 0.8rem !important;
    opacity: 0.9 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    color: var(--ytm-text-secondary) !important;
    font-weight: 400 !important;
}

/* Center Section - Removed (controls moved to right) */

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

.player-controls .btn {
    color: var(--ytm-text-primary) !important;
    border: none;
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--ytm-bg-tertiary);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ytm-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    margin-top: 2px !important;
}

.player-controls .btn:hover,
.player-controls .btn:focus {
    text-decoration: none !important;
}

.player-controls .btn i,
.player-controls .btn svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Specific button icons - highest priority */
#playerPlayBtn i,
#playerPauseBtn i,
#playerPrevBtn i,
#playerNextBtn i,
#playerCloseBtn i {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    display: inline-block !important;
    font-size: 1rem !important;
}

.player-controls .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.player-controls .btn:hover::before {
    width: 100%;
    height: 100%;
}

.player-controls .btn:hover {
    background: var(--ytm-bg-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--ytm-accent);
}

.player-controls .btn:active {
    transform: scale(0.95);
}

.player-controls .btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background: rgba(255, 255, 255, 0.08);
}

.player-controls .btn:disabled:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Right Section - All Controls */
.player-right-section {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
    justify-content: center;
    z-index: 1;
    margin: 0px auto;
    max-width: 320px;
    flex-wrap: nowrap;
    white-space: nowrap;
}


.player-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.player-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 3px;
}

.player-progress .progress-bar {
    background: linear-gradient(90deg, #1db954 0%, #1ed760 100%);
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}

.player-progress:hover .progress-bar {
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.5);
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-knob-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-knob {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.volume-knob:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.volume-knob:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.volume-knob.dragging {
    cursor: grabbing;
}

.volume-popup {
    position: fixed;
    /* Position will be set dynamically by JavaScript */
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 12px 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10000;
    backdrop-filter: blur(10px);
    transform-origin: center bottom;
}

.volume-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1) !important;
    pointer-events: auto;
}

.volume-popup-bar {
    position: relative;
    width: 6px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

.volume-popup-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1db954 0%, #1ed760 100%);
    border-radius: 3px;
    transition: height 0.1s ease;
}

.volume-popup-handle {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    cursor: grab;
    transition: all 0.1s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-popup-handle:active {
    cursor: grabbing;
    transform: translateX(-50%) scale(1.2);
}

.volume-popup-handle.dragging {
    cursor: grabbing;
}

.volume-icon {
    color: #ffffff !important;
    opacity: 0.8;
    font-size: 14px;
    flex-shrink: 0;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.volume-controls .btn {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    text-decoration: none !important;
}

/* 닫기 버튼 테두리 제거 */
#playerCloseBtn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

#playerCloseBtn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.05) !important;
}

#playerCloseBtn:active {
    transform: scale(0.95) !important;
}

.volume-controls .btn:hover,
.volume-controls .btn:focus {
    text-decoration: none !important;
}

.volume-controls .btn i,
.volume-controls .btn svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.volume-controls .btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Speed Controls - removed wrapper div */

.speed-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.speed-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
}

.speed-btn:active {
    transform: scale(0.95) !important;
}

.speed-text {
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-range {
    width: 85px !important;
    background: transparent !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    border: none !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Volume level indicator background */
.form-range::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    height: 4px !important;
    background: var(--ytm-accent) !important;
    border-radius: 2px !important;
    transform: translateY(-50%) !important;
    width: calc(var(--volume-percent, 50) * 1%) !important;
    z-index: 1 !important;
    transition: width 0.2s ease !important;
    box-shadow: 0 0 8px rgba(138, 180, 248, 0.4) !important;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.form-range::-webkit-slider-track {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    border: none !important;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s ease !important;
    margin-top: -6px !important; /* Center the thumb on the track */
    position: relative !important;
    z-index: 2 !important;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
    background: #f8f9fa !important;
}

/* Firefox */
.form-range::-moz-range-track {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    border: none !important;
    outline: none !important;
}

.form-range::-moz-range-thumb {
    background: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.form-range::-moz-range-thumb:hover {
    transform: scale(1.2) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
    background: #f8f9fa !important;
}

/* IE/Edge (fallback) */
.form-range::-ms-track {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    border: none !important;
}

.form-range::-ms-thumb {
    background: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

/* Tablet and Mobile Adjustments */
@media (max-width: 768px) {
    .player-top-progress {
        padding: 12px 16px;
        padding-bottom: 0px;
    }

    .player-main-layout {
        padding: 14px 20px;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .player-left-section {
        order: 1;
        text-align: center;
    }

    .player-right-section {
        order: 2;
        gap: 16px;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }

    .form-range {
        width: 70px;
    }

    .player-artwork {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 576px) {
    .player-top-progress {
        padding: 12px 16px;
        padding-bottom: 0px;
    }

    .progress-time {
        font-size: 0.7rem !important;
        min-width: 30px !important;
    }

    .player-main-layout {
        padding: 12px 16px;
    }

    .player-controls .btn {
        background: rgba(255, 255, 255, 0.25) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
        width: 44px !important;
        height: 44px !important;
        padding: 10px !important;
    }

    .player-controls .btn i,
    .player-controls .btn svg {
        color: #ffffff !important;
        fill: #ffffff !important;
        stroke: #ffffff !important;
    }

    .player-controls .btn:hover {
        background: rgba(255, 255, 255, 0.4) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        text-decoration: none !important;
    }

    /* Keep controls in single row on small screens */
    .player-right-section .player-controls {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
    }

    .player-right-section .player-controls .btn {
        flex: 0 0 auto;
        margin: 2px;
    }

    .volume-controls {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 4px;
    }

    .speed-btn, #playerCloseBtn {
        margin: 2px;
    }

    .player-right-section {
        gap: 8px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .form-range {
        width: 75px !important;
    }

    .player-artwork {
        width: 48px;
        height: 48px;
        margin-right: 12px;
    }
}

@media (max-width: 355px) {
    #playerSpeedBtn {
        display: none !important;
    }

    .volume-controls {
        gap: 4px;
    }
}

@media (max-width: 280px) {
    .volume-knob-container {
        display: none !important;
    }

    .volume-controls {
        gap: 2px;
    }
}

/* Touch improvements */
.player-progress {
    -webkit-tap-highlight-color: transparent;
}

.player-progress:active {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.player-artwork[src=""] {
    animation: pulse 1.5s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.1);
}

/* Page bottom padding when player is visible */
body.player-visible {
    padding-bottom: 130px !important;
    transition: padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.player-hidden {
    padding-bottom: 0 !important;
    transition: padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Channel Cards */
.channel-card-modern {
    height: 100%;
    background: var(--ytm-bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--ytm-border);
}

.channel-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border-color: var(--ytm-accent);
}

.channel-card-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, var(--ytm-bg-primary) 0%, var(--ytm-bg-secondary) 100%);
}

.channel-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.channel-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.channel-card-modern:hover .channel-image {
    transform: scale(1.05);
}

.channel-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ytm-accent), var(--ytm-accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.channel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.channel-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ytm-text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-description {
    font-size: 14px;
    color: var(--ytm-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--ytm-border);
}

.channel-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--ytm-accent);
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.channel-link:hover {
    color: var(--ytm-accent-hover);
}

.channel-link i {
    font-size: 11px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.channel-card-modern:hover .channel-link i {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .channel-card-modern {
        margin-bottom: 16px;
    }

    .channel-card-inner {
        padding: 16px;
    }

    .channel-image {
        width: 70px;
        height: 70px;
    }

    .channel-image-placeholder {
        width: 70px;
        height: 70px;
        font-size: 20px;
    }
}

