@font-face {
    font-family: 'YourFontName';
    src: url('font.ttf') format('truetype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #fff #000000bd;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #000;
    color: #fff;
    font-family: 'YourFontName', sans-serif;
    overflow-x: hidden;
    position: relative;
}

#bgvideo {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    filter: brightness(0.4);
    opacity: 0;
    animation: fadeVideo 2s ease forwards;
}

@keyframes fadeVideo {
    to {
        opacity: 1;
    }
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: -2;
    pointer-events: none;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
width: 950px;
margin: auto;
}

.container {
    width: 100%;
    max-width: 1600px;
    padding: 20px;
    text-align: center;
}

.logo {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: lowercase;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.08),
        0 0 12px rgba(255, 255, 255, 0.04);
}

.divider {
    width: 150px;
    height: 1px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.35);
}

.nowplaying-label {
    margin-bottom: 18px;
    font-size: 0.82rem;
    letter-spacing: 6px;
    opacity: 0.4;
}

.nowplaying {
    min-height: 40px;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.6;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.08),
        0 0 12px rgba(255, 255, 255, 0.04);
    animation: flicker 10s infinite;
}

@keyframes flicker {
    0%,
    100% {
        opacity: 1;
    }

    99% {
        opacity: 0.93;
    }
}

.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
}

.links button,
.links a {
    display: inline-block;
    padding: 12px 22px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-family: 'YourFontName', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: all 0.25s ease;
}

.links button:hover,
.links a:hover {
    color: #000;
    background: #fff;
    border-color: #fff;
}

.showlist {
    max-height: 0;
    margin-top: 30px;
    padding: 0 25px;
    overflow-x: hidden;
    overflow-y: auto;
    color: inherit;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
    white-space: pre-wrap;
    opacity: 0;
    transform: translateY(-10px);
    transition:
        max-height 0.6s ease,
        opacity 0.4s ease,
        transform 0.4s ease,
        padding 0.4s ease;
}

.showlist.visible {
    max-height: 70vh;
    padding: 25px;
    opacity: 1;
    transform: translateY(0);
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 15px;
}

*::-webkit-scrollbar-track {
    background-color: #42005596;
}

*::-webkit-scrollbar-thumb {
    background-color: #8000ff;
    border: 3px dotted #fff;
    border-radius: 30px;
}

.showlist::-webkit-scrollbar {
    width: 8px;
}

.showlist::-webkit-scrollbar-track,
.showlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
}

.footer {
    margin-top: 45px;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.footer:hover {
    opacity: 0.9;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.player {
    width: 100%;
    margin-top: 5px;
}

/* =========================================================
   VIDEO LEFT / IRC RIGHT
   ========================================================= */
.stream-chat-layout {
}

.stream-column,
.irc-column {
    min-width: 0;
    padding: 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.panel-title {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* =========================================================
   VIDEO
   ========================================================= */
video,
#video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
    border: 0;
    border-radius: 15px;
    box-shadow: 5px 5px 10px #313131;
}


/* =========================================================
   AFTER SWIM IRC — FULL REBUILD
   ========================================================= */

.irc-login-auto {
    display: none !important;
}

.irc-shell {
    display: flex;
    flex-direction: column;

    height: 700px;
    max-height: 700px;

    overflow: hidden;

    color: #ececec;
    background: rgba(5,7,8,.96);

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;

    box-shadow:
        0 24px 60px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.03);
}

.irc-shell.hidden {
    display: none;
}

.irc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
        #12171b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.irc-identity {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.irc-status-dot {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.irc-network-title {
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 1.8px;
}

.irc-network-state {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.irc-network-state.connected {
    color: #fff;
}

.irc-network-state.error {
    color: rgba(255, 255, 255, 0.8);
}

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

.irc-header-actions button,
.irc-sidebar-head button {
    height: 31px;
    padding: 0 9px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    cursor: pointer;
}

.irc-header-actions button:hover,
.irc-sidebar-head button:hover {
    color: #000;
    background: #fff;
    border-color: #fff;
}

.irc-channel-bar {
    display: flex;
    gap: 3px;
    min-height: 38px;
    padding: 5px 7px 0;
    background: #0c1013;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.irc-view-tab {
    position: relative;
    min-width: 82px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    font-family: inherit;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.7px;
    cursor: pointer;
}

.irc-view-tab.active {
    color: #fff;
    background: #171d21;
    border-color: rgba(255, 255, 255, 0.18);
}

.irc-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    color: #000;
    background: #fff;
    border-radius: 999px;
    font-size: 0.52rem;
}

.irc-unread.hidden {
    display: none;
}

.irc-topic {
    padding: 9px 11px;
    background: rgba(255, 255, 255, 0.018);
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.irc-topic-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: baseline;
}

.irc-topic-label {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.54rem;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.irc-topic-text {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.irc-topic-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    padding-left: 50px;
}

.irc-topic-meta {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.53rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.irc-channel-modes {
    color: rgba(255, 255, 255, 0.54);
    font-family: monospace;
    font-size: 0.58rem;
}

.irc-settings-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    padding: 9px 11px;
    color: rgba(255, 255, 255, 0.58);
    background: #11161a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.6rem;
}

.irc-settings-panel.hidden {
    display: none;
}

.irc-settings-panel label {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.irc-settings-panel input {
    accent-color: #fff;
}

.irc-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 124px;
    flex: 1;
    min-height: 0;
}

.irc-chat-area {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #090c0e;
}

.irc-messages{

    flex:1;

    overflow-y:auto;
    overflow-x:hidden;

    min-height:0;

    padding:12px;

}

.irc-message {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 5px;
    padding: 5px 6px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 5px 5px 0;
}

.irc-message:hover {
    background: rgba(255, 255, 255, 0.018);
}

.irc-message.self {
    background: rgba(255, 255, 255, 0.035);
    border-left-color: rgba(255, 255, 255, 0.35);
}

.irc-message.mention {
    background: rgba(255, 255, 255, 0.075);
    border-left-color: #fff;
}

.irc-message.action .irc-message-text {
    font-style: italic;
}

.irc-message-meta {
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr);
    gap: 5px;
    align-items: baseline;
    min-width: 0;
}

.irc-time {
    color: rgba(255, 255, 255, 0.22);
    font-size: 0.52rem;
    white-space: nowrap;
}

.irc-message-nick {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: var(--nick-color, #fff);
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 900;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.irc-message-nick:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.irc-message-stack {
    min-width: 0;
}

.irc-message-text {
    color: rgba(255, 255, 255, 0.8);
    overflow-wrap: anywhere;
}

.irc-message-text.grouped {
    margin-top: 3px;
}

.irc-system-line {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 7px;
    margin-bottom: 3px;
    padding: 3px 5px;
    color: rgba(255, 255, 255, 0.43);
}

.irc-system-line.connected {
    color: rgba(255, 255, 255, 0.78);
}

.irc-system-line.notice {
    color: rgba(255, 255, 255, 0.55);
}

.irc-system-line.error {
    color: #fff;
}

.irc-link {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 2px;
}

.irc-link:hover {
    text-decoration-color: #fff;
}

.fmt-bold {
    font-weight: 900;
}

.fmt-italic {
    font-style: italic;
}

.fmt-underline {
    text-decoration: underline;
}

.fmt-reverse {
    color: #000;
    background: #fff;
}

.irc-composer {
    position: relative;
    background: #11161a;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.irc-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
    padding: 9px;
}

.irc-icon-button {
    width: 39px;
    height: 39px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.irc-icon-button:hover {
    color: #000;
    background: #fff;
}

.irc-input-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    background: #070a0c;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    box-shadow: inset 0 1px 7px rgba(0, 0, 0, 0.65);
}

.irc-input-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow:
        inset 0 1px 7px rgba(0, 0, 0, 0.58),
        0 0 0 3px rgba(255, 255, 255, 0.035);
}

.irc-input-prefix {
    padding-left: 11px;
    color: rgba(255, 255, 255, 0.58);
    font-family: monospace;
    font-size: 0.93rem;
    font-weight: 900;
}

.irc-form input {
    min-width: 0;
    height: 39px;
    padding: 0 9px;
    color: #fff;
    background: transparent;
    border: 0;
    outline: none;
    font-family: inherit;
    font-size: 0.72rem;
}

.irc-form input::placeholder {
    color: rgba(255, 255, 255, 0.24);
}

.irc-char-count {
    padding-right: 9px;
    color: rgba(255, 255, 255, 0.22);
    font-size: 0.49rem;
    white-space: nowrap;
}

.irc-char-count.near-limit {
    color: #fff;
}

.irc-send-button {
    min-width: 74px;
    height: 41px;
    color: #000;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.59rem;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
}

.irc-send-button:hover {
    background: rgba(255, 255, 255, 0.87);
}

.irc-composer-help {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 24px;
    padding: 5px 10px 7px;
    color: rgba(255, 255, 255, 0.22);
    font-size: 0.49rem;
}

.irc-emoji-popover {
    position: absolute;
    right: 9px;
    bottom: 78px;
    z-index: 50;
    width: 280px;
    overflow: hidden;
    background: #11171b;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.7);
}

.irc-emoji-popover.hidden {
    display: none;
}

.irc-emoji-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 33px;
    padding: 0 9px;
    background: #191f23;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.irc-emoji-head button {
    width: 25px;
    height: 25px;
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border: 0;
    font-size: 1.1rem;
    cursor: pointer;
}

.irc-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
    max-height: 215px;
    padding: 7px;
    overflow-y: auto;
}

.irc-emoji-grid button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.irc-emoji-grid button:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.irc-sidebar {
    display: flex;
    flex-direction: column;
    width: 124px;
    min-width: 124px;
    min-height: 0;
    background: #0f1417;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.irc-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.irc-users-title {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.51rem;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.irc-current-nick {
    max-width: 70px;
    margin-top: 3px;
    overflow: hidden;
    color: #fff;
    font-size: 0.57rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.irc-users{

    flex:1;

    overflow-y:auto;

    min-height:0;

}

.irc-user-group {
    margin-bottom: 6px;
}

.irc-user-group-title {
    display: flex;
    justify-content: space-between;
    padding: 6px 6px 3px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.47rem;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.irc-user {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 4px;
    padding: 4px 6px;
    color: rgba(255, 255, 255, 0.66);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 0.57rem;
    text-align: left;
    cursor: pointer;
}

.irc-user:hover {
    background: rgba(255, 255, 255, 0.045);
}

.irc-user-symbol {
    flex: 0 0 10px;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
    font-weight: 900;
    text-align: center;
}

.irc-user-name {
    min-width: 0;
    overflow: hidden;
    color: var(--nick-color, #fff);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.irc-shell.hide-users .irc-body {
    grid-template-columns: minmax(0, 1fr);
}

.irc-shell.hide-users .irc-sidebar {
    display: none;
}

.irc-shell.is-compact .irc-message {
    margin-bottom: 2px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.irc-shell.hide-timestamps .irc-time {
    visibility: hidden;
}

.irc-messages::-webkit-scrollbar,
.irc-users::-webkit-scrollbar,
.irc-emoji-grid::-webkit-scrollbar {
    width: 8px;
}

.irc-messages::-webkit-scrollbar-track,
.irc-users::-webkit-scrollbar-track,
.irc-emoji-grid::-webkit-scrollbar-track {
    background: transparent;
}

.irc-messages::-webkit-scrollbar-thumb,
.irc-users::-webkit-scrollbar-thumb,
.irc-emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid transparent;
    border-radius: 10px;
    background-clip: padding-box;
}

@media (max-width: 760px) {
    .irc-header {
        align-items: flex-start;
        gap: 10px;
    }

    .irc-header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .irc-settings-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .irc-body {
        grid-template-columns: minmax(0, 1fr) 110px;
    }

    .irc-sidebar {
        width: 110px;
        min-width: 110px;
    }

    .irc-message {
        grid-template-columns: 82px minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .irc-shell {
        min-height: 650px;
    }

    .irc-header {
        flex-direction: column;
    }

    .irc-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .irc-header-actions button {
        flex: 1;
    }

    .irc-body {
        display: flex;
        flex-direction: column;
    }

    .irc-sidebar {
        width: auto;
        min-width: 0;
        flex: 0 0 128px;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
        border-left: 0;
    }

    .irc-users {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(115px, 1fr);
        overflow-x: auto;
        overflow-y: hidden;
    }

    .irc-message {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .irc-message-nick {
        text-align: left;
    }

    .irc-form {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .irc-send-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .irc-emoji-popover {
        right: 7px;
        left: 7px;
        bottom: 120px;
        width: auto;
    }

    .irc-settings-panel {
        grid-template-columns: 1fr;
    }
}
