#app {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.custom-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    aspect-ratio: 16/9;
    max-width: 100%;
}

#mainVideo {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    outline: none;
    border-radius: 12px;
    object-fit: contain;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    background: rgba(0,0,0,0.85);
    padding: 20px 25px;
    border-radius: 15px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.loading.show {
    display: flex;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 2px solid transparent;
    border-top: 2px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.seek-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(33, 150, 243, 0.95);
    color: white;
    padding: 10px 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 120;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.seek-indicator.show {
    opacity: 1;
}

.seek-arrow {
    font-size: 16px;
}

.seek-forward, .seek-backward {
    display: none;
}

.seek-forward.active, .seek-backward.active {
    display: inline;
}

.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ff6b6b;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    max-width: 320px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.error-message.show {
    display: flex;
}

.error-icon {
    font-size: 40px;
}

.error-text {
    font-size: 12px;
    line-height: 1.5;
}

.retry-btn {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.6);
}

.notification {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    max-width: 80%;
    text-align: center;
    width: max-content;
}

.notification.show {
    opacity: 1;
}

.custom-player.fullscreen .loading,
.custom-player.fullscreen .seek-indicator,
.custom-player.fullscreen .error-message {
    z-index: 10001;
}

.custom-player.fullscreen .notification {
    position: fixed;
    top: 30px;
    z-index: 10002;
}

.video-title {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 15px;
    z-index: 50;
    max-width: calc(100% - 100px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.5s ease, transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-title.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.share-btn:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.share-btn:active {
    transform: scale(0.95);
}

.share-btn[data-icon="share"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"/></svg>') no-repeat center;
}

.controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    padding: 15px 10px 10px;
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 0 0 12px 12px;
    display: flex;
    flex-direction: column;
}

.timeline-container {
    width: 100%;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    z-index: 10;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    order: 1;
}

.timeline {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: visible;
    transition: all 0.2s ease;
    cursor: pointer;
    touch-action: none;
}

.timeline:hover {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
}

.timeline.dragging {
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
}

.timeline-buffered {
    position: absolute;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 0%;
    transition: width 0.3s ease;
}

.timeline-progress {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #21CBF3);
    border-radius: 8px;
    width: 0%;
    transition: width 0.1s ease;
    z-index: 2;
}

.timeline-thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #2196F3;
    border-radius: 50%;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.8);
    border: 2px solid white;
    cursor: pointer;
    pointer-events: none;
}

.timeline:hover .timeline-thumb,
.timeline.dragging .timeline-thumb {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.timeline.dragging .timeline-thumb {
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 12px rgba(33, 150, 243, 1);
}

.timeline.seeking .timeline-progress {
    transition: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 30px;
    background: transparent;
    z-index: 1;
}

.timeline-preview {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.timeline-preview.show {
    opacity: 1;
}

.timeline-preview-img {
    width: 160px;
    height: 90px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    position: relative;
}

.timeline-preview-img img,
.timeline-preview-img video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.timeline-preview-img img {
    opacity: 0;
    z-index: 2;
    transition: opacity 0.08s linear;
}

.timeline-preview-img video {
    z-index: 1;
}

.timeline-preview.cached .timeline-preview-img img {
    opacity: 1;
}

.timeline-preview-img video::-webkit-media-controls {
    display: none !important;
}

.timeline-preview-time {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.timeline-preview.no-image .timeline-preview-img {
    display: none;
}

@media (max-width: 768px) {
    .timeline-preview-img {
        width: 120px;
        height: 68px;
    }
    
    .timeline-preview-time {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .timeline-preview-img {
        width: 100px;
        height: 56px;
    }
    
    .timeline-preview-time {
        font-size: 9px;
    }
}

.main-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0;
    flex-wrap: nowrap;
    gap: 8px;
    order: 2;
    overflow: hidden;
    min-height: 40px;
}

.left-controls, .right-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.left-controls {
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.right-controls {
    justify-content: flex-end;
    flex-shrink: 0;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.control-btn:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.control-btn:active {
    transform: scale(0.95);
}

.volume-container {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    min-width: 0;
}

#volumeSlider {
    width: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    opacity: 0;
    position: relative;
    margin-left: 0;
    pointer-events: none;
    min-width: 0;
}

.volume-container:hover #volumeSlider {
    width: 60px;
    opacity: 1;
    pointer-events: all;
    margin-left: 8px;
}

#volumeSlider:hover {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
}

#volumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #2196F3;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 6px rgba(33, 150, 243, 0.8);
    transition: all 0.2s ease;
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(33, 150, 243, 1);
}

#volumeSlider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #2196F3;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 6px rgba(33, 150, 243, 0.8);
    border: none;
}

.time {
    color: white;
    font-size: 11px;
    font-weight: 500;
    min-width: 35px;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.left-controls .time:not(#currentTime):not(#duration) {
    min-width: auto;
    width: auto;
    margin: 0 2px;
}

.settings-menu {
    position: absolute;
    bottom: 70px;
    right: 10px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 300;
    width: 280px;
    max-height: 350px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.settings-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.settings-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    min-height: 44px;
}

.settings-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    margin-right: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: none;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
}

.settings-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-title {
    color: white;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.settings-content {
    padding: 15px;
    overflow-y: auto;
    max-height: 290px;
    -webkit-overflow-scrolling: touch;
}

.settings-main-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.settings-menu-item:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.3);
    transform: translateX(5px);
}

.settings-menu-item-icon {
    font-size: 16px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.settings-menu-item-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.settings-menu-item-arrow {
    font-size: 12px;
    opacity: 0.7;
}

.settings-page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-page.active {
    display: block;
}

.settings-section {
    margin-bottom: 15px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.settings-section-title::before {
    content: '';
    width: 3px;
    height: 12px;
    background: #2196F3;
    border-radius: 2px;
}

.settings-option {
    margin: 10px 0;
    color: white;
}

.settings-option label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.speed-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.speed-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
}

.speed-btn:hover {
    background: rgba(33, 150, 243, 0.3);
}

.speed-btn.active {
    background: #2196F3 !important;
    border-color: #2196F3 !important;
    color: white !important;
}

.quality-presets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.quality-preset {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 6px;
    cursor: not-allowed;
    font-size: 10px;
    transition: all 0.2s ease;
    text-align: center;
}

.quality-preset.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.about-content {
    text-align: center;
    padding: 20px 0;
}

.creator-info {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2196F3;
}

.version-info {
    color: #888;
    font-size: 12px;
    margin-top: 12px;
    line-height: 1.5;
}

.quality-info {
    color: #888;
    font-size: 11px;
    margin-top: 4px;
    text-align: center;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-overlay {
    position: absolute;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(15, 15, 15, 0.98));
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 250;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border-radius: 12px 0 0 12px;
    transform: translateX(15px) scale(0.95);
    opacity: 0;
}

.playlist-overlay.show {
    right: 0;
    transform: translateX(0) scale(1);
    opacity: 1;
}

.playlist-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), transparent 30%);
    pointer-events: none;
    z-index: -1;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px 15px;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    flex-shrink: 0;
    border-radius: 12px 0 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: linear-gradient(90deg, #2196F3, transparent);
}

.playlist-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.playlist-header h3::before {
    content: '🎬';
    font-size: 20px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    background: none;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: unset;
}

.playlist-close {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    position: relative;
    overflow: hidden;
}

.playlist-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.playlist-close:hover::before {
    left: 100%;
}

.playlist-close:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.6);
}

.playlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    min-height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(20px);
    opacity: 0;
    animation: slideInItem 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInItem {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.playlist-item:nth-child(1) { animation-delay: 0.1s; }
.playlist-item:nth-child(2) { animation-delay: 0.15s; }
.playlist-item:nth-child(3) { animation-delay: 0.2s; }
.playlist-item:nth-child(4) { animation-delay: 0.25s; }
.playlist-item:nth-child(5) { animation-delay: 0.3s; }
.playlist-item:nth-child(6) { animation-delay: 0.35s; }
.playlist-item:nth-child(7) { animation-delay: 0.4s; }
.playlist-item:nth-child(8) { animation-delay: 0.45s; }

.playlist-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.15), transparent);
    transition: left 0.6s ease;
}

.playlist-item:hover::before {
    left: 100%;
}

.playlist-item:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.3);
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.playlist-item.active {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
    transform: translateX(6px);
}

.playlist-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 3px;
    background: linear-gradient(180deg, #2196F3, #21CBF3);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 6px rgba(33, 150, 243, 0.7);
}

.playlist-item-number {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.playlist-item-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.playlist-item:hover .playlist-item-number::before {
    left: 100%;
}

.playlist-item.active .playlist-item-number {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.5);
    transform: scale(1.1);
}

.playlist-item:hover .playlist-item-number {
    transform: scale(1.05);
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 30px;
}

.playlist-item-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.playlist-item.active .playlist-item-title {
    color: #2196F3;
    font-weight: 700;
}

.playlist-item-duration {
    font-size: 11px;
    color: #888;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 8px;
    align-self: flex-start;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-item.active .playlist-item-duration {
    background: rgba(33, 150, 243, 0.25);
    color: #2196F3;
    border-color: rgba(33, 150, 243, 0.3);
}

.playlist-item-play {
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px;
    border-radius: 8px;
    margin-left: 8px;
    flex-shrink: 0;
    transform: translateX(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.playlist-item:hover .playlist-item-play {
    opacity: 1;
    transform: translateX(0) scale(1.05);
}

.playlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #888;
    text-align: center;
    gap: 15px;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.playlist-empty-icon {
    font-size: 48px;
    opacity: 0.5;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.playlist-empty-text {
    font-size: 12px;
    line-height: 1.6;
    max-width: 200px;
}

.controls-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.custom-player.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    z-index: 9999;
}

.custom-player.fullscreen #mainVideo {
    height: 100vh;
    object-fit: contain;
    border-radius: 0;
}

.control-btn[data-icon="prev"]::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/></svg>') no-repeat center;
}

.control-btn[data-icon="play"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg>') no-repeat center;
}

.control-btn[data-icon="pause"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>') no-repeat center;
}

.control-btn[data-icon="next"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/></svg>') no-repeat center;
}

.control-btn[data-icon="volume"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>') no-repeat center;
}

.control-btn[data-icon="muted"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/></svg>') no-repeat center;
}

.control-btn[data-icon="playlist"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 10h12v2H4zm0-4h12v2H4zm0 8h8v2H4zm10 0v6l5-3z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 10h12v2H4zm0-4h12v2H4zm0 8h8v2H4zm10 0v6l5-3z"/></svg>') no-repeat center;
}

.control-btn[data-icon="settings"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"/></svg>') no-repeat center;
}

.control-btn[data-icon="pip"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"/></svg>') no-repeat center;
}

.control-btn[data-icon="fullscreen"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>') no-repeat center;
}

.control-btn[data-icon="fullscreen-exit"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>') no-repeat center;
}

.control-btn {
    font-size: 0;
    position: relative;
}

.control-btn::before {
    font-size: 12px;
}

.settings-menu-item-icon {
    font-size: 0;
    margin-right: 10px;
    width: 16px;
    height: 16px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.settings-menu-item-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask: no-repeat center;
    -webkit-mask: no-repeat center;
}

.settings-menu-item-icon[data-icon="playback"]::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM10 16.5v-9l6 4.5-6 4.5z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM10 16.5v-9l6 4.5-6 4.5z"/></svg>');
}

.settings-menu-item-icon[data-icon="audio"]::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/></svg>');
}

.settings-menu-item-icon[data-icon="download"]::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>');
}

.settings-menu-item-icon[data-icon="about"]::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
}

#app * {
    box-sizing: border-box;
}

#app a {
    color: white;
    border: none;
    background-image: none;
    text-decoration: none;
}

#app a:hover {
    color: #2196F3;
    border: none;
    background-image: none;
    transform: none;
}

#app button {
    color: white;
    width: auto;
    height: auto;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#app button:hover {
    color: white;
    border: none;
    background: rgba(33, 150, 243, 0.3);
    transform: scale(1.08);
}

#app .custom-player {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#app .control-btn {
    min-width: 36px;
    height: 36px;
    padding: 8px 10px;
}

.player-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

#newPlayer {
    display: none;
}

#newPlayer.active {
    display: block;
}

#oldPlayer {
    display: none;
}

#oldPlayer.active {
    display: block;
}

#app .Download {
    margin-top: 30px;
}

#oldPlayer.active {
    margin-bottom: 0;
}

#newPlayer.active {
    margin-bottom: 40px;
}

.custom-player {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#mainVideo {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.playlist-items::-webkit-scrollbar {
    width: 4px;
}

.playlist-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.playlist-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.playlist-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.control-btn:focus-visible, #volumeSlider:focus-visible {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

.quality-selector {
    display: none;
}

.control-btn, #volumeSlider, .timeline, .timeline-thumb, .settings-menu, .playlist-overlay {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.control-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
}

#autoPlayNextBtn {
    transition: all 0.3s ease;
}

#autoPlayNextBtn.active {
    background: rgba(33, 150, 243, 0.3);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.audio-replacement-settings {
    display: block;
}

.settings-menu.show ~ .controls-overlay {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.settings-menu.show ~ .controls-overlay.hidden {
    opacity: 1;
    pointer-events: all;
}

.control-btn[data-icon="screenshot"]::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.4 10.5h4.2c.8 0 1.4.6 1.4 1.4v4.2c0 .8-.6 1.4-1.4 1.4H9.4c-.8 0-1.4-.6-1.4-1.4v-4.2c0-.8.6-1.4 1.4-1.4zM12 7.5c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3zm7-3h-1.2l-.7-1.3c-.2-.3-.5-.5-.9-.5H8.8c-.4 0-.7.2-.9.5L7.2 4.5H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-12c0-1.1-.9-2-2-2zm0 14H6v-12h2.2c.4 0 .7-.2.9-.5l.7-1.3h4.4l.7 1.3c.2.3.5.5.9.5H18v12z"/></svg>') no-repeat center;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.4 10.5h4.2c.8 0 1.4.6 1.4 1.4v4.2c0 .8-.6 1.4-1.4 1.4H9.4c-.8 0-1.4-.6-1.4-1.4v-4.2c0-.8.6-1.4 1.4-1.4zM12 7.5c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3zm7-3h-1.2l-.7-1.3c-.2-.3-.5-.5-.9-.5H8.8c-.4 0-.7.2-.9.5L7.2 4.5H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-12c0-1.1-.9-2-2-2zm0 14H6v-12h2.2c.4 0 .7-.2.9-.5l.7-1.3h4.4l.7 1.3c.2.3.5.5.9.5H18v12z"/></svg>') no-repeat center;
}

.audio-download-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.audio-download-menu.show {
    opacity: 1;
    pointer-events: all;
}

.audio-download-menu-content {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.audio-download-menu-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.audio-download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.audio-download-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.audio-download-option:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.audio-download-option-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.audio-download-option-text {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.audio-download-menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.audio-download-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.report-form {
    display: flex;
    flex-direction: column;
    max-width: 300px;
    margin: 0 auto;
}

.report-form label {
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
}

.report-form input,
.report-form select,
.report-form textarea {
    margin-top: 5px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
}

.report-form textarea {
    height: 100px;
    resize: vertical;
}

.report-form button {
    margin-top: 15px;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.report-form button:hover {
    background-color: #0056b3;
}

.settings-menu-item-icon[data-icon="report"]::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
}

.form-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    z-index: 10000;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.form-notification.show {
    display: block;
    animation: fadeInOut 3s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

.report-form input[type="file"] {
    margin-top: 5px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.report-form input[type="file"]:hover {
    border-color: #2196F3;
}

.share-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.share-menu.show {
    opacity: 1;
    pointer-events: all;
}

.share-menu-content {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 320px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.share-menu-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.share-option-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.share-option-btn:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.share-option-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.share-option-text {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.share-menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.share-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.paste-area {
    border: 2px dashed #4a5568;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e0;
    font-size: 14px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.paste-area:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.paste-area:hover {
    border-color: #4299e1;
    background: rgba(66, 153, 225, 0.05);
}

#pastePreview {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #4a5568;
    text-align: center;
}

#pastePreviewImg {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    display: block;
    margin: 0 auto 10px;
    border: 1px solid #718096;
}

#removePastedImage {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

#removePastedImage:hover {
    background: #c53030;
}

@media (max-width: 768px) {
    .custom-player {
        border-radius: 8px;
    }
    
    #mainVideo {
        border-radius: 8px;
    }
    
    .controls-overlay {
        padding: 8px 5px 5px;
        flex-direction: column;
    }
    
    .timeline-container {
        order: 1;
        padding: 8px 0;
    }
    
    .main-controls {
        order: 2;
        margin-bottom: 5px;
        flex-wrap: nowrap;
        gap: 4px;
        min-height: 30px;
    }
    
    .left-controls, .right-controls {
        gap: 3px;
        flex-wrap: nowrap;
        overflow: visible;
    }
    
    .left-controls {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .right-controls {
        flex: 0 0 auto;
    }
    
    .control-btn {
        padding: 4px 5px;
        font-size: 10px;
        min-width: 28px;
        height: 28px;
        border-radius: 5px;
        flex-shrink: 0;
    }
    
    .volume-container {
        display: none;
    }
    
    #volumeSlider {
        display: none;
    }
    
    .time {
        font-size: 9px;
        min-width: 25px;
        margin: 0 2px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .left-controls .time:not(#currentTime):not(#duration) {
        margin: 0 1px;
        min-width: 5px;
    }
    
    .settings-menu {
        width: 180px;
        max-height: 220px;
        bottom: 45px;
        right: 5px;
        padding: 0;
        border-radius: 10px;
        font-size: 11px;
    }
    
    .settings-header {
        padding: 6px 8px;
        min-height: 36px;
        position: sticky;
        top: 0;
        background: rgba(20, 20, 20, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        z-index: 2;
    }
    
    .settings-back-btn {
        font-size: 14px;
        padding: 4px;
        margin-right: 6px;
        width: 24px;
        height: 24px;
        min-width: 24px;
        position: static;
        transform: none;
        display: none;
    }
    
    .settings-title {
        font-size: 11px;
        font-weight: 600;
        padding: 0 8px;
        text-align: left;
        margin-left: 2px;
    }
    
    .settings-content {
        padding: 8px;
        max-height: 150px;
        overflow-x: hidden;
    }
    
    .settings-main-menu {
        gap: 4px;
    }
    
    .settings-menu-item {
        padding: 6px;
        border-radius: 6px;
        font-size: 9px;
        min-height: 32px;
    }
    
    .settings-menu-item-icon {
        width: 12px;
        height: 12px;
        margin-right: 6px;
        font-size: 10px;
    }
    
    .settings-menu-item-text {
        font-size: 9px;
        font-weight: 500;
    }
    
    .settings-menu-item-arrow {
        font-size: 9px;
        opacity: 0.6;
    }
    
    .settings-page {
        font-size: 9px;
    }
    
    .settings-section {
        margin-bottom: 8px;
    }
    
    .settings-section-title {
        font-size: 10px;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    
    .speed-buttons {
        gap: 4px;
    }
    
    .speed-btn {
        font-size: 8px;
        padding: 4px 2px;
        min-height: 26px;
    }
    
    .quality-presets {
        gap: 4px;
    }
    
    .quality-preset {
        font-size: 8px;
        padding: 6px 4px;
    }
    
    .about-content {
        padding: 12px 0;
    }
    
    .creator-info {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .version-info {
        font-size: 9px;
        margin-top: 6px;
    }
    
    .quality-info {
        font-size: 8px;
        padding: 3px;
    }
    
    #reportErrorPage .settings-section {
        margin-bottom: 0;
        padding: 0;
        max-height: calc(100vh - 180px);
        overflow-y: auto;
    }
    
    .report-form {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .report-form label {
        font-size: 9px;
        margin-top: 6px;
        margin-bottom: 3px;
    }
    
    .report-form input,
    .report-form select,
    .report-form textarea {
        font-size: 9px;
        padding: 5px 7px;
        margin-top: 3px;
        margin-bottom: 6px;
        height: 28px;
        min-height: 28px;
    }
    
    .report-form textarea {
        height: 60px;
        min-height: 60px;
    }
    
    .report-form button[type="submit"] {
        padding: 6px 12px;
        font-size: 10px;
        margin-top: 10px;
        margin-bottom: 6px;
        min-height: 32px;
    }
    
    .paste-area {
        padding: 8px;
        font-size: 9px;
        min-height: 40px;
        margin: 6px 0;
    }
    
    #pastePreview {
        padding: 6px;
        margin: 6px 0;
    }
    
    #pastePreviewImg {
        max-height: 100px;
    }
    
    #removePastedImage {
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .playlist-overlay {
        width: 180px;
        right: -180px;
    }
    
    .timeline {
        height: 4px;
    }
    
    .timeline:hover {
        height: 5px;
    }
    
    .timeline.dragging {
        height: 6px;
    }
    
    .timeline-thumb {
        width: 12px;
        height: 12px;
    }
    
    .timeline::before {
        height: 20px;
    }
    
    .video-title {
        font-size: 8px;
        padding: 3px 6px;
        border-radius: 6px;
        top: 6px;
        left: 6px;
        max-width: calc(100% - 70px);
    }
    
    .share-btn {
        top: 6px;
        right: 6px;
        min-width: 26px;
        height: 26px;
        padding: 3px 4px;
        font-size: 8px;
    }
    
    .share-btn[data-icon="share"]::before {
        width: 8px;
        height: 8px;
    }
    
    .control-btn::before {
        width: 8px;
        height: 8px;
    }
    
    #app .control-btn {
        min-width: 26px;
        height: 26px;
        padding: 3px 4px;
        font-size: 8px;
    }
    
    #app .Download {
        margin-top: 15px;
    }
    
    #newPlayer.active {
        margin-bottom: 20px;
    }
    
    .notification {
        top: 12px;
        padding: 6px 10px;
        font-size: 10px;
        max-width: 85%;
    }
    
    .audio-download-menu-content {
        padding: 12px;
        max-width: 200px;
    }
    
    .audio-download-menu-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .audio-download-option {
        padding: 8px;
        gap: 8px;
        font-size: 9px;
        min-height: 40px;
    }
    
    .audio-download-option-icon {
        font-size: 14px;
    }
    
    .audio-download-option-text {
        font-size: 9px;
    }
    
    .audio-download-menu-close {
        padding: 4px;
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    
    .share-menu-content {
        padding: 12px;
        max-width: 200px;
    }
    
    .share-menu-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .share-option-btn {
        padding: 8px;
        gap: 8px;
        font-size: 9px;
        min-height: 40px;
    }
    
    .share-option-icon {
        font-size: 14px;
    }
    
    .share-option-text {
        font-size: 9px;
    }
    
    .share-menu-close {
        padding: 4px;
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    
    .retry-btn {
        padding: 5px 10px;
        font-size: 9px;
        min-height: 28px;
    }
    
    .loading {
        padding: 10px 14px;
        font-size: 9px;
    }
    
    .spinner {
        width: 20px;
        height: 20px;
    }
    
    .seek-indicator {
        padding: 5px 8px;
        font-size: 9px;
    }
    
    .error-message {
        padding: 12px;
        max-width: 200px;
        font-size: 9px;
    }
    
    .error-icon {
        font-size: 30px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .settings-menu {
        width: 150px;
        max-height: 180px;
        bottom: 35px;
    }
    
    .settings-content {
        padding: 6px;
        max-height: 120px;
    }
    
    .settings-menu-item {
        padding: 5px;
        min-height: 28px;
        font-size: 8px;
    }
    
    .settings-menu-item-icon {
        width: 10px;
        height: 10px;
        margin-right: 4px;
    }
    
    .settings-menu-item-text {
        font-size: 8px;
    }
    
    .speed-btn {
        font-size: 7px;
        padding: 3px 1px;
        min-height: 22px;
    }
    
    .report-form label {
        font-size: 8px;
    }
    
    .report-form input,
    .report-form select,
    .report-form textarea {
        font-size: 8px;
        padding: 4px 6px;
        height: 24px;
        min-height: 24px;
    }
    
    .report-form textarea {
        height: 50px;
        min-height: 50px;
    }
    
    .playlist-overlay {
        width: 150px;
        right: -150px;
    }
}

@media (max-width: 480px) {
    .settings-menu {
        width: 160px;
        max-height: 200px;
        bottom: 40px;
    }
    
    .settings-content {
        max-height: 140px;
    }
    
    .settings-menu-item {
        padding: 5px;
        font-size: 8px;
        min-height: 28px;
    }
    
    .speed-btn {
        font-size: 7px;
        padding: 3px 1px;
        min-height: 22px;
    }
    
    .report-form label {
        font-size: 8px;
    }
    
    .report-form input,
    .report-form select,
    .report-form textarea {
        font-size: 8px;
    }
    
    .paste-area {
        font-size: 8px;
        padding: 6px;
        min-height: 35px;
    }
    
    .playlist-overlay {
        width: 160px;
        right: -160px;
    }
    
    .control-btn {
        min-width: 22px;
        height: 22px;
        padding: 2px 3px;
        font-size: 7px;
    }
    
    .time {
        font-size: 7px;
        min-width: 20px;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .settings-menu {
        width: 140px;
        max-height: 180px;
        bottom: 35px;
    }
    
    .settings-content {
        max-height: 120px;
    }
    
    .settings-menu-item {
        padding: 4px;
        font-size: 7px;
        min-height: 24px;
    }
    
    .settings-menu-item-icon {
        width: 8px;
        height: 8px;
        margin-right: 3px;
    }
    
    .settings-menu-item-text {
        font-size: 7px;
    }
    
    .speed-btn {
        font-size: 6px;
        padding: 2px 1px;
        min-height: 20px;
    }
    
    .report-form label {
        font-size: 7px;
    }
    
    .report-form input,
    .report-form select,
    .report-form textarea {
        font-size: 7px;
        padding: 3px 5px;
        height: 22px;
        min-height: 22px;
    }
    
    .report-form textarea {
        height: 40px;
        min-height: 40px;
    }
    
    .paste-area {
        font-size: 7px;
        padding: 5px;
        min-height: 30px;
    }
}

@media (max-width: 360px) and (orientation: portrait) {
    .settings-menu {
        width: 130px;
        max-height: 160px;
        bottom: 30px;
        right: 5px;
    }
    
    .settings-content {
        max-height: 100px;
    }
    
    .settings-menu-item {
        padding: 3px;
        font-size: 6px;
        min-height: 22px;
    }
    
    .settings-menu-item-icon {
        width: 7px;
        height: 7px;
        margin-right: 2px;
    }
    
    .settings-menu-item-text {
        font-size: 6px;
    }
    
    .speed-btn {
        font-size: 5px;
        padding: 1px;
        min-height: 18px;
    }
    
    .playlist-overlay {
        width: 140px;
        right: -140px;
    }
}

@media (max-width: 640px) and (orientation: landscape) {
    .settings-menu {
        width: 130px;
        max-height: 160px;
        bottom: 30px;
    }
    
    .settings-content {
        max-height: 100px;
    }
    
    .settings-menu-item {
        padding: 3px;
        font-size: 6px;
        min-height: 22px;
    }
    
    .speed-btn {
        font-size: 5px;
        padding: 1px;
        min-height: 18px;
    }
    
    .playlist-overlay {
        width: 130px;
        right: -130px;
    }
}

#reportErrorPage .settings-section::-webkit-scrollbar {
    width: 3px;
}

#reportErrorPage .settings-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

#reportErrorPage .settings-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

#reportErrorPage .settings-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


.audio-replacement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.audio-replacement-item:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.3);
    transform: translateX(5px);
}

.audio-replacement-item .settings-menu-item-icon {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.audio-replacement-item .settings-menu-item-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.audio-replacement-item .settings-menu-item-arrow {
    display: none;
}

#app .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

#app .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#app .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

#app .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

#app input:checked + .slider {
    background-color: #2196F3;
}

#app input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

#app input:checked + .slider:before {
    transform: translateX(24px);
}

@media (max-width: 768px) {
    #app .switch {
        width: 40px;
        height: 22px;
    }
    
    #app .slider:before {
        height: 14px;
        width: 14px;
        left: 4px;
        bottom: 4px;
    }
    
    #app input:checked + .slider:before {
        transform: translateX(18px);
    }
    
    .audio-replacement-item {
        padding: 10px 12px;
    }
    
    .audio-replacement-item .settings-menu-item-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #app .switch {
        width: 36px;
        height: 20px;
    }
    
    #app .slider:before {
        height: 12px;
        width: 12px;
        left: 4px;
        bottom: 4px;
    }
    
    #app input:checked + .slider:before {
        transform: translateX(16px);
    }
    
    .audio-replacement-item {
        padding: 8px 10px;
    }
    
    .audio-replacement-item .settings-menu-item-text {
        font-size: 11px;
    }
}

.custom-player.fullscreen.video-ultrawide .controls-overlay {
    position: fixed !important;
    z-index: 100;
    transition: none;
}

.custom-player.fullscreen.video-ultrawide .video-title,
.custom-player.fullscreen.video-ultrawide .share-btn {
    position: fixed !important;
    z-index: 101;
}

.custom-player.fullscreen.video-ultrawide .controls-overlay.hidden,
.custom-player.fullscreen.video-ultrawide .video-title.hidden {
    opacity: 0;
    pointer-events: none;
}

.custom-player.fullscreen .notification {
    position: fixed !important;
    z-index: 10000;
}

@media (max-width: 768px) {
    .custom-player.fullscreen .controls-overlay {
        padding: 5px !important;
    }
    
    .custom-player.fullscreen .main-controls {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .custom-player.fullscreen .left-controls,
    .custom-player.fullscreen .right-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .custom-player.fullscreen .control-btn {
        min-width: 28px !important;
        height: 28px !important;
        padding: 3px !important;
    }
    
    .custom-player.fullscreen .video-title {
        font-size: 10px !important;
        padding: 3px 6px !important;
        max-width: 70% !important;
    }
}

.custom-player.fullscreen.video-ultrawide .controls-overlay,
.custom-player.fullscreen:not(.video-ultrawide) .controls-overlay {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.95)) !important;
    z-index: 100;
}

.custom-player.fullscreen.video-ultrawide .video-title,
.custom-player.fullscreen.video-ultrawide .share-btn,
.custom-player.fullscreen:not(.video-ultrawide) .video-title,
.custom-player.fullscreen:not(.video-ultrawide) .share-btn {
    position: fixed !important;
    z-index: 101;
}

.custom-player.fullscreen.video-ultrawide .controls-overlay.hidden,
.custom-player.fullscreen.video-ultrawide .video-title.hidden,
.custom-player.fullscreen:not(.video-ultrawide) .controls-overlay.hidden,
.custom-player.fullscreen:not(.video-ultrawide) .video-title.hidden {
    opacity: 0;
    pointer-events: none;
}

.custom-player.fullscreen .notification {
    position: fixed !important;
    z-index: 10000;
}

.skip-intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 30%, transparent 50%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    border-radius: 12px;
}

.skip-intro-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.skip-intro-content {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    padding: 20px 25px;
    text-align: center;
    max-width: 300px;
    width: 80%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.skip-intro-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.skip-intro-time {
    color: #2196F3;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    background: rgba(33, 150, 243, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.skip-intro-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.skip-intro-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.skip-intro-btn.skip-btn {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    border: 1px solid rgba(33, 150, 243, 0.5);
}

.skip-intro-btn.watch-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.skip-intro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.skip-intro-btn.skip-btn:hover {
    background: linear-gradient(135deg, #1976D2, #1E88E5);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.4);
}

.skip-intro-btn.watch-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.skip-intro-btn:active {
    transform: translateY(0);
}

.skip-intro-icon {
    font-size: 16px;
}

.custom-player.fullscreen .skip-intro-overlay {
    position: fixed;
    z-index: 90;
}

.skip-intro-overlay {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.skip-intro-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.skip-intro-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.skip-intro-btn.skip-btn {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
    border: 1px solid rgba(33, 150, 243, 0.5);
}

.skip-intro-btn.watch-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.skip-intro-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.skip-intro-btn.skip-btn:hover {
    background: linear-gradient(135deg, #1976D2, #1E88E5);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.skip-intro-btn.watch-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.skip-intro-btn:active {
    transform: translateY(0);
}

.skip-intro-icon {
    font-size: 14px;
}

.custom-player.fullscreen .skip-intro-overlay {
    position: fixed;
    z-index: 90;
    bottom: 80px;
}

.custom-player.fullscreen .skip-intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    #app {
        max-width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    #app .custom-player {
        border-radius: 10px;
    }

    #app #mainVideo {
        border-radius: 10px;
    }

    #app .controls-overlay {
        padding: 10px 8px 8px;
        border-radius: 0 0 10px 10px;
    }

    #app .timeline-container {
        padding: 11px 0 9px;
    }

    #app .main-controls {
        gap: 6px;
        min-height: 36px;
    }

    #app .left-controls,
    #app .right-controls {
        gap: 6px;
    }

    #app .control-btn {
        min-width: 34px;
        height: 34px;
        padding: 6px;
    }

    #app .time {
        font-size: 10px;
        min-width: 28px;
    }

    #app .volume-container:hover #volumeSlider {
        width: 52px;
    }

    #app .settings-menu {
        width: 86vw;
        max-width: 280px;
        right: 6px;
        bottom: 58px;
        max-height: 70vh;
    }

    #app .playlist-overlay {
        width: 86vw;
        max-width: 300px;
        right: -86vw;
    }

    #app .playlist-overlay.show {
        right: 0;
    }

    #app .video-title {
        font-size: 11px;
        padding: 5px 10px;
        max-width: calc(100% - 90px);
    }

    #app .share-btn {
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    #app {
        padding: 0 4px;
    }

    #app .controls-overlay {
        padding: 8px 6px 6px;
    }

    #app .control-btn {
        min-width: 30px;
        height: 30px;
        padding: 4px;
    }

    #app .time {
        font-size: 9px;
        min-width: 24px;
    }

    #app .left-controls .time:not(#currentTime):not(#duration) {
        margin: 0 1px;
    }

    #app .settings-menu {
        width: 92vw;
        max-width: 250px;
        bottom: 52px;
    }

    #app .playlist-overlay {
        width: 92vw;
        max-width: 250px;
        right: -92vw;
    }

    #app .timeline-preview-img {
        width: 92px;
        height: 52px;
    }
}

