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

/* body {
    font-family: 'Pretendard', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
} */

body {
    font-family: 'Pretendard', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 추가: 수직 중앙 정렬 */
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 80px;
    position: relative;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #ff0000, #00aeff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.tab {
    flex: 1;
    min-width: calc(33.333% - 6px); /* 수정: 3열 레이아웃으로 변경 */
    padding: 0.8rem 0.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

/* 미디어 쿼리 추가 */
@media (min-width: 768px) {
    .tab {
        min-width: auto;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .tab {
        min-width: calc(50% - 4px); /* 수정: 2열 레이아웃으로 변경 */
    }
}

@media (max-width: 360px) {
    .tab {
        min-width: 100%; /* 매우 작은 화면에서는 1열로 표시 */
    }
}

.tab.youtube {
    background-color: #ff000015;
    color: #ff0000;
}

.tab.tiktok {
    background-color: #00000015;
    color: #000000;
}

.tab.instagram {
    background-color: #e1306c15;
    color: #e1306c;
}

.tab.vimeo {
    background-color: #1ab7ea15;
    color: #1ab7ea;
}

.tab.active {
    color: white;
}

.tab.youtube.active {
    background-color: #ff0000;
}

.tab.tiktok.active {
    background-color: #000000;
}

.tab.instagram.active {
    background-color: #e1306c;
}

.tab.vimeo.active {
    background-color: #1ab7ea;
}

.tab.pinterest {
    background-color: #bd081c15;  /* 더 밝은 배경색 */
    color: #bd081c;  /* 기존 Pinterest 브랜드 레드 */
}

/* 활성 상태 */
.tab.pinterest.active {
    background-color: #bd081c;  /* 기존 Pinterest 브랜드 레드 */
    color: white;  /* 활성화됐을 때 텍스트 색상 흰색으로 */
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

input[type="url"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="url"]:focus {
    outline: none;
    border-color: var(--active-color, #ff0000);
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* background: linear-gradient(45deg, #3a7bd5, #00d2ff); */
    background-color: var(--active-color, #ff0000);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* 버튼 높이 고정 */
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

button[type="submit"] .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button[type="submit"] .btn-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: submitSpin 1s linear infinite;
    flex-shrink: 0; /* 크기 고정 */
}

@keyframes submitSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

button[type="submit"]:hover {
    opacity: 0.9;
}

.result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8f8f8;
    display: none;
}

.loading {
    text-align: center;
    display: none;
}

.loading::after {
    content: "⌛";
    animation: loading 1s infinite;
}

@keyframes loading {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

.platform-icon {
    width: 20px;
    height: 20px;
}

/* 결과 카드 스타일 */
.video-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.thumbnail {
    width: 100%;
    min-width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.thumbnail img {
    position: absolute; /* 절대 위치로 변경 */
    width: 100%;
    height: 100%;
    object-fit: contain; /* cover에서 contain으로 변경 */
    background-color: #f0f0f0; /* 여백이 생길 경우의 배경색 */
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .video-info {
        flex-direction: column;
    }

    .thumbnail {
        width: 100%;
        height: 200px;
    }
}

.video-details {
    flex: 1;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.download-btn, .link-open-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    min-height: 52px;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-btn::before, .link-open-btn::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;
}

.download-btn:hover::before, .link-open-btn:hover::before {
    left: 100%;
}

.download-btn.quality-high {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-btn.quality-high:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.download-btn.quality-medium, .link-open-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.download-btn.quality-medium:hover, .link-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(240, 147, 251, 0.3);
}

.download-btn.quality-low {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.download-btn.quality-low:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 172, 254, 0.3);
}

.download-btn:active, .link-open-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.download-btn:disabled, .link-open-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-btn:disabled:hover, .link-open-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 다운로드 버튼 내부 아이콘 스타일 */
.download-btn svg, .link-open-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.download-btn:hover svg, .link-open-btn:hover svg {
    transform: scale(1.1);
}

/* 다운로드 버튼 텍스트 스타일 */
.download-btn, .link-open-btn {
    line-height: 1.4;
    text-align: center;
}

/* 로딩 상태 스타일 개선 */
.download-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: opacity 0.3s ease;
}

.download-btn .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    animation: spin 1s infinite linear;
}

.download-btn.loading .btn-content {
    opacity: 0.5;
}

.download-btn.loading .btn-loading {
    opacity: 1;
    visibility: visible;
}

/* 버튼 비활성화 스타일 */
.download-btn.loading {
    pointer-events: none;
    cursor: not-allowed;
}

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

/* 반응형 디자인 개선 */
@media (max-width: 768px) {
    .download-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .download-btn, .link-open-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.85rem;
        min-height: 48px;
        border-radius: 10px;
    }
    
    .download-btn svg, .link-open-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 600px) {
    .video-info {
        flex-direction: column;
    }

    .thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* 다운로드 옵션 그룹 스타일 개선 */
.download-options-group {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.download-options-group .download-options {
    margin-top: 0;
}

.download-options-group .download-btn {
    width: 100%;
    justify-content: center;
}

.download-options-group .link-open-btn {
    width: 100%;
    margin-top: 0.75rem;
    justify-content: center;
}

.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    background-color: #f5f5f5;
}

/* .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
} */

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.divider {
    display: flex;          /* flex로 변경 */
    align-items: center;    /* 세로 중앙 정렬 */
    font-size: 1em;        /* 폰트 크기 조정 */
    color: #ccc;
    height: 20px;          /* 높이 명시적 지정 */
    margin: 0 8px;
    line-height: 1;
}

.site-footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #333;
}

.divider {
    color: #ccc;
}

.update-link {
    color: #0066cc !important;
}

.update-link:hover {
    text-decoration: underline;
}

.error-message {
    display: none;  /* 초기에는 숨김 */
    color: #ff4444;
    text-align: center;
    padding: 10px;
    margin: 10px 0;
}



.time-range-selector {
    margin: 15px 0;
}

.time-inputs {
    display: flex;
    gap: 15px;
}

.time-input-group {
    flex: 1;
}

.time-input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
}

.time-input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.time-input-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.time-input-group input.error {
    border-color: #dc3545;
}

.time-input-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}

.time-input-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Flatpickr 커스텀 스타일 제거 (슬라이더로 대체됨) */
/*
.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
    background: #f0f0f0;
}

.flatpickr-time .numInputWrapper:first-child,
.flatpickr-time .flatpickr-time-separator:first-of-type {
    display: none !important;
}

.flatpickr-time .numInputWrapper {
    flex: 1;
    width: 50%;
}
*/

.divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 20px 0;
    opacity: 0.8;
}

/* 시간 슬라이더 스타일 - compact한 디자인 */
.time-slider-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e3f2fd 100%);
    border-radius: 16px;
    padding: 18px;
    margin: 15px 0;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.time-slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.9) 0%, 
        rgba(255,255,255,0.6) 50%, 
        rgba(255,255,255,0.3) 100%);
    pointer-events: none;
    border-radius: 15px;
}

.time-slider-container:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.time-display {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.time-display-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.time-display-item label {
    display: block;
    font-size: 0.65rem;
    color: #6c757d;
    margin-bottom: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.time-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 5px 8px;
    border-radius: 6px;
    min-width: 50px;
    display: inline-block;
    border: 1px solid #e9ecef;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.time-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.time-value:hover {
    border-color: var(--active-color, #ff0000);
    transform: translateY(-1px);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: var(--active-color, #ff0000);
}

.time-value:hover::before {
    left: 100%;
}

.time-controls {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 3px;
}

.time-reset-btn {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    min-width: 20px;
    height: 20px;
}

.time-reset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transition: left 0.5s ease;
}

.time-reset-btn:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.time-reset-btn:hover::before {
    left: 100%;
}

.time-reset-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.time-reset-btn svg {
    width: 9px;
    height: 9px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.time-reset-btn:hover svg {
    transform: rotate(180deg);
    opacity: 0.9;
}

/* 슬라이더 활성 상태 스타일 */
.range-slider__range:focus {
    outline: none;
}

.range-slider__range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

.range-slider__range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

/* 슬라이더 비활성화 상태 */
.range-slider__range:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.range-slider__range:disabled::-webkit-slider-thumb {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none !important;
}

.range-slider__range:disabled::-moz-range-thumb {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none !important;
}

.time-reset-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.time-reset-btn:disabled:hover {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e9ecef;
    transform: none !important;
    box-shadow: none;
}

/* 슬라이더 애니메이션 효과 */
@keyframes sliderPulse {
    0% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

.range-slider__range:active::-webkit-slider-thumb {
    animation: sliderPulse 1s ease-in-out infinite;
}

.range-slider__range:active::-moz-range-thumb {
    animation: sliderPulse 1s ease-in-out infinite;
}

/* 슬라이더 컨테이너 호버 효과 */
.time-slider-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* 반응형 디자인 */
@media (max-width: 600px) {
    .time-slider-container {
        padding: 15px;
        margin: 12px 0;
        border-radius: 12px;
    }
    
    .time-display {
        margin-bottom: 12px;
        gap: 8px;
    }
    
    .time-display-item {
        text-align: center;
    }
    
    .time-value {
        min-width: 45px;
        font-size: 0.8rem;
        padding: 4px 6px;
    }
    
    .time-reset-btn {
        padding: 3px 5px;
        font-size: 0.55rem;
        min-width: 18px;
        height: 18px;
    }
    
    .time-reset-btn svg {
        width: 8px;
        height: 8px;
    }
    
    .slider-container {
        margin: 15px 0;
        height: 35px;
    }
    
    .range-slider__range::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
        border: 2px solid white;
    }
    
    .range-slider__range::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border: 2px solid white;
    }
}

.slider-container {
    position: relative;
    margin: 18px 0;
    height: 40px;
    z-index: 1;
}

.range-slider {
    position: relative;
    width: 100%;
    height: 6px;
}

.range-slider__range {
    position: absolute;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: none;
    outline: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--active-color, #ff0000), #ff6b6b);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    pointer-events: auto;
    transition: all 0.3s ease;
    position: relative;
}

.range-slider__range::-webkit-slider-thumb::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 107, 107, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.range-slider__range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.range-slider__range::-webkit-slider-thumb:hover::before {
    opacity: 1;
}

.range-slider__range::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.range-slider__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--active-color, #ff0000), #ff6b6b);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    pointer-events: auto;
    transition: all 0.3s ease;
}

.range-slider__range::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.range-slider__range::-webkit-slider-track {
    background: transparent;
    border: none;
}

.range-slider__range::-moz-range-track {
    background: transparent;
    border: none;
}

.slider-track {
    position: absolute;
    top: 17px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 3px;
    z-index: -1;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(255, 255, 255, 0.8);
}

.slider-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--range-start, 0%);
    width: calc(var(--range-end, 100%) - var(--range-start, 0%));
    height: 100%;
    background: linear-gradient(90deg, var(--active-color, #ff0000), #ff6b6b);
    border-radius: 3px;
    opacity: 0.8;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* 선택된 범위 표시 - 더 강조된 스타일 */
.slider-track::after {
    content: '';
    position: absolute;
    top: -1px;
    left: var(--range-start, 0%);
    width: calc(var(--range-end, 100%) - var(--range-start, 0%));
    height: calc(100% + 2px);
    background: linear-gradient(90deg, 
        rgba(var(--active-color, 255, 0, 0), 0.2) 0%, 
        rgba(var(--active-color, 255, 0, 0), 0.4) 50%, 
        rgba(var(--active-color, 255, 0, 0), 0.2) 100%);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 
        0 0 6px rgba(var(--active-color, 255, 0, 0), 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.slider-container:hover .slider-track::after,
.slider-track.range-selected::after {
    opacity: 1;
}

/* 선택된 범위에 대한 추가 강조 효과 */
.range-slider__range:focus + .slider-track::after,
.range-slider__range:active + .slider-track::after,
.slider-track.range-selected.range-active::after {
    opacity: 1;
    background: linear-gradient(90deg, 
        rgba(var(--active-color, 255, 0, 0), 0.3) 0%, 
        rgba(var(--active-color, 255, 0, 0), 0.6) 50%, 
        rgba(var(--active-color, 255, 0, 0), 0.3) 100%);
    box-shadow: 
        0 0 8px rgba(var(--active-color, 255, 0, 0), 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.7);
}