/* 성우 데이터베이스 페이지 스타일 */
.voice-db-page-wrapper {
    min-height: 100vh;
    background: #f8f9fa;
}

.voice-db-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
}

.voice-db-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.voice-db-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.voice-db-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    width: 100%;
    max-width: none;
}

/* 전체 통계 스타일 */
.overall-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    flex-wrap: wrap;
}

.stats-card {
    text-align: center;
    color: white;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: none;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

@media (max-width: 768px) {
    .overall-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .title-row h2 {
        font-size: 1.2rem;
    }
    
    .list-controls {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .view-list-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .stats-card {
        min-width: 80px;
        flex: 1 1 auto;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

.search-forms {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-form {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.search-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-label {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-type {
    padding: 12px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-type:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    min-width: 200px;
    background: #f7fafc;
    font-weight: 400;
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: #4299e1;
    background: white;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.search-btn {
    padding: 16px 24px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
}

.search-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.search-btn:active {
    transform: translateY(0);
    background: #2c5282;
}

.search-stats {
    background: #f8f9fa;
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    border: 1px solid #e9ecef;
    width: 100%;
}

.actor-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.actor-wiki-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.actor-wiki-link:hover {
    background: #5a67d8;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.stats-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.search-stat-item {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.results-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;
    max-width: none;
}

.results-section h2 {
    padding: 0;
    margin: 0;
    background: transparent;
    border-bottom: none;
    font-size: 1.5rem;
    color: #333;
}

.game-card, .actor-card, .character-card {
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.game-card:hover, .actor-card:hover, .character-card:hover {
    background: #f8f9fa;
}

.game-card:last-child, .actor-card:last-child, .character-card:last-child {
    border-bottom: none;
}

.game-title, .actor-name, .character-name {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    padding: 25px 30px 15px 30px;
    background: #f8f9fa;
    margin: 0;
}

.game-stats, .character-stats {
    padding: 15px 30px;
    background: #e9ecef;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}


.stat-item {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.game-table {
    margin-top: 15px;
    overflow-x: auto;
}

.table-legend {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.legend-item {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.legend-actor {
    background: #f8f9fa;
    color: #495057;
}

.legend-character {
    background: white;
    color: #495057;
    border: 1px solid #dee2e6;
}

.legend-game {
    background: #f8f9fa;
    color: #495057;
}

.voice-actor-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    table-layout: fixed;
    border: 1px solid #dee2e6;
}

.voice-actor-table thead {
    background: transparent;
    color: #495057;
}

.voice-actor-table th {
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid #e9ecef;
    border-right: 1px solid #dee2e6;
}

.voice-actor-table th:last-child {
    border-right: none;
}

/* voice-actor-table: 성우/캐릭터 헤더 모두 흰색 계열로 통일 */
.voice-actor-table th:nth-child(1),
.voice-actor-table th:nth-child(2),
.voice-actor-table th:nth-child(3),
.voice-actor-table th:nth-child(4) {
    background: #f8f9fa;
    color: #495057;
}

/* character-table: 모든 헤더를 흰색 계열로 통일 */
.character-table th:nth-child(1),
.character-table th:nth-child(2),
.character-table th:nth-child(3),
.character-table th:nth-child(4) {
    background: #f8f9fa;
    color: #495057;
}

.voice-actor-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.voice-actor-table tbody tr:hover {
    background: transparent;
}

/* voice-actor-table 호버 시 색상 강조 - 모두 동일 */
.voice-actor-table tbody tr:hover td:nth-child(1),
.voice-actor-table tbody tr:hover td:nth-child(2),
.voice-actor-table tbody tr:hover td:nth-child(3),
.voice-actor-table tbody tr:hover td:nth-child(4) {
    background: #f8f9fa;
}

/* character-table 호버 시 색상 강조 - 모두 동일 */
.character-table tbody tr:hover td:nth-child(1),
.character-table tbody tr:hover td:nth-child(2),
.character-table tbody tr:hover td:nth-child(3),
.character-table tbody tr:hover td:nth-child(4) {
    background: #f8f9fa;
}

.voice-actor-table tbody tr:last-child {
    border-bottom: none;
}

.voice-actor-table td {
    padding: 15px 20px;
    font-size: 0.95rem;
    text-align: center;
    border-right: 1px solid #dee2e6;
}

.voice-actor-table td:last-child {
    border-right: none;
}

/* voice-actor-table: 성우/캐릭터 셀 모두 흰색으로 통일 */
.voice-actor-table td:nth-child(1),
.voice-actor-table td:nth-child(2),
.voice-actor-table td:nth-child(3),
.voice-actor-table td:nth-child(4) {
    background: white;
    color: #495057;
}

/* character-table: 모든 데이터 셀을 흰색으로 통일 */
.character-table td:nth-child(1),
.character-table td:nth-child(2),
.character-table td:nth-child(3),
.character-table td:nth-child(4) {
    background: white;
    color: #495057;
}

.voice-actor-table .actor-name {
    font-weight: 600;
    color: #495057;
    width: 25%;
    text-align: center;
}

.voice-actor-table .character-name {
    color: #6c757d;
    font-style: italic;
    width: 25%;
    text-align: center;
}

.voice-actor-table .separator {
    width: 5%;
    text-align: center;
    color: #ccc;
    font-weight: bold;
    border-left: 2px solid #ddd;
    border-right: 2px solid #ddd;
    background: #f8f9fa;
}

.games-table {
    margin-top: 15px;
    overflow-x: auto;
}

.character-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    table-layout: fixed;
    border: 1px solid #dee2e6;
}

.character-table thead {
    background: #667eea;
    color: white;
}

.character-table th {
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.character-table th:last-child {
    border-right: 1px solid #dee2e6;
}

.character-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.character-table tbody tr:hover {
    background: #f8f9fa;
}

.character-table tbody tr:last-child {
    border-bottom: none;
}

.character-table td {
    padding: 15px 20px;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.character-table td:last-child {
    border-right: 1px solid #dee2e6;
}

/* 기존 character-table 스타일 제거 - 새로운 스타일이 적용됨 */

.game-name {
    font-weight: 600;
    color: #495057;
    width: 25%;
    text-align: center;
}

.character-name {
    color: #6c757d;
    font-style: italic;
    width: 25%;
    text-align: center;
}


.actor-name {
    font-weight: 600;
}

.game-character {
    font-weight: 500;
    color: #495057;
    text-align: center;
}

.actor-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.actor-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
    transform: translateY(-1px);
}

.actor-text {
    color: #6c757d;
    font-weight: 500;
    cursor: default;
}

.character-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 15px;
}

.character-link::after {
    content: "🔗";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.8em;
    opacity: 0.6;
}

.character-link:hover {
    color: #495057;
    text-decoration: underline;
    transform: translateY(-1px);
}

.character-link:hover::after {
    opacity: 1;
}

.game-name-clickable {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-name-clickable:hover {
    color: #007bff;
    transform: translateY(-1px);
}

.game-name-text {
    color: #495057;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.game-name-text:hover {
    color: #007bff;
}

.characters {
    opacity: 0.9;
    font-size: 0.85rem;
}

.game-name {
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 60px 30px;
    color: #666;
}

.no-results p {
    font-size: 1.1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
}

.page-link {
    padding: 10px 16px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.page-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .voice-db-container {
        padding: 10px;
    }
    
    .voice-db-header h1 {
        font-size: 2rem;
    }
    
    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-forms {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-form {
        min-width: auto;
        max-width: none;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .search-stats {
        padding: 15px 20px;
        gap: 15px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .actor-links {
        gap: 8px;
    }
    
    .actor-wiki-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .stats-info {
        gap: 15px;
    }
    
    .search-stat-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .voice-actor-table th,
    .voice-actor-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .character-table th,
    .character-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .character-table {
        font-size: 0.85rem;
    }
    
    
    .stat-item {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .voice-db-header {
        padding: 30px 15px;
    }
    
    .voice-db-header h1 {
        font-size: 1.8rem;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .game-card, .actor-card {
        padding: 20px;
    }
}

/* 토글 기능 스타일 */
.game-header {
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #ecf0f1;
    background: #f8f9fa;
}

.game-header:hover {
    background-color: #e9ecef;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.game-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 20px;
    background: transparent;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #6c757d;
    transition: transform 0.3s ease;
    user-select: none;
    min-width: 20px;
    text-align: center;
}

.game-content {
    transition: all 0.3s ease;
}

/* 성우리스트 스타일 */
.actor-list-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.actor-list-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.actor-list-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.actor-list-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sort-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.sort-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.sort-btn.active {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.actor-list-content {
    padding: 30px;
}

.actor-list-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
}

.actor-list-stats span {
    font-size: 1rem;
    color: #495057;
}

.actor-list-stats strong {
    color: #667eea;
    font-weight: 700;
}

/* 테이블 스타일 */
.actor-list-table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.actor-list-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.actor-list-table th:nth-child(1),
.actor-list-table th:nth-child(2) {
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.actor-list-table td:nth-child(1),
.actor-list-table td:nth-child(2) {
    border-right: 2px solid #e9ecef;
}

.actor-list-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.actor-list-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sortable-header {
    user-select: none;
}

.sortable-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sortable-header.active {
    background: rgba(255, 255, 255, 0.2);
}

.sort-icon {
    margin-left: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.actor-list-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.actor-list-table tbody tr:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.actor-list-table tbody tr:last-child {
    border-bottom: none;
}

.actor-name-cell {
    padding: 15px 20px;
    font-weight: 600;
}

.actor-link {
    color: #212529;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

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

.actor-name-text {
    color: #212529;
    font-weight: 700;
}

.stat-cell {
    padding: 15px 20px;
    text-align: center;
    font-weight: 700;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.combined-stat-cell {
    padding: 15px 20px;
    text-align: center;
}

.stat-pair {
    display: inline-block;
    margin: 0 15px;
    text-align: center;
}

.stat-pair .stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.stat-pair .stat-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
    font-weight: 600;
}

.actor-list-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.actor-list-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* 게임리스트 스타일 */
.game-list-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.game-list-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.game-list-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.game-list-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.game-list-content {
    padding: 30px;
}

.game-list-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
}

.game-list-stats span {
    font-size: 1rem;
    color: #495057;
}

.game-list-stats strong {
    color: #28a745;
    font-weight: 700;
}

.game-list-table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.game-list-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.game-list-table th:nth-child(1),
.game-list-table th:nth-child(2) {
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.game-list-table td:nth-child(1),
.game-list-table td:nth-child(2) {
    border-right: 2px solid #e9ecef;
}

.game-list-table thead {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.game-list-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.game-list-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.game-list-table tbody tr:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.game-list-table tbody tr:last-child {
    border-bottom: none;
}

.game-name-cell {
    padding: 15px 20px;
    font-weight: 600;
}

.game-name-text {
    color: #212529;
    font-weight: 700;
}

.game-list-btn {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.game-list-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* 통합 리스트 스타일 */
.unified-list-header {
    background: transparent;
    color: #495057;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.unified-list-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
}

.unified-list-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.list-type-buttons {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    border: 1px solid #e9ecef;
}

.list-type-btn {
    background: transparent;
    color: #495057;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.list-type-btn:hover {
    background: #e9ecef;
}

.list-type-btn.active {
    background: #007bff;
    color: white;
    font-weight: 600;
}

.sort-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.sort-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.sort-btn:hover {
    background: #e9ecef;
}

.sort-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: 600;
}

.close-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.close-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.unified-list-content {
    padding: 0;
}

.unified-list-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
}

.unified-list-stats span {
    font-size: 1rem;
    color: #495057;
}

.unified-list-stats strong {
    color: #007bff;
    font-weight: 700;
}

.unified-list-table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.unified-list-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.unified-list-table th:nth-child(1),
.unified-list-table th:nth-child(2) {
    border-right: 2px solid #dee2e6;
}

.unified-list-table td:nth-child(1),
.unified-list-table td:nth-child(2) {
    border-right: 2px solid #e9ecef;
}

.unified-list-table thead {
    background: #f8f9fa;
    color: #212529;
    text-align: center;
}

.unified-list-table th {
    padding: 15px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.unified-list-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.unified-list-table tbody tr:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.unified-list-table tbody tr:last-child {
    border-bottom: none;
}

.name-cell {
    padding: 15px 20px;
    font-weight: 600;
}

.name-link {
    color: #212529;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.name-link:hover {
    color: #007bff;
}

.name-text {
    color: #212529;
    font-weight: 700;
}

/* 성우 테이블 스타일 */
.actor-name-cell {
    padding: 12px 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
    border-right: 1px solid #e9ecef;
}

.actor-games-cell {
    padding: 12px 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #212529;
    border-right: 1px solid #e9ecef;
}

.actor-characters-cell {
    padding: 12px 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #212529;
    border-right: 1px solid #e9ecef;
}

.actor-name-cell .name-link {
    color: #212529;
    text-decoration: none;
    font-weight: 700;
}

.actor-name-cell .name-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.actor-name-cell .name-text {
    color: #212529;
    font-weight: 700;
}

.actor-games-cell .stat-number,
.actor-characters-cell .stat-number {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    text-shadow: none;
}



.list-btn {
    background: #667eea;
    color: white;
    border: 1px solid #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 5px;
}

.list-btn:hover {
    background: #5a67d8;
    color: white;
    border-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .actor-list-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .actor-list-controls {
        justify-content: center;
    }
    
    .actor-list-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .actor-list-table th,
    .actor-list-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .stat-pair {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .actor-list-content {
        padding: 20px;
    }
    
    .actor-list-table th,
    .actor-list-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .actor-list-table th {
        font-size: 0.9rem;
    }
    
    .stat-pair {
        margin: 0 8px;
    }
    
    .stat-pair .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-pair .stat-label {
        font-size: 0.75rem;
    }
}

/* 섹션 헤더 스타일 */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    background: transparent;
}

.title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    background: transparent;
}

.title-row h2 {
    margin: 0;
    color: #212529;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
}

.list-controls-center {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.view-list-link {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #667eea;
    font-size: 0.9rem;
    height: fit-content;
}

.view-list-link:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.list-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.overall-stats .list-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* list-stats 중앙 정렬 */
.list-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.list-stats span {
    font-size: 1rem;
    color: #495057;
}

.list-stats strong {
    color: #667eea;
    font-weight: 700;
}

