#canvas {
  --bg: #0a0a0a;
  --gold: #f5c14a;
  --edge: #3d3a31;
  --ink: #f5f7fb;
  --muted: #aeaeae;
}
#start-brand img { object-fit: contain; }

#home-surface .wave {
  inset: 31px 31px 31px 255px;
  background: url(assets/android-wave.png) right top / 1154px 748px no-repeat;
  border: 0;
}
#home-surface .wave::before { content: none; }
#home-surface .frame {
  inset: 30px;
  border: 1px solid #61512c;
  pointer-events: none;
}
#home-surface .frame::after {
  position: absolute;
  left: 223px;
  top: 0;
  bottom: 0;
  content: '';
  border-left: 1px solid #483c25;
}
#home-header img { top: 102px; left: 300px; width: 240px; height: 68px; }
#clock { top: 52px; left: 1150px; width: 218px; height: 44px; color: var(--ink); font-size: 32px; text-align: right; }
#account { top: 113px; left: 838px; width: 530px; height: 48px; font-size: 20px; background: #0a0a0a; border-color: #6c562e; }
#account:focus { background: var(--selected); color: var(--gold); }
#home-surface aside { top: 104px; left: 42px; width: 202px; gap: 25px; }
#home-surface aside button {
  position: relative;
  height: 66px;
  padding: 0 12px;
  gap: 9px;
  font-size: 20px;
  letter-spacing: 0;
  border-color: var(--edge);
  border-radius: 12px;
}
#home-surface aside button:last-child { margin-top: 0; }
#home-surface aside button[aria-current], #home-surface aside button:focus { color: var(--gold); }
#home-surface aside button > span[data-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-icon { display: block; width: 32px; height: 32px; flex: 0 0 32px; background: var(--normal-icon) center / contain no-repeat; }
button:focus .nav-icon, button[aria-current] .nav-icon { background-image: var(--gold-icon); }
.home-icon { --normal-icon: url(assets/android-icons/home-muted.png); --gold-icon: url(assets/android-icons/home.png); }
.search-icon { --normal-icon: url(assets/android-icons/search-muted.png); --gold-icon: url(assets/android-icons/search.png); }
.favorites-icon { --normal-icon: url(assets/android-icons/favorites-muted.png); --gold-icon: url(assets/android-icons/favorites.png); }
.notifications-icon { --normal-icon: url(assets/android-icons/notifications-muted.png); --gold-icon: url(assets/android-icons/notifications.png); }
.settings-icon { --normal-icon: url(assets/android-icons/settings-muted.png); --gold-icon: url(assets/android-icons/settings.png); }
.update-icon { display: grid; place-items: center; font-size: 28px; line-height: 1; }
.logout-icon { --normal-icon: url(assets/android-icons/logout-muted.png); --gold-icon: url(assets/android-icons/logout.png); }
#app-update-link { min-width: 0; width: 100%; font-size: 16px; }
#inbox-badge, #section-inbox-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 19px;
  text-align: center;
  background: var(--gold);
  color: #15110a;
  border-radius: 12px;
  padding: 0 5px;
  font-size: 13px;
}
#sections { top: 288px; left: 278px; width: 1078px; height: 300px; padding: 8px; }
#sections button {
  position: relative;
  flex: 0 0 196px;
  width: 196px;
  height: 270px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: #151515;
}
#sections button:focus { background: #352917; color: var(--gold); }
#sections button .section-icon { position: absolute; top: 45px; left: 48px; width: 100px; height: 100px; }
#sections button span {
  position: absolute;
  top: 188px;
  left: 8px;
  width: 180px;
  height: 50px;
  display: grid;
  place-items: center;
  font-size: 23px;
  line-height: 1.05;
  font-weight: normal;
  white-space: normal;
  text-wrap: balance;
}
#sections .match-tile { background: linear-gradient(0deg,#131111f0 0%,#14141446 100%), url(assets/matches-stadium.jpg) center / cover; }
#sections .match-tile:focus { background: linear-gradient(0deg,#2c1f11e6 0%,#4b34182b 100%), url(assets/matches-stadium.jpg) center / cover; }
#matches-hint { position: absolute; top: 239px; left: 8px; width: 180px; font-size: 11px; text-align: center; color: var(--gold); }
.section-scroll { position: absolute; top: 392px; right: 44px; width: 36px; height: 58px; padding: 0 0 2px; font-size: 40px; line-height: 1; color: var(--gold); }

#section-header {
  position: absolute;
  left: 30px;
  top: 18px;
  right: 30px;
  height: 67px;
  z-index: 2;
  border-bottom: 1px solid #514529;
}
#section-header button { height: 54px; padding: 0 10px; border-radius: 12px; font-size: 19px; }
#section-header button[aria-current] { background: var(--selected); border-color: #705a2e; color: var(--gold); }
.section-logo { position: absolute; top: 9px; left: 18px; width: 174px; height: 48px; object-fit: contain; }
#section-header nav { position: absolute; left: 210px; top: 6px; display: flex; gap: 14px; }
#section-header nav button { width: 154px; }
#section-header > button { position: absolute; top: 6px; width: 58px; display: grid; place-items: center; }
#section-header [data-section-nav="Notifications"] { left: 1080px; }
#section-header [data-section-nav="Search"] { left: 1152px; }
#section-clock { position: absolute; top: 6px; left: 1230px; width: 118px; height: 54px; line-height: 54px; text-align: right; font-size: 25px; }
#canvas:has(#real-live.fullscreen:not([hidden]), #vod-player:not([hidden]), #real-vod.vhd-cinema:not([hidden])) #section-header { display: none; }
#section-header:not([hidden]) ~ .section-page:not(.fullscreen):not(.vhd-cinema):not(#real-matches) {
  background: url(assets/android-wave.png) right 30px bottom 30px / 1154px 748px no-repeat, var(--bg);
}
#section-header:not([hidden]) ~ .section-page:not(.fullscreen):not(.vhd-cinema):not(#real-matches)::after {
  position: absolute;
  inset: 14px 30px 30px;
  content: '';
  border: 1px solid #61512c;
  border-radius: 15px;
  pointer-events: none;
}
#section-header:not([hidden]) ~ #real-vod:not(.vhd-cinema) { padding-top: 99px; }
#section-header:not([hidden]) ~ #real-vod:not(.vhd-cinema) .screen-header { height: 53px; margin-bottom: 3px; }
#section-header:not([hidden]) ~ #real-vod:not(.vhd-cinema) .vod-catalog-layout { height: 570px; }
#section-header:not([hidden]) ~ #real-vod:not(.vhd-cinema) .vod-side { max-height: 570px; }

.live-control::before {
  content: ''; width: 24px; height: 24px; flex-shrink: 0; background: currentColor;
  -webkit-mask: var(--control-icon) center / contain no-repeat; mask: var(--control-icon) center / contain no-repeat;
}
#live-open-channels { --control-icon: url(assets/live-controls/channels.png); }
#live-audio { --control-icon: url(assets/live-controls/audio.png); }
#live-quality { --control-icon: url(assets/live-controls/quality.png); }
#live-back-list { --control-icon: url(assets/live-controls/back.png); }
#live-favorite { --control-icon: url(assets/live-controls/heart.png); }
#live-favorite[aria-pressed="true"] { --control-icon: url(assets/live-controls/heart-on.png); }
#live-setting { --control-icon: url(assets/live-controls/setting.png); }
.choice-group { margin: 10px 2px 1px; color: var(--muted); font-weight: normal; font-size: 16px; }
#choice-scrim.channel-tools { justify-content: flex-end; padding: 0 48px; background: rgba(0,0,0,.22); }
.channel-tools .choice-dialog { position: relative; width: 642px; max-height: 732px; padding: 23px; border-radius: 22px; background: #18191efa; border-color: #b5904e8c; color: #f7f4ed; }
.channel-tools .choice-dialog h1 { min-height: 64px; font-size: 34px; padding-right: 60px; overflow-wrap: anywhere; }
.channel-tools #choice-close { position: absolute; right: 23px; top: 20px; width: 46px; height: 46px; padding: 0 0 2px; font-size: 31px; background: #24252b; }
.channel-tools #choice-status { margin: 0 0 13px; }
.channel-tools #choice-status:empty { display: none; }
.channel-tools #choice-list { gap: 8px; padding: 0; }
.channel-tools #choice-list button { min-height: 68px; padding-left: 15px; display: flex; align-items: center; gap: 12px; background: #24252b; color: #f7f4ed; border-color: #393a44; border-radius: 14px; font-size: 25px; font-weight: bold; outline-offset: -3px; }
.channel-tools #choice-list button:focus { background: var(--selected); }
.channel-tools .choice-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #f4cd7629; color: #f4cd76; font-size: 23px; }
html[lang="ar"] #choice-scrim.channel-tools { direction: rtl; }
html[lang="ar"] .channel-tools #choice-close { right: auto; left: 23px; }
html[lang="ar"] .channel-tools .choice-dialog h1 { padding: 0 0 0 60px; }
html[lang="ar"] .channel-tools #choice-list button { padding: 12px 15px; text-align: right; }

#vod-controls { height: 219px; padding: 20px 68px 46px; background: linear-gradient(0deg,#0c0c0ef5 30%,#111113bb); }
#vod-controls nav { position: absolute; left: 70px; right: 70px; top: 105px; gap: 0; justify-content: space-between; margin-top: 0; }
#vod-controls h1 { height: 35px; max-width: 1060px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 0 8px; }
#vod-controls button { min-width: 0; height: 68px; font-size: 20px; }
#vod-toggle { width: 182px; }
#vod-rewind, #vod-forward, #vod-back { width: 142px; }
#vod-subtitles { width: 188px; }
#vod-quality { width: 164px; }
#vod-controls #vod-next { position: absolute; top: 13px; right: 70px; height: 42px; padding: 0 15px; font-size: 17px; }
.seek-line output { width: 66px; flex-shrink: 0; text-align: center; }
.seek-line input { min-width: 0; }
.cinema-brand img { width: 104px; height: 36px; object-fit: contain; }
.cinema-series .cinema-status, .cinema-episodes .cinema-status { right: 125px; }
.cinema-series .with-retry .cinema-status, .cinema-episodes .with-retry .cinema-status { right: 228px; }
.cinema-series .cinema-retry, .cinema-episodes .cinema-retry { right: 122px; }
