:root {
    --background-dark: #0e0e10;
    --background-medium: #19191b;
    --background-light: #2d2d30;
    --text-color: white;
    --primary-color: #069b48;
    --primary-color-dark: #007534;
    --primary-color-hover: #00692e;
    --live-indicator: red;
    --gray-text: #777;
    --chat-toggle-color: #aaa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    overflow: hidden;
}

.header {
    margin-bottom: 15px;
    font-size: 24px;
    text-align: center;
}

.time-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.time-controls button {
    padding: 5px 10px;
    cursor: pointer;
    background-color: var(--background-light);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
}

.time-controls button:hover {
    background-color: var(--primary-color-dark);
}

.goto-control {
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.goto-control select,
.goto-control input {
    padding: 5px;
    border-radius: 5px;
    border: none;
    background-color: var(--background-light);
    color: var(--text-color);
    outline: 0;
}

.goto-control button {
    padding: 5px 10px;
    background-color: var(--primary-color);
}

.main-content {
    display: flex;
    height: calc(100vh - 140px);
    gap: 10px;
    overflow: hidden;
}

.streamer-list {
    width: 220px;
    background-color: var(--background-medium);
    padding: 6px;
    border-radius: 8px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

.streamer-list::-webkit-scrollbar {
    display: none;
}

.streamer-name {
    padding: 9px;
    margin: 2.5px 0;
    background-color: var(--background-light);
    border-radius: 6px;
    cursor: pointer;
}

.streamer-name.selected {
    background-color: var(--primary-color);
}

.streamer-name:hover {
    background-color: var(--primary-color-hover);
}

.video-container {
    flex: 1;
    background-color: var(--background-medium);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.video-player {
    width: 100%;
    height: 100%;
    flex: 1;
    background-color: black;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.video-player::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.offline-message {
    color: var(--gray-text);
    text-align: center;
    padding: 20px;
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.live-indicator {
    color: var(--live-indicator);
    font-size: 16px;
    margin-right: 5px;
}

.chat-container {
    width: 350px;
    background-color: var(--background-medium);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    overflow: hidden;
    transition: width 0.3s ease;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--background-light);
    min-height: 40px;
}

.chat-header h2 {
    margin: 0;
    font-size: 18px;
}

.chat-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.chat-toggle:hover {
    color: var(--primary-color);
}

.chat-enable-toggle {
    color: var(--text-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 20px;
}

.chat-enable-toggle input {
    margin: 0;
}

.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 5px;
    font-size: 14px;
    line-height: 1.4;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.cmtxt {
    margin-bottom: 8px;
    word-break: break-word;
    width: 100%;
    text-align: left;
}

.cmtxt img.emote {
    height: 20px;
    vertical-align: middle;
    margin: 0 2px;
}

.loading {
    color: var(--gray-text);
    text-align: center;
    padding: 10px;
    width: 100%;
}

.chat-disabled-message {
    color: var(--gray-text);
    text-align: center;
    padding: 20px;
    font-size: 18px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.chat-loading-message {
    color: var(--chat-toggle-color);
    text-align: center;
    padding: 20px;
    font-size: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.no-live-message {
    color: var(--gray-text);
    text-align: center;
    padding: 20px;
    font-size: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.select-streamer-message {
    color: var(--gray-text);
    text-align: center;
    padding: 20px;
    font-size: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.chat-hidden {
    width: 0;
    padding: 0;
    overflow: hidden;
}

.chat-show-button {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px 0 0 5px;
    padding: 10px 5px;
    cursor: pointer;
    z-index: 100;
    display: none;
}

.chat-show-button:hover {
    background: var(--primary-color-dark);
}

.chat-enable-toggle {
    accent-color: var(--primary-color);
}

.info-button {
    position: fixed;
    top: 29px;
    left: calc(50% - 210px);
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.info-button:hover {
    background-color: var(--primary-color-dark);
}

.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    mask: linear-gradient(to top, transparent, black 120px, black);
}

.info-modal-content {
    background-color: var(--background-medium);
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--text-color);
    position: relative;
    scrollbar-width: none;
}

.info-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.info-close:hover {
    color: var(--primary-color);
}

.info-modal h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.info-modal ol {
    padding-left: 20px;
}

.info-modal li {
    margin-bottom: 10px;
}

.zevent-logo {
    height: 40px;
    vertical-align: middle;
    margin-right: 0px;
}

#zeventClock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.streamer-search-container {
    margin-bottom: 10px;
    padding: 0 6px;
    flex-shrink: 0;
}

.streamer-search {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: none;
    background-color: var(--background-light);
    color: var(--text-color);
    box-sizing: border-box;
    outline: 0;
}

@media (max-width: 768px) {
    .chat-container {
        width: 100%;
        max-width: 350px;
    }
    .info-button {
        left: auto;
        right: 10px;
    }
}

.streamer-list-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
}
