body.livechat-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #000000;
}

.livechat-cart {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 20;
    text-decoration: none;
}

.livechat-hero {
    flex: 1;
    min-height: 70vh;
    background: #000000 url('images/gigeraltar.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.livechat-site-footer {
    background-color: #000000;
    flex-shrink: 0;
}

.hero-chat-wrap {
    position: relative;
    display: inline-block;
    width: 900px;
    max-width: 100%;
}

.hero-chat-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-chat-overlay {
    position: relative;
    z-index: 2;
}

.livechat-hero .hero-chat-overlay {
    position: static;
    transform: none;
}

.terminal-chat {
    background-color: rgba(0, 0, 0, 0.92);
    color: #33ff33;
    font-family: 'Courier New', Courier, monospace;
    border: 2px solid #33ff33;
    width: 320px;
    padding: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.45);
    text-shadow: 0 0 3px #00ff00;
    border-radius: 4px;
    position: relative;
    text-align: left;
    display: inline-block;
}

.livechat-hero .terminal-chat {
    width: 640px;
    max-width: calc(100vw - 32px);
    padding: 24px;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.45);
}

.terminal-chat::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 5;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.terminal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
}

.livechat-hero .terminal-overlay {
    padding: 40px;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 2px dashed #33ff33;
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
}

.terminal-header-title {
    min-width: 0;
}

.terminal-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.terminal-header-btn,
.sm-chat-control--leet,
.sm-chat-control--users {
    background: #33ff33;
    color: #000000;
    border: none;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 8px;
    text-transform: uppercase;
    font-size: 11px;
    line-height: 1.2;
    flex-shrink: 0;
}

.terminal-header-btn:hover,
.sm-chat-control--leet:hover,
.sm-chat-control--users:hover {
    background: #ffffff;
}

.terminal-header-btn.is-active,
.sm-chat-control--leet.is-active,
.sm-chat-control--users.is-active {
    background: #000000;
    color: #33ff33;
    box-shadow: inset 0 0 0 1px #33ff33;
}

.livechat-hero .terminal-header-btn {
    font-size: 18px;
    padding: 4px 12px;
}

.sm-chat-control--leet,
.sm-chat-control--users {
    width: auto;
    min-width: 48px;
    height: 22px;
    font-size: 10px;
    letter-spacing: 0;
    padding: 0 10px;
    white-space: nowrap;
}

.sm-chat-control--users {
    margin-right: 10px;
}

.terminal-content {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.terminal-content .terminal-body {
    flex: 1;
    min-width: 0;
}

.terminal-users {
    width: 110px;
    flex-shrink: 0;
    margin-left: 8px;
    margin-bottom: 10px;
    border-left: 2px dashed #33ff33;
    padding-left: 8px;
    overflow-y: auto;
    height: 180px;
    box-sizing: border-box;
}

.livechat-hero .terminal-users {
    width: 180px;
    height: 360px;
    margin-left: 16px;
    padding-left: 16px;
    margin-bottom: 20px;
}

.terminal-chat--floating .terminal-users {
    height: 220px;
}

.terminal-users[hidden] {
    display: none !important;
}

.terminal-users-header {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.livechat-hero .terminal-users-header {
    font-size: 16px;
    margin-bottom: 12px;
}

.terminal-users-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.terminal-users-item,
.terminal-users-empty {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
    word-break: break-word;
}

.livechat-hero .terminal-users-item,
.livechat-hero .terminal-users-empty {
    font-size: 18px;
    margin-bottom: 10px;
}

.terminal-users-item.is-self {
    color: #ffffff;
}

.terminal-users-empty {
    opacity: 0.7;
}

.livechat-hero .terminal-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
    font-size: 24px;
    letter-spacing: 4px;
}

.terminal-body {
    height: 180px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 5px;
    font-size: 13px;
}

.livechat-hero .terminal-body {
    height: 360px;
    margin-bottom: 20px;
    padding-right: 10px;
    font-size: 26px;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.livechat-hero .terminal-body::-webkit-scrollbar {
    width: 16px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #33ff33;
}

.chat-line {
    margin-bottom: 8px;
    line-height: 1.4;
}

.livechat-hero .chat-line {
    margin-bottom: 16px;
}

.terminal-footer {
    display: flex;
    border-top: 2px dashed #33ff33;
    padding-top: 10px;
}

.livechat-hero .terminal-footer {
    padding-top: 20px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #33ff33;
    font-family: inherit;
    font-size: 13px;
    flex-grow: 1;
    outline: none;
    text-shadow: 0 0 3px #00ff00;
}

.livechat-hero .terminal-input {
    font-size: 26px;
}

.terminal-btn {
    background: #33ff33;
    color: #000000;
    border: none;
    font-family: inherit;
    font-weight: bold;
    padding: 2px 10px;
    cursor: pointer;
    text-transform: uppercase;
    margin-left: 5px;
    font-size: 12px;
}

.livechat-hero .terminal-btn {
    padding: 4px 20px;
    margin-left: 10px;
    font-size: 24px;
}

.terminal-btn:hover {
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff;
}

.login-prompt {
    margin-bottom: 15px;
    text-align: center;
    font-size: 13px;
}

.livechat-hero .login-prompt {
    margin-bottom: 30px;
    font-size: 26px;
}

.login-input-row {
    display: flex;
    width: 100%;
    border: 1px solid #33ff33;
    padding: 5px;
}

.livechat-hero .login-input-row {
    padding: 10px;
}

.terminal-chat--standalone {
    width: 350px;
    padding: 15px;
}

.terminal-chat--standalone .terminal-body {
    height: 250px;
}

.terminal-chat--standalone .terminal-header {
    font-size: inherit;
}

.terminal-chat--standalone .terminal-input {
    font-size: 14px;
}

.sm-chat-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    background: #33ff33;
    color: #000000;
    border: 2px solid #33ff33;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 12px;
    padding: 8px 14px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(0, 255, 0, 0.45);
}

.sm-chat-launcher:hover {
    background: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

.sm-chat-launcher--hidden {
    display: none;
}

.sm-chat-window {
    position: fixed;
    z-index: 9999;
    width: 360px;
    max-width: calc(100vw - 16px);
    background-color: rgba(0, 0, 0, 0.95);
    border: 2px solid #33ff33;
    border-radius: 4px;
    box-shadow: 0 0 24px rgba(0, 255, 0, 0.45);
    overflow: hidden;
}

.sm-chat-window--users-open {
    width: 480px;
    max-width: calc(100vw - 16px);
}

.sm-chat-window--hidden {
    display: none;
}

.sm-chat-window--dragging {
    user-select: none;
}

.sm-chat-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(0, 40, 0, 0.95);
    border-bottom: 2px dashed #33ff33;
    color: #33ff33;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: move;
}

.sm-chat-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.sm-chat-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    cursor: default;
    margin-left: auto;
}

.sm-chat-control {
    background: #33ff33;
    color: #000000;
    border: none;
    width: 22px;
    height: 22px;
    line-height: 1;
    font-family: inherit;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.sm-chat-control:hover {
    background: #ffffff;
}

.sm-chat-control.sm-chat-control--leet,
.sm-chat-control.sm-chat-control--users {
    width: auto !important;
    min-width: 48px;
    height: 22px;
    font-size: 10px;
    letter-spacing: 0;
    padding: 0 10px;
    white-space: nowrap;
    overflow: visible;
}

.sm-chat-control.sm-chat-control--users {
    margin-right: 10px;
}

.sm-chat-mount {
    padding: 10px;
}

.terminal-chat--floating {
    width: 100%;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.terminal-chat--floating .terminal-body {
    height: 220px;
}

:root {
    --sm-webamp-inset: 0.5in;
    --sm-webamp-dock-height: 42px;
    /* main (116) + eq offset (116) + playlist offset (116) + playlist body (~116) */
    --sm-webamp-stack-height: 348px;
}

.sm-webamp-dock {
    position: fixed;
    left: var(--sm-webamp-inset);
    bottom: var(--sm-webamp-inset);
    z-index: 9998;
    display: flex;
    gap: 6px;
}

.sm-webamp-dock-btn {
    background: #ffcc00;
    color: #000000;
    border: 2px solid #ffcc00;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 12px;
    padding: 8px 14px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(255, 204, 0, 0.45);
}

.sm-webamp-dock-btn--min,
.sm-webamp-dock-btn--close {
    padding: 8px 12px;
    min-width: 36px;
}

.sm-webamp-dock-btn--stop {
    padding: 8px 12px;
    min-width: 36px;
    background: #111111;
    border-color: #666666;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.sm-webamp-dock-btn--stop:hover {
    background: #222222;
    border-color: #888888;
}

.sm-webamp-dock-btn--stop.is-stopped {
    border-color: #33ff33;
}

.sm-webamp-speaker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.sm-webamp-speaker-icon svg {
    display: block;
}

.sm-webamp-speaker-icon--on {
    color: #33ff33;
}

.sm-webamp-speaker-icon--off {
    display: none;
    color: #33ff33;
}

.sm-webamp-dock-btn--stop.is-stopped .sm-webamp-speaker-icon--on {
    display: none;
}

.sm-webamp-dock-btn--stop.is-stopped .sm-webamp-speaker-icon--off {
    display: flex;
}

.sm-webamp-dock-btn--stop:hover .sm-webamp-speaker-icon--on,
.sm-webamp-dock-btn--stop.is-stopped:hover .sm-webamp-speaker-icon--off {
    color: #66ff66;
}

.sm-webamp-dock-btn:hover {
    background: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

.sm-webamp-dock-btn--stop:hover {
    background: #222222;
    border-color: #888888;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.sm-webamp-dock-btn--stop.is-stopped:hover {
    border-color: #66ff66;
}

.sm-webamp-dock-btn--hidden {
    display: none;
}

.sm-webamp-anchor {
    position: fixed;
    left: var(--sm-webamp-inset);
    bottom: calc(var(--sm-webamp-inset) + var(--sm-webamp-dock-height) + 8px + var(--sm-webamp-stack-height));
    width: 1px;
    height: 1px;
    pointer-events: none;
    overflow: hidden;
}

.sm-webamp-error {
    position: fixed;
    left: var(--sm-webamp-inset);
    bottom: calc(var(--sm-webamp-inset) + var(--sm-webamp-dock-height) + 8px + var(--sm-webamp-stack-height));
    z-index: 9997;
    color: #ffcc00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    max-width: 260px;
    margin: 0;
}

.sm-webamp-file-warning {
    position: fixed;
    left: var(--sm-webamp-inset);
    bottom: calc(var(--sm-webamp-inset) + var(--sm-webamp-dock-height) + 8px);
    z-index: 9997;
    max-width: 320px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid #ffcc00;
    color: #ffcc00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    line-height: 1.5;
}

.sm-webamp-file-warning code {
    color: #ffffff;
    font-size: 11px;
}

.sm-webamp-file-warning--hidden {
    display: none;
}
