/* Wrestling Match Book homepage refresh | 2026-10-03
 * Scopes the redesign to online_match_book.php. Login, search and video logic remain unchanged.
 */
:root {
  color-scheme: dark;
  --bg: #061323;
  --bg-light: #0d2339;
  --panel: #0e2137;
  --panel-2: #142c46;
  --border: #2c435d;
  --text: #f5f9fe;
  --muted: #a6bdd3;
  --subtle: #7f9ab3;
  --blue: #3984ed;
  --green: #8de7c8;
  --shadow: 0 22px 56px rgba(0, 5, 16, .29);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 0%, rgba(38, 101, 174, .20), transparent 33rem),
    radial-gradient(circle at 100% 27%, rgba(10, 121, 122, .115), transparent 34rem),
    linear-gradient(180deg, #091a2d, #061323 68%);
  -webkit-font-smoothing: antialiased;
}
a { color: #a6cdff; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #ffce62; outline-offset: 4px; }
[hidden] { display: none !important; }

/* Masthead */
.site-header, main, .site-footer { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 22px;
  border-bottom: 1px solid rgba(172, 201, 230, .11);
}
.brand { display: flex; align-items: center; gap: 13px; color: white; text-decoration: none; min-width: 0; }
.brand-mark {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 49px; height: 49px;
  border-radius: 12px;
  background: #2475db;
  border: 1px solid rgba(194, 221, 255, .40);
  font-size: 1rem; font-weight: 950; letter-spacing: -.065em;
  box-shadow: 0 12px 30px rgba(4, 86, 197, .27);
}
.brand > span:last-child { min-width: 0; }
.brand strong { display: block; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.02em; }
.brand span span { display: block; font-size: .77rem; color: #abc0d4; margin-top: 2px; }
.header-links { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.header-links a { color: #cad8e9; font-size: .9rem; font-weight: 650; text-decoration: none; }
.header-links a:hover { color: white; }
.header-links a:last-child {
  padding: 11px 15px; border: 1px solid #426180; border-radius: 9px;
  color: white; background: rgba(255, 255, 255, .055);
}
.header-links a:last-child:hover { background: rgba(255, 255, 255, .12); }

/* Hero: clear typographic priority */
main { padding: 0 0 58px; }
.hero { padding: 50px 0 33px; max-width: 980px; }
.hero-kicker, .section-kicker, .panel-eyebrow, .promo-kicker {
  margin: 0; font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase;
}
.hero-kicker { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; color: #9dc4f8; }
.kicker-line { display: inline-block; width: 25px; height: 3px; border-radius: 2px; background: #6cb1ff; }
h1 { margin: 0; font-size: clamp(2.55rem, 5.5vw, 4.65rem); font-weight: 850; line-height: 1.08; letter-spacing: -.055em; }
h1 span { color: #8ebeff; }
.hero-copy { max-width: 745px; margin: 19px 0 0; color: #bbccde; line-height: 1.65; font-size: clamp(.99rem, 1.7vw, 1.18rem); }

/* Large unmistakable user paths */
.entry-section { margin-top: 7px; }
.entry-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.entry-heading .section-kicker { margin-bottom: 7px; color: #77d5b5; }
.entry-heading h2 { margin: 0; font-size: clamp(1.36rem, 2.5vw, 1.93rem); font-weight: 780; letter-spacing: -.035em; }
.entry-heading > p { color: var(--subtle); font-size: .91rem; margin: 0 0 5px; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.action-button {
  --tile-text: #ffffff; --tile-subtext: #e0edff;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: stretch;
  min-width: 0; min-height: 260px;
  padding: 24px 28px 23px; border-radius: 20px;
  border: 2px solid transparent;
  color: var(--tile-text);
  text-align: left;
  isolation: isolate;
  box-shadow: 0 17px 34px rgba(0, 5, 16, .20);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.action-button::before {
  content: ""; position: absolute; z-index: -1; inset: auto -28px -110px auto;
  width: 295px; height: 295px; border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%; box-shadow: 0 0 0 47px rgba(255,255,255,.042), 0 0 0 94px rgba(255,255,255,.03);
  pointer-events: none;
}
.action-manager { background: linear-gradient(118deg, #1a5dc4, #267ee5 73%, #368af0); }
.action-viewer {
  --tile-text: #082a27; --tile-subtext: #214943;
  background: linear-gradient(115deg, #91ebcc, #a4f1d8 55%, #c1f7de);
}
.action-viewer::before { border-color: rgba(4, 65, 51, .12); box-shadow: 0 0 0 47px rgba(2, 77, 54, .035), 0 0 0 94px rgba(2, 77, 54, .027); }
.action-button:hover, .action-button[aria-expanded="true"] { transform: translateY(-3px); box-shadow: 0 24px 48px rgba(0, 5, 16, .32); }
.action-manager:hover, .action-manager[aria-expanded="true"] { border-color: #aed0ff; }
.action-viewer:hover, .action-viewer[aria-expanded="true"] { border-color: #ffffff; }
.action-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.action-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 49px; height: 49px; border: 1px solid rgba(255,255,255,.33); border-radius: 12px;
  background: rgba(255,255,255,.14);
}
.action-viewer .action-icon { border-color: rgba(15,79,66,.2); background: rgba(9, 87, 66, .09); }
.action-icon svg { width: 28px; height: 28px; }
.action-badge { font-size: .68rem; line-height: 1.4; letter-spacing: .1em; font-weight: 850; text-align: right; opacity: .90; }
.action-text { display: block; margin: 22px 0 18px; }
.action-text strong { display: block; font-size: clamp(1.55rem, 2.9vw, 2.35rem); font-weight: 860; letter-spacing: -.045em; line-height: 1.13; }
.action-text > span { display: block; margin-top: 10px; color: var(--tile-subtext); font-size: 1rem; line-height: 1.55; max-width: 430px; }
.action-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; font-size: .77rem; letter-spacing: .095em; font-weight: 850; }
.action-arrow { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid currentColor; border-radius: 50%; font-size: 1.2rem; line-height: 1; }

/* Expanded login and results panels */
.access-panel { display: none; position: relative; margin-top: 15px; padding: 30px 32px 31px; background: #10263d; border: 1px solid #35516e; border-radius: 19px; box-shadow: var(--shadow); overflow: visible; }
.access-panel.active { display: block; animation: appear .16s ease-out both; }
@keyframes appear { from { opacity: .4; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.panel-accent { position: absolute; top: -1px; left: 30px; width: 92px; height: 4px; border-radius: 0 0 8px 8px; background: #5caaef; }
#viewerPanel .panel-accent { background: #91ebcc; }
.manager-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 5vw, 65px); align-items: center; }
.viewer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 45px; align-items: center; }
.panel-form-side, .viewer-layout > div { max-width: 560px; }
.panel-eyebrow { color: #7fbaf7; margin-bottom: 10px; }
#viewerPanel .panel-eyebrow { color: #8fe3c6; }
.panel-heading { margin: 0 0 8px; font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -.035em; }
.panel-copy { margin: 0 0 16px; max-width: 550px; color: #bbcbda; font-size: .96rem; line-height: 1.55; }
.field { position: relative; display: grid; gap: 7px; margin-top: 14px; }
.field label { color: #e3edf7; font-size: .89rem; font-weight: 700; }
input, select { width: 100%; min-width: 0; min-height: 49px; padding: 11px 14px; border: 1px solid #5a708a; border-radius: 11px; color: #fff; background: #071a2c; outline: none; }
input:focus, select:focus { border-color: #9dcaff; box-shadow: 0 0 0 3px rgba(110, 181, 255, .2); }
.primary, .secondary, .link-button, .create-account-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 11px;
  min-height: 47px; padding: 12px 19px; border: 1px solid transparent; border-radius: 10px;
  font-size: .93rem; font-weight: 790; text-decoration: none; text-align: center; cursor: pointer;
}
.primary { color: white; background: #2e80e4; box-shadow: 0 7px 19px rgba(10, 67, 159, .25); }
.primary:hover { background: #4896f5; }
.secondary { color: #ebf5ff; background: #172d45; border-color: #45607b; }
.secondary:hover { background: #213e5d; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.text-link { color: #a4c9f8; font-size: .9rem; }
.status { min-height: 18px; margin: 10px 0 0; color: #b0c5d8; font-size: .88rem; }
.status.error { color: #ffc4c4; }
.status.success { color: #91e8c2; }
.new-account { padding: 24px; border: 1px solid rgba(141,231,200,.3); border-radius: 15px; background: linear-gradient(150deg, #1c394d, #143243); }
.new-account-icon { display: grid; place-items: center; width: 41px; height: 41px; margin-bottom: 17px; border-radius: 10px; background: rgba(141,231,200,.13); color: #a3ffdb; font-size: 1.8rem; font-weight: 700; }
.new-account .panel-eyebrow { color: #8ee8c5; }
.new-account h4 { margin: 0 0 10px; font-size: 1.36rem; letter-spacing: -.03em; }
.new-account p:not(.panel-eyebrow) { margin: 0 0 20px; font-size: .94rem; line-height: 1.6; color: #c2d3dd; }
.create-account-button { width: 100%; color: #082a27; background: #99f0ce; }
.create-account-button:hover { background: #c2ffe4; }
.viewer-help { padding: 24px; border: 1px solid #406456; border-radius: 15px; background: rgba(75, 159, 119, .1); }
.viewer-help-icon { display: grid; place-items: center; margin-bottom: 15px; width: 39px; height: 39px; border: 1px solid #75d9b5; border-radius: 50%; color: #8ef3ce; }
.viewer-help strong { display: block; font-size: 1.16rem; }
.viewer-help p { margin: 9px 0 0; color: #b9d7cc; font-size: .92rem; line-height: 1.6; }
.suggestions { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; max-height: 236px; overflow: auto; list-style: none; margin: 5px 0 0; padding: 5px; border: 1px solid #56718b; border-radius: 10px; background: #0c2944; box-shadow: 0 12px 35px #030b19; }
.suggestions li { padding: 11px 12px; border-radius: 7px; cursor: pointer; }
.suggestions li:hover, .suggestions li.active { background: #284d77; }

/* Supporting features are secondary to the choice of entry path */
.lower-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: stretch; margin-top: 32px; }
.card { min-width: 0; border: 1px solid #30465e; background: var(--panel); border-radius: 19px; box-shadow: var(--shadow); }
.video-card { overflow: hidden; }
.video-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8.5; min-height: 205px; background: #030914; }
.video-stage video { display: block; height: 100%; width: 100%; object-fit: contain; }
.video-placeholder { position: absolute; color: #98aec3; padding: 24px; text-align: center; font-size: .93rem; }
.video-meta { padding: 24px; }
.video-meta .section-kicker { margin-bottom: 10px; color: #7cb7f3; }
.video-meta h2 { margin: 0 0 10px; font-size: 1.55rem; letter-spacing: -.035em; }
.video-meta p:not(.section-kicker) { margin: 0; color: #b9cada; line-height: 1.55; font-size: .94rem; }
.video-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.video-count { color: var(--subtle); font-size: .84rem; }
.promo { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 29px 24px; background: linear-gradient(155deg, #163746, #0e2b3c 48%, #11243b); border-color: #315862; }
.promo-icon { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 18px; border: 1px solid #447c80; border-radius: 12px; color: #b1ffe0; font-weight: 900; background: #1d4a52; letter-spacing: -.045em; }
.promo-kicker { color: #8ae5c6; margin-bottom: 12px; }
.promo h2 { margin: 0 0 13px; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -.04em; }
.promo h2 span { color: #93edcd; }
.promo > p:not(.promo-kicker) { margin: 0; color: #bed1dc; font-size: .96rem; line-height: 1.7; }
.promo-actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 23px; }
.support-row { display: flex; gap: 14px; flex-wrap: wrap; width: 100%; border-top: 1px solid rgba(184,225,214,.16); padding-top: 18px; margin-top: auto; font-size: .84rem; }
.support-row a { color: #9ebccd; }
.support-row a:hover { color: white; }

/* Footer and free sample dialog */
.site-footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0 34px; border-top: 1px solid rgba(165,199,226,.13); color: #829eb6; font-size: .85rem; }
.site-footer a { color: #aec7dd; }
/* Quiet homepage-only Ghost Creek Media credit, below the primary footer links. */
.ghost-creek-watermark {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  padding: 16px 10px 0;
  border-top: 1px solid rgba(165, 199, 226, .13);
  color: #9bb1c6;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .01em;
  text-align: center;
}
.ghost-creek-watermark a {
  display: inline-block;
  color: #a9d9da;
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
}
.ghost-creek-watermark a:hover,
.ghost-creek-watermark a:focus-visible { color: #d7ffff; text-decoration: underline; }

dialog { width: min(460px, calc(100% - 28px)); padding: 0; border: 1px solid #436380; border-radius: 18px; background: #122840; color: white; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,7,20,.76); backdrop-filter: blur(4px); }
.dialog-body { padding: 25px; }
.dialog-body h2 { margin: 0 0 10px; font-size: 1.52rem; }
.dialog-body p { margin: 0 0 16px; color: #bbcada; line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

@media (max-width: 900px) {
  .manager-layout, .viewer-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, .75fr); gap: 22px; }
  .action-button { padding: 22px; min-height: 265px; }
  .action-badge { max-width: 130px; }
  .lower-grid { grid-template-columns: 1fr 1fr; }
  .promo { padding: 24px; }
}
@media (max-width: 720px) {
  .site-header, main, .site-footer { width: calc(100% - 32px); }
  .site-header { min-height: 77px; gap: 14px; }
  .brand-mark { width: 43px; height: 43px; }
  .brand span span { display: none; }
  .header-links { gap: 12px; }
  .header-links a:not(:last-child) { display: none; }
  .header-links a:last-child { padding: 9px 11px; font-size: .83rem; }
  .hero { padding: 36px 0 32px; }
  .entry-heading > p { display: none; }
  .action-grid, .lower-grid, .manager-layout, .viewer-layout { grid-template-columns: 1fr; }
  .action-button { min-height: 224px; padding: 22px; }
  .action-text { margin-top: 17px; margin-bottom: 13px; }
  .action-text strong { font-size: clamp(1.75rem, 6vw, 2.2rem); }
  .access-panel { padding: 25px 21px; }
  .new-account, .viewer-help { padding: 20px; }
  .lower-grid { margin-top: 23px; }
}
@media (max-width: 400px) {
  .site-header, main, .site-footer { width: calc(100% - 24px); }
  .brand { gap: 8px; }
  .brand strong { font-size: .88rem; }
  .hero { padding-top: 30px; }
  h1 { font-size: 2.45rem; }
  .hero-copy { margin-top: 13px; font-size: .98rem; }
  .action-button { padding: 19px; min-height: 218px; }
  .action-badge { font-size: .61rem; max-width: 125px; }
  .form-actions .primary, .promo-actions > * { width: 100%; }
  .form-actions .text-link { display: inline-block; }
  .promo { padding: 21px; }
  .video-stage { min-height: 175px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .action-button:hover, .action-button[aria-expanded="true"] { transform: none; }
}
