:root {
    --bg-main: #0a0a0c;
    --card-bg: rgba(22, 22, 28, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --player-bg: linear-gradient(145deg, rgba(30, 25, 22, 0.8), rgba(15, 15, 18, 0.8));
    --accent: #ff6b00;
    --accent-glow: rgba(255, 107, 0, 0.35);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --element-bg: rgba(255, 255, 255, 0.04);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

[data-theme="light"] {
    --bg-main: #f3f4f6;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.08);
    --player-bg: linear-gradient(145deg, rgba(255, 245, 235, 0.9), rgba(245, 245, 250, 0.9));
    --accent: #e65c00;
    --accent-glow: rgba(230, 92, 0, 0.25);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --element-bg: rgba(0, 0, 0, 0.04);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Glow Mesh */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(90px);
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    right: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(120, 40, 255, 0.15) 0%, transparent 70%);
    filter: blur(100px);
}

.app-container {
    max-width: 1100px;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--accent), #e05300);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 8px 20px var(--accent-glow);
}

.brand-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brand-text h1 span {
    color: var(--accent);
}

.brand-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--element-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.badge-decade {
    background: var(--element-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(255, 107, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-accent {
    color: var(--accent);
}

.card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(255, 107, 0, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Player Card */
.player-card {
    grid-column: span 8;
    background: var(--player-bg);
    border: 1px solid rgba(255, 107, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.player-status {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.live-pill {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.player-core {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

.track-info {
    overflow: hidden;
}

.visualizer-circle {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--element-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.visualizer-circle.playing {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 30px var(--accent-glow);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(255, 107, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.stream-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stream-title {
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease;
}

/* Player Controls & Custom Play Button */
.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 10px;
    flex-wrap: wrap;
}

.play-btn-wide {
    flex: 2;
    min-width: 200px;
    height: 54px;
    border-radius: 100px;
    background: linear-gradient(135deg, #ff6b00, #ff8800);
    border: none;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-btn-wide:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.5);
    background: linear-gradient(135deg, #ff7b1a, #ffa033);
}

.play-btn-wide:active {
    transform: translateY(0);
}

.play-btn-wide.playing {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Эквалайзер внутри кнопки */
.btn-equalizer {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    margin-left: 4px;
}

.play-btn-wide.playing .btn-equalizer {
    display: flex;
}

.eq-bar {
    width: 3px;
    height: 100%;
    background-color: #ffffff;
    border-radius: 4px;
    animation: eqPulse 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { animation-duration: 0.8s; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { animation-duration: 1.1s; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { animation-duration: 0.7s; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { animation-duration: 0.9s; animation-delay: 0.4s; }

@keyframes eqPulse {
    0% { height: 20%; opacity: 0.4; }
    50% { height: 100%; opacity: 1; }
    100% { height: 35%; opacity: 0.7; }
}

/* Громкость */
.volume-bar-wrapper {
    flex: 1;
    min-width: 160px;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--element-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    padding: 0 18px;
    border-radius: 100px;
}

.volume-slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.volume-bar-wrapper input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(150, 150, 150, 0.2);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.volume-bar-wrapper input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-bar-wrapper input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Host Card */
.host-card {
    grid-column: span 4;
}

.host-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 8px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
    animation: blink 1.5s infinite;
}

.host-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.host-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.host-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), var(--element-bg));
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.host-card:hover .host-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.4);
}

.host-details h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.host-role {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    margin: 3px 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.host-bio {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.host-quote-box {
    position: relative;
    background: var(--element-bg);
    border-left: 3px solid var(--accent);
    padding: 12px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote-icon {
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 1.2rem;
    color: rgba(255, 107, 0, 0.15);
}

.host-quote {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Schedule Card */
.schedule-card {
    grid-column: span 4;
}

.schedule-grid {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-grid li {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--card-border);
}

.schedule-grid .time {
    color: var(--accent);
    font-weight: 700;
    font-family: monospace;
}

.schedule-grid .event {
    color: var(--text-primary);
}

/* Info Card (О Братстве) */
.info-card {
    grid-column: span 4;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-banner {
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.15), transparent);
    border-left: 2px solid var(--accent);
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    border-radius: 0 6px 6px 0;
}

.info-text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-pill {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--element-bg);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
}

/* Timeline Card (10 Лет В Пути) */
.timeline-card {
    grid-column: span 4;
}

.timeline-stepper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 10px;
    margin-top: 6px;
}

.t-line {
    position: absolute;
    left: 14px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--card-border);
    z-index: 1;
}

.t-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--text-secondary);
    transition: all 0.3s ease;
}

.t-item.active .t-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.t-data {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.83rem;
}

.t-year {
    font-family: monospace;
    font-weight: 700;
    color: var(--accent);
    background: rgba(255, 107, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.t-desc {
    color: var(--text-secondary);
}

.t-item.active .t-desc {
    color: var(--text-primary);
    font-weight: 600;
}

/* Socials Card */
.socials-card {
    grid-column: span 12;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-pill {
    background: var(--element-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.social-pill:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-top: 10px;
}

/* Адаптивность для мобильных */
@media (max-width: 900px) {
    .player-card, .host-card, .schedule-card, .info-card, .timeline-card {
        grid-column: span 12;
    }
}