.stv-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.stv-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.stv-player-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

@media (min-width: 992px) {
    .stv-player-container {
        flex-direction: row;
    }
}

.stv-player-wrapper {
    flex: 1;
    min-width: 0;
}

/* Player Styles */
#stv-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
}

#stv-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    object-fit: cover;
}

#stv-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 5;
    transition: opacity 0.3s ease;
}

#stv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 10;
}

#stv-play-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#stv-play-icon:hover {
    transform: scale(1.1);
    color: white;
}

#stv-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.stv-live-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.stv-live-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: stv-pulse 1.5s infinite;
}

@keyframes stv-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.stv-control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.stv-control-btn:hover {
    transform: scale(1.1);
}

#stv-volume-slider {
    width: 80px;
    accent-color: #ffffff;
}

#stv-channel-name {
    margin-left: auto;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    padding: 0 10px;
    color: #ffffff;
}

#stv-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 30px;
    z-index: 15;
    display: none;
}

.stv-spinner {
    animation: stv-spin 1s linear infinite;
}

@keyframes stv-spin {
    100% {
        transform: rotate(360deg);
    }
}

#stv-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 25;
    padding: 20px;
    text-align: center;
}

.stv-error-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.stv-error-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.stv-error-retry {
    background: #fdbb2d;
    color: black;
}

.stv-error-retry:hover {
    background: #ffa500;
}

.stv-error-close {
    background: #6c757d;
    color: white;
}

.stv-error-close:hover {
    background: #5a6268;
}

#stv-channels-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 30;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#stv-channels-sidebar.show {
    transform: translateX(0);
}

.stv-channel-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.stv-channel-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stv-channel-item.active {
    background: rgba(253, 187, 45, 0.2);
    border-left: 4px solid #fdbb2d;
}

.stv-channel-logo {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.stv-channel-list-header {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stv-poster-hidden {
    opacity: 0;
    pointer-events: none;
}