:root {
    --text: #fff;
    --green: #00a651;
    --radius: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.player-app {
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    background: #000;
}
.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #000 url("../img/background.png") no-repeat 50% 0;
    background-size: cover;
    background-attachment: fixed;
    cursor: pointer;
}
.header-block,
.footer-block {
    position: relative;
}
.promo-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer;
}
.wrap {
    position: relative;
    z-index: 1;
    width: 1000px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 0 0 32px;
    zoom: 0.9;
    transform: scale(0.9);
    transform-origin: top center;
}
@supports (zoom: 1) {
    .wrap { transform: none; }
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 50px;
    padding: 0 12px;
    border-radius: 0 0 var(--radius) var(--radius);
    background: linear-gradient(rgba(0,0,0,0), rgba(255,255,255,.1));
}
.socials {
    display: flex;
    gap: 12px;
    font-size: 15px;
}
.socials a,
.socials span { color: #fff; text-decoration: none; }
.socials a:hover { color: #ff7a1a; }
.site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
    margin: 8px 0 10px;
    gap: 16px;
}
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img {
    height: 36px;
    width: auto;
    display: block;
    border-radius: 6px;
}
.main-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.main-nav span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #fff;
    min-width: 68px;
    text-shadow: 0 1px 3px #000;
}
.main-nav i { font-size: 18px; }
.stage {
    display: grid;
    grid-template-columns: 642px 367px;
    gap: 8px;
    align-items: start;
}
.video-pane,
.channel-pane {
    border-radius: var(--radius);
    overflow: hidden;
}
.video-wrap {
    position: relative;
    height: 456px;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}
.player-status {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 48px;
    z-index: 2;
    text-align: center;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 3px #000;
    pointer-events: none;
}
.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border-radius: var(--radius);
}
.channel-pane {
    height: 456px;
    background: rgba(0,0,0,.55);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tabs { display: flex; }
.tab {
    flex: 1;
    border: 0;
    background: transparent;
    color: #bbb;
    padding: 14px 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}
.tab.active {
    color: #fff;
    border-bottom: 2px solid var(--green);
}
a.tab { text-decoration: none; text-align: center; }
.player-search {
    margin: 8px;
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    border-radius: var(--radius);
    padding: 8px 10px;
}
.channel-list {
    overflow: auto;
    flex: 1;
    min-height: 0;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.channel-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: #fff;
    padding: 10px 12px;
    cursor: pointer;
    font-family: inherit;
}
.channel-item.single-match {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    gap: 10px;
    align-items: center;
    height: 62px;
    padding: 8px 12px;
    overflow: hidden;
}
.channel-item.channel-row {
    grid-template-columns: 22px minmax(0, 1fr);
}
.channel-item:hover,
.channel-item.active {
    background: #fff;
    color: #111;
}
.channel-item:hover .event,
.channel-item.active .event { color: rgba(0,0,0,.5); }
.channel-item:hover .date,
.channel-item.active .date { color: #111; }
.channel-item:hover .teams,
.channel-item.active .teams,
.channel-item:hover .home,
.channel-item.active .home,
.channel-item:hover .away,
.channel-item.active .away { color: rgba(0,0,0,.85); }
.channel-item:hover .ch-tv,
.channel-item.active .ch-tv { color: #111; }
a.channel-item { text-decoration: none; color: #fff; }
.team-crest {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}
.logo-empty {
    display: inline-block;
    width: 20px;
    height: 20px;
}
.ch-tv {
    font-size: 13px;
    color: rgba(255,255,255,.35);
    text-align: center;
}
.match-detail {
    min-width: 0;
    overflow: hidden;
}
.match-detail .date,
.match-detail .event {
    font-size: 10px;
    color: rgba(255,255,255,.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-detail .date { color: rgba(255,255,255,.55); }
.match-detail .teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,.85);
}
.channel-row .teams { grid-template-columns: 1fr auto; }
.match-detail .home,
.match-detail .away {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.channel-row .away { text-align: right; }
.lives { color: #e23; font-weight: 700; letter-spacing: .04em; }
.channel-item:hover .lives,
.channel-item.active .lives { color: #c00; }
.ch-brand {
    max-height: 28px;
    max-width: 86px;
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}
.empty-state { padding: 24px; color: #aaa; }
.foot-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.foot-nav span {
    background: rgba(26,26,26,.85);
    border: 1px solid rgba(255,255,255,.12);
    color: #ddd;
    padding: 10px 8px;
    border-radius: var(--radius);
    font-size: 13px;
    text-align: center;
}
.foot-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 18px;
    text-align: center;
}
.foot-logo img {
    height: 100px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
    margin: 0 auto;
}
@media (max-width: 1040px) {
    .stage { grid-template-columns: 1fr; }
    .video-wrap, .channel-pane { height: auto; min-height: 240px; }
    .channel-pane { max-height: 360px; }
    .foot-nav { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .main-nav { display: none; }
    .foot-nav { grid-template-columns: repeat(2, 1fr); }
}
