/* DaddyLiveHD Web — dark theme, mobile-first. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #0a0e12;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  /* Sticky footer: the column fills the screen, main grows, footer stays
     at the bottom even on short pages (e.g. a finished match). */
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: inherit; }
.accent { color: #E81820; }

.site-head {
  padding: 14px 16px 10px;
  background: #0d1218;
  border-bottom: 1px solid #1c2632;
  position: sticky; top: 0; z-index: 20;
}
.head-top { display: flex; align-items: baseline; gap: 12px; }
.brand { font-size: 21px; font-weight: 800; text-decoration: none; letter-spacing: .2px; display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 36px; } }
.head-note { color: #8b98a5; font-size: 12.5px; }
/* Sports row: part of the header itself (not a separate menu bar) —
   one horizontally scrollable line of the day's real schedule sports. */
.sports-row {
  display: flex; gap: 6px; margin-top: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sports-row::-webkit-scrollbar { display: none; }
/* Centre the menu when it fits; the auto margins collapse to 0 when the
   row overflows on small screens, so nothing is clipped while scrolling. */
.sports-row > :first-child { margin-left: auto; }
.sports-row > :last-child { margin-right: auto; }
.sport-link {
  white-space: nowrap; flex: 0 0 auto;
  padding: 5px 12px; border: 1px solid #22314a; border-radius: 999px;
  background: #10161d; color: #c8d4e2;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.sport-link:hover, .sport-link:active { border-color: #E81820; color: #fff; }

.wrap { max-width: 880px; margin: 0 auto; padding: 14px 12px 30px; flex: 1 0 auto; width: 100%; }
.site-foot { color: #67737f; font-size: 12px; text-align: center; padding: 18px 12px 26px; border-top: 1px solid #16202b; }

/* ---------- homepage ---------- */
.hero { padding: 8px 2px 4px; }
.hero h1 { margin: 4px 0 2px; font-size: 24px; }
.hero-sub { color: #9fb2c8; margin: 0 0 2px; }
.hero-count { color: #8b98a5; margin: 0 0 4px; font-size: 13px; }
.hero-note { color: #d9a441; margin: 0 0 4px; font-size: 13px; }

/* ---------- search ---------- */
.searchbar { margin: 12px 0 2px; }
.searchform { display: flex; gap: 8px; flex-wrap: wrap; }
.searchform .search-input { flex: 1; width: auto; min-width: 0; }
.search-btn {
  padding: 0 16px; font-size: 16px; cursor: pointer;
  background: #2a0f14; color: #e6edf3;
  border: 1px solid #E81820; border-radius: 10px;
}
.search-btn:hover { background: #7f1d1d; }
.search-head { font-size: 17px; margin: 20px 0 8px; }

/* ---------- live pill + live-only view + top matches ---------- */
.live-pill {
  display: flex; align-items: center;
  padding: 0 12px; font: inherit; font-size: 13px; font-weight: 800;
  color: #fca5a5; background: #2a0f14; border: 1px solid #7f1d1d;
  border-radius: 10px; cursor: pointer; white-space: nowrap;
}
.live-pill b { color: #fff; margin-left: 3px; }
.live-pill.active { background: #7f1d1d; color: #fff; }
body.live-only .frow:not(.is-live) { display: none; }
body.live-only .fgroup:not(:has(.frow.is-live)) { display: none; }
.top-matches { border: 1px solid #92600a; }
.top-matches .league-name { color: #fbbf24; }
.sleague { font-size: 10px; color: #67737f; }

/* ---------- finished match: events + lineups ---------- */
.potm {
  margin: 12px 0 0; padding: 10px 14px;
  background: #10161d; border: 1px solid #92600a; border-radius: 10px;
  font-size: 14px;
}
.events { background: #10161d; border: 1px solid #1c2632; border-radius: 12px; padding: 6px 0; }
.ev-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-bottom: 1px solid #141c26;
}
.ev-row:last-child { border-bottom: none; }
.ev-min { flex: 0 0 40px; font-weight: 800; font-size: 12.5px; color: #9fb2c8; }
.ev-ico { flex: 0 0 auto; font-size: 14px; }
.ev-crest { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.ev-text { flex: 1; min-width: 0; font-size: 14px; }
.ev-sub { display: block; font-size: 12px; color: #8fa3b8; }
.ev-tag {
  font-size: 10px; font-weight: 800; color: #fbbf24;
  border: 1px solid #92600a; border-radius: 4px; padding: 0 4px;
}
.ev-score {
  flex: 0 0 auto; font-weight: 800; font-size: 13px;
  background: #0a0e12; border: 1px solid #27364a; border-radius: 6px; padding: 2px 8px;
}
.ev-in { display: block; color: #E81820; }
.ev-out { display: block; color: #f87171; font-size: 13px; }
.ev-half {
  text-align: center; font-weight: 800; font-size: 12px; letter-spacing: 1px;
  color: #9fb2c8; background: #0d1218; padding: 6px 0;
  border-top: 1px solid #1c2632; border-bottom: 1px solid #1c2632;
}
.lu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .lu-grid { grid-template-columns: 1fr; } }
.lu-team { background: #10161d; border: 1px solid #1c2632; border-radius: 12px; padding: 12px 14px; }
.lu-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lu-tname { font-weight: 800; font-size: 15px; }
.lu-form { margin-left: auto; font-size: 12px; color: #9fb2c8; font-weight: 700; }
.lu-list { list-style: none; margin: 0; padding: 0; }
.lu-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; border-bottom: 1px solid #141c26; font-size: 13.5px;
}
.lu-list li:last-child { border-bottom: none; }
.lu-num { flex: 0 0 22px; color: #67737f; font-size: 12px; text-align: right; }
.lu-pname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-cap { color: #fbbf24; font-size: 11px; font-weight: 800; }
.lu-rating {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 800; color: #E81820;
  background: #0a0e12; border: 1px solid #27364a; border-radius: 5px; padding: 1px 6px;
}
.lu-subs-title { margin: 10px 0 4px; font-size: 12px; font-weight: 800; color: #9fb2c8; letter-spacing: .5px; }
.lu-coach { margin-top: 10px; font-size: 12.5px; color: #8fa3b8; }

/* ---------- homepage layout + Top Teams sidebar ---------- */
@media (min-width: 1100px) {
  main.wrap:has(.home-layout) { max-width: 1340px; }
  .home-layout {
    display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px;
    gap: 18px; align-items: start;
  }
}
@media (max-width: 1099px) {
  .home-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
  .home-main { order: -1; }
  .top-leagues { order: 1; }
  .top-teams { order: 2; }
}
.top-teams, .top-leagues {
  background: #10161d; border: 1px solid #1c2632; border-radius: 12px;
  padding: 10px 0; margin: 14px 0;
}
.tt-head {
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  color: #9fb2c8; margin: 2px 14px 8px;
}
.tt-arrow { color: #E81820; }
.tt-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px; text-decoration: none;
}
.tt-row:hover { background: #0d1218; }
.tt-crest { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.tt-name { font-size: 14px; }
.day-sub {
  font-size: 13px; color: #9fb2c8; margin: 14px 2px 6px;
}

/* ---------- header submenu panel ---------- */
.caret { font-size: 10px; color: #E81820; }
.drop-panel {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; padding: 12px 0 4px;
}
.drop-panel[hidden] { display: none; }
.drop-item {
  display: flex; align-items: center; gap: 10px;
  background: #10161d; border: 1px solid #27364a; border-radius: 12px;
  padding: 10px 12px; text-decoration: none; color: #e6edf3;
}
.drop-item:hover { border-color: #E81820; }
.drop-ico { font-size: 20px; }
.drop-text { display: flex; flex-direction: column; }
.drop-name { font-weight: 700; font-size: 14px; }
.drop-sub { font-size: 11px; color: #8fa3b8; }
.search-input {
  width: 100%; padding: 11px 14px;
  background: #10161d; color: #e6edf3;
  border: 1px solid #27364a; border-radius: 10px;
  font-size: 15px; font-family: inherit;
}
.search-input:focus { outline: none; border-color: #E81820; }
.search-input::placeholder { color: #67737f; }
#dlw-noresults { margin-top: 12px; }

/* ---------- sport / event pages ---------- */
.stime { color: #9fb2c8; font-weight: 700; font-size: 13px; min-width: 54px; white-space: nowrap; }

.league { background: #10161d; border: 1px solid #1c2632; border-radius: 12px; margin: 14px 0; overflow: hidden; }
.league-head {
  display: flex; align-items: center; gap: 9px;
  margin: 0; padding: 10px 12px;
  background: #131b24; border-bottom: 1px solid #1c2632;
  font-size: 14.5px; font-weight: 700;
}
.league-logo { width: 22px; height: 22px; object-fit: contain; }
.big-crest { width: 52px; height: 52px; object-fit: contain; }
.league-cc { color: #67737f; font-size: 11px; font-weight: 600; }

.mrow {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 9px 12px; text-decoration: none;
  border-bottom: 1px solid #18222d;
}
.mrow:last-child { border-bottom: 0; }
.mrow:active, .mrow:hover { background: #141e28; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team.home { justify-content: flex-end; text-align: right; }
.team .tname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.crest { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.mstate { min-width: 64px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mstate .score { font-weight: 800; font-size: 15px; }
.mstate .slabel { font-size: 12.5px; font-weight: 700; color: #9fb2c8; }
.mstate.time .slabel { color: #e6edf3; font-size: 13.5px; }
.mstate.live .slabel { color: #ef4444; }
.mstate.off .slabel { color: #67737f; font-size: 11.5px; }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #ef4444; margin-right: 5px; vertical-align: 1px;
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- match page ---------- */
.back { margin: 2px 0 10px; }
.back a { color: #E81820; text-decoration: none; font-weight: 600; font-size: 14px; }
.match-card { background: #10161d; border: 1px solid #1c2632; border-radius: 12px; padding: 14px 12px 16px; }
.match-league { display: flex; align-items: center; gap: 8px; color: #9fb2c8; font-size: 13px; font-weight: 600; justify-content: center; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; margin-top: 12px; }
.mteam { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-weight: 600; font-size: 14px; }
.match-mid { text-align: center; padding-top: 6px; min-width: 92px; }
.big-score { font-size: 24px; font-weight: 800; }
.big-score.live-txt { color: #ef4444; font-size: 18px; }
.match-when { color: #67737f; font-size: 11.5px; margin-top: 3px; }
.section-title { font-size: 17px; margin: 20px 0 10px; }
.event-note { color: #8b98a5; font-size: 12.5px; margin: 0 0 8px; }

.channels { display: flex; flex-direction: column; gap: 8px; }
.crow {
  display: flex; align-items: center; gap: 10px;
  background: #10161d; border: 1px solid #1c2632; border-radius: 10px;
  padding: 12px; text-decoration: none;
}
.crow:hover, .crow:active { border-color: #E81820; background: #12202a; }
.cname { font-weight: 700; font-size: 14.5px; flex: 1 1 auto; min-width: 0; }
.ccountry {
  color: #0a0e12; background: #9fb2c8; font-size: 11px; font-weight: 700;
  padding: 2.5px 8px; border-radius: 999px; white-space: nowrap;
}
.cgo { color: #E81820; font-weight: 800; font-size: 13px; white-space: nowrap; }

/* ---------- homepage SEO text block (below the match list) ---------- */
.seo-block {
  background: #10161d; border: 1px solid #1c2632; border-radius: 12px;
  margin: 18px 0 6px; padding: 20px 22px;
}
.seo-block h2 { font-size: 21px; margin: 0 0 10px; color: #e6edf3; }
.seo-block h3 { font-size: 16.5px; margin: 18px 0 6px; color: #e6edf3; }
.seo-block p, .seo-block li { color: #9fb2c8; font-size: 14.5px; line-height: 1.65; }
.seo-block p { margin: 0 0 8px; }
.seo-block ul { margin: 4px 0 8px; padding-left: 20px; }
.seo-block li { margin: 3px 0; }
.notice {
  background: #131b24; border: 1px solid #27364a; border-radius: 10px;
  padding: 14px; color: #c8d4e2; font-size: 14px;
}
.notice.error { border-color: #5a2b2b; color: #f0b4b4; }
.notice a { color: #E81820; }

/* ---------- watch page ---------- */
.watch-title { font-size: 19px; margin: 0 0 2px; }
.watch-channel { margin: 0 0 12px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.player-shell { max-width: 980px; margin: 0 auto; }
.player-wrap:fullscreen { border-radius: 0; border: 0; background: #000; }
.player-topbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.rotate-hint { display: none; color: #d9a441; font-size: 12.5px; margin-right: auto; align-self: center; }
/* Fallback fullscreen for browsers with no element-fullscreen API
   (iPhone Safari, many in-app browsers): the shell pins to the viewport. */
.player-shell.pseudo-fs {
  position: fixed; inset: 0; z-index: 999; background: #000;
  display: flex; flex-direction: column; padding: 10px; max-width: none;
}
.player-shell.pseudo-fs .player-wrap { flex: 1 1 auto; aspect-ratio: auto; }
.player-shell.pseudo-fs .player-topbar,
.player-shell.pseudo-fs .controls,
.player-shell.pseudo-fs .watch-tips { display: none; }
.player-shell.pseudo-fs .rotate-hint { display: block; }
@media (orientation: landscape) {
  .player-shell.pseudo-fs .rotate-hint { display: none; }
}
.player-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: 12px; overflow: hidden;
  border: 1px solid #1c2632;
}
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(ellipse at center, #14202c 0%, #05080b 75%);
  color: #c8d4e2; padding: 20px; pointer-events: auto; cursor: pointer;
}
.poster-play {
  width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 50%;
  background: #E81820; color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
}
.poster-inner p { margin: 0; font-size: 14px; }
.poster-main {
  display: flex; align-items: center; justify-content: center;
  gap: 34px; margin-bottom: 14px;
}
.poster-main .poster-play { margin: 0; flex: 0 0 auto; }
.poster-crest {
  width: 132px; height: 132px; object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .55));
}
.fs-btn {
  background: #131b24; color: #fff;
  border: 1px solid #2c3e50; border-radius: 8px;
  padding: 8px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.fs-btn:hover { background: #1a2634; border-color: #E81820; }
/* Exit Full Screen button: INSIDE the player, TOP CENTER (like the app).
   Only exists while fullscreen; stays hidden until mouse-move / touch,
   then fades out again after 3.5s (JS toggles .show). */
.fs-exit {
  display: none; position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%); z-index: 7;
  background: #E81820; color: #fff;
  border: 1px solid rgba(0, 0, 0, .25); border-radius: 9px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  padding: 9px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  white-space: nowrap;
}
.player-wrap:fullscreen .fs-exit,
.player-shell.pseudo-fs .fs-exit,
.player-wrap.playing .fs-exit { display: block; }
.fs-exit.show { opacity: 1; pointer-events: auto; }
/* Transparent catcher over the player, fullscreen only: the first
   touch / mouse-move lands here (events over a cross-origin iframe
   never reach the page) and reveals the Exit button; JS then sets
   pointer-events:none so later taps reach the player. */
.fs-catcher {
  display: none; position: absolute; inset: 0; z-index: 5;
  background: transparent; touch-action: none;
}
.player-wrap:fullscreen .fs-catcher,
.player-shell.pseudo-fs .fs-catcher,
.player-wrap.playing .fs-catcher { display: block; }
.controls { display: flex; align-items: center; justify-content: center; text-align: center; gap: 12px; margin-top: 12px; }
.play-btn {
  background: #E81820; color: #fff; border: 0; border-radius: 10px;
  padding: 12px 30px; font-size: 17px; font-weight: 800; cursor: pointer;
  box-shadow: 0 2px 14px rgba(34, 197, 94, .35);
}
.play-btn:active { transform: scale(.97); }
.ctrl-note { color: #fff; font-size: 13.5px; font-weight: 700; text-transform: uppercase; }
.watch-tips { color: #67737f; font-size: 12.5px; margin-top: 10px; }

@media (max-width: 520px) {
  .poster-crest { width: 84px; height: 84px; }
  .poster-main { gap: 20px; }
  .team .tname { font-size: 13px; }
  .mstate { min-width: 54px; }
  .big-crest { width: 44px; height: 44px; }
  .controls { flex-wrap: wrap; }
}

/* Watch-page banner ad slots (user, 2026-11-01): one above the player,
   one below. The placeholder box is replaced by the ad network code
   inside the .ad-slot div when codes are added. */
.ad-slot { max-width: 980px; margin: 0 auto 14px; }
.ad-slot-bottom { margin: 14px auto 4px; }
.ad-placeholder {
  border: 1px dashed rgba(255,255,255,.28); background: #10161d; color: #8fa3ba;
  text-align: center; border-radius: 8px; min-height: 90px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 18px 10px;
}
.ad-label { font-size: 13px; font-weight: 700; letter-spacing: 3px; }
.ad-size { font-size: 12px; opacity: .75; }
@media (max-width: 760px) {
  .ad-placeholder { min-height: 60px; padding: 12px 8px; }
}
