/* Good Luck Live - Frontend Styles */
:root {
    --gll-bg: #1a1a2e;
    --gll-card: #16213e;
    --gll-accent: #e94560;
    --gll-gold: #ffd700;
    --gll-text: #ffffff;
    --gll-muted: #8892b0;
    --gll-border: #233554;
    --gll-green: #00d26a;
}

.gll-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gll-text);
}

/* Header badges */
.gll-live-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.gll-badge-live {
    background: var(--gll-accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    animation: gll-pulse 2s ease-in-out infinite;
}
@keyframes gll-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.gll-badge-platform, .gll-badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.gll-status-planned { background: #f39c12; }
.gll-status-live { background: var(--gll-accent); }
.gll-status-ended { background: #666; }

/* Scoreboard */
.gll-scoreboard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: var(--gll-card);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 15px;
    border: 1px solid var(--gll-border);
}
.gll-team { text-align: center; flex: 1; }
.gll-team-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--gll-gold);
    margin-bottom: 10px;
}
.gll-team-sets {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
}
.gll-score-vs {
    font-size: 24px;
    color: var(--gll-muted);
    font-weight: 300;
}

/* Set details */
.gll-sets-detail {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.gll-set {
    background: var(--gll-card);
    border: 1px solid var(--gll-border);
    border-radius: 10px;
    padding: 10px 18px;
    text-align: center;
    min-width: 80px;
}
.gll-set-active {
    border-color: var(--gll-accent);
    background: rgba(233, 69, 96, 0.15);
}
.gll-set-hidden { opacity: 0.3; }
.gll-set-label {
    display: block;
    font-size: 11px;
    color: var(--gll-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.gll-set-score { font-size: 18px; font-weight: 700; }

/* Video */
.gll-video-container { margin-bottom: 25px; }
.gll-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}
.gll-video-iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.gll-video-placeholder {
    background: var(--gll-card);
    border: 2px dashed var(--gll-border);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 25px;
}
.gll-placeholder-icon { font-size: 48px; margin-bottom: 15px; }
.gll-countdown { color: var(--gll-gold); font-weight: 600; }

/* Chat */
.gll-chat-container {
    background: var(--gll-card);
    border: 1px solid var(--gll-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}
.gll-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--gll-border);
}
.gll-chat-header h3 { margin: 0; font-size: 16px; }
.gll-chat-count { font-size: 12px; color: var(--gll-muted); }
.gll-chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gll-chat-msg {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}
.gll-chat-pseudo {
    font-weight: 700;
    color: var(--gll-gold);
    white-space: nowrap;
    font-size: 13px;
}
.gll-chat-text { word-break: break-word; }
.gll-chat-time {
    font-size: 11px;
    color: var(--gll-muted);
    white-space: nowrap;
    margin-left: auto;
}
.gll-chat-system {
    justify-content: center;
    padding: 6px 12px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 8px;
}
.gll-chat-system .gll-chat-text {
    color: var(--gll-accent);
    font-weight: 600;
    font-size: 13px;
}
.gll-chat-mine .gll-chat-pseudo { color: var(--gll-green); }

/* Chat input */
.gll-chat-input {
    padding: 12px 20px;
    border-top: 1px solid var(--gll-border);
    background: rgba(0,0,0,0.2);
}
.gll-input-pseudo {
    width: 100%;
    padding: 8px 12px;
    background: var(--gll-bg);
    border: 1px solid var(--gll-border);
    border-radius: 8px;
    color: var(--gll-text);
    font-size: 13px;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.gll-chat-form { display: flex; gap: 8px; }
.gll-input-message {
    flex: 1;
    padding: 10px 14px;
    background: var(--gll-bg);
    border: 1px solid var(--gll-border);
    border-radius: 8px;
    color: var(--gll-text);
    font-size: 14px;
    box-sizing: border-box;
}
.gll-input-message:focus, .gll-input-pseudo:focus {
    border-color: var(--gll-accent);
    outline: none;
}
.gll-btn-send {
    background: var(--gll-accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.gll-btn-send:hover { background: #d63a54; }
.gll-btn-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* No live */
.gll-no-live {
    text-align: center;
    padding: 60px 20px;
    background: var(--gll-card);
    border-radius: 16px;
    margin-bottom: 30px;
}
.gll-no-live-icon { font-size: 64px; margin-bottom: 15px; }
.gll-no-live h2 { margin-bottom: 10px; }
.gll-no-live p { color: var(--gll-muted); }

/* Sections */
.gll-section { margin-top: 30px; }
.gll-section-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gll-border);
}

/* Upcoming */
.gll-upcoming-list { display: flex; flex-direction: column; gap: 10px; }
.gll-upcoming-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--gll-card);
    border: 1px solid var(--gll-border);
    border-radius: 10px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--gll-text);
    transition: border-color 0.2s;
}
.gll-upcoming-item:hover { border-color: var(--gll-accent); }
.gll-upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}
.gll-upcoming-day { font-weight: 700; font-size: 14px; color: var(--gll-gold); }
.gll-upcoming-time { font-size: 12px; color: var(--gll-muted); }
.gll-upcoming-info { display: flex; flex-direction: column; gap: 4px; }
.gll-upcoming-platform { font-size: 12px; }

/* Replays */
.gll-replay-list { display: flex; flex-direction: column; gap: 10px; }
.gll-replay-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gll-card);
    border: 1px solid var(--gll-border);
    border-radius: 10px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--gll-text);
    transition: border-color 0.2s;
}
.gll-replay-item:hover { border-color: var(--gll-accent); }
.gll-replay-score { display: flex; align-items: center; gap: 15px; }
.gll-replay-score strong { font-size: 22px; color: var(--gll-gold); }
.gll-replay-date { font-size: 13px; color: var(--gll-muted); }

/* Responsive */
@media (max-width: 600px) {
    .gll-scoreboard { flex-direction: column; gap: 15px; padding: 20px; }
    .gll-team-name { font-size: 16px; }
    .gll-team-sets { font-size: 42px; }
    .gll-score-vs { font-size: 18px; }
    .gll-sets-detail { gap: 6px; }
    .gll-set { min-width: 60px; padding: 8px 12px; }
    .gll-chat-messages { height: 250px; }
    .gll-replay-score { gap: 10px; }
    .gll-replay-score strong { font-size: 18px; }
    .gll-live-bar { flex-direction: column; gap: 8px; }
    .gll-reactions-buttons { gap: 8px; }
    .gll-react-btn { padding: 8px 14px; }
    .gll-poll-option { padding: 10px 14px; }
}

/* ── Live bar (viewers + share) ── */
.gll-live-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.gll-viewers {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gll-muted);
    background: var(--gll-card);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--gll-border);
}
.gll-viewers-dot {
    width: 8px;
    height: 8px;
    background: var(--gll-accent);
    border-radius: 50%;
    display: inline-block;
    animation: gll-pulse 2s ease-in-out infinite;
}

/* ── Share buttons ── */
.gll-share-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gll-share-label {
    font-size: 12px;
    color: var(--gll-muted);
    margin-right: 4px;
}
.gll-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gll-card);
    border: 1px solid var(--gll-border);
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
}
.gll-share-btn:hover {
    border-color: var(--gll-accent);
    transform: scale(1.1);
}
.gll-share-copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gll-green);
    color: #000;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    animation: gll-fadeout 2s ease forwards;
}
@keyframes gll-fadeout {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

/* ── Reactions ── */
.gll-reactions {
    position: relative;
    margin-bottom: 15px;
}
.gll-reactions-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.gll-react-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--gll-card);
    border: 1px solid var(--gll-border);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gll-text);
    font-size: 14px;
}
.gll-react-btn:hover {
    border-color: var(--gll-accent);
    transform: scale(1.08);
}
.gll-react-btn:active {
    transform: scale(0.95);
}
.gll-react-emoji {
    font-size: 22px;
}
.gll-react-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--gll-muted);
}
/* Burst animation */
.gll-reactions-burst {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 50px;
    overflow: hidden;
    pointer-events: none;
}
.gll-burst-emoji {
    position: absolute;
    font-size: 24px;
    animation: gll-float-up 2s ease-out forwards;
    opacity: 0;
}
@keyframes gll-float-up {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    50% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-60px) scale(1.4); }
}

/* ── Poll ── */
.gll-poll-container {
    margin-bottom: 15px;
}
.gll-poll {
    background: var(--gll-card);
    border: 1px solid var(--gll-border);
    border-radius: 12px;
    padding: 18px;
}
.gll-poll-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.gll-poll-icon {
    font-size: 18px;
}
.gll-poll-question {
    font-weight: 700;
    font-size: 15px;
    flex: 1;
}
.gll-poll-closed {
    background: #666;
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.gll-poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gll-poll-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--gll-border);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
    color: var(--gll-text);
    font-size: 14px;
    text-align: left;
    width: 100%;
}
.gll-poll-option:hover {
    border-color: var(--gll-accent);
}
.gll-poll-option.gll-poll-voted {
    border-color: var(--gll-gold);
    cursor: default;
}
.gll-poll-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(233, 69, 96, 0.15);
    border-radius: 10px;
    transition: width 0.5s ease;
    pointer-events: none;
}
.gll-poll-option-text {
    position: relative;
    z-index: 1;
    font-weight: 600;
}
.gll-poll-option-pct {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: var(--gll-accent);
    font-size: 15px;
}
.gll-poll-total {
    text-align: center;
    font-size: 12px;
    color: var(--gll-muted);
    margin-top: 10px;
}
