/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    padding-top: 100px; /* 헤더 높이만큼 상단 패딩 추가 */
}

.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Styles - VoiceAdmin 스타일 */
.sidebar {
    width: 400px;
    background: #ffffff;
    color: #333;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-right: 1px solid #e9ecef;
}


.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    min-height: 120px;
    position: relative;
    z-index: 10;
}

.logo i {
    margin-right: 0.75rem;
    color: #007bff;
}

.logo-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo a {
    position: relative;
    z-index: 11;
    display: block;
    width: 100%;
    height: 100%;
}

.logo a:hover .logo-image {
    transform: scale(1.05);
    opacity: 0.8;
    cursor: pointer;
}

/* 통합 검색창 스타일 */
.search-section {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
    width: 100%;
}

/* 캘린더 링크 스타일 */
.calendar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 8px 0;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.calendar-link:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.calendar-link i {
    font-size: 1.1rem;
}

.search-container {
    position: relative;
    width: 100%;
    margin: 0;
}

/* 모바일 컨트롤 버튼들 */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}


.mobile-filter-toggle {
    display: none;
    background: #4F46E5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.mobile-filter-toggle:hover {
    background: #4338CA;
}

.mobile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1200px) {
    .mobile-filter-toggle {
        display: flex !important;
        align-items: center;
        gap: 5px;
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:last-child {
    transform: rotate(-45deg);
}


/* 아이패드 프로 크기 (1023px 이상)에서 특별한 헤더 레이아웃 */
@media (min-width: 1023px) and (max-width: 1366px) {
    .ipad-header-layout {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 20px;
    }
    
    .desktop-header-layout {
        display: none !important;
    }
    
    .mobile-controls {
        display: none !important;
    }
    
    .ipad-sidebar-toggle {
        display: flex !important;
        align-items: center;
        gap: 2px;
        padding: 12px 20px;
        background: #3b82f6;
        color: white;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    
    .ipad-sidebar-toggle:hover {
        background: #2563eb;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }
    
    .ipad-header-logo {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .ipad-header-logo img {
        height: 60px;
        max-width: 200px;
        object-fit: contain;
    }
    
    .ipad-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 50px;
        height: 50px;
        background: #1f2937;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        padding: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(31, 41, 55, 0.3);
    }
    
    .ipad-menu-toggle:hover {
        background: #374151;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(31, 41, 55, 0.4);
    }
    
    .ipad-menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .ipad-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .ipad-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .ipad-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .main-header {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        padding: 15px 0 !important;
    }
    
    .header-right {
        position: fixed;
        top: 0;
        right: -350px;
        width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        background: #ef4444;
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-size: 14px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
        z-index: 1001;
    }
    
    .mobile-menu-close:hover {
        background: #dc2626;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    
    .header-right.mobile-open {
        right: 0;
    }
    
    .header-menu {
        flex-direction: column;
        width: 100%;
        padding: 50px 15px 15px 15px;
        gap: 1px;
        margin: 0;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    .header-menu .menu-item,
    .header-menu .action-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 18px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 2px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .header-menu .menu-item:hover,
    .header-menu .action-btn:hover {
        background: #3b82f6;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px 20px 20px;
        gap: 2px;
    }
    
    .header-actions .action-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 18px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 2px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .header-actions .action-btn:hover {
        background: #10b981;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    
    .auth-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0 20px 20px 20px;
    }
    
    .auth-buttons .auth-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
        border-radius: 10px;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 2px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .auth-buttons .login-btn:hover {
        background: #3b82f6;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    .auth-buttons .register-btn:hover {
        background: #10b981;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    
    .user-dropdown {
        width: 100%;
        padding: 0 20px 20px 20px;
    }
    
    .user-menu-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 18px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 2px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .user-menu-btn:hover {
        background: #8b5cf6;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    }
    
    .user-dropdown-menu {
        position: static !important;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        margin-top: 8px;
        background: white;
        overflow: hidden;
    }
    
    .user-dropdown-menu .dropdown-item {
        padding: 12px 18px;
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
    }
    
    .user-dropdown-menu .dropdown-item:hover {
        background: #f8fafc;
        transform: translateX(4px);
    }
    
    .user-dropdown-menu .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .mobile-contact-info {
        width: 100%;
        padding: 0 20px 20px 20px;
        margin-top: 10px;
        border-top: 1px solid #e2e8f0;
        padding-top: 15px;
    }
    
    .contact-section-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 12px;
    }
    
    .contact-section-title i {
        color: #3b82f6;
        font-size: 18px;
    }
    
    .mobile-contact-info .contact-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        margin-bottom: 8px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-size: 14px;
        color: #374151;
    }
    
    .mobile-contact-info .contact-item:hover {
        background: #e0f2fe;
        border-color: #3b82f6;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    }
    
    .mobile-contact-info .contact-item i {
        color: #3b82f6;
        font-size: 16px;
        width: 20px;
        text-align: center;
    }
    
    .mobile-contact-info .contact-item span {
        font-weight: 500;
    }
}

/* 1600px 이하에서 header-contact 숨김 */
@media (max-width: 1600px) {
    .header-contact {
        display: none !important;
    }
}


/* 1500px 이상에서 헤더 통일 */
@media (min-width: 1500px) {
    .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1000 !important;
        background: white !important;
        padding: 1rem 1rem !important;
        border-bottom: 1px solid #e2e8f0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 1600px !important;
    }
}

/* 1200px 이하에서 사이드바 기본 숨김, 토글 시에만 슬라이드 인 */
@media (max-width: 1200px) {
    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh;
        width: 400px;
        transform: translateX(-100%); /* 기본적으로 숨김 */
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0); /* 토글 시에만 보임 */
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* 반응형 디자인 - 1023px 이하에서도 iPad 헤더 사용 */
@media (max-width: 1023px) {
    .ipad-header-layout {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 20px;
    }
    
    .desktop-header-layout {
        display: none !important;
    }
    
    .mobile-controls {
        display: none !important;
    }
    
    /* 1023px 이하에서 iPad 헤더 스타일 적용 */
    .ipad-sidebar-toggle {
        display: flex !important;
        align-items: center;
        gap: 2px;
        padding: 12px 20px;
        background: #3b82f6;
        color: white;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    
    .ipad-sidebar-toggle:hover {
        background: #2563eb;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }
    
    .ipad-header-logo {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .ipad-header-logo img {
        height: 60px;
        max-width: 200px;
        object-fit: contain;
    }
    
    .ipad-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 40px;
        background: #1f2937;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        padding: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(31, 41, 55, 0.3);
    }
    
    .ipad-menu-toggle:hover {
        background: #374151;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(31, 41, 55, 0.4);
    }
    
    .ipad-menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .ipad-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .ipad-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .ipad-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .main-header {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        padding: 10px 15px !important;
    }
    
    /* 768px 이하에서 헤더 위 패딩 제거 */
    body {
        padding-top: 0 !important;
    }
    
    /* 768px 이하에서 사이드바에 닫기 버튼 추가 */
    .sidebar .sidebar-close-btn {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 36px !important;
        height: 36px !important;
        background: #6b7280 !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        font-size: 18px !important;
        font-weight: 500 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1001 !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    .sidebar .sidebar-close-btn:hover {
        background: #4b5563 !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    }
    
    .sidebar .sidebar-close-btn:active {
        transform: scale(0.95) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    }
    
    .sidebar .sidebar-close-btn::before {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 2px !important;
        height: 16px !important;
        background: white !important;
        transform: translate(-50%, -50%) rotate(45deg) !important;
        border-radius: 1px !important;
    }
    
    .sidebar .sidebar-close-btn::after {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 2px !important;
        height: 16px !important;
        background: white !important;
        transform: translate(-50%, -50%) rotate(-45deg) !important;
        border-radius: 1px !important;
    }
    
    .header-logo {
        flex: 1 !important;
    }
    
    .header-logo img {
        height: 50px !important;
    }
    
    .header-contact {
        display: none; /* 모바일에서는 연락처 버튼 숨김 */
    }
    
    .header-right {
        position: fixed;
        top: 0;
        right: -350px;
        width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        background: #ef4444;
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-size: 14px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
        z-index: 1001;
    }
    
    .mobile-menu-close:hover {
        background: #dc2626;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    
    .header-right.mobile-open {
        right: 0;
    }
    
    .header-menu {
        flex-direction: column;
        width: 100%;
        padding: 50px 15px 15px 15px;
        gap: 1px;
        margin: 0;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    .header-menu .menu-item,
    .header-menu .action-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 18px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 2px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .header-menu .menu-item:hover,
    .header-menu .action-btn:hover {
        background: #3b82f6;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px 20px 20px;
        gap: 2px;
    }
    
    .header-actions .action-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 18px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 2px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .header-actions .action-btn:hover {
        background: #10b981;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    
    .auth-buttons {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .auth-buttons .auth-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        border-radius: 10px;
    }
    
    .search-section {
        padding: 16px 12px;
    }
    
    .search-container {
        max-width: none;
        margin: 0;
    }
    
    .search-input-wrapper {
        min-height: 44px;
        padding: 0 12px;
    }
    
    .search-input {
        font-size: 14px; /* iOS에서 줌 방지하면서도 작게 */
        padding: 12px 0;
    }
    
    .search-icon {
        font-size: 14px;
        margin-right: 10px;
    }
    
    .mobile-contact-info {
        width: 100%;
        padding: 0 20px 20px 20px;
        margin-top: 10px;
        border-top: 1px solid #e2e8f0;
        padding-top: 15px;
    }
    
    .contact-section-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 12px;
    }
    
    .contact-section-title i {
        color: #3b82f6;
        font-size: 18px;
    }
    
    .mobile-contact-info .contact-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        margin-bottom: 8px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-size: 14px;
        color: #374151;
    }
    
    .mobile-contact-info .contact-item:hover {
        background: #e0f2fe;
        border-color: #3b82f6;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    }
    
    .mobile-contact-info .contact-item i {
        color: #3b82f6;
        font-size: 16px;
        width: 20px;
        text-align: center;
    }
    
    .mobile-contact-info .contact-item span {
        font-weight: 500;
    }
}

@media (max-width: 500px) {
    .header-right {
        width: 350px !important;
        right: -350px !important;
        box-sizing: border-box !important;
    }
    
    .header-right.mobile-open {
        right: 0 !important;
    }
}

@media (max-width: 480px) {
    .search-input::placeholder {
        font-size: 12px;
    }
    
    .search-results {
        margin-left: -8px;
        margin-right: -8px;
        border-radius: 8px;
    }
    
    .bottom-player {
        left: -200px !important;
        right: 200px !important;
        transform: translateX(200px) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 20px;
    }
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    width: 100%;
    max-width: 100%;
}

.search-input-wrapper:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-input-wrapper:hover:not(:focus-within) {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.search-icon {
    color: #6b7280;
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: #4f46e5;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #111827;
    font-size: 13px;
    font-weight: 400;
    padding: 14px 0;
    line-height: 1.5;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    font-size: 13px;
}

.clear-search-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.clear-search-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.clear-search-btn:active {
    background: #e5e7eb;
    transform: scale(0.95);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(8px);
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #374151;
    position: relative;
}

.search-result-item:hover {
    background: #f8fafc;
    border-left: 3px solid #4f46e5;
    padding-left: 13px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.search-result-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.search-result-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.search-result-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    line-height: 1.3;
}

.search-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.search-result-tag {
    background: #ede9fe;
    color: #7c3aed;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #ddd6fe;
}

.search-no-results {
    padding: 24px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.search-no-results::before {
    content: "🔍";
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.search-enter-hint {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    margin: 4px 0;
    text-align: center;
    position: relative;
}

.search-enter-hint::before {
    content: "💡";
    margin-right: 6px;
}

.search-enter-hint .search-result-subtitle {
    color: #0369a1 !important;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.search-results-title {
    margin: 24px 0 16px 0 !important;
    color: #111827 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    padding: 16px 0;
    border-bottom: 3px solid #4f46e5;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding-left: 16px;
    border-radius: 8px 8px 0 0;
}

.search-results-title::before {
    content: "🔍";
    font-size: 1.3rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 2rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #007bff;
    border-left-color: #007bff;
}

.nav-item.active {
    background: #e3f2fd;
    color: #007bff;
    border-left-color: #007bff;
    font-weight: 600;
}

.nav-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* 사이드바 태그 필터 섹션 */
.sidebar-tag-section {
    margin-top: 0.5rem;
    padding: 0 1.5rem 0.75rem;
    border-top: 1px solid #e9ecef;
    position: relative;
}

.sidebar-tag-section:first-child {
    border-top: none;
    margin-top: 0.25rem;
}

.sidebar-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0 0.5rem 0;
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.sidebar-section-title i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

/* 각 섹션별 아이콘 색상 */
.sidebar-tag-section:nth-child(1) .sidebar-section-title i {
    color: #fd7e14; /* 성별 - 오렌지 */
}

.sidebar-tag-section:nth-child(2) .sidebar-section-title i {
    color: #20c997; /* 소속 - 청록 */
}

.sidebar-tag-section:nth-child(3) .sidebar-section-title i {
    color: #28a745; /* 장르 - 초록 */
}

.sidebar-tag-section:nth-child(4) .sidebar-section-title i {
    color: #17a2b8; /* 연령 - 청록 */
}

.sidebar-tag-section:nth-child(5) .sidebar-section-title i {
    color: #6f42c1; /* 연기톤 - 보라 */
}

.sidebar-tag-section:nth-child(6) .sidebar-section-title i {
    color: #e83e8c; /* 감정 - 핑크 */
}

.sidebar-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.3rem 0;
}

.sidebar-tag-filter {
    background: #f8f9fa;
    color: #495057;
    padding: 0.3rem 0.6rem;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sidebar-tag-filter .tag-count {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 400;
    margin-left: 2px;
}

.sidebar-tag-filter.active .tag-count {
    color: #ffffff;
    font-weight: 500;
}

.sidebar-tag-filter.disabled {
    background: #f1f3f5;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.sidebar-tag-filter.disabled:hover {
    background: #f1f3f5;
    color: #adb5bd;
    transform: none;
}

.sidebar-tag-filter.disabled .tag-count {
    color: #adb5bd;
}

.sidebar-tag-filter:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-tag-filter.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 섹션별 태그 색상 */
.sidebar-tag-section:nth-child(1) .sidebar-tag-filter:hover {
    background: #fd7e14;
    color: white;
    border-color: #fd7e14;
}

.sidebar-tag-section:nth-child(1) .sidebar-tag-filter.active {
    background: #fd7e14;
    border-color: #fd7e14;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.sidebar-tag-section:nth-child(2) .sidebar-tag-filter:hover {
    background: #20c997;
    color: white;
    border-color: #20c997;
}

.sidebar-tag-section:nth-child(2) .sidebar-tag-filter.active {
    background: #20c997;
    border-color: #20c997;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.3);
}

.sidebar-tag-section:nth-child(3) .sidebar-tag-filter:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.sidebar-tag-section:nth-child(3) .sidebar-tag-filter.active {
    background: #28a745;
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.sidebar-tag-section:nth-child(4) .sidebar-tag-filter:hover {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.sidebar-tag-section:nth-child(4) .sidebar-tag-filter.active {
    background: #17a2b8;
    border-color: #17a2b8;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.sidebar-tag-section:nth-child(5) .sidebar-tag-filter:hover {
    background: #6f42c1;
    color: white;
    border-color: #6f42c1;
}

.sidebar-tag-section:nth-child(5) .sidebar-tag-filter.active {
    background: #6f42c1;
    border-color: #6f42c1;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.sidebar-tag-section:nth-child(6) .sidebar-tag-filter:hover {
    background: #e83e8c;
    color: white;
    border-color: #e83e8c;
}

.sidebar-tag-section:nth-child(6) .sidebar-tag-filter.active {
    background: #e83e8c;
    border-color: #e83e8c;
    box-shadow: 0 2px 8px rgba(232, 62, 140, 0.3);
}

.sidebar-tag-filter i {
    margin-left: 0.3rem;
    font-size: 0.7rem;
}

/* 태그 개수 스타일 */
.sidebar-tag-filter .tag-name {
    flex: 1;
}

.sidebar-tag-filter .tag-count {
    font-size: 0.65rem;
    opacity: 0.7;
    font-weight: 400;
    margin-left: 2px;
}

.sidebar-tag-filter:hover .tag-count {
    opacity: 0.9;
}

.sidebar-tag-filter.active .tag-count {
    opacity: 1;
    font-weight: 500;
}

.sidebar-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.view-results-btn {
    width: 100%;
    background: #4F46E5;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* 기본적으로 숨김 */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.view-results-btn:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

/* 모바일에서만 결과보기 버튼 표시 */
@media (max-width: 1200px) {
    .view-results-btn {
        display: flex !important;
    }
}

.clear-filters-btn {
    width: 100%;
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-filters-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.clear-filters-btn i,
.view-results-btn i {
    font-size: 0.8rem;
}


.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
}

.nav-item.active .nav-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 100px; /* 푸터 공간 확보 */
}

.main-content > div:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: flex !important;
    flex-direction: column;
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    padding: 1rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1600px;
}

/* 기본적으로 아이패드 헤더 레이아웃 숨김 */
.ipad-header-layout {
    display: none;
}

/* 기본적으로 닫기 버튼 숨김 */
.mobile-menu-close {
    display: none;
}

/* 데스크톱 크기에서 아이패드 헤더 레이아웃 숨김 */
@media (min-width: 1367px) {
    .ipad-header-layout {
        display: none !important;
    }
    
    .desktop-header-layout {
        display: flex !important;
    }
    
    .mobile-menu-close {
        display: none !important;
    }
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-logo img {
    height: 60px;
    width: auto;
}

.header-contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.contact-item i {
    color: #007bff;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.menu-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    gap: 0.5rem;
}

.menu-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.action-btn .menu-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.menu-item:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: translateY(-1px);
}

.menu-item i {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.menu-item span {
    font-size: 0.9rem;
    text-align: center;
}

.menu-item small {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.action-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    gap: 0.5rem;
}

.action-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: translateY(-1px);
}

.action-btn i {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.action-btn span {
    font-size: 0.9rem;
    text-align: left;
}

.action-btn small {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0;
}

.selected-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.login-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.login-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.register-btn {
    background: #3b82f6;
    color: white;
    border: 1px solid #2563eb;
}

.register-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Main Layout */
.main-layout {
    display: flex;
    margin-top: 0; /* body에 padding-top이 있으므로 제거 */
    min-height: calc(100vh - 200px); /* 헤더(100px) + 푸터(100px) 고려 */
    padding-top: 0; /* 상단 여백 제거 */
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.header {
    background: white;
    padding: 1rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}


.user-profile {
    margin-left: 2rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

/* 태그 사이드바 */
.sidebar-header {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    margin: 0.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 24px;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.tags-container {
    padding: 0 1.5rem 2rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

/* 스크롤바 스타일 - 프리미엄 */
.tags-container::-webkit-scrollbar {
    width: 8px;
}

.tags-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 8px 0;
}

.tags-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tags-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.tag-filter {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

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

.tag-filter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.tag-filter:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.tag-filter:hover::before {
    left: 100%;
}

.tag-filter:hover::after {
    opacity: 1;
}

.tag-filter.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tag-filter.active::after {
    content: '✨';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateY(-50%) scale(1.1); }
}

/* Content */
.content {
    flex: 1;
    padding: 0 0 2rem 1rem;
    width: 100%;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Voice Actors Grid */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
    width: 100%;
    padding: 0;
}

.actor-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 320px;
}

.actor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}


.actor-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin: 10px 0;
}

.category-tag {
    background: #e0f2fe;
    color: #0277bd;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid #b3e5fc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: #1976d2;
    color: white;
}

.emotion-tags {
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.emotion-tag {
    background: #e0f2fe;
    color: #0277bd;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-right: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

.actor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.actor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.actor-card:hover::before {
    transform: scaleX(1);
}

.actor-profile {
    flex-shrink: 0;
}

.actor-avatar {
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.actor-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    transition: all 0.3s ease;
}

.default-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #999;
}

/* 기본 아바타 이미지 스타일 */
.actor-avatar[src*="default-avatar"] {
    background-color: #f9fafb;
    border: 3px solid #e5e7eb;
}

.actor-card:hover .actor-avatar {
    border-color: #667eea;
    transform: scale(1.05);
}

/* 카드 선택 스타일 제거 - 버튼만 바뀌도록 */

.actor-info {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.actor-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0 5px 0;
    color: #333;
}

.actor-name-link {
    text-decoration: none;
    color: inherit;
}

.actor-name-link:hover {
    text-decoration: none;
    color: inherit;
}

.gender-icon {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.gender-icon i.fa-mars {
    color: #3b82f6;
}

.gender-icon i.fa-venus {
    color: #ec4899;
}

.sample-title {
    font-size: 0.9rem;
    color: #000000;
    margin: 5px 0;
    font-weight: 500;
}

.sample-genre {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.sample-genre:hover {
    color: #007bff;
}

.sample-genre i {
    color: #007bff !important;
}

.fa-add:before, .fa-plus:before {
    content: "\2b";
    color: #6b7280;
}

.sample-genre {
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.actor-tag {
    display: inline-block;
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

.actor-description {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.actor-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.actor-rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.actor-rating span {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.actor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.actor-tags .tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
}

.actor-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.actor-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-top: 15px;
}

.play-button, .favorite-button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.play-button {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* 재생 중인 버튼 스타일 */
.play-button.playing {
    background: #ef4444 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
    animation: pulse 1.5s infinite;
}

.play-button.playing:hover {
    background: #dc2626 !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4) !important;
}

/* 성우 카드의 재생 버튼 특별 스타일 */
.actor-card .play-button.playing {
    background: #ef4444 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
    animation: pulse 1.5s infinite;
}

.actor-card .play-button.playing:hover {
    background: #dc2626 !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4) !important;
}

/* 더 구체적인 선택자로 강제 적용 */
.actors-grid .actor-card .play-button.playing,
.actor-card .play-button.playing,
.play-button.playing {
    background: #ef4444 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
    animation: pulse 1.5s infinite !important;
}

/* 재생 중인 버튼 강제 빨간색 유지 (모든 상태에서) */
.play-button.playing,
.play-button.playing:not(:hover),
.play-button.playing:focus,
.play-button.playing:active {
    background: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
    animation: pulse 1.5s infinite !important;
}

/* 성우 카드 재생 버튼 강제 빨간색 유지 */
.actor-card .play-button.playing,
.actor-card .play-button.playing:not(:hover),
.actor-card .play-button.playing:focus,
.actor-card .play-button.playing:active {
    background: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
    animation: pulse 1.5s infinite !important;
}

.actors-grid .actor-card .play-button.playing:hover,
.actor-card .play-button.playing:hover,
.play-button.playing:hover {
    background: #dc2626 !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4) !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* 성우 전환 시 애니메이션 */
.actor-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.actor-card.switching {
    transform: scale(0.95);
    opacity: 0.7;
}


/* 재생 버튼 전환 애니메이션 */
.play-button {
    transition: all 0.2s ease;
}

.play-button.switching {
    transform: scale(0.9);
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}


/* 하단 플레이어 전환 애니메이션 */
.bottom-player {
    transition: all 0.3s ease;
}

.bottom-player.switching {
    transform: translateY(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.favorite-button {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.favorite-button:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
    transform: scale(1.05);
}

.favorite-button.favorited {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* 선택 버튼 스타일 */
.select-button {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.select-button:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* 선택 버튼 selected 클래스 스타일 제거 - 인라인 스타일로 처리 */

/* 프로젝트 버튼 스타일 */
.project-button {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-button:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.project-button:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Audio Modal */
.audio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.audio-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f1f5f9;
    color: #1e293b;
}


/* 하단 고정 플레이어 - 깔끔한 스타일 */
.bottom-player {
    position: fixed;
    bottom: 0;
    left: 300px;
    right: 0;
    background: white;
    border-top: 1px solid #e9ecef;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    height: 80px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

/* 아이패드 프로 크기에서 하단 플레이어 중앙 정렬 */
@media (min-width: 1024px) and (max-width: 1366px) {
    .bottom-player,
    #audio-player-footer,
    #modal-audio-player-footer,
    .footer#audio-player-footer,
    .footer#modal-audio-player-footer,
    [id="audio-player-footer"],
    [id="modal-audio-player-footer"],
    [id*="audio-player"],
    [id*="player-footer"] {
        left: 50% !important;
        right: auto !important;
        max-width: 1200px !important;
        width: 90% !important;
        margin-left: 0 !important;
        position: fixed !important;
        transform: translateX(-50%) !important;
    }
    
    .player-content {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        display: flex !important;
        justify-content: center !important;
        padding: 0 20px !important;
    }
    
    .player-controls {
        justify-content: center !important;
        flex: 1 !important;
    }
}


@media (max-width: 768px) {
    .header-right {
        width: 350px !important;
        right: -350px !important;
        box-sizing: border-box !important;
    }
    
    .header-right.mobile-open {
        right: 0 !important;
    }
    
    .bottom-player {
        left: 50% !important;
        right: auto !important;
        height: 70px;
        padding: 0 20px;
        transform: translateX(-50%) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 90% !important;
        max-width: 800px !important;
    }
    
    .player-content {
        padding: 8px 0;
        gap: 2px;
        height: 70px;
    }
    
    .player-info {
        min-width: 120px;
        gap: 2px;
    }
    
    .actor-avatar-small {
        width: 35px;
        height: 35px;
    }
    
    .player-details h4 {
        font-size: 0.8rem;
        max-width: 100px;
    }
    
    .player-details p {
        font-size: 0.7rem;
        max-width: 100px;
    }
    
    .waveform-container {
        height: 30px;
        min-width: 150px;
        margin: 0 8px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .time-display {
        font-size: 0.7rem;
        min-width: 50px;
    }
    
    .volume-control input[type="range"] {
        width: 50px;
    }
    
    .volume-control i {
        font-size: 0.7rem;
    }
}

.bottom-player.show {
    transform: translateY(0);
}

.player-content {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.actor-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
}

.actor-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.player-details p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

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

.waveform-container {
    flex: 1;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 18px;
}

.control-btn:hover {
    background: #2563eb;
}

.time-display {
    font-size: 14px;
    color: #6b7280;
    font-family: monospace;
    min-width: 100px;
    text-align: center;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control i {
    color: #6b7280;
    font-size: 16px;
}

.volume-control input[type="range"] {
    width: 100px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    flex-shrink: 0;
}

.actor-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.actor-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-details h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.player-details p {
    margin: 0;
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.player-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 웨이브 파형 컨테이너 - 깔끔한 스타일 */
.waveform-container {
    flex: 1;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    margin: 0 1rem;
    min-width: 200px;
    border: 1px solid #e9ecef;
    display: block;
}

.waveform-container canvas {
    width: 100% !important;
    height: 40px !important;
    display: block !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

/* 오디오 컨트롤 - 깔끔한 스타일 */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6c5ce7;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.2);
}

.control-btn:hover {
    background: #5a4fcf;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.time-display {
    color: #666;
    font-weight: 500;
    font-size: 0.75rem;
    min-width: 60px;
    text-align: center;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-control i {
    color: #666;
    font-size: 0.8rem;
}

.volume-control input[type="range"] {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6c5ce7;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.3);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6c5ce7;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.3);
}

.audio-info p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: white;
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.footer-left {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #667eea;
}

.footer-right {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 하단 플레이어 반응형 */
@media (max-width: 768px) {
    .player-content {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }
    
    .player-info {
        min-width: 150px;
    }
    
    .actor-avatar-small {
        width: 40px;
        height: 40px;
    }
    
    .player-details h4 {
        font-size: 0.9rem;
    }
    
    .player-details p {
        font-size: 0.8rem;
    }
    
    .waveform-container {
        height: 60px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .time-display {
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .volume-control input[type="range"] {
        width: 80px;
    }
}


/* 데스크톱에서는 사이드바 항상 표시 (1200px 초과에서만) */
@media (min-width: 1201px) {
    .sidebar {
        transform: translateX(0) !important;
        position: sticky !important;
        width: 400px !important;
        visibility: visible !important;
    }
    
    /* 사이드바 오버레이는 1024px 이하에서 슬라이드용으로 사용 */
    
    .mobile-controls {
        display: none !important;
    }
}


@media (max-width: 768px) {
    .main-content {
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        display: block !important;
    }
    
    .main-header {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }
    
    .main-content .content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        position: static !important;
        transform: none !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
    }
    
    /* 모바일에서 content div를 main-content 밖으로 강제 이동 */
    .main-content {
        position: relative !important;
    }
    
    .main-content .content {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1 !important;
    }
    
    .main-layout {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        max-width: 1200px !important;
    }
    
    .sidebar-tags-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.6rem;
        padding: 0 1rem;
    }
    
    .sidebar-tag-filter {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    .sidebar-section-title {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        margin: 0.8rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .sidebar-tag-section {
        margin-top: 0.6rem;
        padding: 0 1rem 0.8rem;
    }
    
    .bottom-player {
        left: 0;
    }
    
    .tags-sidebar {
        margin: 1rem;
        padding: 1rem;
        max-height: 50vh;
    }
    
    .tags-sidebar .tags-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.4rem;
    }
    
    .tags-sidebar .tag-filter {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .actor-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .actor-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .header {
        padding: 0.75rem 1rem;
    }
    
    .content {
        padding: 0.5rem 1rem 1rem 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 문의하기 버튼 스타일 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.favorites-list-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.favorites-list-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.inquiry-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.inquiry-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.selected-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 5px;
}

/* 선택 버튼 스타일 */
.select-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.select-button:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
}

/* 선택 버튼 selected 클래스 스타일 제거 - 인라인 스타일로 처리 */

/* 카드 선택 스타일 제거 - 버튼만 바뀌도록 */

/* 클릭 가능한 태그 스타일 */
.clickable-tag {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-tag:hover {
    background-color: #007bff !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 필터 정보 스타일 */
.filter-info {
    margin: 20px 0;
    padding: 0 20px;
}

.selected-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 12px 16px;
    color: #1976d2;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(33, 150, 243, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.filter-item i {
    color: #2196f3;
}

.clear-filter-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    margin-left: auto;
}

.clear-filter-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

/* 클릭 가능한 장르 스타일 */
.clickable-genre {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.clickable-genre:hover {
    background-color: #28a745 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.actor-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 인증 버튼 스타일 */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.login-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.login-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.register-btn {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.register-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* 사용자 메뉴 스타일 */
.user-menu {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.user-profile:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
}

.dropdown-item.admin-item {
    color: #dc3545;
}

.dropdown-item.admin-item:hover {
    background: #fee;
    color: #c82333;
}

.dropdown-item.logout-item {
    color: #6c757d;
}

.dropdown-item.logout-item:hover {
    background: #fee;
    color: #dc3545;
}

.dropdown-divider {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #e9ecef;
}

/* 반응형 디자인 추가 */
@media (max-width: 1450px) {
    .actors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .actor-card {
        padding: 1.2rem;
    }
    
    .actor-name {
        font-size: 1.1rem;
    }
    
    .actor-avatar {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 900px) {
    .actors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .actor-card {
        padding: 1rem;
    }
    
    .actor-name {
        font-size: 1rem;
    }
    
    .sample-title {
        font-size: 0.9rem;
    }
    
    .sample-genre {
        font-size: 0.8rem;
    }
    
    .actor-description {
        font-size: 0.85rem;
    }
    
    .actor-avatar {
        width: 60px;
        height: 60px;
    }
    
    .card-main-content {
        gap: 1rem;
    }
    
    /* 감정태그 숨기기 */
    .emotion-tags {
        display: none;
    }
}

@media (max-width: 768px) {
    .actors-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
        padding: 0 0.5rem !important;
    }
    
    .actor-card {
        padding: 1rem;
        min-height: 200px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .actor-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .actor-name {
        font-size: 1rem;
        font-weight: 600;
        margin: 8px 0 4px 0;
    }
    
    .sample-title {
        font-size: 0.85rem;
        font-weight: 500;
        margin: 4px 0;
    }
    
    .sample-genre {
        font-size: 0.75rem;
        padding: 3px 6px;
        margin: 2px 0;
    }
    
    .actor-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 4px 0;
    }
    
    .actor-avatar {
        width: 60px;
        height: 60px;
        border: 2px solid #e5e7eb;
    }
    
    .actor-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .card-main-content {
        gap: 0.8rem;
    }
    
    .actor-actions {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        margin-top: 12px;
    }
    
    .play-button, .favorite-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .play-button {
        background: #3b82f6;
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    }
    
    .favorite-button {
        background: #f8fafc;
        border: 2px solid #e2e8f0;
    }
    
    .favorite-button.favorited {
        background: #ef4444;
        border-color: #ef4444;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .favorites-list-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .inquiry-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .user-dropdown {
        right: -10px;
        left: -10px;
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .actors-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .actor-card {
        padding: 1rem;
        min-height: 180px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .actor-name {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 8px 0 6px 0;
    }
    
    .sample-title {
        font-size: 0.9rem;
        font-weight: 500;
        margin: 6px 0;
    }
    
    .sample-genre {
        font-size: 0.75rem;
        padding: 3px 6px;
        margin: 3px 0;
        display: inline-block;
    }
    
    .actor-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 6px 0;
    }
    
    .actor-avatar {
        width: 50px;
        height: 50px;
        border: 2px solid #e5e7eb;
    }
    
    .actor-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .card-main-content {
        gap: 1rem;
    }
    
    .actor-actions {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }
    
    .play-button, .favorite-button {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .play-button {
        background: #3b82f6;
        box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
    }
    
    .favorite-button {
        background: #f8fafc;
        border: 2px solid #e2e8f0;
    }
    
    .favorite-button.favorited {
        background: #ef4444;
        border-color: #ef4444;
    }
}

/* 폼 도움말 텍스트 */
.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

/* 멤버 일괄 선택 스타일 */
.member-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#selectAllMembers {
    width: 16px;
    height: 16px;
    cursor: pointer;
}


.table-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.admin-table th:first-child,
.admin-table td:first-child {
    width: 40px;
    text-align: center;
}

.admin-table th:first-child {
    padding: 12px 8px;
}

.admin-table td:first-child {
    padding: 12px 8px;
}

/* 키보드 네비게이션 스타일 */
.actor-card.keyboard-selected {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.actor-card.keyboard-selected .actor-name {
    color: #3b82f6;
    font-weight: 600;
}

/* 성우 정보 아이콘 스타일 */
.actor-agency i, .actor-gender i, .actor-samples i {
    color: #ffffff;
}

/* 태그 관리 페이지 스타일 */
.tag-management-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tag-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tag-category-section {
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tag-category-section:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.category-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: white;
    position: relative;
}

.age-header {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.tone-header {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.emotion-header {
    background: linear-gradient(135deg, #e83e8c, #d91a72);
}

.none-header {
    background: linear-gradient(135deg, #6c757d, #545b62);
}

.category-header i {
    font-size: 1.2rem;
}

.category-header h3 {
    margin: 0;
    flex: 1;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tag-list {
    min-height: 200px;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: #6c757d;
    text-align: center;
}

.empty-category i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-category p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.all-tags-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.all-tags-section .section-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #495057, #343a40);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.all-tags-section .section-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tag-actions {
    display: flex;
    gap: 0.75rem;
}

.all-tags-container {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.tag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: move;
    transition: all 0.3s ease;
    user-select: none;
}

.tag-item[draggable="true"] {
    cursor: grab;
}

.tag-item[draggable="true"]:active {
    cursor: grabbing;
}

.tag-item:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15);
}

.tag-item.dragging {
    opacity: 0.6;
    transform: rotate(3deg) scale(1.05);
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tag-name {
    font-weight: 500;
    color: #495057;
    flex: 1;
}

.tag-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.8rem;
    background: white;
}

.order-input {
    width: 60px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: center;
}

/* 드래그 앤 드롭 스타일 */
.tag-list {
    position: relative;
    transition: all 0.3s ease;
}

.tag-list.drag-over {
    background: #e3f2fd !important;
    border: 2px dashed #2196f3 !important;
    transform: scale(1.02);
}

.tag-list.drag-over .empty-category {
    color: #2196f3 !important;
}

.tag-list.drag-over .empty-category i {
    animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-10px);
    }
}

/* 오디오바 모달 스타일 */
#audio-player-footer {
    animation: slideUpFadeIn 0.3s ease-out;
    /* 사이드바가 있을 때 오른쪽으로 200px 이동 */
    left: 50% !important;
    transform: translateX(calc(-50% + 200px)) !important;
    max-width: 800px;
    width: 800px;
}

/* 일반 상태에서 오디오바 위치 조정 */
#audio-player-footer,
#modal-audio-player-footer,
.footer[id*="audio"],
[id*="audio-player"],
[id*="player-footer"] {
    position: fixed !important;
    bottom: 20px !important;
    z-index: 9999 !important;
}

/* 모든 오디오바 요소에 대한 강제 이동 - 모바일 */
@media (max-width: 768px) {
    *[id*="audio"],
    *[class*="audio"],
    *[id*="player"],
    *[class*="player"],
    footer {
        left: -200px !important;
        right: 200px !important;
        transform: translateX(200px) !important;
        width: 100% !important;
        max-width: 800px !important;
        position: fixed !important;
        bottom: 20px !important;
        z-index: 9999 !important;
    }
}

/* 768~1023px 사이에서 1024px와 동일한 오디오바 위치 적용 */
@media (min-width: 769px) and (max-width: 1023px) {
    #audio-player-footer,
    #modal-audio-player-footer,
    .footer#audio-player-footer,
    .footer#modal-audio-player-footer,
    [id="audio-player-footer"],
    [id="modal-audio-player-footer"] {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        max-width: 1200px !important;
        width: 90% !important;
        position: fixed !important;
        bottom: 20px !important;
        z-index: 9999 !important;
    }
}

/* 모바일에서 오디오바 중앙 정렬 - 더 강력한 선택자 */
@media (max-width: 768px) {
    #audio-player-footer,
    #modal-audio-player-footer,
    .footer#audio-player-footer,
    .footer#modal-audio-player-footer,
    [id="audio-player-footer"],
    [id="modal-audio-player-footer"] {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 800px !important;
        position: fixed !important;
        bottom: 20px !important;
        z-index: 9999 !important;
    }
}

/* 작은 모바일에서 오디오바 중앙 정렬 - 더 강력한 선택자 */
@media (max-width: 480px) {
    #audio-player-footer,
    #modal-audio-player-footer,
    .footer#audio-player-footer,
    .footer#modal-audio-player-footer,
    [id="audio-player-footer"],
    [id="modal-audio-player-footer"] {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 95% !important;
        max-width: 800px !important;
        position: fixed !important;
        bottom: 20px !important;
        z-index: 9999 !important;
    }
}

/* 즐겨찾기 팝업 모달이 열렸을 때 오디오바 중앙 정렬 */
body.modal-open #audio-player-footer,
body.modal-open #modal-audio-player-footer {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important; /* 팝업 모달과 같은 중앙 정렬 */
    margin: 0 !important;
    width: 90% !important;
    max-width: 800px !important;
    z-index: 9999 !important;
    bottom: 20px !important;
}

/* 모바일에서도 즐겨찾기 팝업 모달이 열렸을 때 오디오바 중앙 정렬 */
@media (max-width: 768px) {
    body.modal-open #audio-player-footer,
    body.modal-open #modal-audio-player-footer {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        width: 90% !important;
        max-width: 800px !important;
        z-index: 9999 !important;
        bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    body.modal-open #audio-player-footer,
    body.modal-open #modal-audio-player-footer {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        width: 90% !important;
        max-width: 800px !important;
        z-index: 9999 !important;
        bottom: 20px !important;
    }
}

#close-audio-player {
    transition: all 0.2s ease;
}

#close-audio-player:hover {
    background: #f8f9fa !important;
    color: #495057 !important;
}

/* 오디오바 모달 애니메이션 */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .tag-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .all-tags-container {
        grid-template-columns: 1fr;
    }
    
    .tag-actions {
        flex-direction: column;
    }
    
    .all-tags-section .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    /* 모바일에서 오디오바 모달 스타일 - main-content 기준 중앙 */
    #audio-player-footer {
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
        margin: 10px;
        bottom: 10px;
        left: 50% !important; /* main-content 기준 중앙 */
        transform: translateX(-50%) !important; /* main-content 중앙 정렬 */
    }
    
    #audio-player-footer #waveform {
        height: 70px;
        padding: 10px;
    }
    
    #audio-player-footer #waveform-container {
        height: 25px;
    }
    
    #audio-player-footer #current-track {
        font-size: 12px;
        margin: 0 10px;
    }
    
    #audio-player-footer #time-display {
        font-size: 12px;
        min-width: 60px;
    }
    
    #audio-player-footer #volume-slider {
        width: 60px;
    }
    
    #audio-player-footer #volume-display {
        font-size: 10px;
        min-width: 25px;
    }
}

@media (max-width: 480px) {
    /* 매우 작은 화면에서 오디오바 모달 스타일 - main-content 기준 중앙 */
    #audio-player-footer {
        max-width: calc(100% - 10px);
        width: calc(100% - 10px);
        margin: 5px;
        bottom: 5px;
        left: 50% !important; /* main-content 기준 중앙 */
        transform: translateX(-50%) !important; /* main-content 중앙 정렬 */
    }
    
    #audio-player-footer #waveform {
        height: 60px;
        padding: 8px;
    }
    
    #audio-player-footer #waveform-container {
        height: 20px;
        margin-bottom: 4px;
    }
    
    #audio-player-footer .play-button {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
    
    #audio-player-footer #current-track {
        font-size: 11px;
        margin: 0 5px;
    }
    
    #audio-player-footer #time-display {
        font-size: 11px;
        min-width: 50px;
    }
    
    #audio-player-footer #volume-slider {
        width: 50px;
    }
    
    #audio-player-footer #volume-display {
        font-size: 9px;
        min-width: 20px;
    }
}

/* 사용자 드롭다운 메뉴 스타일 */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-menu-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.user-menu-btn i:last-child {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.dropdown-item.logout-item {
    color: #dc2626;
}

.dropdown-item.logout-item:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* 반응형 드롭다운 메뉴 */
@media (max-width: 768px) {
    .user-dropdown-menu {
        right: -10px;
        min-width: 180px;
    }
    
    .user-menu-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }
}
