/* FutbolPeek Phase 42 — shared player/public shell */
:root {
  --fp-night: #020914;
  --fp-navy: #061524;
  --fp-panel: #0a1d2d;
  --fp-panel-soft: #10283a;
  --fp-line: rgba(148, 177, 197, .24);
  --fp-text: #f4f7f8;
  --fp-muted: #a9b7c2;
  --fp-lime: #c8f000;
  --fp-cyan: #5de6ee;
  --fp-gold: #ffb20b;
  --fp-danger: #ff5d55;
  --fp-shell-width: 1600px;
  --fp-footer-height: 60px;
}

html {
  min-height: 100%;
  overflow-y: auto;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: var(--fp-night);
  background-image:
    radial-gradient(circle at 50% -15%, rgba(30,87,117,.28), transparent 42rem),
    linear-gradient(180deg, rgba(2,9,20,.80), rgba(2,9,20,.91)),
    url('../images/futbolpeek_stadium_night_v1.png');
  background-position: center, center, center bottom;
  background-size: auto, auto, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  background: transparent !important;
  color: var(--fp-text);
}

body::before {
  content: none !important;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 76px;
  border-bottom: 1px solid var(--fp-line);
  background: rgba(2, 9, 20, .94) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .26);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header .header_container {
  width: min(100%, var(--fp-shell-width));
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
}

.header .header_container .header_section_1 {
  display: flex !important;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.header .header_container .header_section_1 .logo {
  flex: 0 0 auto;
  padding: 0;
  line-height: normal;
}

.fp-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--fp-text) !important;
}

.fp-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(145deg, #10273b, #050d18);
  border: 2px solid var(--fp-lime);
  clip-path: polygon(50% 0, 94% 15%, 88% 75%, 50% 100%, 12% 75%, 6% 15%);
  filter: drop-shadow(0 0 12px rgba(200, 240, 0, .16));
}

.header .header_container .header_section_1 .logo .fp-brand-copy {
  display: grid;
  color: var(--fp-text);
  text-align: left;
  line-height: 1;
}
.header .header_container .header_section_1 .logo .fp-brand-copy span { color: inherit; }
.fp-brand-copy strong { font-size: 1.32rem; letter-spacing: -.04em; }
.fp-brand-copy small {
  margin-top: 5px;
  color: var(--fp-lime);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.header .header_container .header_section_1 .nav {
  display: flex !important;
  align-items: stretch;
  gap: 3px;
  height: 100%;
  margin-left: auto;
}

.header .header_container .header_section_1 .nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 12px !important;
  color: #dce4e9;
  font-size: .86rem !important;
  font-weight: 700;
  line-height: 76px;
  text-transform: none;
  white-space: nowrap;
}

.header .header_container .header_section_1 .nav a:hover,
.header .header_container .header_section_1 .nav a.is-active { color: var(--fp-lime); }

.header .header_container .header_section_1 .nav a.is-active::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 0;
  left: 11px;
  height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--fp-lime);
  box-shadow: 0 0 12px rgba(200, 240, 0, .55);
}

.fp-account-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 16px;
  border-left: 1px solid var(--fp-line);
}

.fp-user-link,
.fp-logout-link {
  display: inline-flex;
  align-items: center;
  color: var(--fp-text);
  font-size: .82rem;
  font-weight: 700;
}

.fp-user-link { gap: 8px; }
.fp-user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--fp-night);
  border: 1px solid rgba(200, 240, 0, .72);
  border-radius: 50%;
  background: var(--fp-lime);
}
.fp-logout-link { color: var(--fp-muted); }
.fp-logout-link:hover, .fp-user-link:hover { color: var(--fp-lime); }

.header .header_container .header_section_1 .menu_icon {
  display: none;
  position: relative;
  z-index: 1003;
  margin-left: auto;
  padding: 0;
}

.header .header_container .header_section_1 .menu_icon .menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--fp-lime);
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  outline: 0;
  background: rgba(4, 15, 27, .96);
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.header .header_container .header_section_1 .menu_icon .menu:focus-visible {
  border-color: var(--fp-lime);
  box-shadow: 0 0 0 3px rgba(200, 240, 0, .18);
}

.header .header_container .header_section_2 .dropdown {
  display: none;
  position: fixed;
  z-index: 1002;
  top: 76px;
  right: 12px;
  left: 12px;
  max-height: calc(100vh - 92px);
  max-height: calc(100dvh - 92px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--fp-line);
  border-radius: 14px;
  background: rgba(4, 15, 27, .98);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  overscroll-behavior: contain;
  isolation: isolate;
}

.header .header_container .header_section_2 .dropdown.is-open {
  display: grid;
  gap: 6px;
}

.header .header_container .header_section_2 .dropdown a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  color: #e4ebef;
  border-radius: 9px;
  font-weight: 700;
  text-align: left;
  text-transform: none;
}

body.fp-mobile-menu-open { overflow: hidden; }

.header .header_container .header_section_2 .dropdown a:hover,
.header .header_container .header_section_2 .dropdown a.is-active {
  color: var(--fp-night);
  background: var(--fp-lime);
}

.content {
  background: transparent !important;
}

.content .content_container_1 .play_or_view { padding-top: 96px; }

.footer {
  color: var(--fp-muted) !important;
  border-top: 1px solid var(--fp-line);
  background: #04101d !important;
}

@media (max-width: 1180px) {
  .header .header_container .header_section_1 .nav a { padding: 0 8px !important; font-size: .76rem !important; }
  .fp-account-nav { padding-left: 10px; }
  .fp-user-link span:last-child, .fp-logout-link { display: none; }
}

@media (max-width: 991px) {
  .header .header_container { padding: 0 15px; }
  .header .header_container .header_section_1 { position: relative; z-index: 1005; }
  .header .header_container .header_section_1 .nav,
  .fp-account-nav { display: none !important; }
  .header .header_container .header_section_1 .menu_icon {
    display: block;
    position: fixed;
    top: 16px;
    right: max(15px, env(safe-area-inset-right));
    z-index: 2147483647;
  }
  .header .header_container .header_section_1 .menu_icon .menu {
    width: 48px;
    height: 48px;
  }
  .header .header_container .header_section_2 { position: relative; z-index: 1004; }
  .fp-brand-copy strong { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .header, .header .header_container .header_section_1 { height: 68px; }
  .header .header_container .header_section_1 .menu_icon { top: 10px; }
  .header .header_container .header_section_2 .dropdown { top: 68px; max-height: calc(100dvh - 80px); }
  .fp-mark { width: 36px; height: 42px; }
  .fp-brand-copy small { display: none; }
  .content .content_container_1 .play_or_view { padding-top: 82px; }
}

/* Phase 71 — one footer layout for every public/player page */
body > .container {
  display:flex;
  flex-direction:column;
  min-height:100vh;
  min-height:100dvh;
}

body > .container > .content {
  flex:1 0 auto;
  min-height:0 !important;
}

.footer {
  box-sizing:border-box !important;
  position:static !important;
  left:auto !important;
  bottom:auto !important;
  display:flex !important;
  flex:0 0 var(--fp-footer-height) !important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:var(--fp-footer-height) !important;
  height:var(--fp-footer-height) !important;
  margin:0 !important;
  padding:0 16px !important;
  color:var(--fp-muted) !important;
  border-top:1px solid var(--fp-line);
  background:#04101d !important;
  line-height:normal !important;
  text-align:center;
}

.footer .footer_container,
.footer .footer_content_1_section_1 {
  box-sizing:border-box !important;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  margin:0 !important;
  padding:0 !important;
}

.footer .footer_content_1_section_1 {
  color:var(--fp-muted) !important;
  font-family:'Josefin Sans',sans-serif !important;
  font-size:12px !important;
  font-weight:400 !important;
  letter-spacing:0 !important;
  line-height:1 !important;
  text-align:center !important;
}

.footer p {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  margin:0 !important;
  padding:0 !important;
  color:inherit;
  font:inherit !important;
  line-height:1 !important;
  text-align:center !important;
}
