:root {
    --accent: #e52343;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(#0009, transparent);
    pointer-events: none;
}

.live-badge {
    background: var(--accent);
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

#channelName {
    font-size: 15px;
    font-weight: bold;
}

#channelLogo {
    margin-left: auto;
    max-width: 110px;
    max-height: 65px;
    object-fit: contain;
}

.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 18px 12px;
    background: linear-gradient(transparent, #000e);
    transition: opacity .3s;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-line {
    height: 3px;
    background: var(--accent);
    border-radius: 4px;
    margin-bottom: 10px;
}

button, select {
    color: white;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    font-size: 19px;
}

button:hover {
    color: var(--accent);
}

button:focus-visible, select:focus-visible {
    outline: 2px solid white;
}

select {
    background: #202020;
    border-radius: 5px;
    font-size: 12px;
}

#volume {
    width: 75px;
    accent-color: var(--accent);
}

.live-text {
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
}

.spacer {
    flex: 1;
}

.brand {
    font-size: 19px;
    font-weight: 900;
    white-space: nowrap;
}

.brand span {
    color: #329aff;
}

.brand small {
    font-size: 8px;
    color: #aaa;
    font-weight: normal;
}

.big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 32px;
    background: #0009;
    border: 2px solid #ffffff80;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 14px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ffffff30;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.player.idle .controls,
.player.idle .topbar {
    opacity: 0;
    pointer-events: none;
}

.player.idle {
    cursor: none;
}

@media(max-width: 600px) {
    .brand small, #volume {
        display: none;
    }
    .control-row {
        gap: 3px;
    }
    .controls {
        padding: 30px 7px 8px;
    }
    button {
        padding: 7px;
        font-size: 16px;
    }
    .brand {
        font-size: 14px;
    }
    .topbar {
        padding: 12px;
    }
}

#technicalStats {
    position: absolute;
    right: 20px;
    bottom: 85px;
    width: 340px;
    max-width: calc(100% - 40px);
    padding: 20px;
    background: rgba(12,18,28,.96);
    border: 1px solid #ffffff25;
    border-radius: 12px;
    box-shadow: 0 10px 40px #0008;
    color: white;
    z-index: 100;
    font-size: 13px;
}

#technicalStats h3 {
    margin: 0 0 15px;
    color: #329aff;
    font-size: 15px;
}

#technicalStats div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #ffffff12;
}

#technicalStats span {
    color: #aab5c5;
}

#technicalStats strong {
    color: #fff;
}


/* Ust canli yayin etiketini gizle */
.topbar .live-badge {
    display: none !important;
}

/* Player ust bilgi alanini tamamen gizle */
.topbar {
    display: none !important;
}
