/* Gridiron Update — classic early-2000s sports portal look */
:root {
  --red: #cc0000;
  --red-dark: #990000;
  --red-deep: #660000;
  --ink: #000;
  --text: #222;
  --muted: #666;
  --link: #003366;
  --line: #cccccc;
  --panel: #f2f2f2;
  --zebra: #f7f7f7;
  --page: #dcdcdc;
  --nav: #333333;
  --nav2: #4d4d4d;
  --gold: #ffcc00;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23dcdcdc'/%3E%3Crect width='1' height='1' fill='%23d0d0d0'/%3E%3C/svg%3E");
  font: 12px/1.4 Verdana, Geneva, Tahoma, Arial, sans-serif;
  color: var(--text);
  padding-bottom: 34px; /* ticker */
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--red); }
img { border: 0; }

.wrap { width: 100%; min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.wrap > .cols { flex: 1; }

/* ---------- Utility bar ---------- */
.util {
  background: #000; color: #bbb; font-size: 10px; padding: 3px 10px;
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.util a { color: #fff; }
.util .sep { color: #555; margin: 0 5px; }

/* ---------- Masthead ---------- */
.mast {
  background: linear-gradient(#e00000, #b30000 60%, #990000);
  border-bottom: 3px solid #000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; gap: 12px; flex-wrap: wrap;
}
.logo {
  display: inline-flex; align-items: baseline; gap: 6px;
  color: #fff; text-decoration: none !important;
  font: italic 900 34px/1 "Arial Black", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -1.5px; text-shadow: 2px 2px 0 #500;
  transform: skewX(-8deg);
}
.logo:hover { color: #fff; }
.logo .ball {
  display: inline-block; width: 30px; height: 19px; background: #7a3b12;
  border-radius: 50%; border: 2px solid #fff; position: relative; top: 2px;
  box-shadow: 2px 2px 0 #500;
}
.logo .ball::after {
  content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: #fff;
}
.logo small {
  font: bold 11px Verdana, sans-serif; letter-spacing: 1px; color: var(--gold); text-shadow: none;
  transform: skewX(8deg); display: inline-block;
}
.mast-right { color: #fff; font-size: 10px; text-align: right; }
.mast-right b { color: var(--gold); }
.mast-right .live { display: inline-block; background: #000; color: var(--gold); padding: 2px 6px; font-weight: bold; margin-top: 4px; }

/* ---------- Main nav tabs ---------- */
.nav {
  background: linear-gradient(#4a4a4a, #222); border-bottom: 1px solid #000;
  display: flex; flex-wrap: wrap; padding: 0 6px;
}
.nav a {
  color: #fff; font: bold 11px Verdana, sans-serif; text-transform: uppercase;
  padding: 8px 12px; border-right: 1px solid #111; border-left: 1px solid #5a5a5a;
}
.nav a:hover { background: var(--red-dark); text-decoration: none; color: #fff; }
.nav a.on { background: #fff; color: var(--red); border-color: #fff; }
.subnav {
  background: #e8e8e8; border-bottom: 1px solid #bbb; padding: 5px 10px; font-size: 11px;
  display: flex; flex-wrap: wrap; gap: 2px 0;
}
.subnav b { color: var(--red); margin-right: 8px; }
.subnav a { padding: 0 8px; border-right: 1px solid #aaa; font-weight: bold; }
.subnav a:last-child { border-right: 0; }
.subnav a.on { color: var(--red); }

/* ---------- Layout ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; padding: 12px; }
.side { font-size: 11px; }
.main { min-width: 0; }

/* Left rail */
.rail h4 {
  margin: 0; background: var(--red); color: #fff; font-size: 10px; text-transform: uppercase;
  padding: 3px 6px; letter-spacing: .5px;
}
.rail ul { list-style: none; margin: 0 0 10px; padding: 0; border: 1px solid var(--line); border-top: 0; background: var(--panel); }
.rail li a { display: block; padding: 4px 6px; border-top: 1px solid #fff; border-bottom: 1px solid #ddd; font-weight: bold; }
.rail li a:hover { background: #fff; }
.rail li a.on { background: #fff; color: var(--red); }
.rail .ad {
  border: 1px solid #999; background: #ffffe0; padding: 8px; text-align: center; font-size: 10px; color: #333;
}
.rail .ad b { display: block; color: var(--red); font-size: 12px; margin-bottom: 3px; }

/* ---------- Boxes ---------- */
.box { border: 1px solid #999; margin-bottom: 10px; background: #fff; }
.box > h3 {
  margin: 0; color: #fff; font: bold 11px Verdana, sans-serif; text-transform: uppercase;
  background: linear-gradient(#d40000, #990000); padding: 4px 7px; letter-spacing: .4px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.box > h3 a { color: #fff; font-size: 10px; text-transform: none; }
.box > h3.blk { background: linear-gradient(#555, #111); }
.box > h3.blu { background: linear-gradient(#335d8c, #0d2c52); }
.box > h3.grn { background: linear-gradient(#3f7d3a, #1d4719); }
.box .in { padding: 7px; }
.box .foot { border-top: 1px solid #ddd; background: var(--panel); padding: 3px 7px; font-size: 10px; text-align: right; }

/* ---------- Top story ---------- */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid #000; display: block; background: #333; }
.lead h1 { font: bold 20px/1.15 Georgia, "Times New Roman", serif; margin: 0 0 6px; color: #000; }
.lead h1 a { color: #000; }
.lead p { margin: 0 0 6px; }
.kicker { color: var(--red); font-weight: bold; font-size: 10px; text-transform: uppercase; }
.time { color: var(--muted); font-size: 10px; }

/* Headline lists */
ul.heads { list-style: none; margin: 0; padding: 0; }
ul.heads li { padding: 3px 0 3px 12px; position: relative; border-bottom: 1px dotted #ccc; }
ul.heads li:last-child { border-bottom: 0; }
ul.heads li::before { content: "\00BB"; color: var(--red); font-weight: bold; position: absolute; left: 1px; top: 2px; }
ul.heads li a { font-weight: bold; }
ul.heads .tag { color: #fff; background: #666; font-size: 9px; padding: 0 3px; margin-right: 4px; font-weight: bold; text-transform: uppercase; }
.story { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dotted #ccc; }
.story:last-child { border-bottom: 0; }
.story img { width: 110px; height: 62px; object-fit: cover; border: 1px solid #666; background: #333; }
.story.noimg { grid-template-columns: 1fr; }
.story h5 { margin: 0 0 2px; font-size: 12px; }
.story p { margin: 0; font-size: 11px; color: #444; }

/* ---------- Scores ---------- */
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.sc { border: 1px solid #aaa; background: #fff; font-size: 11px; }
.sc .st { background: #e6e6e6; border-bottom: 1px solid #bbb; padding: 2px 5px; font-size: 10px; font-weight: bold; display: flex; justify-content: space-between; gap: 4px; }
.sc .st.live { background: #fff3a0; color: #900; }
.sc .st.final { background: #333; color: #fff; }
.sc .tm { display: flex; align-items: center; gap: 5px; padding: 3px 5px; }
.sc .tm img { width: 18px; height: 18px; object-fit: contain; }
.sc .tm .n { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc .tm .r { color: var(--muted); font-size: 9px; }
.sc .tm .rk { color: var(--muted); font-size: 9px; font-weight: bold; }
.sc .tm .s { font-weight: bold; min-width: 22px; text-align: right; }
.sc .tm.w .n, .sc .tm.w .s { font-weight: bold; color: #000; }
.sc .tm.l { color: #777; }
.sc .tm.mine { background: #fff8d6; }
.sc .ex { border-top: 1px solid #eee; padding: 2px 5px; font-size: 9px; color: var(--muted); display: flex; justify-content: space-between; gap: 4px; }

/* ---------- Tables ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 11px; }
table.t th {
  background: linear-gradient(#f4f4f4, #d6d6d6); border-bottom: 1px solid #999; text-align: left;
  padding: 3px 4px; font-size: 10px; text-transform: uppercase; color: #333; white-space: nowrap;
}
table.t td { padding: 3px 4px; border-bottom: 1px solid #e3e3e3; white-space: nowrap; }
table.t tr:nth-child(even) td { background: var(--zebra); }
table.t tr.mine td { background: #fff3a0 !important; font-weight: bold; }
table.t .c, table.t th.c { text-align: center; }
table.t .tm { display: flex; align-items: center; gap: 5px; }
table.t .tm img { width: 16px; height: 16px; object-fit: contain; }
table.t caption { text-align: left; font-weight: bold; padding: 6px 0 3px; color: var(--red-dark); font-size: 11px; text-transform: uppercase; }
.tscroll { overflow-x: auto; }
.up { color: #080; font-weight: bold; }
.down { color: #c00; font-weight: bold; }
.W { color: #080; font-weight: bold; }
.L { color: #c00; font-weight: bold; }

/* ---------- Team pages ---------- */
.teamhead {
  display: flex; align-items: center; gap: 14px; padding: 12px; color: #fff;
  border-bottom: 4px solid var(--alt, #000); background: var(--tc, #333);
  background-image: linear-gradient(rgba(255,255,255,.15), rgba(0,0,0,.25));
}
.teamhead img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; border: 3px solid var(--alt, #fff); }
.teamhead h1 { margin: 0; font: italic 900 28px/1 "Arial Black", Arial, sans-serif; text-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.teamhead .meta { font-size: 12px; margin-top: 5px; }
.teamhead .meta b { font-size: 16px; }
.factgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.fact { border: 1px solid #bbb; background: linear-gradient(#fff, #eee); text-align: center; padding: 6px 4px; }
.fact b { display: block; font: bold 20px Georgia, serif; color: #000; }
.fact span { font-size: 9px; text-transform: uppercase; color: var(--muted); font-weight: bold; }
.matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; }
.matchup img { width: 48px; height: 48px; object-fit: contain; }
.matchup .big { font: bold 26px Georgia, serif; }
.matchup .vs { font-weight: bold; color: var(--red); }
.matchup .nm { font-weight: bold; font-size: 11px; }

/* My teams cards */
.myteams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mt { border: 1px solid #999; font-size: 11px; background: #fff; }
.mt .top { display: flex; align-items: center; gap: 6px; padding: 5px; color: #fff; background: var(--tc, #333); border-bottom: 3px solid var(--alt, #000); }
.mt .top img { width: 30px; height: 30px; background: #fff; border-radius: 50%; padding: 2px; object-fit: contain; }
.mt .top b { font-size: 12px; display: block; line-height: 1.1; }
.mt .body { padding: 5px; }
.mt .row { display: flex; justify-content: space-between; gap: 4px; padding: 2px 0; border-bottom: 1px dotted #ccc; }
.mt .row:last-of-type { border-bottom: 0; }
.mt .row span:first-child { color: var(--muted); font-weight: bold; font-size: 10px; text-transform: uppercase; }

/* Fantasy */
.inj { background: #c00; color: #fff; font-size: 9px; font-weight: bold; padding: 1px 4px; text-transform: uppercase; }
table.t img.hs { width: 34px; height: 25px; object-fit: cover; object-position: top; background: #eee; border: 1px solid #ccc; }
table.ff td { vertical-align: middle; }
table.ff tr.grp td { background: #333 !important; color: #fff; font-weight: bold; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; padding: 3px 6px; }
table.ff tr.res td { color: #555; }
details.more { margin-bottom: 10px; }
details.more > summary { cursor: pointer; background: linear-gradient(#f4f4f4, #d6d6d6); border: 1px solid #999; padding: 5px 8px; font-weight: bold; font-size: 11px; text-transform: uppercase; margin-bottom: 8px; }
.pnote { background: #f6f6f6; border-left: 3px solid var(--red); padding: 5px 7px; margin-top: 6px; font-size: 11px; }

/* Golf */
table.t td.pos { font-weight: bold; width: 32px; }
.flag { width: 16px; height: 11px; object-fit: cover; border: 1px solid #ccc; vertical-align: middle; }
.under { color: #c00; font-weight: bold; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--red); margin-bottom: 6px; }
.tabs button {
  font: bold 10px Verdana, sans-serif; text-transform: uppercase; border: 1px solid #999; border-bottom: 0;
  background: linear-gradient(#f4f4f4, #ccc); padding: 4px 8px; cursor: pointer; color: #333;
}
.tabs button.on { background: var(--red); color: #fff; border-color: var(--red); }

.note { background: #ffffe0; border: 1px solid #e0d080; padding: 6px 8px; font-size: 11px; margin-bottom: 8px; }
.empty { color: var(--muted); font-style: italic; padding: 6px 0; }

/* ---------- Footer ---------- */
.footer { background: #222; color: #aaa; font-size: 10px; padding: 10px; text-align: center; border-top: 3px solid var(--red); }
.footer a { color: #fff; }

/* ---------- Bottom Line ticker ---------- */
.ticker {
  position: fixed; left: 0; right: 0; bottom: 0; height: 30px; z-index: 50;
  background: linear-gradient(#222, #000); border-top: 2px solid var(--red); color: #fff;
  display: flex; align-items: center; overflow: hidden; font: bold 12px Arial, sans-serif;
}
.ticker .lbl {
  flex: none; background: var(--red); height: 100%; display: flex; align-items: center;
  padding: 0 10px; font: italic 900 13px "Arial Black", Arial, sans-serif; letter-spacing: -.5px; z-index: 1;
  box-shadow: 4px 0 6px #000;
}
.ticker .lbl small { color: var(--gold); margin-left: 4px; font-style: normal; font-size: 10px; }
.ticker .track { white-space: nowrap; display: inline-block; padding-left: 100%; animation: tick var(--dur, 120s) linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .it { margin-right: 28px; }
.ticker .it .lg { color: var(--gold); margin-right: 6px; }
.ticker .it .w { color: #fff; }
.ticker .it .l { color: #999; }
.ticker .it .d { color: #8fd18f; margin-left: 4px; font-size: 11px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; padding-left: 10px; } .ticker { overflow-x: auto; } }

/* ---------- Responsive ---------- */
@media (min-width: 1500px) {
  body { font-size: 13px; }
  .cols { grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; padding: 16px; }
  .scores { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .lead h1 { font-size: 26px; }
}
@media (max-width: 960px) {
  .cols { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 700px) {
  .cols { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .lead { grid-template-columns: 1fr; }
  .myteams { grid-template-columns: 1fr; }
  .logo { font-size: 26px; }
  .mast-right { text-align: left; }
  .nav a { padding: 7px 8px; font-size: 10px; }
  .teamhead h1 { font-size: 21px; }
  .teamhead img { width: 60px; height: 60px; }
}


/* ================= Usability layer ================= */
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.util .fresh { color: #ddd; }
.util .fresh.old { color: var(--gold); font-weight: bold; }
.stale { background: #fff3a0; border-bottom: 1px solid #d9c25a; color: #5a4a00; padding: 6px 12px; font-size: 11px; font-weight: bold; }

/* Menus: one row; on small screens they scroll sideways instead of wrapping */
.nav, .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar, .subnav::-webkit-scrollbar { display: none; }
.nav a, .subnav a, .subnav b { white-space: nowrap; flex: none; }
.subnav { align-items: center; }
.subnav a { padding: 3px 10px; }

/* Links that leave the site */
a[target="_blank"]:not(.noarrow)::after { content: "\2197"; font-size: .75em; margin-left: 3px; color: #999; display: inline-block; text-decoration: none; }

/* Whole-card links */
a.sc { display: block; color: var(--text); text-decoration: none; transition: border-color .12s, box-shadow .12s; }
a.sc:hover { border-color: var(--red); box-shadow: 0 1px 4px rgba(0,0,0,.25); text-decoration: none; color: var(--text); }
a.sc:hover .cta { text-decoration: underline; }
.sc .cta { color: var(--link); }
.sc .st.final .cta { color: #fff; }
.sc .st .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d00; margin-right: 4px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
a.mt { display: block; color: var(--text); text-decoration: none; transition: box-shadow .12s, transform .12s; }
a.mt:hover { box-shadow: 0 2px 8px rgba(0,0,0,.3); transform: translateY(-1px); text-decoration: none; color: var(--text); }
a.mt .top b { color: #fff; }
.mt .go { margin-top: 4px; text-align: right; font-weight: bold; color: var(--link); font-size: 10px; }
a.mt:hover .go { color: var(--red); text-decoration: underline; }
.myteams.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ffico { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1d4719; font: 900 12px Arial; display: flex; align-items: center; justify-content: center; flex: none; }

/* Tabs */
.tabs button { min-height: 28px; }
.morelink { text-align: right; margin-top: 6px; font-weight: bold; font-size: 11px; }
details.inline > summary { cursor: pointer; font-weight: bold; color: var(--link); font-size: 11px; padding: 5px 0; }
details.inline > summary:hover { color: var(--red); }
h2.evt { margin: 2px 0 4px; font: bold 17px Georgia, serif; }

/* Team schedule */
tr.nextrow td { background: #fff8d6 !important; font-weight: bold; }
.badge { background: var(--red); color: #fff; font-size: 9px; padding: 1px 4px; font-weight: bold; }

/* Fantasy */
.alert { background: #fdecea; border: 1px solid #e3a59f; border-left: 4px solid #c00; padding: 6px 10px; margin-bottom: 8px; font-size: 11px; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.mob { display: none; }

/* Footer site map */
.footer .fnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 8px; font-weight: bold; }
.footer .fnav a.on { color: var(--gold); }

/* Ticker items are links */
.ticker a.it { color: #fff; text-decoration: none; }
.ticker a.it:hover { color: var(--gold); }

@media (max-width: 700px) {
  .mast { padding: 8px 12px; }
  .mast-right { display: none; }
  .util { font-size: 10px; }
  .nav a { padding: 12px 12px; font-size: 11px; }
  .subnav { padding: 0 6px; }
  .subnav a { padding: 10px 10px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs button { min-height: 38px; padding: 6px 12px; flex: none; }
  ul.heads li { padding: 7px 0 7px 12px; }
  .myteams.four { grid-template-columns: 1fr; }
  table.ff .gm, table.ff .wk, table.ff .avg, table.ff .ros { display: none; }
  table.ff img.hs { display: none; }
  table.ff td, table.ff th { padding: 4px 3px; }
  .mob { display: block; }
  .lead h1 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .sc .st .dot { animation: none; } a.mt, a.sc { transition: none; } a.mt:hover { transform: none; } }
