* {
    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;
    padding: 20px;
    color: #fff;
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

#loading {
    text-align: center;
    padding: 100px 20px;
    font-size: 1.3em;
    color: #fbbf24;
}

#content {
    display: none;
}

.mode-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mode-btn.active {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-color: #4ade80;
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.6);
}

.content-area {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    margin-bottom: 30px;
    min-height: 500px;
    animation: fadeIn 0.5s ease;
}

.content-header {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mode-badge {
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.6em;
    font-weight: bold;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.text-content {
    line-height: 1.9;
    font-size: 1.1em;
    opacity: 0.95;
}

.text-content h3 {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #fbbf24;
}

.text-content p {
    margin-bottom: 20px;
}

.text-content ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.text-content li {
    margin-bottom: 10px;
}

.video-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.video-player {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.video-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #4ade80;
}

.interactive-canvas {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.control-panel {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.4);
}

.visualization-area {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.visual-element {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    animation: pulse 2s infinite;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.5);
}

.audio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.audio-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.audio-card h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #4ade80;
}

.audio-icon {
    font-size: 3em;
    margin: 20px 0;
}

.play-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.5);
}

.transcript {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.7;
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.nav-btn {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@media (max-width: 968px) {
    .video-container {
        grid-template-columns: 1fr;
    }

    .audio-container {
        grid-template-columns: 1fr;
    }
}