html {
  background:
    radial-gradient(circle at top left, rgba(200, 16, 46, 0.18), transparent 34%),
    linear-gradient(180deg, #f5f7fa 0%, #e9edf2 100%);
}

body {
  margin: 0;
  color: #1f2937;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background: transparent;
}

a {
  color: #a61f24;
  text-decoration: none;
}

a:hover {
  color: #7f171b;
  text-decoration: underline;
}

.tabsmenu,
.tabsmenu.standard {
  display: block;
  max-width: 1280px;
  margin: 20px auto 14px;
  padding: 0 18px;
}

.tabmenu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}

.tabmenu-links li {
  float: none;
  margin: 0;
}

.tabmenu-links a,
table.MenuSTHS a,
.MenuSTHSSpan {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d6dde6;
  border-radius: 999px;
  background: #ffffff;
  color: #253142;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tabmenu-links a:hover,
table.MenuSTHS a:hover {
  transform: translateY(-1px);
  border-color: #c8102e;
  background: #fff7f7;
  text-decoration: none;
}

li.activemenu a,
li.activemenu a:hover,
li.activemain a,
li.activemain a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #c8102e 0%, #7f1725 100%);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(127, 23, 37, 0.28);
}

.tab-contentmenu,
.tabmenu-content,
.tabmain-content {
  padding: 14px 16px;
  border: 1px solid #d8e0e8;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

table.MenuSTHS {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px;
}

table.MenuSTHS td {
  white-space: nowrap;
}

.STHSTableFullW,
.STHSIndex_Main,
.STHSMainTable,
.STHSTodayGame_MainDiv,
.STHSPHPStanding_Table {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.STHSTableFullW {
  width: calc(100% - 36px);
  margin-top: 14px;
}

.STHSHeaderTitle,
.STHSIndex_LastestResult,
.STHSIndex_TheNews,
.STHSTop5 {
  color: #122033 !important;
}

.STHSTableFullW td,
.STHSIndex_Main > tbody > tr > td,
.STHSTodayGame_MainDiv,
.STHSOutputSetting,
.STHSOutputOption,
.STHSTeamStat_Table,
.STHSProTeamStat_Table,
.STHSFarmTeamStat_Table {
  border-radius: 20px;
}

.STHSIndex_Main {
  width: calc(100% - 36px);
  margin-top: 12px;
  border-collapse: separate;
  border-spacing: 16px;
}

.STHSIndex_Main > tbody > tr > td,
.STHSTodayGame_MainDiv,
.STHSOutputSetting,
.STHSOutputOption {
  border: 1px solid #d8e0e8;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.tablesorter,
table.basictablesorter {
  overflow: hidden;
  border: 1px solid #d8e0e8;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.tablesorter th,
.tablesorter td,
table.basictablesorter th,
table.basictablesorter td {
  border-color: #dce3ea;
}

.tablesorter th,
.tablesorter thead td,
table.basictablesorter thead tr th,
table.basictablesorter thead tr td {
  color: #243041;
  background: linear-gradient(180deg, #f7f9fb 0%, #e9edf2 100%);
  text-shadow: none;
}

.tablesorter tbody tr:nth-child(odd),
table.basictablesorter tbody tr:nth-child(odd) {
  background: #ffffff;
}

.tablesorter tbody tr:nth-child(even),
table.basictablesorter tbody tr:nth-child(even) {
  background: #f7f9fb;
}

.tablesorter tbody > tr:hover > td,
table.basictablesorter tbody > tr:hover > td {
  background: #fff2f3;
}

.footer {
  width: calc(100% - 36px);
  max-width: 1280px;
  margin: 22px auto 36px;
  padding: 18px 22px;
  border: 1px solid #d8e0e8;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #344255 !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.archive-index-page {
  min-height: 100vh;
}

.archive-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 54px;
}

.archive-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 34px 30px;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #101828 0%, #1c2534 46%, #8f1227 100%);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.2);
}

.archive-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.archive-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.6;
}

.archive-backlink {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-backlink:hover {
  color: #ffffff;
  text-decoration: none;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.archive-section {
  padding: 22px;
  border: 1px solid #d8e0e8;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.archive-section h2 {
  margin: 0 0 6px;
  color: #122033;
  font-size: 18px;
  line-height: 1.2;
}

.archive-section p {
  margin: 0 0 16px;
  color: #637184;
  font-size: 13px;
  line-height: 1.5;
}

.archive-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.archive-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e1e7ee;
  border-radius: 16px;
  background: #fbfcfd;
  color: #223043;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.archive-link:hover {
  transform: translateY(-1px);
  border-color: #c8102e;
  background: #fff7f7;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  text-decoration: none;
}

.archive-link span:last-child {
  color: #c8102e;
  font-size: 16px;
}

@media (max-width: 900px) {
  .tabsmenu,
  .tabsmenu.standard,
  .STHSTableFullW,
  .STHSIndex_Main,
  .footer {
    width: calc(100% - 20px);
    padding-left: 0;
    padding-right: 0;
  }

  .archive-shell {
    padding: 22px 14px 38px;
  }

  .archive-hero {
    padding: 24px 22px;
    border-radius: 22px;
  }

  .archive-section {
    padding: 18px;
    border-radius: 20px;
  }
}
