/* Grace Kelly — batch 09 theme */
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700');

:root {
  --accent: #86aabe;
  --text: #f1e7d4;
  --bg: #101a22;
  --hover: #e4bb7a;
  --panel: rgba(3, 12, 17, .76);
  --line: color-mix(in srgb, var(--accent) 72%, transparent);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 42rem),
    linear-gradient(145deg, var(--bg) 0%, #041016 58%, #02090d 100%);
  color: var(--text);
  font: 16px/1.75 'Lato', Georgia, serif;
  letter-spacing: .25px;
}

body > table {
  width: min(94%, 1080px) !important;
  max-width: 1080px;
  margin: 0 auto;
}

body > table tr:first-child img[src*="header"] {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto;
  border: 3px double var(--accent) !important;
  border-radius: 2px;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 30%, transparent);
}

body > table tr:nth-child(2) > td {
  padding: 12px 18px 28px;
  background: rgba(2, 9, 13, .34);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

a:link,
a:visited {
  color: var(--text);
}

a:hover,
a:active {
  color: var(--hover);
}

b,
strong {
  color: var(--text);
}

em {
  color: var(--hover);
}

body > table tr:nth-child(2) > td > center:first-of-type {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 18px;
}

body > table tr:nth-child(2) > td > center:first-of-type a {
  display: inline-block;
  min-width: 84px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
  border-radius: 999px;
  background: rgba(10, 16, 20, .84);
  color: var(--text);
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 4px rgba(0, 0, 0, .22);
}

body > table tr:nth-child(2) > td > center:first-of-type a:hover {
  border-color: var(--text);
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: #fff;
}

.content {
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
}

.fanlisting-stats-wrap,
.compact-stats {
  box-sizing: border-box;
  width: min(94%, 1080px);
  margin: 20px auto 26px;
  padding: 24px 34px;
  border: 3px double var(--accent);
  border-radius: 2px;
  color: var(--text);
  background:
    linear-gradient(rgba(3, 13, 18, .87), rgba(3, 19, 25, .83)),
    linear-gradient(145deg, var(--bg), #06151c);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
  text-align: center;
}

.fanlisting-stats-text {
  color: var(--text);
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
}

.fanlisting-stats,
.fanlisting-stats-wrap p {
  font-size: 18px;
  line-height: 1.8;
}

.fanlisting-stats-wrap a,
.compact-stats a,
.fanlisting-stats strong,
.fanlisting-stats em,
.fanlisting-stats-wrap strong,
.fanlisting-stats-wrap em {
  color: var(--text);
}

.fanlisting-stats-wrap .fanlisting-fff {
  margin-top: 18px !important;
}

.fan-form,
.fan-member-list-wrap,
.fan-codes-page {
  max-width: 900px;
  margin: 24px auto;
  font-size: 18px;
  line-height: 1.7;
}

.fan-codes-page h3,
.fan-codes-size-label {
  color: var(--text);
  font-size: 24px;
  line-height: 1.3;
}

.fan-code-donor,
.fan-code-donor a {
  color: var(--text);
  font-size: 14px !important;
}

.fan-form input,
.fan-form select,
.fan-form textarea {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}

.fan-form button,
.fan-donate-toggle,
input[type="submit"],
button {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.fan-member-list {
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  background: rgba(3, 12, 17, .52);
}

.fan-member-list th,
.fan-member-list td {
  padding: 11px 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

body > center:last-of-type {
  max-width: 1020px;
  margin: 0 auto;
  padding: 10px 16px 28px;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  font-size: 20px;
  line-height: 1.8;
}

body > center:last-of-type a,
body > center:last-of-type strong {
  color: var(--text);
  font-size: 20px;
}

.powered-by {
  display: inline-block;
}

img {
  max-width: 100%;
}

@media (max-width: 700px) {
  body {
    padding: 8px 6px 14px;
    font-size: 16px;
  }

  body > table {
    width: 100% !important;
  }

  body > table tr:nth-child(2) > td {
    padding: 16px 10px 26px;
  }

  body > table tr:nth-child(2) > td > center:first-of-type a {
    min-width: 0;
    padding: 8px 10px;
    font-size: 13px;
  }

  .content,
  .fanlisting-stats-text,
  .fanlisting-stats,
  .fan-codes-page {
    font-size: 16px;
  }

  body > center:last-of-type,
  body > center:last-of-type a,
  body > center:last-of-type strong {
    font-size: 16px;
  }
}
/* SNL Tribute template compatibility */
#container {
  width: min(94%, 1080px);
  margin: 0 auto;
  color: var(--text);
  text-align: left;
}

#header {
  min-height: 200px;
  height: 200px;
  margin: 0 auto 12px;
  border: 3px double var(--accent);
  background-color: var(--bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 30%, transparent);
}

#icons {
  margin: 0 auto 12px;
  text-align: center;
}

#icons img.icon,
#icons img.icon2,
#icons img.icon:hover,
#icons img.icon2:hover {
  margin: 8px;
  border: 3px solid var(--accent);
  border-radius: 2px;
}

#navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: auto;
  margin: 0 auto 18px;
  padding: 0;
  background: transparent;
  text-align: center;
}

#navigation ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

#navigation li {
  display: inline;
  list-style: none;
}

#navigation a:link,
#navigation a:visited {
  display: inline-block;
  float: none;
  min-width: 84px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, transparent);
  border-radius: 999px;
  background: rgba(10, 16, 20, .84);
  color: var(--text);
  font: 700 16px/22px 'Lato', Georgia, serif;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 4px rgba(0, 0, 0, .22);
}

#navigation a:hover,
#navigation a:focus-visible {
  border-color: var(--text);
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: #fff;
  text-decoration: none;
}

#content {
  width: auto;
  margin: 0 auto;
  padding: 18px 24px 30px;
  color: var(--text);
  background: rgba(2, 9, 13, .34);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font-size: 18px;
  line-height: 1.75;
}

#footer {
  clear: both;
  margin: 20px auto 0;
  padding: 10px 16px 28px;
  height: auto;
  border-top: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  color: color-mix(in srgb, var(--text) 78%, transparent);
  text-align: center;
  font-size: 20px;
  line-height: 1.8;
}

#footer a,
#footer strong {
  color: var(--text);
  font-size: 20px;
}

@media (max-width: 700px) {
  #container {
    width: 100%;
  }

  #content {
    padding: 16px 10px 26px;
    font-size: 16px;
  }

  #navigation a:link,
  #navigation a:visited {
    min-width: 0;
    padding: 8px 10px;
    font-size: 13px;
  }

  #footer,
  #footer a,
  #footer strong {
    font-size: 16px;
  }
}


/* Shared compact stats layout */
.compact-stats {
  box-sizing: border-box;
  width: min(94%, 1080px);
  margin: 18px auto 22px;
  padding: 24px 34px;
  color: var(--text, #e6e0d6);
  text-align: initial;
}
.stats-title {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 18px;
  color: var(--text, #e6e0d6);
  font: 400 22px/1.3 Georgia, serif;
  letter-spacing: 4px;
  text-align: center;
}
.stats-title::before, .stats-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--accent, #c54545);
}
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px;
  width: 100%;
}
.stat-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 102px;
  padding: 12px 9px;
  border: 1px solid color-mix(in srgb, var(--text, #e6e0d6) 58%, transparent);
  background: transparent;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.stats-details {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px;
  margin-top: 12px;
}
.detail-card {
  min-width: 0;
  padding: 13px 18px;
  border: 1px solid color-mix(in srgb, var(--text, #e6e0d6) 45%, transparent);
  border-left: 5px solid var(--accent, #c54545);
  background: transparent;
  text-align: left;
}
.stat-label {
  color: var(--text, #e6e0d6);
  font: 700 15px/1.4 Georgia, serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.stat-value {
  margin-top: 7px;
  color: var(--text, #e6e0d6);
  font: 700 21px/1.25 Georgia, serif;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .compact-stats { width: 100%; padding: 20px 12px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stats-details { grid-template-columns: 1fr !important; }
  .stats-title { font-size: 18px; letter-spacing: 2px; }
}
.compact-stats {
  background-image: linear-gradient(rgba(3, 13, 18, .68), rgba(3, 19, 25, .64)), url("./header.jpg");
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* MOVIELOVER HEADER BORDER FIX BEGIN */
/* Keep the header border consistent and connected to the layout color picker. */
/* Extra attribute specificity overrides the later peach rule in index.php. */
body > table tr:first-child img[src*="header"][src],
body > table tr:first-child img,
body img[src*="header"] {
  display: block;
  box-sizing: border-box;
  border: 3px double var(--pink, var(--main-border, #85516a)) !important;
  border-radius: 8px !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35) !important;
}
/* MOVIELOVER HEADER BORDER FIX END */
