.gotochat {
    min-height: calc(100vh - var(--gts-nav-offset, 92px));
    padding: 24px clamp(14px, 2vw, 28px);
    background:
        linear-gradient(135deg, rgba(7, 10, 18, 0.95), rgba(15, 18, 28, 0.9)),
        url("/assets/img/banner-multistream.webp") center/cover fixed;
    color: #f8fafc;
}

.gotochat__shell {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.gotochat__topbar,
.gotochat__panel,
.gotochat__login-panel {
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(12, 14, 22, 0.82);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(18px);
}

.gotochat__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border-radius: 8px;
}

.gotochat__identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.gotochat__avatar {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #9147ff, #08b981);
    flex: 0 0 auto;
}

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

.gotochat__avatar i {
    font-size: 2rem;
}

.gotochat h1,
.gotochat h2 {
    margin: 0;
    letter-spacing: 0;
}

.gotochat h1 {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    font-weight: 800;
}

.gotochat h2 {
    font-size: 1rem;
    font-weight: 800;
}

.gotochat__subtitle,
.gotochat__panel-head span,
.gotochat__channel-card span {
    display: block;
}

.gotochat__channel-link {
    display: inline-flex;
    margin-top: 4px;
    color: #ff8fa1;
    font-size: 0.82rem;
    text-decoration: none;
}

.gotochat__channel-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.gotochat__channel-link--kick {
    color: #91ff70;
}

.gotochat__channel-card span {
    color: rgba(226, 232, 240, 0.72);
}

.gotochat__statusbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gotochat__status-pill,
.gotochat__icon-button,
.gotochat__filters button,
.gotochat__primary-button {
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.gotochat__status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    font-size: 0.88rem;
}

.gotochat__status-pill span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
}

.gotochat__status-pill.is-online span {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.gotochat__status-pill.is-ready span {
    background: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.gotochat__icon-button {
    width: 38px;
    display: grid;
    place-items: center;
}

.gotochat__grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px);
    gap: 14px;
    margin-top: 14px;
}

.gotochat__panel {
    border-radius: 8px;
    min-height: 0;
}

.gotochat__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gotochat__channel-list,
.gotochat__filters,
.gotochat__mini-feed {
    padding: 14px;
}

.gotochat__channel-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.gotochat__provider-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.gotochat__provider-mark--twitch {
    background: #9147ff;
}

.gotochat__provider-mark--kick {
    background: #53fc18;
    color: #071007;
}

.gotochat__provider-mark--youtube {
    background: #ff0033;
}

.gotochat__filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.gotochat__filters button {
    padding: 8px 10px;
}

.gotochat__filters button.is-active {
    background: #ffffff;
    color: #111827;
}

.gotochat__timeline {
    height: calc(100vh - 236px);
    min-height: 520px;
    overflow: auto;
    padding: 12px;
}

.gotochat__event {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    margin-bottom: 10px;
}

.gotochat__event-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(145, 71, 255, 0.18);
    color: #ffffff;
    font-size: 1.25rem;
}

.gotochat__event--kick .gotochat__event-icon {
    background: rgba(83, 252, 24, 0.18);
    color: #91ff70;
}

.gotochat__event--youtube .gotochat__event-icon {
    background: rgba(255, 0, 51, 0.18);
    color: #ff8fa1;
}

.gotochat__event-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gotochat__sender {
    font-weight: 800;
}

.gotochat__badge {
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
}

.gotochat__badge--twitch {
    background: #9147ff;
    color: #ffffff;
}

.gotochat__badge--kick {
    background: #53fc18;
    color: #071007;
}

.gotochat__badge--youtube {
    background: #ff0033;
    color: #ffffff;
}

.gotochat__event-time {
    margin-left: auto;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.8rem;
}

.gotochat__message {
    margin-top: 5px;
    color: #e2e8f0;
    word-break: break-word;
}

.gotochat__metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.gotochat__metric span {
    color: rgba(226, 232, 240, 0.72);
}

.gotochat__metric strong {
    font-size: 1.4rem;
}

.gotochat__mini-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.9rem;
}

.gotochat__login-panel {
    margin-top: 14px;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.gotochat__primary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    text-decoration: none;
    background: #9147ff;
}

@media (max-width: 1100px) {
    .gotochat__grid {
        grid-template-columns: 1fr;
    }

    .gotochat__timeline {
        height: auto;
        min-height: 480px;
        max-height: 68vh;
    }
}

@media (max-width: 720px) {
    .gotochat {
        padding: 12px;
    }

    .gotochat__topbar,
    .gotochat__login-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .gotochat__statusbar {
        justify-content: flex-start;
    }
}
