/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #121212, #2d2d2d);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 헤더 스타일 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(45deg, #f06, #9f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}

button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    color: #f06;
}

/* 메인 콘텐츠 스타일 */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px;
    transition: all 0.3s ease;
}

.now-playing {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
    max-width: 800px;
}

.media-container {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    position: relative;
    transition: all 0.5s ease;
}

.media-container.video-mode {
    width: 80%;
    height: auto;
    aspect-ratio: 16/9;
    max-width: 800px;
}

.album-art {
    width: 100%;
    height: 100%;
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container {
    width: 100%;
    height: 100%;
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.track-info {
    text-align: center;
    width: 100%;
}

.track-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.track-artist {
    font-size: 16px;
    color: #aaa;
}

/* 플레이어 컨트롤 스타일 */
.player-controls {
    width: 100%;
    max-width: 800px;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #f06, #9f6);
    border-radius: 3px;
    width: 0%;
}

.time-info {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #aaa;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.control-buttons button.control-btn {
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.control-buttons button.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#play-btn {
    font-size: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f06, #9f6);
}

#shuffle-btn.active, #repeat-btn.active {
    color: #f06;
    background-color: rgba(255, 255, 255, 0.2);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.volume-control button {
    font-size: 18px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.volume-control button:hover {
    color: #f06;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

/* 사이드바 공통 스타일 */
.left-sidebar, .right-sidebar {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 300px;
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 20px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.left-sidebar {
    left: 0;
    transform: translateX(-100%);
}

.right-sidebar {
    right: 0;
    transform: translateX(100%);
}

.left-sidebar.active, .right-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
}

/* 사이드바 탭 스타일 */
.sidebar-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #fff;
    border-bottom: 2px solid #f06;
}

.tab-content {
    display: block;
}

/* 폴더 트리 스타일 */
.folder-tree {
    margin-top: 20px;
}

.tree {
    list-style: none;
}

.tree li {
    margin: 10px 0;
}

.tree ul {
    list-style: none;
    margin-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}


.tree li.open > ul {
    max-height: 100000px;
}

.folder, .file {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.folder:hover, .file:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.folder i, .file i {
    margin-right: 10px;
}

.folder i {
    color: #f8d775;
}

.file i.fa-music {
    color: #75b9f8;
}

.file i.fa-film {
    color: #f875b9;
}

.file.playing {
    background-color: rgba(255, 102, 0, 0.2);
    position: relative;
}

.file.playing::after {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    color: #f06;
    font-size: 12px;
}

/* 즐겨찾기 스타일 */
.favorites-list ul {
    list-style: none;
}

.favorites-list li {
    margin: 10px 0;
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.favorite-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.favorite-item i {
    margin-right: 10px;
}

.favorite-item .favorite-info {
    flex: 1;
}

.favorite-item .favorite-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.favorite-item .favorite-artist {
    font-size: 12px;
    color: #aaa;
}

.favorite-item .remove-favorite {
    color: #aaa;
    font-size: 16px;
    transition: color 0.3s ease;
}

.favorite-item .remove-favorite:hover {
    color: #f06;
}

/* 메뉴 아이템 스타일 */
.menu-items ul {
    list-style: none;
}

.menu-items li {
    margin: 15px 0;
}

.menu-items a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-items a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.menu-items i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* 오버레이 스타일 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 푸터 스타일 */
footer {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(45deg, #f06, #9f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 12px;
    color: #aaa;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #aaa;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .media-container {
        width: 200px;
        height: 200px;
    }
    
    .media-container.video-mode {
        width: 100%;
    }
    
    .left-sidebar, .right-sidebar {
        width: 250px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links, .social-links {
        justify-content: center;
    }
}


/* 더 작은 화면에 대한 추가 반응형 스타일 */
@media (max-width: 480px) {
    .control-buttons {
        gap: 8px;
    }
    
    .control-buttons button.control-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        min-width: 32px; /* 최소 너비 설정 */
        min-height: 32px; /* 최소 높이 설정 */
    }
    
    #play-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
        min-width: 44px; /* 최소 너비 설정 */
        min-height: 44px; /* 최소 높이 설정 */
    }
    
    .volume-control {
        margin-left: 5px;
    }
    
    input[type="range"] {
        width: 50px;
    }
}

/* 로그인 페이지 스타일 */
.login-page {
    background: linear-gradient(135deg, #121212, #2d2d2d);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.login-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(45deg, #f06, #9f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.5);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #f06;
}

.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #f06, #9f6);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: #aaa;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #f06;
    transform: translateY(-3px);
}

.signup-link {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

.signup-link a {
    color: #f06;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #9f6;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 설정 페이지 스타일 */
.config-page {
    background: linear-gradient(135deg, #121212, #2d2d2d);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.config-main {
    flex: 1;
    padding: 30px 20px;
}

.config-container {
    max-width: 800px;
    margin: 0 auto;
}

.config-section {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.config-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.config-section h2 i {
    margin-right: 10px;
    color: #f06;
}

.config-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ddd;
}

.music-library-upload {
    margin-bottom: 30px;
}

.music-library-upload p {
    margin-bottom: 15px;
    color: #aaa;
}

.music-library-upload code {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #f06;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #f06;
    background-color: rgba(255, 102, 0, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.upload-area.dragover {
    border-color: #f06;
    background-color: rgba(255, 102, 0, 0.1);
}

.upload-status {
    margin-top: 20px;
}

.progress-bar-container {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar-upload {
    height: 100%;
    background: linear-gradient(to right, #f06, #9f6);
    width: 0%;
    transition: width 0.3s ease;
}

.library-stats {
    margin-top: 20px;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.stat-item i {
    font-size: 24px;
    margin-right: 10px;
    color: #f06;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
}

.settings-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
}

.settings-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.5);
}

.save-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #f06, #9f6);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

@media (max-width: 600px) {
    .stats-container {
        flex-direction: column;
    }
    
    .stat-item {
        min-width: auto;
    }
}

/* config 페이지 헤더 메뉴 스타일 */
header .left-menu a,
header .right-menu a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

header .left-menu a:hover,
header .right-menu a:hover {
    background-color: rgba(255, 102, 0, 0.2);
    transform: translateY(-2px);
}

header .left-menu i {
    margin-right: 0;
}

/* 컨트롤러 전체 감추기 */

video::-webkit-media-controls { display:none !important; }

.track-artist {display:none}

/*자막 css */
::cue { 
  background-color: rgba(0, 0, 0, 0); 
  color: white; 
  font-size: 1.2em; 
  text-shadow: 
    -1px -1px 0 black, 
    1px -1px 0 black, 
    -1px 1px 0 black, 
    1px 1px 0 black; 
}

/* 업로드 옵션 스타일 */
.upload-options {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.upload-options p {
    margin-bottom: 10px;
    color: #ddd;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.radio-group label:hover {
    color: #fff;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
    accent-color: #f06;
}