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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.brand-logo h1 {
    font-size: 3rem;
    margin-bottom: 5px;
    color: #4a5568;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-name {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.brand-english {
    color: #4a5568;
    font-weight: 300;
}

.brand-tagline {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

header p {
    font-size: 1.1rem;
    color: #718096;
}

.pronunciation-note {
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a5568;
}

.pronunciation-note strong {
    color: #2d3748;
    font-weight: 600;
}

.search-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

#sound-search {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
}

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

.clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #718096;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.clear-btn.show {
    opacity: 1;
}

.clear-btn:hover {
    background: #e53e3e;
    transform: translateY(-50%) scale(1.1);
}

.quick-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid #4299e1;
    color: #4299e1;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(66, 153, 225, 0.2);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #4299e1;
    color: white;
}

.subcategory-filters {
    margin-top: 15px;
}

.subcategory-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.subcategory-btn {
    background: rgba(116, 75, 162, 0.1);
    border: 1px solid #764ba2;
    color: #764ba2;
    padding: 6px 14px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.subcategory-btn:hover {
    background: rgba(116, 75, 162, 0.2);
    transform: translateY(-1px);
}

.subcategory-btn.active {
    background: #764ba2;
    color: white;
}

.search-results-info {
    text-align: center;
    padding: 10px 0;
    color: #718096;
    font-style: italic;
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #4a5568;
}

.highlight {
    background: linear-gradient(120deg, #a78bfa 0%, #ec4899 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.quick-jump {
    margin-top: 25px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.jump-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 15px;
    text-align: center;
}

.sound-numbers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.number-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.group-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.number-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-width: 100%;
}

.jump-btn {
    background: rgba(116, 75, 162, 0.1);
    border: 1px solid #764ba2;
    color: #764ba2;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jump-btn:hover {
    background: rgba(116, 75, 162, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(116, 75, 162, 0.2);
}

.jump-btn.active {
    background: #764ba2;
    color: white;
    box-shadow: 0 2px 8px rgba(116, 75, 162, 0.3);
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.tab-btn.active {
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
}

#content-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
}

.section-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin: 40px 0 25px 0;
    color: #4a5568;
    font-weight: 600;
}

.sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.sound-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.sound-card.speaking {
    border-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(72, 187, 120, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(72, 187, 120, 0.1);
    }
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(72, 187, 120, 0.4);
    }
}

.sound-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.sound-number {
    background: #4299e1;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.sound-category {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

.pronunciation-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.pronunciation-item {
    text-align: center;
}

.pronunciation-label {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.pronunciation-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3748;
    font-family: 'Courier New', monospace;
}

.example-section {
    background: rgba(66, 153, 225, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.example-label {
    font-size: 0.8rem;
    color: #4299e1;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.example-word {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2d3748;
    cursor: pointer;
    transition: color 0.3s ease;
}

.example-word:hover {
    color: #4299e1;
}

.notes {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.4;
    font-style: italic;
}


.sound-card {
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .brand-logo h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .brand-tagline {
        font-size: 0.75rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    header p {
        font-size: 1rem;
        margin-top: 15px;
    }
    
    .pronunciation-note {
        padding: 12px;
        font-size: 0.9rem;
        margin-top: 15px;
    }
    
    .search-section {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    #sound-search {
        padding: 12px 45px 12px 15px;
        font-size: 0.95rem;
    }
    
    .quick-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .quick-jump {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .jump-label {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .number-buttons {
        gap: 4px;
    }
    
    .jump-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .tab-nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .tab-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        min-width: auto;
        flex: 0 0 auto;
    }
    
    .sound-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sound-card {
        padding: 18px;
    }
    
    .sound-header {
        margin-bottom: 12px;
    }
    
    .sound-category {
        font-size: 1.2rem;
    }
    
    .pronunciation-info {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .pronunciation-value {
        font-size: 1.3rem;
    }
    
    .example-section {
        padding: 12px;
    }
    
    .example-word {
        font-size: 1.3rem;
    }
    
    .notes {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    #content-area {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 15px;
    }
    
    .brand-logo h1 {
        font-size: 1.8rem;
    }
    
    .brand-tagline {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    
    .pronunciation-note {
        padding: 10px;
        font-size: 0.85rem;
        margin-top: 12px;
    }
    
    .search-section {
        padding: 15px;
    }
    
    #sound-search {
        padding: 10px 40px 10px 12px;
        font-size: 0.9rem;
    }
    
    .filter-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .quick-jump {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .jump-label {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .number-buttons {
        gap: 3px;
    }
    
    .jump-btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .tab-nav {
        gap: 6px;
    }
    
    .tab-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .sound-card {
        padding: 15px;
    }
    
    .sound-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .sound-category {
        font-size: 1.1rem;
    }
    
    .pronunciation-value {
        font-size: 1.2rem;
    }
    
    .example-word {
        font-size: 1.2rem;
    }
    
    
    .section-title {
        font-size: 1.4rem;
    }
    
    #content-area {
        padding: 15px;
    }
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #718096;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}