.ev-app-container {
    display: flex;
    font-family: -apple-system, BlinkMacSystem-Font, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    max-width: 1200px;
    margin: 20px auto;
    height: 70vh;
    min-height: 500px;
}
.ev-sidebar {
    width: 30%;
    background-color: #1f2937;
    color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.ev-sidebar-title {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid #374151;
    padding-bottom: 10px;
}
.ev-sidebar-counts {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: #9ca3af;
    margin-top: 4px;
    cursor: pointer;
}
.ev-sidebar-counts:hover {
    color: #ffffff;
}
.ev-sidebar-counts::after {
    content: ' \25BC';
    display: inline-block;
    font-size: 0.7em;
    transition: transform 0.3s ease;
    padding-left: 5px;
}
.ev-sidebar-counts.open::after {
    transform: rotate(180deg);
}
.ev-filters-container {
    border-bottom: 1px solid #374151;
    margin-bottom: 10px;
    padding-bottom: 10px;
}
.ev-type-filter {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}
.ev-type-filter-btn {
    flex-grow: 1;
    background-color: #374151;
    color: #9ca3af;
    border: 1px solid #4b5563;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s, color 0.2s;
}
.ev-type-filter-btn:hover {
    background-color: #4b5563;
    color: #ffffff;
}
.ev-type-filter-btn.active {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}
.ev-network-filter-list {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 15px;
}
.ev-network-filter-list.is-visible {
    display: grid !important;
}
.ev-network-filter-item {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ev-filter-close {
    display: none;
}
.ev-network-filter-item:hover {
    color: #ffffff;
}
.ev-network-filter-item.active {
    color: #ffffff;
    font-weight: 600;
}
.ev-accordion {
    overflow-y: auto;
    flex-grow: 1;
}
.ev-market-header {
    background-color: #374151;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    color: #ffffff;
}
.ev-market-header:hover {
    background-color: #4b5563;
}
.ev-arrow {
    transition: transform 0.3s;
}
.ev-arrow.open {
    transform: rotate(180deg);
}
.ev-stream-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 15px;
}
.ev-stream-item {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ev-stream-item:hover {
    background-color: #374151;
}
.ev-stream-item.active {
    background-color: #007bff;
    color: white;
    font-weight: 500;
}
.ev-stream-type-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}
.ev-main-content {
    width: 70%;
    background-color: #000000;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
#evVideoPlayer {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}
.audio-visualizer {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    pointer-events: none;
}
.vjs-audio .video-js {
    background-color: #1f2937 !important;
}

@media (max-width: 820px) {
    html.ev-filter-modal-open,
    body.ev-filter-modal-open {
        overflow: hidden !important;
    }
    .ev-app-container {
        flex-direction: column;
        height: 100%;
        padding: 0;
        gap: 10px;
    }
    .ev-main-content {
        width: 100%;
        order: 1;
        flex-shrink: 0;
        aspect-ratio: 16 / 9;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    .ev-sidebar {
        width: 100%;
        order: 2;
        flex-grow: 1;
        min-height: 0;
        overflow-y: auto;
    }
    .ev-accordion {
        flex-grow: 0;
        overflow-y: visible;
    }
    .ev-network-filter-list.is-visible {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px 15px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(20, 25, 35, 0.98);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 10000;
        padding: 20px;
        padding-top: 50px;
        box-sizing: border-box;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        align-content: start;
    }
    .ev-filter-close {
        display: block !important;
        position: absolute;
        top: 15px;
        right: 20px;
        grid-column: auto;
        font-size: 1.8rem !important;
        font-weight: normal !important;
        color: #9ca3af;
        margin-bottom: 0;
        cursor: pointer;
        padding: 5px;
        line-height: 1;
        z-index: 10001;
    }
    .ev-network-filter-list.is-visible .ev-network-filter-item[data-network="all"] {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 10px;
    }
    .ev-network-filter-list.is-visible .ev-network-filter-item {
        grid-column: auto;
        text-align: left;
        font-size: 1rem;
        padding: 8px 0;
    }
}


