[x-cloak] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%; height: 100%;
    background: #000;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ── Video / Animation Background ── */

.bg-layer {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.15;
    filter: blur(2px);
}

.bg-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.7) 50%,
        rgba(0,0,0,0.95) 100%
    );
}

/* Programmatic animation fallback */
.bg-anim {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
}

@keyframes divine-pulse {
    0%, 100% { opacity: 0.08; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.15; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes divine-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.bg-anim-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.1);
    animation: divine-pulse 6s ease-in-out infinite;
    will-change: opacity, transform;
}

.bg-anim-ring:nth-child(1) { width: 200px; height: 200px; animation-delay: 0s; }
.bg-anim-ring:nth-child(2) { width: 350px; height: 350px; animation-delay: 1s; border-color: rgba(255,215,0,0.06); }
.bg-anim-ring:nth-child(3) { width: 500px; height: 500px; animation-delay: 2s; border-color: rgba(255,215,0,0.04); }
.bg-anim-ring:nth-child(4) { width: 650px; height: 650px; animation-delay: 3s; border-color: rgba(255,215,0,0.02); }

.bg-anim-cross {
    position: absolute;
    top: 50%; left: 50%;
    width: 300px; height: 300px;
    animation: divine-rotate 120s linear infinite;
    opacity: 0.03;
    will-change: transform;
}

.bg-anim-cross::before,
.bg-anim-cross::after {
    content: ''; position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(255,215,0,0.3), transparent);
}

.bg-anim-cross::before {
    top: 0; left: 50%;
    width: 1px; height: 100%;
    transform: translateX(-50%);
}

.bg-anim-cross::after {
    top: 50%; left: 0;
    width: 100%; height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(to right, transparent, rgba(255,215,0,0.3), transparent);
}

/* ── Content Layer ── */

.content-layer {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ── Navigation ── */

.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(10, 10, 20, 0.9);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-inner {
    max-width: 768px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.navbar-brand {
    display: flex; align-items: center; gap: 8px;
    color: #ffd700; font-weight: bold; font-size: 14px;
}

.navbar-brand img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex; gap: 6px; flex-wrap: wrap;
}

.nav-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(58, 58, 90, 0.5);
    background: rgba(30, 30, 50, 0.5);
    color: #888;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.nav-btn:hover, .nav-btn.active {
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
}

.nav-btn-register {
    background: rgba(0, 180, 100, 0.15);
    color: #00cc77;
    border-color: rgba(0, 180, 100, 0.3);
}

.nav-btn-register:hover {
    background: rgba(0, 180, 100, 0.25);
    color: #00ff88;
}

/* ── Pages ── */

.page { padding-top: 60px; padding-bottom: 30px; }

.page-inner {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Center Hero Area ── */

.hero-area {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 10px;
}

.hero-area h2 {
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 6px;
}

.hero-area p {
    color: #888;
    font-size: 13px;
}

/* ── Circles Container ── */

.circles-container {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto 24px;
    max-width: 95vw;
    max-height: 95vw;
}

.center-image {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 130px; height: 130px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 10;
    box-shadow:
        0 0 40px rgba(255, 215, 0, 0.2),
        0 0 80px rgba(255, 215, 0, 0.1);
}

@keyframes logo-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(255,215,0,0.15), 0 0 60px rgba(255,215,0,0.08); }
    50% { box-shadow: 0 0 50px rgba(255,215,0,0.25), 0 0 100px rgba(255,215,0,0.12); }
}

.center-image {
    animation: logo-glow 4s ease-in-out infinite;
}

.center-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ── Outer Circles (6 around center) ── */

.outer-circle {
    position: absolute;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: bold;
    cursor: pointer;
    border: 2px solid;
    left: 50%; top: 50%;
    transition: all 0.3s;
    overflow: hidden;
    flex-direction: column;
}

.outer-circle {
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translate(var(--radius, 150px)) rotate(calc(var(--angle, 0deg) * -1));
}

.outer-circle.empty {
    background: rgba(30, 30, 50, 0.6);
    border-color: #3a3a5a;
    color: #5a5a7a;
}

.outer-circle.active-stream {
    background: rgba(10, 60, 30, 0.8);
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.outer-circle.scheduled {
    background: rgba(40, 40, 20, 0.8);
    border-color: #888844;
    color: #bbbb66;
}

.outer-circle.selected-live {
    border-color: #ff2222;
    box-shadow: 0 0 25px rgba(255, 30, 30, 0.6);
}

.outer-circle.selected-waiting {
    border-color: #ffdd00;
    box-shadow: 0 0 25px rgba(255, 221, 0, 0.5);
}

.outer-circle:active {
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translate(var(--radius, 150px)) rotate(calc(var(--angle, 0deg) * -1)) scale(0.93);
}

.circle-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; top: 0; left: 0;
    border-radius: 50%;
}

.circle-name {
    position: absolute;
    bottom: 2px;
    font-size: 8px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 54px;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 1px 4px;
    border-radius: 4px;
}

/* ── Tooltip ── */

.circle-tooltip {
    position: fixed;
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid #ffd700;
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 180px;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    pointer-events: none;
    display: none;
    font-size: 12px;
}

.circle-tooltip h4 {
    color: #ffd700;
    margin-bottom: 6px;
    font-size: 14px;
}

.circle-tooltip p {
    color: #aaa;
    margin: 3px 0;
}

.circle-tooltip p i {
    width: 16px;
    text-align: center;
    margin-right: 4px;
}

/* ── Audio Player ── */

.audio-player {
    background: rgba(20, 20, 35, 0.9);
    border: 1px solid rgba(58, 58, 90, 0.5);
    border-radius: 16px;
    padding: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.player-info { flex: 1; min-width: 0; margin-right: 12px; }

.player-title {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-subtitle { font-size: 12px; color: #888; }

.player-controls { display: flex; gap: 8px; }

.btn-circle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-circle-sm { width: 32px; height: 32px; font-size: 12px; }

.btn-play {
    background: #ffd700; color: #000;
    width: 44px; height: 44px; font-size: 16px;
}

.btn-mute { background: rgba(58,58,90,0.5); color: #ffd700; }

.progress-bar {
    height: 6px;
    background: rgba(58, 58, 90, 0.5);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #ffd700, #ff8c00);
    width: 0%;
    transition: width 0.3s;
}

.progress-times {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #888;
}

/* ── Cards / Panels ── */

.card {
    background: rgba(20, 20, 35, 0.9);
    border: 1px solid rgba(58, 58, 90, 0.5);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}

.card-title.gold { color: #ffd700; }
.card-title.green { color: #00ff88; }

/* ── Forms ── */

.form-group { margin-bottom: 12px; }

.form-label {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 4px;
}

.form-input, .form-select {
    width: 100%;
    background: rgba(30, 30, 55, 0.8);
    border: 1px solid rgba(58, 58, 90, 0.5);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
    border-color: rgba(255, 215, 0, 0.5);
}

.form-select option { background: #1a1a2e; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Buttons ── */

.btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    width: 100%;
}

.btn-primary:hover { opacity: 0.9; }

.btn-green { background: #00cc66; color: #000; }
.btn-red { background: #cc3333; color: #fff; }
.btn-gray { background: rgba(58,58,90,0.5); color: #ccc; }

.btn-sm { padding: 6px 10px; font-size: 11px; }

/* ── Stats Grid ── */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.stat-card {
    background: rgba(20, 20, 35, 0.9);
    border: 1px solid rgba(58, 58, 90, 0.5);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
}

.stat-label { font-size: 11px; color: #888; }

/* ── Tables ── */

.data-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid rgba(58, 58, 90, 0.3);
}

.data-table th { color: #888; font-weight: 600; }

/* ── Badge ── */

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.badge-green { background: #00cc66; color: #000; }
.badge-gold { background: #ffd700; color: #000; }
.badge-gray { background: rgba(58,58,90,0.5); color: #aaa; }
.badge-red { background: #cc3333; color: #fff; }

/* ── Stream Items ── */

.stream-item {
    background: rgba(30, 30, 55, 0.5);
    border: 1px solid rgba(58, 58, 90, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

.stream-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.stream-item-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.stream-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* ── Recording Item ── */

.rec-item {
    background: rgba(30, 30, 55, 0.5);
    border: 1px solid rgba(58, 58, 90, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

/* ── Photo Upload ── */

.photo-upload {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    overflow: hidden;
    margin: 0 auto 12px;
    transition: border-color 0.2s;
}

.photo-upload:hover { border-color: #ffd700; }

.photo-upload img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.photo-upload i {
    font-size: 24px;
    color: rgba(255, 215, 0, 0.3);
}

/* ── Auth Forms ── */

.auth-container {
    max-width: 380px;
    margin: 40px auto 0;
}

.auth-container .card {
    text-align: center;
}

.auth-container .card-title {
    justify-content: center;
}

/* ── Live Indicator ── */

.live-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #00ff88;
    animation: live-blink 1.5s ease-in-out infinite;
    margin-right: 4px;
}

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

/* ── Pagination ── */

.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
}

.pagination .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* ── Scrollbar ── */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a3a5a; border-radius: 2px; }

/* ── Responsive ── */

@media (max-width: 380px) {
    .circles-container { width: 290px; height: 290px; }
    .center-image { width: 105px; height: 105px; }
    .outer-circle { width: 50px; height: 50px; }
    .outer-circle:nth-child(n+2) { --radius: 128px; }
    .navbar-brand span { font-size: 12px; }
}

/* ── Online Broadcasters List (in broadcast mode) ── */

.live-broadcasters {
    margin-top: 16px;
}

.live-broadcaster-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(30, 30, 55, 0.5);
    border-radius: 8px;
    margin-bottom: 6px;
}

.live-broadcaster-photo {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ff88;
}

/* ── Recording Controls ── */

.rec-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(30, 30, 55, 0.5);
    border-radius: 10px;
    margin-bottom: 12px;
}

.rec-timer {
    font-size: 24px;
    font-weight: bold;
    color: #ff4444;
    font-variant-numeric: tabular-nums;
}

@keyframes rec-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.rec-indicator {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #ff4444;
    animation: rec-pulse 1s ease-in-out infinite;
}

/* Tabs */

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.tab-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(58, 58, 90, 0.5);
    background: rgba(30, 30, 55, 0.5);
    color: #888;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-btn.active {
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Toggle switch */

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    display: inline-block;
}

.toggle-switch input { display: none; }

.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(58, 58, 90, 0.5);
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #ccc;
    top: 2px; left: 2px;
    transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: #00cc66;
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(18px);
    background: #fff;
}

/* Search/Filter bar */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.filter-bar .form-input,
.filter-bar .form-select {
    flex: 1;
    min-width: 120px;
    padding: 8px 10px;
    font-size: 12px;
}
