/*
Theme Name: elitserien
Theme URI: https://elitserien.se
Description: Spola isen.
Version: 0.1.0
Author: Elitserien AB
Author URI: https://skeleton.se
Text Domain: elitserien
Requires at least: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
*/

/* ============================================================
   FONTS
   ============================================================ */

@import url("https://use.typekit.net/njd7rfb.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..700&family=Tourney:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
  font-family: 'Satisfied_Brush';
  font-family: 'Satisfied_Brush';
  src: url('fonts/Satisfied-Brush.eot'); /* IE9 Compat Modes */
  src: url('fonts/Satisfied-Brush.eot?#iefix') format('embedded-opentype'),
       url('fonts/Satisfied-Brush.woff2') format('woff2'),
       url('fonts/Satisfied-Brush.woff') format('woff'),
       url('fonts/Satisfied-Brush.ttf') format('truetype'),
       url('fonts/Satisfied-Brush.svg#Satisfied_Brush') format('svg');
  font-style: normal;
  font-weight: normal;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  --bg:            #002f3b;
  --surface:       #063f4d;
  --surface-2:     #0a5263;
  --surface-dark:  #00151a;
  --border:        rgba(255, 255, 255, .12);

  --text:          #ffffff;
  --text-muted:    #b8d3dc;
  --text-meta:     #9fecff;

  --accent:        #d21b69;
  --accent-hover:  #be175f;
  --accent-light:  #f7b6c9;

  --blue:          #00627d;
  --blue-mid:      #004b5d;
  --blue-dark:     #002a34;

  /* Bootstrap overrides */
  --bs-link-color:              #fff;
  --bs-link-color-rgb:          255, 255, 255;
  --bs-link-hover-color-rgb:    230, 230, 230;
  --bs-link-hover-color:        #fff;
  --bs-emphasis-color:          #fff;
  --bs-heading-color:           #fff;
  --bs-body-color:              #fff;
  --bs-body-bg:                 var(--bg);
  --bs-primary-color:           var(--blue-mid);
  --bs-secondary-color:         rgb(45 92 115);
  --bs-dark-rgb:                0, 21, 26;
  --bs-border-color:            var(--border);
  --bs-card-bg:                 var(--surface);
  --bs-table-bg:                transparent;
  --bs-table-border-color:      var(--border);
}

/* ============================================================
   BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
 
  background:radial-gradient(circle at top right,rgba(0,177,255,.13),transparent 38%),
radial-gradient(circle at bottom left,rgba(0,177,255,.08),transparent 36%),
linear-gradient(180deg,#00151A 0%,#00232B 45%,#00151A 100%);
font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: rgba(255, 255, 255, .8);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, .h1 {
  font-family: "trade-gothic-next-condensed", 'Tourney', sans-serif;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.1;
}

h2, .h2 {
  font-family: "trade-gothic-next-condensed", 'Tourney', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 2.25rem);
}

h3, .h3 {
  font-family: "trade-gothic-next-condensed", 'Tourney', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 3vw, 1.75rem);
}

h4, .h4,
h5, .h5,
h6, .h6 {
  font-family: "trade-gothic-next-condensed", 'Tourney', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.fs-10 { font-size: 10px; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }

.color-main    { color: var(--blue-mid) !important; }
.color-meta    { color: var(--text-meta); }
.color-muted   { color: var(--text-muted); }
.color-accent  { color: var(--accent) !important; }
.color-accent-complementary { color: var(--accent-light) !important; }

.bg-main    { background-color: var(--bg) !important; }
.bg-azure   { background: var(--blue-mid); }
.bg-dark    { background: var(--surface-dark); }
.bg-surface { background: var(--surface); }

.border-special {
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
}

.text-uppercase-sm {
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .05em;
}

/* ============================================================
   LAYOUT
   ============================================================ */

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1;
}

/* Prevent horizontal scroll on mobile */
.container,
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

#masthead {
  position: relative;
  z-index: 100;
}

#masthead a img {
  display: block;
}

/* Hamburger toggle */
.site-menu-toggle,
.navbar-toggler.site-menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  /*background: var(--accent);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);*/
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease;
}

.site-menu-toggle:hover,
.site-menu-toggle:focus {
   /*background: var(--accent-hover);*/
  outline: 2px solid rgba(255, 255, 255, .3);
  outline-offset: 2px;
   --bs-navbar-toggler-icon-bg: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAzMiAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8IS0tIMOWdmVyc3RhIGxpbmplbiAtLT4KICA8cmVjdCB4PSI0IiB5PSIyIiB3aWR0aD0iMjgiIGhlaWdodD0iMyIgcng9IjEuNSIgZmlsbD0id2hpdGUiLz4KCiAgPCEtLSBNaXR0ZW5saW5qZW4gLS0+CiAgPHJlY3QgeD0iNCIgeT0iMTAiIHdpZHRoPSIyOCIgaGVpZ2h0PSIzIiByeD0iMS41IiBmaWxsPSJ3aGl0ZSIvPgoKICA8IS0tIE5lZGVyc3RhIGxpbmplbiAoa29ydGFyZSBtZW4gaMO2Z2Vyc3TDpGxsZCkgLS0+CiAgPHJlY3QgeD0iMTIiIHk9IjE4IiB3aWR0aD0iMjAiIGhlaWdodD0iMyIgcng9IjEuNSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+');
}

.navbar-toggler {
  --bs-navbar-toggler-icon-bg:  url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAzMiAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8IS0tIMOWdmVyc3RhIGxpbmplbiAtLT4KICA8cmVjdCB4PSI0IiB5PSIyIiB3aWR0aD0iMjgiIGhlaWdodD0iMyIgcng9IjEuNSIgZmlsbD0iI2QyMWI2OSIvPgoKICA8IS0tIE1pdHRlbmxpbmplbiAtLT4KICA8cmVjdCB4PSI0IiB5PSIxMCIgd2lkdGg9IjI4IiBoZWlnaHQ9IjMiIHJ4PSIxLjUiIGZpbGw9IiNkMjFiNjkiLz4KCiAgPCEtLSBOZWRlcnN0YSBsaW5qZW4gKGtvcnRhcmUgbWVuIGjDtmdlcnN0w6RsbGQpIC0tPgogIDxyZWN0IHg9IjEyIiB5PSIxOCIgd2lkdGg9IjIwIiBoZWlnaHQ9IjMiIHJ4PSIxLjUiIGZpbGw9IiNkMjFiNjkiLz4KPC9zdmc+');
  border: none;
  border-radius: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============================================================
   OFFCANVAS MENU
   ============================================================ */

#primary-menu.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  min-width: 0;
  max-width: 100vw;
  width: min(92vw, 22rem);
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--bg) 0%, var(--blue-mid) 100%);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.dev/svgjs' width='800' height='1300' preserveAspectRatio='none' viewBox='0 0 800 1300'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1060%26quot%3b)' fill='none'%3e%3crect width='800' height='1300' x='0' y='0' fill='rgba(0%2c 47%2c 59%2c 1)'%3e%3c/rect%3e%3cpath d='M0%2c470.943C107.408%2c475.514%2c218.191%2c536.701%2c315.365%2c490.717C414.452%2c443.827%2c476.416%2c336.714%2c506.443%2c231.285C534.513%2c132.726%2c501.937%2c30.521%2c474.556%2c-68.231C450.183%2c-156.135%2c403.809%2c-230.951%2c356.631%2c-309.023C299.404%2c-403.724%2c269.805%2c-529.546%2c168.667%2c-574.427C66.5%2c-619.764%2c-50.554%2c-568.912%2c-157.762%2c-537.287C-264.849%2c-505.698%2c-392.135%2c-485.838%2c-451.724%2c-391.421C-510.911%2c-297.641%2c-436.289%2c-174.709%2c-455.523%2c-65.494C-475.73%2c49.248%2c-599.271%2c146.858%2c-566.195%2c258.572C-533.574%2c368.749%2c-406.161%2c424.237%2c-298.575%2c464.591C-203.442%2c500.274%2c-101.513%2c466.623%2c0%2c470.943' fill='%23002833'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1060'%3e%3crect width='800' height='1300' fill='white'%3e%3c/rect%3e%3c/mask%3e%3c/defs%3e%3c/svg%3e");
  color: var(--text);
  box-shadow: -24px 0 48px rgba(3, 27, 43, .35);
  z-index: 1055;
}

#primary-menu .offcanvas-header {
  padding: 1.25rem 1.5rem 1rem;
}

.site-menu-close {
  color: var(--text);
  font-size: 2.5rem;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .25rem .5rem;
  opacity: .8;
  transition: opacity .15s;
}

.site-menu-close:hover {
  opacity: 1;
}

#primary-menu .site-offcanvas-nav,
#primary-menu .site-offcanvas-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#primary-menu .site-offcanvas-nav {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#primary-menu .site-offcanvas-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .03em;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

#primary-menu .site-offcanvas-nav a:last-child {
  border-bottom: 0;
}

#primary-menu .site-offcanvas-nav a:hover,
#primary-menu .site-offcanvas-nav a:focus {
  background: rgba(255, 255, 255, .08);
}

#primary-menu .site-offcanvas-nav .sub-menu {
  margin-top: .5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

#primary-menu .site-offcanvas-nav .sub-menu li + li {
  margin-top: .4rem;
}

#primary-menu .site-offcanvas-nav .sub-menu a {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .5rem 1rem;
}

.offcanvas-backdrop.show {
  opacity: .6;
  background: rgba(10, 10, 10, .8);
}

/* ============================================================
   SERIES SWITCH (Herr / Dam)
   ============================================================ */

.series-switch {
  display: inline-flex;
  background: var(--blue-dark);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  gap: 2px;
}

.series-switch a {
  padding: .35rem .85rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .15s, color .15s;
}

.series-switch a.active {
  background: var(--accent);
  color: #fff;
}

.series-switch a:hover:not(.active) {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: .5rem;
  --bs-btn-font-size: .875rem;
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1.5;
  --bs-btn-color: var(--text);
  --bs-btn-bg: transparent;
  --bs-btn-border-width: 1px;
  --bs-btn-border-color: transparent;
  --bs-btn-border-radius: .375rem;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-disabled-opacity: .55;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--blue-mid);
  --bs-btn-border-color: var(--blue-mid);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--blue);
  --bs-btn-hover-border-color: var(--blue);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--blue-mid);
  --bs-btn-active-border-color: var(--blue-mid);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bg);
  --bs-btn-disabled-border-color: var(--bg);
}

.btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--blue-dark);
  --bs-btn-border-color: var(--blue-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--blue);
  --bs-btn-hover-border-color: var(--blue);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--blue-mid);
  --bs-btn-active-border-color: var(--blue-mid);
}

.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent-hover);
  --bs-btn-hover-border-color: var(--accent-hover);
}

.btn-group:not(.btn-group-sm) {
  background: var(--blue-dark);
  padding: .35rem;
  border-radius: .5rem;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  --bs-card-bg: var(--blue-mid);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  color: var(--text);
}

.card-body {
  padding: 1rem;
}

.card-img-top {
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   TABLES
   ============================================================ */

.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--border);
  color: var(--text);
  font-size: .875rem;
}

.table:not(.table-striped) {
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.table-striped > :not(caption) > * > * {
  border-bottom-width: 0 !important;
}

.table-striped td {
  border-bottom-width: 0;
  padding: .6rem .75rem;
}

.table-striped tr:nth-child(odd) {
  background: linear-gradient(90deg, rgba(52, 97, 120, .45), rgba(0, 0, 0, 0)) !important;
}

.table-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .2));
}

td.num, th.num {
  text-align: center;
}

/* Playoff separation lines */
.table-striped tr:nth-child(6) td,
.table-striped tr:nth-child(10) td,
.table-striped tr:nth-child(11) td,
.table-striped tr:nth-child(13) td {
  border-bottom-width: 2px !important;
  border-color: var(--blue);
}

table tr {
  background: linear-gradient(90deg, rgba(52, 97, 120, .4), rgba(0, 0, 0, 0));
}

/* Stats table */
#statsTabContent table thead tr {
  background: #0a1a20 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
}

#statsTabContent table tr:nth-child(even) {
  background: linear-gradient(90deg, rgba(19, 37, 45, .5), rgba(0, 0, 0, 0)) !important;
}

#statsTabContent table tr {
  background: linear-gradient(90deg, rgba(52, 97, 120, .5), rgba(0, 0, 0, 0)) !important;
  border-bottom: 1px solid var(--border);
}

/* Mini table rows */
.table_sm-row {
  border-top: 1px solid var(--bg);
  color: var(--text);
  background: linear-gradient(90deg, rgba(52, 97, 120, .4), rgba(0, 0, 0, 0));
}

.table_sm-row:nth-child(8),
.table_sm-row:nth-child(12),
.table_sm-row:nth-child(13),
.table_sm-row:nth-child(16) {
  border-top: 2px solid var(--blue);
}

/* ============================================================
   ELITSERIEN UI COMPONENTS
   ============================================================ */

.elit-ui-wrap {
  color: var(--text);
}

.elit-ui-card {
  background: var(--blue-mid);
  background: linear-gradient(180deg, #00151a, rgb(0 0 0 / 24%));
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
   overflow: hidden;
}

.elit-ui-card-inner,
.elit-ui-header {
  padding: 1rem 1.25rem;
}

.elit-ui-header {
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-dark);
  border-radius: .375rem .375rem 0 0;
  gap: .5rem;
}

.elit-ui-title {
  margin: 0;
  font-size: .95rem;
}

.elit-ui-subtitle,
.elit-ui-meta,
.elit-ui-num {
  color: var(--text-meta);
  text-transform: uppercase;
}

.elit-ui-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.elit-ui-list {
  display: grid;
  gap: .5rem;
}

.elit-ui-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .75rem 1rem;
  background: linear-gradient(90deg, rgba(52, 97, 120, .4), rgba(0, 0, 0, 0));
}

.elit-ui-points-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.elit-ui-points-card {
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: .75rem;
  background: linear-gradient(90deg, rgba(52, 97, 120, .4), rgba(0, 0, 0, 0));
}

.elit-ui-list-left,
.elit-ui-points-left,
.elit-ui-pill-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.elit-ui-badge-rank {
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}

.elit-ui-big-number,
.elit-ui-points-strong {
  font-weight: 800;
}

.elit-ui-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .65rem;
  color: var(--text);
  display: inline-flex;
  font-size: .78rem;
}

.elit-ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  background: #fff;
  color: var(--blue-mid);
  font-weight: 700;
  font-size: .8rem;
  transition: opacity .15s;
}

.elit-ui-button:hover {
  opacity: .88;
  color: var(--blue-mid);
}

.elit-ui-table thead th {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  white-space: nowrap;
}

.elit-ui-table tbody tr.current {
  background: linear-gradient(90deg, rgb(210 27 105), rgba(0, 0, 0, 0));
}

@media (max-width: 767.98px) {
    
    .elit-ui-num-long{
        display: none;
    }

    .elit-ui-table tbody td{

    }
}

 :root {
  --card: #02242d;
  --row-a: rgba(20, 84, 101, 0.20);
  --row-b: rgb(0 0 0 / 20%);
  --border: rgba(255,255,255,.06);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);

  --accent: #d21b69;
  --active: rgba(210,27,105,.16);
}

.standings-list,  .standings-list-sm {
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(0,99,120,.12),
      rgba(0,0,0,.12)
    );
   backdrop-filter: blur(10px);
}

/* =========================
   ROW
========================= */

.standings-row {
  position: relative;
  min-height: 64px;
  padding: 0 1.25rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: .2s ease;
}
.standings-row:not(.standings-head):before {
    content: "";
    width: 3px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.standings-row.top-6:before {
  background: #00627d;
}
.standings-row:not(.standings-head):nth-child(8):before,
.standings-row:not(.standings-head):nth-child(9):before,
.standings-row:not(.standings-head):nth-child(10):before,
.standings-row:not(.standings-head):nth-child(11):before
{
  background: #9fecff;

}
 
.standings-row:not(.standings-head):nth-child(13):before,
.standings-row:not(.standings-head):nth-child(14):before
{
  background: #0a5263;

}
.standings-row:not(.standings-head):nth-child(15):before {
  background: #d21b69;

}


 
.standings-row:not(.standings-head):nth-child(odd) {
  background: var(--row-a);
}

.standings-row:not(.standings-head):nth-child(even) {
  background: var(--row-b);
}

.standings-row.current {
  background: linear-gradient(90deg, rgba(210, 27, 105, 1), rgba(0, 0, 0, 0)) !important;
}


/* Hover */
.standings-row:not(.standings-head):hover {
  background: rgba(0,216,255,.08);
  transform: translateY(-1px);
}


/* FrontPage*/
.standings-list-sm .standings-row {
   min-height: 44px;
}
.standings-list-sm .table-logo {
    width: 24px;
    height: 24px;
}

/* =========================
   HEADER
========================= */

.standings-head {
  position: sticky;
  top: 0;
  z-index: 10;

  min-height: 58px;

  background:
    var(--surface-dark);

  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;

  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* =========================
   ACTIVE TEAM
========================= */

.standings-row.active {
  background: rgba(0,216,255,.10) !important;
}

.standings-row.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 10px;
  background: var(--accent);
}



/* =========================
   TOP 3
========================= */

.table-rank {
  width: 28px;
  height: 28px;
  font-weight: 700;
}

/* =========================
   COLUMNS
========================= */

.rank {
  width: 40px;
  flex-shrink: 0;
}

.team {
  min-width: 0;
}

.team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.stat,
.goals {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.stat {
  width: 52px;
}

.goals {
  width: 78px;
}

.points {
   font-weight: 800;
}

/* =========================
   LOGO
========================= */

.table-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .standings-row {
    min-height: 48px;
    padding: 0 .9rem;
  }

  /* Dölj +/-  */
  .standings-list-sm .standings-row > div:nth-child(4){
    display: none;
  }

    /* Dölj V, O, F och +/- — visa bara M (#3) och P (#8) */
  .standings-list .standings-row > div:nth-child(4),
  .standings-list .standings-row > div:nth-child(5),
  .standings-list .standings-row > div:nth-child(6),
  .standings-list .goals {
    display: none;
  }

  .rank {
    width: 30px;
  }

  .table-logo {
    width: 26px;
    height: 26px;
  }

  .team span {
    font-size: .95rem;
  }

  .points {
    width: 42px;
  }

  .standings-head {
    font-size: .72rem;
  }
}


.profixio-playoff { width: 100%; }

.playoff-round { margin-bottom: 2rem; }

.playoff-round-title {
  text-align: center;
 font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
 min-height: 48px;
        padding: 0 .9rem;
   text-transform: uppercase;
   color: var(--text-muted);
  background: var(--surface-dark);
  display: flex;
   align-items:center;
   justify-content:center;
}


@media (max-width: 768px) {
    .playoff-round-title {
        font-size: .72rem;
    }
}
.playoff-card {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  align-items: center;
  gap: 12px 16px;
  color: #fff;
  text-decoration: none;
  padding: .875rem 1.25rem;
  /* margin-bottom: 10px;
 background: linear-gradient(90deg, rgba(52,97,120,.5), rgba(0,0,0,0));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);*/
  transition: background .15s;
}

.playoff-card:nth-child(odd) {
  background: var(--row-a);
}

.playoff-card:nth-child(even) {
  background: var(--row-b);
}


.playoff-card:hover {
 /* background: linear-gradient(90deg, rgba(52,97,120,.72), rgba(0,0,0,.08));
  color: #fff;
*/
    background: rgba(0,216,255,.08);
  transform: translateY(-1px);
}

/* Teams */
.playoff-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.playoff-team.right {
  justify-content: flex-end;
  text-align: right;
}

.playoff-team img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
}

.playoff-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.playoff-team.winner .playoff-team-name { font-weight: 700; }

/* Score */
.playoff-score {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.playoff-wins {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.playoff-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.55);
  line-height: 1.2;
}

/* ---- Mobile ---- */
@media (max-width: 575px) {
  .playoff-card {
    grid-template-columns: 1fr 72px 1fr;
    gap: 8px;
    padding: .65rem .75rem;
  }

  .playoff-team img {
    width: 20px;
    height: 20px;
  }

  .playoff-team-name {
    font-size: .75rem;
  }

  .playoff-wins {
    font-size: 1.1rem;
  }

  .playoff-score {
    grid-template-columns: 22px 1fr 22px;
    gap: 4px;
  }

  .playoff-label { font-size: .6rem; }
}

@media (min-width: 576px) and (max-width: 767px) {
  .playoff-card {
    grid-template-columns: 1fr 100px 1fr;
    padding: .75rem 1rem;
  }

  .playoff-team-name { font-size: .85rem; }
  .playoff-wins { font-size: 1.2rem; }
}
/* ============================================================
   STATS CARD
   ============================================================ */

.stats-card {
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  background: rgba(52, 97, 120, .15);
  border-radius: 0 0 .5rem .5rem;
  overflow: hidden;
  margin-bottom: 1em;
}

.stats-card .stats-row {
  background: linear-gradient(90deg, rgba(52, 97, 120, .45), rgba(0, 0, 0, 0));
}

.stats-card .stats-row:nth-child(odd) {
  background: rgba(0, 31, 39, .05);
}

.stats-card .stats-row:nth-child(1) {
  background: linear-gradient(90deg, rgba(184, 51, 104, 1), rgba(0, 0, 0, 0)) !important;
}

/* ============================================================
   SCORE / NUMBERS
   ============================================================ */

.numbers,
.score,
.ptp-number {
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
}

.dash {
  font-family: "Inter", sans-serif;
  margin: 0 4px;
  color: #fff;
}

/* ============================================================
   MATCH STRIP (horizontal scroll on mobile)
   ============================================================ */

.match-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 2px 12px;
  margin: 8px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-mid) transparent;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.match-strip::-webkit-scrollbar {
  height: 4px;
}

.match-strip::-webkit-scrollbar-track {
  background: transparent;
}

.match-strip::-webkit-scrollbar-thumb {
  background: var(--blue-mid);
  border-radius: 2px;
}

.match-strip .day-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 600;
  font-size: .8rem;
  scroll-snap-align: start;
}

.match-strip .game {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 240px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 12px;
  scroll-snap-align: start;
  transition: border-color .15s;
}

.match-strip .game:hover {
  border-color: rgba(255, 255, 255, .25);
}

.match-strip .is-played {
  opacity: .8;
}

.match-strip .meta {
  font-size: .78rem;
  color: var(--text-muted);
}

.match-strip .teams {
  font-weight: 700;
  line-height: 1.25;
  margin-top: 5px;
  font-size: .9rem;
}

.match-strip .score {
  font-weight: 800;
  margin-top: 6px;
  font-size: 1rem;
}

.match-strip a {
  text-decoration: none;
  color: inherit;
}

  .status.loading{ padding:10px 0;text-align: center; color:#fff;}
    .animate-top{position:relative;animation:animatetop .4s}@keyframes animatetop{from{top:-300px;opacity:0} to{top:0;opacity:1}}

    .strip{
      display:flex; align-items:stretch; gap:1px;
      overflow:auto;
      /*background:#00151A;
      border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 10px 20px #00000026;*/
      color:#fff;
           
    }
    .strip .day-chip{
       display:flex; align-items:center; justify-content:center;
      width:60px; padding:10px 8px;
       font-size: 10px;
      line-height:1;
    }

    .day-games .game:nth-child(even){
    }
    .day-games {
      gap: 5px;
      margin: 5px 0;
    }
    .strip .game{
      max-width:240px;
   background:#071519;
      padding:10px 12px;
           border-radius: 0.375rem;

      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)
    }
 
    .strip::-webkit-scrollbar { height: 1px; width: 2px; }
    .strip::-webkit-scrollbar-track { border-radius: 0; background-color: #004B5D; }
    .strip::-webkit-scrollbar-thumb { border-radius: 0; background-color: #d21b69; }
    .strip::-webkit-scrollbar-thumb:hover,
    .strip::-webkit-scrollbar-thumb:active { background-color: #f7b6c9; }

    .meta{ font-size:.85rem; color:#222529; }
    .teams{  line-height:1.2;}
    .score{ font-weight:700;  width: 60px; text-align: center;  
  font-variant-numeric: tabular-nums;
}

    .team-row{
      display:flex; align-items:center;  
    }
    .team-logo{
      width:36px; height:36px; object-fit:contain; flex:0 0 auto;
      filter: drop-shadow(0 1px 0 rgba(0,0,0,.2));
            padding: 5px; border-radius: 200px; background-color: rgba(0,0,0,.1);

    }
    .strip .strip-all-matches-link{
      flex:0 0 42px;
      min-width:42px;
      margin-left:auto;
      display:flex;
      align-items:center;
      justify-content:center;
      align-self:stretch;
      background:#002f3b;
      color:#fff;
      text-decoration:none;
      position:sticky;
      right:0;
      z-index:5;
      box-shadow:-8px 0 18px rgba(0,0,0,.16);
    }
    .strip .strip-all-matches-link:hover,
    .strip .strip-all-matches-link:focus{
      background:#001116;
      color:#fff;
      text-decoration:none;
    }

    /* ============================================================
   TEAM MATCHES
   ============================================================ */

    .profixio-team-matches .ptm-status{ opacity:.8; padding:8px 0; }
     .profixio-team-matches .ptm-list .ptm-day:nth-child(odd){ 
      
      background: var(--row-b) }
   .profixio-team-matches .ptm-list .ptm-day:nth-child(even){ 
      
      background: var(--row-a) }


 
    .profixio-team-matches .ptm-day{border-bottom: 1px solid var(--border); }
    .profixio-team-matches .ptm-day .date{ text-transform: uppercase;}
    .profixio-team-matches .ptm-row{
      display:flex; align-items:center; justify-content:space-between; gap:14px;
      color:inherit; text-decoration:none;
    }
    .profixio-team-matches .ptm-row:hover{ text-decoration:none; }
    .profixio-team-matches .ptm-main{
      flex:1;
      display:flex; align-items:center; justify-content:center;
      font-weight:700;
    }
    .profixio-team-matches .ptm-meta{
      padding:8px 14px; color:#fff;  
      min-width:120px; text-align:center;
    }
    .profixio-team-matches .ptm-meta .ptm-score{
      background: #001116;
    display: inline-block;
    padding: 0 10px;
    }
   
    .profixio-team-matches .ptm-meta small{
      font-size: 10px; text-transform: uppercase;
    }
    /* logo + teamname */
    .profixio-team-matches .ptm-team{
      display:flex; align-items:center; gap:8px;
      min-width:0;
    }

        .profixio-team-matches .ptm-team.home-team{

        }
    .profixio-team-matches .ptm-team-name{
      overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color: #fff;
    }
    .profixio-team-matches .ptm-logo{
      background:rgba(0,0,0,.18);
      width:56px; height:56px;
       object-fit:contain; 
      flex:0 0 auto;   
      padding: .7em;
      filter: drop-shadow(0 1px 0 rgba(0,0,0,.18));
    }
/* ============================================================
   TEAM CONTENT
   ============================================================ */

.team-content {
  background: var(--blue-mid);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  border-radius: .375rem;
}

.team-content .wp-post-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ============================================================
   TEAM ARCHIVE
   ============================================================ */

.team-archive__header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.team-archive__group-title {
  text-transform: uppercase;
  font-size: 1rem;
   letter-spacing: .06em;
}

.team-archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: .75rem;
}

.team-archive__item {
  display: flex;
  min-height: 9rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem .75rem;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background: var(--row-b);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  transition: background .15s, transform .15s;
}

.team-archive__item:hover,
.team-archive__item:focus {
  color: var(--text);
  background: var(--row-a);
  transform: translateY(-2px);
}

.team-archive__logo {
  display: flex;
  width: 4.5rem;
  height: 4.5rem;
  align-items: center;
  justify-content: center;
}

.team-archive__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .22));
}

.team-archive__name {
  font-weight: 700;
  line-height: 1.15;
  font-size: .85rem;
}

.teamList {
   overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: .75rem;
  padding-bottom: .25rem;
  align-items: center;
 
    position: relative;
}
/*
.teamList::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(
        to left,
        #002f3b,
        transparent
    );
    pointer-events: none;
}
*/
.teamList::-webkit-scrollbar {
  display: none;
}

.team-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.team-img-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
}
.team-img-wrapper:hover {
  filter: grayscale(0);
}
.team-img-wrapper img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3));
  transition: filter .15s, transform .15s;
}

.team-item:hover .team-img-wrapper img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5));
  transform: scale(1.1);
}

/* ============================================================
   PLAYER LIST
   ============================================================ */

.profixio-team-players {
  max-width: 800px;
  margin: 0 auto;
}

.profixio-team-players .ptp-row {
  background: var(--blue-mid);
  width: 100%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.profixio-team-players .ptp-row:nth-child(even) {
  border-left: 1px solid var(--border);
}

.profixio-team-players .ptp-meta {
  padding: 8px 14px;
  color: var(--text);
  font-weight: 900;
  min-width: 110px;
  text-align: center;
}

.profixio-team-players .ptp-name {
  line-height: 1.3;
  color: var(--text);
  text-decoration: none !important;
}

.profixio-team-players .ptp-name small {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profixio-team-players .ptp-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profixio-team-players .ptp-img {
  background: rgba(0, 0, 0, .18);
  width: 52px;
  height: 52px;
  object-fit: contain;
  color: var(--text);
  text-align: center;
  flex: 0 0 auto;
  line-height: 1;
  overflow: hidden;
  padding: 8px 0 0 5px;
  position: relative;
}

.profixio-team-players .ptp-number {
  background: rgba(0, 0, 0, .1);
  width: 52px;
  height: 52px;
  object-fit: contain;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  flex: 0 0 auto;
  line-height: 52px;
}

/* ============================================================
   NEWS FEED
   ============================================================ */

.news-container {
   background: var(--surface);
}

   .news-card {
 
 
  border: 1px solid var(--border);
  border-radius: .5rem;
   transition: transform .15s, border-color .15s;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .22);
}

.news-card-meta {
    color: var(--text-muted);
    font-size: .72rem;
 
}
.team-news-feed {
  margin-top: 1rem;
}

.team-news-card {
  margin-bottom: 8px;
}

.team-news-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(90deg, rgba(52, 97, 120, .45), rgba(0, 0, 0, 0));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: .5rem;
  transition: transform .2s ease, background .2s ease;
}

.team-news-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(15, 68, 82, .35), rgba(7, 39, 48, .25));
}

.team-news-image-wrap {
  width: 90px;
  min-width: 90px;
  height: 70px;
  overflow: hidden;
  border-radius: 10px;
  flex-shrink: 0;
}

.team-news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-news-content {
  min-width: 0;
  flex: 1;
}

.team-news-date {
  font-size: .75rem;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 4px;
}

.team-news-title {
  margin: 0;
  font-size: .95rem;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-news-excerpt {
  margin: 6px 0 0;
  font-size: .84rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.elit-ui-match-score{
   background: var(--surface-dark);
   min-width: 100px;
   margin-bottom: .1rem;
}

.elit-ui-match-teams {
  min-height: 160px;
}

.elit-ui-match-team {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elit-ui-match-team img {
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
}

/* ============================================================
   PARTNERS
   ============================================================ */

.partnerLogos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.partnerLogos > li {
  flex: 0 1 130px;
}

.partnerLogos li img {
  object-fit: contain;
  width: 100%;
  height: 55px;
  vertical-align: middle;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer .footer-menu {
  list-style: none;
  padding: 0;
  margin: .75rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.25rem;
}

footer .footer-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

footer .footer-menu a:hover {
  color: #fff;
}

/* ============================================================
   OFFCANVAS (Bootstrap override)
   ============================================================ */

.offcanvas {
  --bs-offcanvas-zindex:        1045;
  --bs-offcanvas-width:         22rem;
  --bs-offcanvas-height:        30vh;
  --bs-offcanvas-padding-x:     1rem;
  --bs-offcanvas-padding-y:     1rem;
  --bs-offcanvas-color:         var(--text);
  --bs-offcanvas-bg:            var(--bg);
  --bs-offcanvas-border-width:  0;
  --bs-offcanvas-border-color:  transparent;
  --bs-offcanvas-box-shadow:    none;
  --bs-offcanvas-transition:    transform 0.28s ease-in-out;
  --bs-offcanvas-title-line-height: 1.5;
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

/* ---- xs (< 576px) ---- */

@media (max-width: 575.98px) {
  /* Team hero: tighten */
  .team-hero {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .team-hero__logo img {
    width: 64px;
    height: 64px;
  }

  .team-hero__tabs {
    width: 100%;
    border-radius: .75rem;
  }

  .team-tab-btn {
    flex: 1 1 auto;
    font-size: .75rem;
    padding: .4rem .6rem;
  }
}

/* Full-width tables on tiny screens */
@media (max-width: 575.98px) {
  .container {
    padding-left: .75rem;
    padding-right: .75rem;
  }

 
    .elit-ui-match-team img {
        width: 64px;
        height: 64px;
    
    }
 

  .card-body {
    padding: .75rem;
  }

  .elit-ui-card-inner,
  .elit-ui-header {
    padding: .75rem 1rem;
  }

  /* Tables: hide less important columns */
  .table-responsive-xs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* News cards: stack image top */
  .team-news-link {
    flex-direction: column;
    gap: 8px;
  }

  .team-news-image-wrap {
    width: 100%;
    height: 140px;
    border-radius: 8px;
  }

  /* Match strip: smaller cards */
  .match-strip .game {
    min-width: 170px;
  }

  /* Team grid: 2 columns */
  .team-archive__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }

  .team-archive__item {
    min-height: 7.5rem;
    padding: .75rem .5rem;
  }

  /* Partner logos */
  .partnerLogos > li {
    flex: 0 1 100px;
  }

  /* Hide non-essential table columns on mobile */
  .table-sm-hide {
    display: none;
  }

  /* Player list: full width */
  .profixio-team-players .ptp-row {
    width: 100%;
  }

  /* Score display */
  .scoreNumber {
    font-size: 1.1rem;
  }
}

/* ---- sm (576–767px) ---- */

@media (min-width: 576px) and (max-width: 767.98px) {
  .team-archive__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-news-image-wrap {
    width: 95px;
    min-width: 95px;
    height: 72px;
  }
}

/* ---- sm and below (< 768px) ---- */

@media (max-width: 767.98px) {
  /* News list: horizontal scroll on mobile */
  .newsList {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    flex-wrap: nowrap !important;
    padding-bottom: .5rem;
  }

  .newsList .col-7 {
    flex: 0 0 auto;
    width: 72vw;
    max-width: 280px;
  }


  /* Navigation header: compact logo */
  #masthead img {
    max-width: 100px;
  }

  /* Player stats: stack */
  .profixio-team-players .ptp-row {
    width: 100%;
  }

  /* Offcanvas menu width */
  #primary-menu.offcanvas {
    width: min(90vw, 20rem);
  }

  /* Footer menu: column */
  footer .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: .4rem;
  }

  /* Stats columns: single column */
  .stats-col-mobile {
    margin-bottom: 1.5rem;
  }

  /* Table: compact padding */
  .table td,
  .table th {
    padding: .5rem .4rem;
    font-size: .8rem;
  }

  .table-logo {
    width: 18px;
    height: 18px;
  }

  /* Match section spacing */
  .section-spacing {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

/* ---- md (768–991px) ---- */

@media (min-width: 768px) and (max-width: 991.98px) {
  .team-archive__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  #masthead img {
    max-width: 130px;
  }

  .profixio-team-players .ptp-row {
    width: 50%;
  }
}

/* ---- lg+ (>= 992px) ---- */

@media (min-width: 992px) {
  .profixio-team-players .ptp-row {
    width: 50%;
  }

  .team-archive__grid {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  }

  #primary-menu.offcanvas {
    width: min(92vw, 24rem);
  }
}

/* ============================================================
   TOUCH & ACCESSIBILITY
   ============================================================ */

/* Minimum touch target size */
.btn,
.nav-link,
a.elit-ui-button,
.series-switch a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Focus visible for keyboard nav */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Smooth transitions */
.btn,
.card,
.team-archive__item,
.team-news-link {
  transition-duration: .15s;
  transition-timing-function: ease;
}

/* ============================================================
   ELITE UI — TABLE (mini + full)
   ============================================================ */

.elit-ui-team-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.elit-ui-team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .2));
}

.elit-ui-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mini-tabell: visa kortnamn, dölj fullnamn */
.elit-ui-table-mini .elit-ui-team-name-full  { display: none; }
.elit-ui-table-mini .elit-ui-team-name-short { display: inline; }

/* Fullstabell: visa fullnamn, dölj kortnamn */
.elit-ui-table:not(.elit-ui-table-mini) .elit-ui-team-name-short { display: none; }
.elit-ui-table:not(.elit-ui-table-mini) .elit-ui-team-name-full  { display: inline; }

/* ============================================================
   SINGLE TEAM — HERO
   ============================================================ */

.team-hero {
   /*
 background:
    radial-gradient(circle at 50% 0%, rgba(0, 98, 116, .55), transparent 55%),
    linear-gradient(180deg, #00262c 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);

      background: url(img/bg.png);
      background-position: bottom;
  */
}

.team-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .875rem;
}


.team-hero__logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

.team-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  letter-spacing: 1px; 
}
.team-hero__subtitle{
  margin-top: -1em;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: .5em;
    font-family: 'Satisfied_Brush', "trade-gothic-next-condensed", sans-serif;
  font-weight: 400;
  color: var(--accent);
 }

/* Hero without logo (page-table, page-stats) */
.team-hero--page .team-hero__inner {
  padding-top: .5rem;
}

/* Tab navigation inside hero */
.team-hero__tabs {
  display: flex;
  gap: 4px;
  background: var(--blue-dark);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}

.team-tab-btn {
  padding: .4rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  min-height: 36px;
}

.team-tab-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.team-tab-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Stats grid (page-stats card layout) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

/* ============================================================
   TOPLIST TABLE
   ============================================================ */

.toplist-table-wrap {
  border: 1px solid var(--border);
  border-radius: .375rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.toplist-table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--border);
  color: var(--text);
  font-size: .875rem;
  margin: 0;
}

.toplist-table thead th {
  background: var(--surface-dark);
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .65rem .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  white-space: nowrap;
}

.toplist-table thead th.text-accent {
  color: var(--accent);
}

.toplist-row {
  background: linear-gradient(90deg, rgba(52, 97, 120, .35), rgba(0, 0, 0, 0));
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}

.toplist-row:hover {
  background: linear-gradient(90deg, rgba(52, 97, 120, .6), rgba(0, 0, 0, 0));
}

.toplist-row--first {
  background: linear-gradient(90deg, rgba(210, 27, 105, .3), rgba(0, 0, 0, 0));
}

.toplist-row--first:hover {
  background: linear-gradient(90deg, rgba(210, 27, 105, .45), rgba(0, 0, 0, 0));
}

.toplist-table td {
  padding: .55rem .75rem;
  vertical-align: middle;
}

.toplist-rank {
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 700;
  min-width: 2rem;
}

.toplist-row--first .toplist-rank {
  color: var(--accent);
}

.toplist-name {
  font-weight: 600;
  white-space: nowrap;
}

.toplist-team {
  white-space: nowrap;
  min-width: 2rem;
}

/* Team description (editor content) */
.team-description {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ============================================================
   SINGLE MATCH — HERO (scoreboard)
   ============================================================ */

.match-hero {
 
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
}

.match-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  margin-bottom: 1.5rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.match-hero__category {
  color: var(--accent);
  font-weight: 700;
}

.match-hero__date,
.match-hero__venue {
  color: var(--text-muted);
}

/* Three-column scoreboard: home | score | away */
.match-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem 2rem;
}

.match-scoreboard__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
}

.match-scoreboard__team--home {
  align-items: flex-end;
  text-align: right;
}

.match-scoreboard__team--away {
  align-items: flex-start;
  text-align: left;
}

.match-scoreboard__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

.match-scoreboard__name {
  font-family: "trade-gothic-next-condensed", 'Tourney', sans-serif;
  font-weight: 700;
  font-size: clamp(.85rem, 2.5vw, 1.1rem);
  text-transform: uppercase;
  line-height: 1.2;
}

.match-scoreboard__center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}

.match-scoreboard__score {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
}

.match-scoreboard__status {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.match-scoreboard__spectators {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

/* ============================================================
   SINGLE MATCH — EVENTS TIMELINE
   ============================================================ */

.match-events {
  display: flex;
  flex-direction: column;
}

.match-event {
  display: flex;
  gap: 1rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}

.match-event:last-child {
  border-bottom: 0;
}

.match-event:hover {
  background: rgba(52, 97, 120, .2);
}

.match-event--goal {
  background: linear-gradient(90deg, rgba(210, 27, 105, .18), rgba(0, 0, 0, 0));
}

.match-event--goal:hover {
  background: linear-gradient(90deg, rgba(210, 27, 105, .28), rgba(0, 0, 0, 0));
}

.match-event--key:not(.match-event--goal) {
  background: rgba(52, 97, 120, .25);
}

.match-event__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
  flex-shrink: 0;
  text-align: center;
}

.match-event__clock {
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.match-event--goal .match-event__clock {
  color: var(--accent);
}

.match-event__period {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.match-event__body {
  flex: 1;
  min-width: 0;
}

.match-event__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.match-event__info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.match-event__title {
  font-weight: 700;
  font-size: .875rem;
  color: var(--text);
}

.match-event__person {
  font-size: .825rem;
  color: var(--text-muted);
}

.match-event__team {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.match-event__score {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.match-event__comment {
  margin: .4rem 0 0;
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   SINGLE MATCH — INFO SIDEBAR
   ============================================================ */

.match-info-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 0;
}

.match-info-row {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.match-info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.match-info-row dt {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.match-info-row dd {
  margin: 0;
  font-size: .9rem;
  color: var(--text);
}

/* ============================================================
   SINGLE MATCH — MOBILE
   ============================================================ */

@media (max-width: 575.98px) {
  .match-hero {
    padding: 1.25rem 0 1.75rem;
  }

  .match-scoreboard {
    gap: .75rem 1rem;
  }

  .match-scoreboard__logo {
    width: 56px;
    height: 56px;
  }

  .match-scoreboard__score {
    font-size: 2.25rem;
  }

  .match-event {
    padding: .65rem 1rem;
    gap: .75rem;
  }

  .match-event__time {
    min-width: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .match-scoreboard__team--home {
    align-items: center;
    text-align: center;
  }

  .match-scoreboard__team--away {
    align-items: center;
    text-align: center;
  }
}

/* ============================================================
   VIDEO GRID (page-highlights)
   ============================================================ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .5rem;
  overflow: hidden;
  transition: transform .15s, border-color .15s;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .22);
}

.video-card__thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.video-card__thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-dark);
  overflow: hidden;
}

.video-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

.video-card__thumb-btn:hover .video-card__thumb {
  transform: scale(1.04);
}

.video-card__thumb--placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-dark);
}

.video-card__play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, .85);
  opacity: 0;
  transition: opacity .15s;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.video-card__thumb-btn:hover .video-card__play-icon {
  opacity: 1;
}

.video-card__lock-icon {
  position: absolute;
  top: .5rem;
  right: .5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .7);
  background: rgba(0, 0, 0, .5);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card--locked { opacity: .7; }

.video-card__duration {
  position: absolute;
  bottom: .4rem;
  right: .5rem;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: .1rem .4rem;
  border-radius: .25rem;
}

.video-card__meta {
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
}

.video-card__title {
  font-family: "Inter", sans-serif;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
  margin: 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__sub {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: .35rem;
}

.video-card__channel {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.video-card__date {
  font-size: .72rem;
  color: var(--text-muted);
 }

.video-modal .modal-content {
  background: #000;
  border: 1px solid var(--border);
}

.video-modal .modal-header {
  background: rgba(0, 0, 0, .5);
  padding: .75rem 1rem;
}

.video-modal .modal-title {
  color: var(--text-muted);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  text-transform: none;
}

.staylive-player {
  width: 100%;
  height: 100%;
  background: #000;
}

@media (max-width: 575.98px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  .video-card__title { font-size: .8rem; }
  .video-card__meta  { padding: .5rem; }
  .video-card__play-icon { font-size: 2.25rem; }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  #masthead,
  footer,
  .match-strip,
  .series-switch {
    display: none;
  }
}

/* ── Instagram feed ─────────────────────────────────────────────────────────── */

.ig-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: .5rem;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.ig-card:hover img {
  transform: scale(1.06);
}

.ig-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity .2s ease;
  display: flex;
  align-items: flex-end;
  padding: .75rem;
}

.ig-card:hover .ig-card__overlay {
  opacity: 1;
}

.ig-card__caption {
  color: #fff;
  font-size: .75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ig-card__type-icon {
  position: absolute;
  top: .5rem;
  right: .5rem;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  pointer-events: none;
}
