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

:root {
    --slate-950: #0B0E14;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    --cyan: #22D3EE;
    --cyan-hover: #06B6D4;
    --orange: #F97316;
    --orange-hover: #EA580C;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--slate-950);
    color: var(--slate-50);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 1;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(248, 250, 252, 0.08);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo .accent {
    color: var(--cyan);
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--slate-800);
    border: 1px solid rgba(248, 250, 252, 0.08);
    color: var(--slate-50);
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-btn:hover {
    background: var(--slate-700);
    border-color: var(--cyan);
    transform: translateY(-1px);
}

.admin-btn svg {
    transition: transform 0.3s ease;
}

.admin-btn:hover svg {
    transform: rotate(90deg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--cyan);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.player-wrapper {
    position: relative;
    background: var(--slate-900);
    border: 1px solid rgba(248, 250, 252, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 20px 25px -5px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(34, 211, 238, 0.1);
}

#player {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.admin-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: var(--slate-900);
    border-left: 1px solid rgba(248, 250, 252, 0.08);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -20px 0 25px -5px rgba(0, 0, 0, 0.3);
}

.admin-panel.active {
    right: 0;
}

.admin-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(248, 250, 252, 0.08);
}

.admin-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--slate-50);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--slate-800);
}

.admin-body {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-body label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-100);
    margin-bottom: 0.5rem;
}

.admin-body input {
    width: 100%;
    background: var(--slate-800);
    border: 1px solid rgba(248, 250, 252, 0.08);
    color: var(--slate-50);
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.938rem;
    transition: all 0.2s ease;
}

.admin-body input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.hint {
    font-size: 0.813rem;
    color: var(--slate-700);
    margin-top: -0.5rem;
}

.save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--orange);
    border: none;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.938rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.save-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

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

.success-message {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--cyan);
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-content {
        padding: 1rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .admin-panel {
        max-width: 100%;
    }

    .admin-body {
        padding: 1.5rem;
    }
}
