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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 40px 20px;
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    opacity: 0.95;
    font-weight: 400;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin-top: 10px;
}

/* Main Section */
main {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Table */
.samples-section {
    overflow-x: auto;
}

.samples-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.samples-table th {
    padding: 18px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.samples-table th:first-child {
    width: 120px;
    border-top-left-radius: 10px;
}

.samples-table th:last-child {
    border-top-right-radius: 10px;
}

.samples-table tbody tr {
    transition: background-color 0.2s;
}

.samples-table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

.samples-table tbody tr:hover {
    background-color: #e8f0fe;
}

.samples-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.sample-number {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1em;
}

/* Audio Player */
.audio-cell {
    text-align: center;
    vertical-align: middle;
}

audio {
    width: 100%;
    max-width: 280px;
    height: 40px;
}

audio::-webkit-media-controls-panel {
    background-color: #f0f4ff;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button {
    background-color: #667eea;
    border-radius: 50%;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    padding: 20px;
}

footer p {
    margin: 8px 0;
    font-size: 1.05em;
}

.note {
    opacity: 0.9;
    font-weight: 600;
}

#totalSamples {
    font-size: 1.2em;
    font-weight: 700;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .samples-table {
        font-size: 0.9em;
    }
    
    audio {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    header h2 {
        font-size: 1.4em;
    }
    
    main {
        padding: 20px;
    }
    
    .samples-table {
        font-size: 0.8em;
    }
    
    .samples-table th,
    .samples-table td {
        padding: 10px 5px;
    }
    
    audio {
        max-width: 100%;
        height: 35px;
    }
}

/* 로딩 애니메이션 */
.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 1.2em;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* 스크롤바 스타일 */
.samples-section::-webkit-scrollbar {
    height: 10px;
}

.samples-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.samples-section::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

.samples-section::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}
