
* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #000 url("../images/bg-carbon.png");
  color: #eee;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

a { color: #00ff2a; text-decoration: none; }
a:hover { color: #fff200; text-decoration: underline; }

#page {
  width: 1000px;
  margin: 0 auto;
  background: #050505;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
}

#top {
  height: 31px;
  background: linear-gradient(#444, #0b0b0b 65%, #000);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
}

.logo {
  width: 165px;
  height: 31px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  color: #fff;
  font-weight: 900;
  font-size: 21px;
  font-style: italic;
  letter-spacing: -1px;
  text-shadow: 2px 2px #000;
}

.logo .slash {
  width: 39px;
  height: 17px;
  margin-right: 4px;
  transform: skew(-14deg);
  background: repeating-linear-gradient(90deg,
    #f7f7f7 0 4px,
    #f7d900 4px 8px,
    #e00000 8px 12px,
    #0084ff 12px 16px);
  border: 1px solid #111;
}

.logo span { color: #ff1a1a; }

.mainnav {
  flex: 1;
  white-space: nowrap;
}

.mainnav a {
  color: white;
  font-weight: bold;
  padding: 0 12px;
  font-size: 13px;
}

.search {
  width: 220px;
  text-align: right;
  padding-right: 8px;
  color: #aaa;
  font-size: 10px;
  white-space: nowrap;
}

.search input {
  width: 135px;
  height: 16px;
  border: 1px solid #111;
  background: #ddd;
  margin-left: 4px;
}

.search b { color: #00ff2a; }

#tinybar {
  height: 18px;
  background: #050505;
  padding-left: 173px;
  border-bottom: 1px solid #222;
  overflow: hidden;
}

#tinybar a {
  color: #00ff2a;
  font-size: 12px;
  margin-right: 16px;
}

#grid {
  display: grid;
  grid-template-columns: 165px 533px 302px;
}

.left {
  background: #070707;
  border-right: 1px solid #333;
}

.center {
  background: #0a0a0a;
}

.right {
  background: #050505;
  border-left: 1px solid #222;
}

.box {
  margin: 4px;
  border: 1px solid #333;
  background: #151515;
}

.boxhead {
  background: linear-gradient(#666, #111);
  color: #ddd;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.boxbody { padding: 7px; }

.login input {
  display: block;
  width: 100%;
  height: 15px;
  margin-bottom: 5px;
  background: #1c1c1c;
  color: #ddd;
  border: 1px solid #444;
  font-size: 11px;
}

.btn {
  display: inline-block;
  background: linear-gradient(#e8e8e8, #646464);
  color: #111;
  border: 1px solid #000;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.btn.green {
  background: linear-gradient(#a6ffaa, #007e10);
  color: white;
}

.ad {
  margin: 4px;
  min-height: 70px;
  border: 1px solid #555;
  background: radial-gradient(circle at 30% 35%, #777, #141414 45%, #000);
  padding: 7px;
  overflow: hidden;
}

.ad .adtitle {
  font-size: 17px;
  line-height: 15px;
  color: white;
  font-style: italic;
  font-weight: 900;
  text-shadow: 2px 2px #000;
}

.ad .adtext {
  color: #fff;
  font-weight: bold;
  margin-top: 5px;
}

.ad .green { color: #00ff2a; }

.ad.redblue {
  background: linear-gradient(145deg, #080052, #001b6d 35%, #b40000);
}

.quick a {
  display: block;
  color: #00ff2a;
  margin: 2px 0;
}

.hero {
  height: 250px;
  position: relative;
  background:
    radial-gradient(circle at 43% 18%, rgba(255,255,255,.35), transparent 24%),
    radial-gradient(circle at 78% 26%, rgba(255,255,255,.24), transparent 20%),
    linear-gradient(155deg, #707070, #1b1b1b 43%, #120000);
  overflow: hidden;
  border-bottom: 1px solid #333;
}

.hero:before {
  content: "";
  position: absolute;
  left: 38px;
  top: 77px;
  width: 470px;
  height: 115px;
  background: linear-gradient(#f8f8f8 0 24%, #ff6900 24% 36%, #111 36% 58%, #d50000 58% 70%, #222 70%);
  border-radius: 22px 95px 18px 50px;
  transform: skew(-9deg);
  box-shadow: 0 18px 35px rgba(0,0,0,.8);
}

.hero:after {
  content: "25";
  position: absolute;
  left: 210px;
  top: 78px;
  color: white;
  font-size: 75px;
  font-weight: 900;
  font-style: italic;
  text-shadow: 4px 4px #c00000, 7px 7px #000;
  transform: skew(-9deg);
}

.hero-title {
  position: absolute;
  left: 14px;
  bottom: 5px;
  z-index: 2;
}

.hero-title h1 {
  margin: 0;
  color: white;
  font-size: 35px;
  line-height: 37px;
  letter-spacing: -2px;
  text-shadow: 3px 3px #000;
}

.hero-title p {
  margin: 0;
  color: #ff1717;
  font-size: 12px;
  font-weight: bold;
}

.mainstory {
  display: grid;
  grid-template-columns: 1fr 250px;
  background: #dcdcdc;
  color: #111;
  border-bottom: 1px solid #aaa;
}

.mainstory .stories, .mainstory .video {
  padding: 6px 9px;
  border-right: 1px solid #aaa;
}

.mainstory h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #111;
  text-transform: uppercase;
}

.mainstory b.red { color: #b00000; }

.mainstory ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.mainstory li:before { content: "› "; }
.mainstory li { margin: 2px 0; }
.mainstory a { color: #111; }

.fake-thumb {
  width: 62px;
  height: 53px;
  background: linear-gradient(135deg, #222, #aaa);
  border: 1px solid #666;
  float: left;
  margin-right: 7px;
}

.redlinks {
  background: #eee;
  color: #111;
  padding: 5px 8px;
  font-size: 11px;
  border-bottom: 1px solid #777;
}

.redlinks a { color: #b00000; font-weight: bold; }

.middle-ads {
  display: grid;
  grid-template-columns: 1fr 165px;
  gap: 6px;
  padding: 8px;
}

.weekend {
  min-height: 185px;
  background: #050505;
  border: 1px solid #111;
  color: white;
  padding: 8px;
  position: relative;
}

.weekend h2 {
  margin: 0;
  font-size: 16px;
  color: white;
  text-transform: uppercase;
  font-style: italic;
}

.weekend .race {
  color: #ff9c00;
  font-size: 18px;
  font-weight: 900;
}

.weekend .launch {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.fantasy {
  min-height: 185px;
  background: linear-gradient(135deg, #172dff, #fff200 55%, #111 56%);
  color: white;
  padding: 10px;
  font-size: 18px;
  font-weight: 900;
}

.eventbar {
  margin: 8px;
  padding: 9px;
  background: #001226;
  border-top: 1px solid #1d4a82;
  border-bottom: 1px solid #000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.next {
  color: white;
  font-size: 12px;
}

.next b {
  color: #fff200;
}

.launchbtn {
  display: block;
  margin-top: 3px;
  width: 120px;
  text-align: center;
  background: linear-gradient(#dfdfdf, #282828);
  color: #555;
  font-weight: 900;
  padding: 2px;
  border: 1px solid #111;
}

.serieslogos {
  height: 86px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 0, #777, #111 45%, #000);
}

.series {
  width: 270px;
  height: 66px;
  border-radius: 50%;
  border: 4px solid #cfcfcf;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-weight: 900;
  font-size: 21px;
  line-height: 19px;
  font-style: italic;
  text-shadow: 2px 2px #000;
  background: radial-gradient(circle, #ffed00 0 20%, #d00000 45%, #101060 75%);
}

.tile {
  display: grid;
  grid-template-columns: 1fr 86px;
  margin: 4px;
  min-height: 47px;
  background: #aaa;
  color: #333;
  border: 1px solid #111;
}

.tile .text {
  padding: 7px;
  font-size: 14px;
  font-weight: bold;
}

.tile .text small {
  color: white;
  font-size: 11px;
}

.tile .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  text-align: center;
  color: white;
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(145deg, #07005b, #d00000);
}

.pagecontent {
  padding: 12px;
}

.pagecontent h1 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: -2px;
  border-bottom: 3px solid #d00000;
  text-shadow: 2px 2px #000;
}

.article {
  background: #eee;
  color: #111;
  border: 1px solid #aaa;
  margin-bottom: 10px;
  padding: 10px;
}

.article h2 {
  margin: 0 0 5px;
  font-size: 23px;
  letter-spacing: -1px;
}

.meta {
  color: #b00000;
  font-weight: bold;
  margin-bottom: 7px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #eee;
  color: #111;
}

th {
  background: linear-gradient(#333, #111);
  color: white;
  text-align: left;
}

th, td {
  border: 1px solid #999;
  padding: 6px;
}

tr:nth-child(even) { background: #d8d8d8; }

.footer {
  text-align: center;
  color: #777;
  background: #050505;
  border-top: 1px solid #333;
  padding: 10px;
  font-size: 11px;
}

@media (max-width: 1000px) {
  #page { width: 100%; }
  #grid { grid-template-columns: 1fr; }
  .left, .right { display: none; }
  #tinybar { padding-left: 8px; height: auto; }
  .mainnav a { padding: 0 5px; }
  .search { display: none; }
  .mainstory { grid-template-columns: 1fr; }
}


/* Weekly update additions */
.logo {
  background-image: url("../images/nscrs-logo.png");
  background-repeat: no-repeat;
  background-position: 6px center;
  background-size: 145px auto;
  text-indent: -9999px;
  overflow: hidden;
}

.logo .slash,
.logo span {
  display: none;
}

.hero.daytona {
  background:
    radial-gradient(circle at 45% 14%, rgba(255,255,255,.32), transparent 21%),
    radial-gradient(circle at 72% 24%, rgba(255,255,255,.20), transparent 19%),
    linear-gradient(145deg, #d00000 0 13%, #06065a 13% 28%, #1c1c1c 28% 58%, #050505);
}

.hero.daytona:before {
  background:
    linear-gradient(#ffffff 0 22%, #0058b8 22% 35%, #ff0000 35% 48%, #111 48% 70%, #1b1b1b 70%);
}

.hero.daytona:after {
  content: "400";
  left: 175px;
  top: 86px;
  font-size: 62px;
  text-shadow: 4px 4px #002d8f, 7px 7px #000;
}

.series {
  background-image: url("../images/valvoline-cup-series.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 0;
  border-radius: 0;
  width: 430px;
  height: 76px;
  text-indent: -9999px;
  background-color: transparent;
}

.serieslogos {
  height: 95px;
}


/* Official info vs flavor/roleplay separation */
.official-strip {
  background: #fff200;
  color: #111;
  border-top: 2px solid #d00000;
  border-bottom: 2px solid #d00000;
  padding: 6px 8px;
  font-weight: 900;
  font-size: 12px;
}

.official-strip a {
  color: #001b7a;
  text-decoration: underline;
}

.official-hub {
  margin: 8px;
  background: #ededed;
  color: #111;
  border: 2px solid #d00000;
}

.official-hub .hub-title {
  background: linear-gradient(#303030, #060606);
  color: white;
  padding: 6px 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid #111;
}

.official-hub .hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.official-hub .hub-item {
  padding: 7px 8px;
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  min-height: 42px;
}

.official-hub .hub-item:nth-child(even) {
  border-right: 0;
}

.official-hub b {
  display: block;
  color: #b00000;
  font-size: 12px;
  text-transform: uppercase;
}

.official-hub span {
  font-size: 14px;
  font-weight: bold;
}

.flavor-label {
  margin: 4px;
  color: #888;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
}

.right .flavor-label,
.left .flavor-label {
  border-top: 1px solid #222;
  padding-top: 4px;
}

.box.official-links {
  border: 2px solid #d00000;
}

.box.official-links .boxhead {
  background: linear-gradient(#d00000, #310000);
  color: white;
}

.tile.flavor {
  opacity: .92;
}

.tile.flavor .text:after {
  content: "FLAVOR";
  display: block;
  color: #666;
  font-size: 9px;
  margin-top: 2px;
}


/* Layout cleanup pass */
#page {
  width: 1020px;
}

#grid {
  grid-template-columns: 195px 535px 290px;
}

.logo {
  width: 190px;
  min-width: 190px;
  background-image: none !important;
  text-indent: 0 !important;
  overflow: visible !important;
  padding-left: 8px;
  font-size: 20px;
  letter-spacing: -1px;
}

.logo .slash {
  display: inline-block !important;
  width: 38px;
  height: 17px;
}

.logo span {
  display: inline !important;
}

.mainnav a {
  padding: 0 8px;
}

.search {
  width: 205px;
}

.search input {
  width: 120px;
}

#tinybar {
  padding-left: 200px;
}

.official-strip {
  font-size: 11px;
  line-height: 13px;
  padding: 4px 8px;
  white-space: normal;
}

.hero-title p {
  max-width: 505px;
  line-height: 13px;
}

.official-hub .hub-grid {
  grid-template-columns: 1fr 1fr;
}

.official-hub .hub-item {
  min-height: 46px;
}

.official-hub span {
  font-size: 12px;
  line-height: 14px;
}

.middle-ads {
  grid-template-columns: 1fr 165px;
}

.weekend {
  overflow: hidden;
}

.weekend .launch {
  right: 8px;
  bottom: 8px;
  font-size: 18px;
}

/* Functional right rail replacing the tall fake sponsor stack */
.cup-rail {
  margin: 4px;
}

.cup-rail .rail-title {
  background: linear-gradient(#b40000, #260000);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  padding: 6px 8px;
  border: 1px solid #111;
  letter-spacing: .4px;
}

.cup-card {
  display: block;
  background: #d8d8d8;
  color: #111;
  border: 1px solid #222;
  border-top: 0;
  min-height: 56px;
  padding: 7px 8px;
}

.cup-card:hover {
  background: #fff;
  color: #111;
  text-decoration: none;
}

.cup-card b {
  display: block;
  color: #b00000;
  font-size: 15px;
  line-height: 16px;
}

.cup-card span {
  display: block;
  color: #333;
  font-size: 11px;
  line-height: 13px;
}

.cup-card.blue {
  background: linear-gradient(90deg, #d8d8d8 0 62%, #003890 62%);
}

.cup-card.blue b,
.cup-card.blue span {
  max-width: 165px;
}

.cup-card.dark {
  background: linear-gradient(135deg, #111, #333);
  color: white;
}

.cup-card.dark b,
.cup-card.dark span {
  color: white;
}

.cup-mini {
  background: #050505;
  border: 1px solid #333;
  border-top: 0;
  padding: 7px;
  color: white;
}

.cup-mini table {
  font-size: 11px;
  margin: 0;
}

.cup-mini th,
.cup-mini td {
  padding: 4px;
}

@media (max-width: 1020px) {
  #page { width: 100%; }
}


/* Firecracker 400 finale update */
.logo { width: 190px; min-width: 190px; padding-left: 8px; font-size: 21px; letter-spacing: -1px; display:flex; align-items:center; gap:3px; background-image:none!important; text-indent:0!important; overflow:visible!important; color:white; font-weight:900; font-style:italic; text-shadow:2px 2px #000; }
.logo .slash { display:inline-block!important; width:38px; height:17px; }
.logo span { display:inline!important; color:#ff1a1a; }
.logo img, .logo .dotcom { display:none!important; }
.ticker { height:19px; background:#fff200; color:#111; border-top:1px solid #8b0000; border-bottom:2px solid #8b0000; overflow:hidden; white-space:nowrap; font-size:12px; font-weight:900; line-height:17px; }
.ticker span { display:inline-block; padding-left:100%; animation:ticker-scroll 25s linear infinite; }
@keyframes ticker-scroll { from { transform:translateX(0); } to { transform:translateX(-100%); } }
.hero.finale { background: radial-gradient(circle at 45% 14%, rgba(255,255,255,.32), transparent 21%), radial-gradient(circle at 72% 24%, rgba(255,255,255,.20), transparent 19%), linear-gradient(145deg,#0050a8 0 14%,#d00000 14% 29%,#1c1c1c 29% 58%,#050505); }
.hero.finale:before { background: linear-gradient(#ffffff 0 21%,#0058b8 21% 34%,#ff0000 34% 47%,#111 47% 70%,#1b1b1b 70%); }
.hero.finale:after { content:"NEXT"; left:175px; top:88px; font-size:56px; text-shadow:4px 4px #a00000, 7px 7px #000; }
.hero-link { display:block; color:inherit; text-decoration:none; }
.hero-link:hover { text-decoration:none; }
.article p { font-size:13px; line-height:18px; }
.article .dateline { font-weight:900; color:#111; }
.track-panel { border:1px solid #222; border-top:0; background:#101010; color:white; }
.track-panel .track-head { background:linear-gradient(#555,#111); padding:5px 7px; font-size:11px; font-weight:900; text-transform:uppercase; }
.track-panel img { display:block; width:100%; height:auto; border-top:1px solid #333; border-bottom:1px solid #333; }
.track-panel .track-copy { padding:7px; font-size:11px; line-height:14px; }
.track-panel .track-copy b { color:#fff200; }
.extra-rail-title { background:linear-gradient(#555,#111); color:#ddd; padding:5px 7px; font-size:11px; font-weight:900; text-transform:uppercase; border:1px solid #222; border-top:0; }
.extra-card { display:block; background:#111; color:white; border:1px solid #222; border-top:0; padding:7px 8px; min-height:43px; }
.extra-card:hover { background:#1b1b1b; color:white; text-decoration:none; }
.extra-card b { display:block; color:#fff200; font-size:13px; }
.extra-card span { display:block; color:#bcbcbc; font-size:11px; line-height:13px; }
@media (max-width:1020px){ .ticker span{animation-duration:18s;} }
