/* Taraftarium24 visual refresh. Existing player and panel routes stay intact. */
:root { --maxwidth: 1200px; --accent: #ffd02a; --ink: #f1f4fa; --muted: #94a0b4; --surface: #111b2b; --line: #253145; }
html { background: #080f1b !important; scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  max-width: 1200px; width: calc(100% - 64px); margin: 0 auto; padding: 0 0 112px;
  color: var(--ink); background: transparent !important; isolation: isolate;
  font-family: 'Rubik', Arial, sans-serif; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; display: block !important; position: fixed; inset: 0; width: 100%; height: 100%;
  transform: none; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse at 6% 8%, #1b344c88, transparent 42%),
    radial-gradient(ellipse at 100% 48%, #183c3445, transparent 44%),
    linear-gradient(150deg, #101c2c, #080f1b 52%, #0b1420);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .14;
  background-image: repeating-linear-gradient(110deg, transparent 0 130px, #a7b8ce12 130px 131px, transparent 131px 260px);
}
.boxed-site, .header-top { display: none !important; }
.site-header { height: 104px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
.brand-lockup { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-lockup img { width: 66px; height: 66px; object-fit: contain; border-radius: 50%; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -.65px; line-height: 1.1; color: #fff; }
.brand-name b { color: var(--accent); font-weight: 700; }
.brand-subtitle { margin-top: 6px; color: var(--muted); font-size: 11px; letter-spacing: 1.25px; text-transform: uppercase; }
.main-nav { display: flex; gap: 5px; align-items: center; }
.main-nav a { padding: 11px 17px; border-radius: 8px; font-size: 13px; font-weight: 500; color: #afbacb; transition: background .2s, color .2s; }
.main-nav a:hover { color: #fff; background: #ffffff08; }
.main-nav .nav-live { color: var(--accent); background: #ffd02a0c; }
.nav-live::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin: 0 8px 2px 0; }
.broadcast-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0 23px; position: relative; }
.section-kicker { color: var(--accent); letter-spacing: 2px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.broadcast-heading h1 { font-size: clamp(28px, 3.1vw, 39px); line-height: 1.16; letter-spacing: -1.3px; margin: 7px 0 8px; font-weight: 700; }
.broadcast-heading p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }
.pitch-mark { width: 144px; height: 76px; color: #7c91aa; opacity: .35; flex-shrink: 0; }
.sponsor-section { margin: 0 0 24px; padding: 14px; border: 1px solid #293548; border-radius: 14px; background: #0e1726bb; }
.section-label { display: flex; align-items: center; justify-content: space-between; margin: 0 0 11px; color: #8997aa; text-transform: uppercase; letter-spacing: 1.8px; font-size: 9px; font-weight: 500; }
.section-label span:last-child { text-transform: none; letter-spacing: .2px; font-size: 10px; color: #66758c; }
#topBannersContainer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#topBannersContainer a:first-child { grid-column: 1 / -1; }
#topBannersContainer a, #bottomBannersContainer a { display: block; border-radius: 7px; overflow: hidden; background: #080f19; line-height: 0; }
#topBannersContainer [hidden], #bottomBannersContainer [hidden] { display: none !important; }
#topBannersContainer img, #topBannersContainer video, #bottomBannersContainer img, #bottomBannersContainer video { display: block; width: 100% !important; height: auto !important; margin: 0; object-fit: contain; }
#bottomBannersContainer { display: grid; gap: 10px; margin: 13px 0 0; }
.container-grid.player-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin: 0; width: 100%; }
.live-player { min-width: 0; min-height: 0; padding: 0; background: none; }
.player-attributes { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #060a11; box-shadow: 0 18px 45px #0003; }
.player-titlebar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: #121c2c; border-bottom: 1px solid var(--line); gap: 15px; }
.player-titlebar strong { font-size: 14px; font-weight: 500; letter-spacing: -.2px; }
.on-air { display: inline-flex; gap: 7px; align-items: center; font-size: 10px; color: #f89899; letter-spacing: 1.1px; font-weight: 500; }
.on-air::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #f45f68; }
.player-attributes > iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; background: #03060a; }
.betcio-banner { margin: 0 !important; padding: 0 !important; height: auto; background: none; border: none; border-radius: 0; box-shadow: none; }
.betcio-link { display: flex !important; align-items: center; justify-content: center; padding: 9px 14px !important; min-height: 34px !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; background: #17251f !important; color: #aec3b0 !important; font-size: 10px !important; line-height: 1.5 !important; font-weight: 400 !important; letter-spacing: .15px !important; text-align: center; transform: none !important; }
.betcio-link::before, .betcio-link::after { display: none !important; }
.betcio-banner-bottom { display: none; }
#match-info { margin: 0; padding: 15px 18px; border-top: 1px solid var(--line); background: #121c2c; text-align: left; }
#match-info p { margin: 0; font-size: 13px; font-weight: 500; }
#live-indicator { padding: 4px 7px; margin-right: 10px; font-size: 9px; border-radius: 4px; letter-spacing: 1px; background: #f45f6817; color: #ff8990; animation: none; }
.player-channel-area { min-width: 0; order: initial; }
.live-list { background: #101a29; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-height: none !important; box-shadow: 0 18px 45px #0002; }
.head-grid { display: flex; align-items: center; justify-content: space-between; background: #142033; border-bottom: 1px solid var(--line); }
.head-grid > div.active { padding: 17px 15px; border: none; font-size: 13px; font-weight: 500; pointer-events: none; }
.head-grid > div.active span { font-size: 13px; }
.head-grid .list-blink, .head-grid .vertical-line { display: none; }
#cinema-toggle { font-family: inherit; font-size: 10px; padding: 12px; color: #a9b7ca; border-left: 1px solid var(--line); border-radius: 0; align-self: stretch; white-space: nowrap; }
.match-search { display: block !important; position: static !important; padding: 13px 12px 0; margin: 0; height: auto; background: none; }
.match-search label { display: block; position: relative; }
.match-search label::before { content: ''; width: 10px; height: 10px; border: 1.5px solid #72829a; border-radius: 50%; position: absolute; top: 15px; left: 14px; z-index: 1; }
.match-search label::after { content: ''; height: 5px; width: 1.5px; background: #72829a; position: absolute; top: 24px; left: 24px; transform: rotate(-45deg); }
.match-search input { width: 100%; height: 42px; padding: 0 12px 0 36px !important; border: 1px solid #2b384d; border-radius: 7px; background: #0c1421; color: #fff; font-size: 12px; outline: none; }
.match-search input:focus { border-color: #b4a450; box-shadow: 0 0 0 2px #ffd02a0b; }
.match-search input::placeholder { color: #718098; font-weight: 400; }
.live-list-grid { display: block; }
.list-tabbed { display: flex; flex-direction: row; height: auto !important; max-height: none; border: none; padding: 12px 13px 2px; overflow: visible; }
.list-tabbed > div { padding: 4px 9px !important; font-size: 9px; font-weight: 500; letter-spacing: .6px; border: none; border-radius: 5px; background: #ffd02a13 !important; color: var(--accent) !important; line-height: 1.4; }
.list-area, .radarOn .list-area { height: 488px !important; max-height: 488px !important; overflow-y: auto; scroll-snap-type: none; padding: 0; }
.real-matches { padding: 8px 10px 10px; border: none; background: transparent; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.single-match.show { display: flex; gap: 12px; align-items: center; height: 56px; min-height: 56px; padding: 9px 11px; margin: 0 0 6px; border: 1px solid transparent; border-radius: 7px; background: #172234; animation: none; box-shadow: none; transform: none; transition: border-color .18s, background .18s; }
.single-match:nth-child(odd) { background: #172234; }
.single-match::before, .single-match::after { display: none; }
.single-match.show:hover { transform: none; background: #202e43; border-color: #3a4b64; box-shadow: none; }
.single-match.show.selected { background: #ffd02a0d; border-color: #ad942f; box-shadow: inset 3px 0 var(--accent); }
.single-match img { width: 48px !important; height: 30px !important; min-width: 48px !important; min-height: 0 !important; object-fit: contain; border-radius: 3px; background: transparent; }
.single-match > i { margin: 0; min-width: 48px; font-size: 22px; color: #b3c3da; filter: none; }
.single-match .match-detail { min-width: 0; gap: 0; }
.single-match .match-detail .teams { min-width: 0; }
.single-match .match-detail .teams .home { min-width: 0; font-size: 12px; font-weight: 500; letter-spacing: 0; text-shadow: none; color: #e6edf8 !important; }
.single-match .match-detail .live-dot { display: none; }
.channel-divider { margin: 10px 4px; background: #263449; height: 1px; }
.channel-divider::before { display: none; }
.channel-empty { padding: 22px 15px; margin: 0; text-align: center; color: var(--muted); font-size: 12px; }
.channel-empty[hidden] { display: none; }
footer { display: block; padding: 22px 0 0; margin-top: 24px; border-top: 1px solid var(--line); text-align: left; font-size: 11px; color: #677890; }
footer > center { display: none; }
.footer-note { float: right; color: #8593a7; }
.modal-overlay { background: #030812bd; backdrop-filter: blur(5px); }
.modal { background: #142033; border: 1px solid #35435a; border-radius: 16px; padding: 22px; box-shadow: 0 24px 80px #0008; color: #fff; max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal h2 { font-size: 20px; letter-spacing: -.5px; }
.modal p { color: #aab7c9; font-size: 12px; margin: 8px 0 16px; }
.modal img { border-radius: 7px; }
.close-btn { background: var(--accent); color: #181a15; width: 100%; font-family: inherit; font-weight: 500; }
.close-btn:hover { background: #ffe16a; }
.sticky-sponsor { padding: 8px 12px; background: linear-gradient(transparent, #080f1bf2 25%); pointer-events: none; }
.sticky-sponsor > div { pointer-events: auto; width: 728px; max-width: 100%; }
.sticky-sponsor #footerImage { width: 100%; max-height: 72px; object-fit: contain; }
.sticky-sponsor span { width: 21px !important; height: 21px !important; font-size: 13px !important; background: #f0f3f7 !important; box-shadow: 0 1px 8px #0008; }
body.cinema-mode .live-player { border: 1px solid #786522; box-shadow: 0 0 60px #000a; border-radius: 14px; }
body.cinema-mode #cinema-toggle { position: relative; z-index: 10000; background: #263449; }
body.cinema-mode .player-channel-area { position: relative; z-index: 9999; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (min-width: 1650px) { .pc-side-banner { margin-left: -88px; } .pc-side-banner#rightBannerLink { margin-left: 88px; } }
@media (max-width: 1649px) { .pc-side-banner { display: none !important; } }
@media (max-width: 1000px) {
  body { width: calc(100% - 36px); }
  .container-grid.player-grid { grid-template-columns: minmax(0,1fr) 285px; gap: 14px; }
  .brand-name { font-size: 18px; }
  .brand-lockup img { width: 58px; height: 58px; }
  .single-match .match-detail .teams .home { font-size: 11px; }
}
@media (max-width: 760px) {
  body { width: calc(100% - 28px); padding-bottom: 75px; }
  .site-header { height: 82px; padding: 12px 0; gap: 8px; }
  .brand-lockup { gap: 8px; }
  .brand-lockup img { width: 47px; height: 47px; }
  .brand-name { font-size: 16px; letter-spacing: -.5px; }
  .brand-subtitle { font-size: 8px; letter-spacing: .8px; margin-top: 4px; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 9px 10px; font-size: 11px; }
  .main-nav a:not(.nav-live) { display: none; }
  .nav-live::before { width: 5px; height: 5px; margin-right: 5px; }
  .broadcast-heading { padding: 24px 0 20px; gap: 8px; }
  .broadcast-heading h1 { font-size: 29px; letter-spacing: -.9px; max-width: 280px; }
  .broadcast-heading p { font-size: 11px; }
  .section-kicker { font-size: 8px; letter-spacing: 1.5px; }
  .pitch-mark { width: 70px; height: 57px; opacity: .25; }
  .sponsor-section { padding: 10px; border-radius: 10px; margin-bottom: 18px; }
  .section-label { font-size: 8px; margin-bottom: 8px; }
  .section-label span:last-child { font-size: 8px; }
  #topBannersContainer { grid-template-columns: 1fr; gap: 7px; }
  #topBannersContainer a:first-child { grid-column: auto; }
  #topBannersContainer a { border-radius: 4px; }
  .container-grid.player-grid { grid-template-columns: 1fr; gap: 18px; }
  .player-titlebar { padding: 13px; }
  .player-titlebar strong { font-size: 12px; }
  .on-air { font-size: 8px; }
  .player-attributes, .live-list { border-radius: 10px; }
  .betcio-link { font-size: 8px !important; padding: 7px 10px !important; min-height: 28px !important; }
  #match-info { padding: 12px; }
  #match-info p { font-size: 12px; }
  .player-channel-area { order: initial; }
  .list-area, .radarOn .list-area { height: 360px !important; max-height: 360px !important; }
  .real-matches { padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .single-match.show { min-width: 0; margin: 0; padding: 9px 8px; gap: 8px; height: 56px; }
  .single-match img { width: 36px !important; min-width: 36px !important; height: 26px !important; }
  .single-match > i { min-width: 36px; }
  .single-match .match-detail .teams .home { font-size: 10px; white-space: normal; line-height: 1.35; }
  .channel-divider { display: none; }
  .footer-note { display: block; float: none; margin: 7px 0 0; }
  .sticky-sponsor { padding: 7px; }
  .sticky-sponsor #footerImage { max-height: 50px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

::-webkit-scrollbar-thumb { background: #43536b; border-radius: 8px; }
::-webkit-scrollbar-track { background: #0b1421; }
