* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #e2e8f0;
}

.mobile-header {
    display: none;
    background: rgba(15, 23, 42, .95);
    padding: 15px 20px;
    border-bottom: 1px solid #334155;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-person-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.catalog {
    width: 280px;
    background: rgba(15, 23, 42, .9);
    backdrop-filter: blur(10px);
    color: #fff;
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, .2);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 999;
}

.catalog h2 {
    padding: 0 20px 15px;
    border-bottom: 1px solid #334155;
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.catalog-close {
    display: none;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.catalog ul {
    list-style: none;
    flex: 1;
}

.catalog li {
    padding: 12px 20px;
    cursor: pointer;
    transition: .3s;
    border-left: 4px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.catalog li:hover {
    background: #1e293b;
}

.catalog li.active {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-left: 4px solid #60a5fa;
    font-weight: 700;
}

.person-category {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.footer-info {
    padding: 15px 20px 0;
    border-top: 1px solid #334155;
    font-size: .9rem;
    color: #94a3b8;
    display: flex;
    gap: 8px;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.person-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, .1);
}

.person-name {
    font-size: 2.2rem;
}

.format-switcher {
    display: flex;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

.format-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-btn.active {
    background: #3b82f6;
}

.content-section {
    display: none;
    animation: fadeIn .4s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.person-main-info,
.bio-text,
.audio-player,
.audio-transcript {
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
    padding: 25px;
    border-radius: 12px;
}

.person-main-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.person-image-container {
    width: 250px;
    position: relative;
    flex-shrink: 0;
}

.person-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.person-years {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, .6);
    padding: 8px;
    text-align: center;
    font-weight: 700;
}

.person-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

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

.info-label {
    font-weight: 600;
    color: #94a3b8;
    margin-right: 10px;
}

.person-biography h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.bio-text {
    line-height: 1.6;
    margin-bottom: 30px;
}

.gallery-section {
    margin-top: 30px;
}

.gallery-section h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-item {
    flex: 0 0 auto;
    width: 200px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.audio-header {
    margin-bottom: 20px;
}

.audio-subtitle {
    color: #94a3b8;
    margin-top: 5px;
}

.audio-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.audio-cover {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.audio-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.audio-details {
    flex: 1;
}

.audio-duration {
    color: #94a3b8;
    margin: 5px 0;
}

.audio-description {
    color: #cbd5e1;
}

#real-audio {
    display: none;
}

.audio-controls {
    margin-top: 20px;
}

.progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: #3b82f6;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.control-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.play-btn {
    background: #3b82f6;
    width: 50px;
    height: 50px;
}

.volume-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

#volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
}

.time-display {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.audio-transcript {
    margin-top: 30px;
}

.audio-transcript h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.transcript-text {
    line-height: 1.6;
    color: #cbd5e1;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .mobile-header {
        display: flex;
    }

    .catalog {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }

    .catalog.mobile-visible {
        transform: translateX(0);
    }

    .catalog-close {
        display: block;
    }

    .menu-overlay.mobile-visible {
        display: block;
    }

    .content {
        padding: 20px;
        margin-top: 0;
    }

    .person-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .person-name {
        font-size: 1.8rem;
        width: 100%;
    }

    .format-switcher {
        width: 100%;
        justify-content: center;
    }

    .format-btn {
        flex: 1;
        justify-content: center;
        padding: 12px;
        font-size: 0.95rem;
    }

    .person-main-info {
        flex-direction: column;
        gap: 20px;
    }

    .person-image-container {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .person-image {
        height: 250px;
    }

    .person-details {
        width: 100%;
    }

    .audio-info {
        flex-direction: column;
        text-align: center;
    }

    .audio-cover {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .control-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .volume-container {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        order: 3;
    }

    .gallery-item {
        width: 150px;
    }

    .gallery-item img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 15px;
    }

    .person-name {
        font-size: 1.5rem;
    }

    .format-btn {
        font-size: 0.9rem;
        padding: 10px;
    }

    .person-main-info,
    .bio-text,
    .audio-player,
    .audio-transcript {
        padding: 20px;
    }

    .person-image {
        height: 200px;
    }

    .info-label {
        display: block;
        margin-bottom: 5px;
    }

    .gallery-item {
        width: 120px;
    }

    .gallery-item img {
        height: 100px;
    }

    .audio-cover {
        width: 120px;
        height: 120px;
    }

    .control-btn {
        width: 36px;
        height: 36px;
    }

    .play-btn {
        width: 44px;
        height: 44px;
    }

    #volume-slider {
        width: 80px;
    }
}