h1,h2,h3,h4,h5,header {
	font-family: 'Baloo 2',Helvetica;
	font-weight: 800;
}
.h2, .h4 {
    margin-top: 1rem;
}
.shadow-custom {
    box-shadow: 0 0 50px -12px rgba(0, 0, 0, 0.26); /* Customize the shadow color and opacity */
}
.shadow-custom-inner {
    --tw-shadow:inset 0 25px 50px -12px rgba(0, 0, 0, 0.06);
    box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),
    var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)
}
.bd-navbar {
    padding: .75rem 0;
    background-color: transparent;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15),inset 0 -1px 0 rgba(255,255,255,0.15)
}

.bd-navbar::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    content: "";
    background-image: linear-gradient(rgba(var(--bd-violet-rgb), 1), rgba(var(--bd-violet-rgb), 0.95))
}
.card, table {
	font-family: 'Baloo 2',Helvetica;
	font-weight: normal; 
}
.basis-0 {
    flex-basis: 0px;
}
.intro p {
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.intro table {
    border-collapse: collapse;
    background-color: #f8f9fa; /* Light grey background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Light shadow */
}

.intro td {
    border: 1px solid #e9ecef; /* Very light border */
    padding: 8px 12px;
}

.intro tbody tr:nth-child(odd) {
    background-color: #ffffff; /* Alternating row colors */
}
.nice-box {
    box-shadow: 0px 10px 20px rgb(10 33 65 / 5%), 0px 0px 2px rgb(0 0 0 / 13%);
    outline: none;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    -webkit-backface-visibility: hidden;
    text-decoration: none;
    background: white;
}
.nice-box.text-white {
    background: rgba(250,250,250,0.10);
}
.nice-box.text-black {
    background: rgba(0,0,0,0.10);
}
a.nice-box {
    display: block;
}
.match-box {
    color: #262626;
    background: linear-gradient(to bottom right, rgb(230, 230, 230), rgb(245, 245, 245));
    box-shadow: 0px 5px 5px rgb(10 33 65 / 5%), 0px 0px 2px rgb(0 0 0 / 13%);
    display: block;
    outline: none;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    -webkit-backface-visibility: hidden;
    position: relative;
    text-decoration: none;
}
.match-box.three {
    width: calc(33.333% - 1rem); /* Adjust the width as needed for spacing */
    /*margin: 0.5rem 0.5rem 4rem;*/
}
.match-box.two {
    width: calc(50% - 1rem); /* Adjust the width as needed for spacing */
    /*margin: 0.5rem 0.5rem 4rem;*/
}
.blur {
    filter: blur(10px);
}
.nice-box.nice-rotated {
	width: auto; 
	margin: 10px auto auto 20px;
	font-weight: bold; 
	font-size: 1.3em;
	padding: 6px;
	background: white;
	font-family: 'Baloo 2',Helvetica;
 	transform: rotate(-8deg);
}
.player-item {
    position: relative;
    transition: transform 1s cubic-bezier(0.82, -0.11, 0.36, 1);
}
.player-item > div {
    transition: background-color 1s ease-in-out
}
.player-item.animated {
    /* This class will be toggled to trigger the animation */
}
.bi-eye-slash, .bi-eye {
    position: absolute;  /* Ensure icons are stacked */
    transition: opacity 0.2s ease, visibility 0.2s;
    width: 12px; /* Ensure both SVGs have the same size */
    height: 12px;
    opacity: 0;
    visibility: hidden;
}
.bi-eye-slash {
    opacity: 1;
    visibility: visible;
}
.toggle-group {
    text-decoration: line-through;
}
.toggle-group.visible {
    text-decoration: none;
}
.toggle-group.visible .bi-eye {
    opacity: 1;
    visibility: visible;
}
.toggle-group.visible .bi-eye-slash {
    opacity: 0;
    visibility: hidden;
}
.numbers {

}
.numbers div {
    background: #000;
    box-shadow: 0px 10px 20px rgb(10 33 65 / 5%), 0px 0px 2px rgb(0 0 0 / 13%);
    text-align: center;
    display: inline-block;
    position: relative;
    transition: transform 0.3s;
    line-height: 130%;
    letter-spacing: 0.11em;
    border-radius: 4px;
    color: white;
    font-family: Graduate, Helvetica;
}
.text-secondary {
	font-size: 1.2em;
}
.text-muted {
	font-variant: small-caps;
}

.table {
    border-collapse: separate;
    border-spacing:0 10px;
}
.border-light {
    border-color: #f3f3f3!important;
}
@media (max-width: 875.98px) {
    .display-1 {
        font-size: 3rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-2 {
        font-size: 2.75rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-3 {
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-4 {
        font-size: 1.45rem;
        font-weight: 800;
        line-height: 1.2;
    }
}
@media (max-width: 400px) {
    .display-1 {
        font-size: 1.85rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-2 {
        font-size: 1.75rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-3 {
        font-size: 1.75rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-4 {
        font-size: 1.45rem;
        font-weight: 800;
        line-height: 1.2;
    }
}
    .display-3 {
        font-weight: 800;
    }
@media (min-width: 876px) {
	
    .display-4 {
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .display-3 {
        font-size: 2.5rem;
        font-weight: 800;
        line-height: 2.0;
    }
}
@media (min-width: 768px) {
	
    .col-scroll-overflow {
		height: 100vh; overflow-y: auto;
    }
}
    .col-scroll-overflow .container {
    	padding-bottom: 50px;
    	padding-top: 20px;
    }
	
	
/*Remove the scrollbar from Chrome, Safari, Edge and IE*/
::-webkit-scrollbar {
	width: 10px;
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c0c0c0; 
  border-radius: 5px;
}
* {
  -ms-overflow-style: none !important;
}
@media (min-width: 768px) {
    #roundsContainer {
        padding-bottom: 50vh;
    }
}
/*Bracket*/
/* pk-1504: slutspelsträdet. Allt här skapas av setupBracket() i results.html, därför i main.css och inte Tailwind. */
.br-scroll {
    --br-n: 4;
    --br-gap: 48px;
    --br-line: rgba(255, 255, 255, 0.45);
    --br-thumb: rgba(255, 255, 255, 0.35);
    container-type: inline-size;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--br-thumb) transparent;
}
.text-black .br-scroll {
    --br-line: rgba(0, 0, 0, 0.25);
    --br-thumb: rgba(0, 0, 0, 0.25);
}
.br-scroll::-webkit-scrollbar {
    height: 8px;
    background: transparent;
}
.br-scroll::-webkit-scrollbar-thumb {
    background: var(--br-thumb);
    border-radius: 8px;
}
.br-track {
    display: flex;
    justify-content: center;
    gap: var(--br-gap);
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
    padding: 4px 16px 72px;
    font-family: 'Baloo 2', Helvetica;
}
.br-round {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    width: 260px;
    width: clamp(200px, calc((100cqw - 32px - (var(--br-n) - 1) * var(--br-gap)) / var(--br-n)), 300px);
}
.br-round-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    margin-bottom: 4px;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.br-round-title svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}
.br-round .game-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.br-round .game {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
}
.br-round .game.hd {
    opacity: 0;
    pointer-events: none;
}
.br-card {
    position: relative;
    padding: 3px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    color: #262626;
}
.br-teams {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.br-team {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 10px;
    border-radius: 5px;
    background: linear-gradient(to bottom right, rgb(245, 245, 245), rgb(230, 230, 230));
    font-size: 16px;
    line-height: 1;
}
.br-name {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.br-score {
    flex: 0 0 auto;
    min-width: 1.5em;
    padding-top: 2px;
    text-align: right;
    position: relative;
}
.br-team.br-win {
    background: linear-gradient(to bottom right, rgb(250, 209, 68), rgb(240, 199, 58));
    font-weight: 700;
}
.br-team.br-tbd,
.br-team.br-bye {
    background: rgba(255, 255, 255, 0.45);
    color: rgba(38, 38, 38, 0.5);
}
.br-team.br-tbd .br-name {
    font-style: italic;
}
.br-wo {
    flex: 0 0 auto;
    padding-top: 2px;
    font-size: 13px;
    color: rgba(38, 38, 38, 0.5);
}
.br-team.br-win .br-wo {
    color: inherit;
}
.br-card .setResults {
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    height: fit-content;
    margin: auto 0;
    padding: 4px 8px 2px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.br-card .setResults:empty {
    display: none;
}
.br-champion {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px 4px;
    border-radius: 8px;
    background: linear-gradient(to bottom right, rgb(250, 209, 68), rgb(240, 199, 58));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #262626;
    text-align: center;
}
.br-champion-label {
    font-size: 13px;
    line-height: 1.2;
}
.br-champion-name {
    max-width: 100%;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Kopplingslinjer: två matcher går till en (br-pairs) eller en till en (br-straight, Champions League) */
.br-pairs .game::after,
.br-straight .game::after {
    content: "";
    position: absolute;
    right: calc(var(--br-gap) / -2);
    width: calc(var(--br-gap) / 2);
    box-sizing: border-box;
    pointer-events: none;
}
.br-straight .game::after {
    top: 50%;
    border-top: 2px solid var(--br-line);
}
.br-pairs .game:nth-child(odd)::after {
    top: 50%;
    height: 50%;
    border-top: 2px solid var(--br-line);
    border-right: 2px solid var(--br-line);
    border-top-right-radius: 8px;
}
.br-pairs .game:nth-child(even)::after {
    bottom: 50%;
    height: 50%;
    border-bottom: 2px solid var(--br-line);
    border-right: 2px solid var(--br-line);
    border-bottom-right-radius: 8px;
}
.br-pairs + .br-round .br-card::before,
.br-straight + .br-round .br-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(var(--br-gap) / -2);
    width: calc(var(--br-gap) / 2);
    border-top: 2px solid var(--br-line);
    pointer-events: none;
}
.br-track .score-updated {
    animation: brScorePulse 600ms ease-out;
}
@keyframes brScorePulse {
    50% {
        transform: scale(1.15);
    }
}
@media (max-width: 767.98px) {
    .br-scroll {
        --br-gap: 28px;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
    }
    .br-round {
        width: min(86cqw, 320px);
        scroll-snap-align: start;
    }
}
.team {
  margin: 5px;
}
.mobile-only {
    display: none;
}
@media (min-width: 1400px) {
    .container-max {
        max-width: 1520px;
    }
}
@media only screen and (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

@media print {
    /* Hide non-printable elements */
    header, footer, nav, .bd-navbar,
    [data-print-hide], button, a.inline-flex,
    .bi-eye-slash, .bi-eye, .toggle-group,
    .live-result::before, .live-result::after {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        margin: 0;
        padding: 8mm;
        font-size: 12px;
    }

    /* Remove decorative backgrounds and shadows */
    .match-box {
        background: #fff !important;
        box-shadow: none !important;
        border: 1px solid #aaa !important;
        border-radius: 4px !important;
        margin-bottom: 12px;
        page-break-inside: avoid;
    }

    /* Make score boxes print-friendly */
    .numbers div {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 1px solid #666 !important;
        font-size: 18px !important;
    }

    .live-result {
        background: #fff !important;
        border: 1px solid #aaa !important;
    }

    /* Increase player name size */
    .match-box .text-xs {
        font-size: 13px !important;
    }

    /* Page break management */
    .groupContainer, .round-section {
        page-break-inside: avoid;
    }

    /* Remove large bottom padding */
    #roundsContainer {
        padding-bottom: 0 !important;
    }
}

/* Klass som triggas när scoren uppdateras */
.numbers:not(.setNumbers) .score-updated {
    animation: numbersScorePulse 600ms ease-out;
}

.setNumbers .score-updated {
    animation: scorePulse 600ms ease-out;
}

/* Själva animationen */
@keyframes scorePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        background-color: #ffe58f;
    }
    100% {
        transform: scale(1);
        background-color: #ffffff;
    }
}

/* Själva animationen */
@keyframes numbersScorePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        background-color: rgb(209, 166, 37);
    }
    100% {
        transform: scale(1);
        background-color: #000;
    }
}

.live-result {
    background: rgba(252,211,77) !important; /* gul */
    color: #000;
    border: 4px solid white;
}

/* ikonen + gul cirkel */
.live-result::before {
    content: "";
    position: absolute;
    top: -9px;    /* justera efter smak */
    right: -9px;
    width: 20px;
    height: 20px;
    border-radius: 9999px;

    /* din SVG, samma mapp som main.css */
    background-image: url("broadcast.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px; /* justera storlek på själva ikonen */

    z-index: 5;
}

/* pulserande ring runt ikonen */
.live-result::after {
    content: "";
    position: absolute;
    top: -9px;   /* lite större än cirkeln ovan */
    right: -9px;
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: rgba(249, 191, 36, 0.7);
    animation: live-pulse 1.1s ease-out infinite;
    opacity: 0.9;
    z-index: 4;
}

@keyframes live-pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* pk-1580: "För klubbar" i sidhuvudet, liten lila knapp i samma höjd som menyposterna (40px) */
.nav-club {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #6E549E;
    background: #6E549E;
    color: #fff;
    font-size: 14px;
    line-height: 24px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(69, 49, 111, .2);
    transition: background-color .15s, border-color .15s, color .15s;
}
.nav-club:hover { background: #5B4390; border-color: #5B4390; color: #fff; }
.nav-club:focus-visible { outline: 2px solid #6E549E; outline-offset: 2px; }
.nav-club-white { background: #fff; border-color: #fff; color: #45316F; }
.nav-club-white:hover { background: #F5F1FA; border-color: #F5F1FA; color: #45316F; }
.nav-club-white:focus-visible { outline-color: #fff; }
.nav-club-m { display: flex; width: 100%; height: 44px; margin-top: 12px; font-size: 16px; }

/* pk-1580: en klubbs turnering i startsidans lista. Hela kortet har en svag ton av klubbens bandfärg och klubbens
   namn uppe till höger i en mörkare nyans av samma färg (läsbar även för ljusa band). Vit ring och mjuk skugga som
   raderna på klubbsidan (club.css .cl-prevrow). Ingen logga och inget nytt innehåll. Färgerna kommer från
   BrandLook.getCssVars(). */
.nice-box.club-card {
    position: relative;
    background: color-mix(in srgb, var(--band-from) 9%, white);
    border-radius: 10px;
    box-shadow: 0 0 0 3px #fff, 1px 2px 6px 3px rgba(0,0,0,.10);
}
.club-card-name {
    position: absolute;
    top: 10px;
    right: 14px;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Baloo 2', Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    color: color-mix(in srgb, var(--band-from) 60%, black);
}
.nice-box.club-card .card-body h4 { padding-right: 46%; }

/* pk-1580: w-full + mx-4 gjorde listspalten 32px för bred på mobil, så korten klipptes i högerkanten. */
@media (max-width: 767px) {
    .latest-col { width: auto; }
}
