/* ============================================================
   LHL Site — Responsive Styles
   Breakpoints:
     1280px — large desktops / reduce container
     1024px — small desktops / tablets landscape
      768px — tablets portrait
      480px — large phones
      360px — small phones
   ============================================================ */

/* ─── 1280px ────────────────────────────────────────────── */
@media (max-width: 1280px) {
  :root {
    --max-width: 96vw;
    --container-width: 96vw;
    --main-section: 66%;
    --side-section: calc(34% - 16px);
    --article: calc(((96vw * 0.66) - 40px) / 3);
    --article-big: calc(((96vw * 0.66) - 20px) / 2);
    --product-card: calc((96vw - 60px) / 4);
    --product-card-side: calc((96vw * 0.34) - 50px);
    --match-left: calc(96vw * 0.718);
    --match-right: calc((96vw * 0.282) - 20px);
  }
}

/* ─── 1024px ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --max-width: 96vw;
    --container-width: 96vw;
    --main-section: 70%;
    --side-section: calc(30% - 20px);
    --article: calc(((96vw * 0.7) - 20px) / 2);
    --article-big: calc((96vw - 20px) / 2);
    --product-card: calc((96vw - 60px) / 3);
    --product-card-side: 100%;
    --match-left: calc(96vw * 0.718);
    --match-right: calc((96vw * 0.282) - 20px);
    --size-h1: 26px;
    --size-h2: 22px;
    --size-h3: 18px;
  }

  /* Header */
  header .top-header {
    width: 96vw;
  }

  header > div,
  header .container {
    column-gap: 20px;
  }

  header .center-header {
    width: 80px;
    min-width: 80px;
  }

  header .left-header,
  header .right-header {
    width: calc((96vw - 80px) / 2);
  }

  header .menu-header .logo {
    width: 80px;
  }

  header nav ul li {
    padding: 16px 12px 14px;
  }

  header nav ul li a {
    font-size: 13px;
  }

  header .top-header .left-header .league {
    width: 200px;
  }

  /* Layout: stack main + side */
  div.flex {
    column-gap: 10px;
  }

  /*.section-main,
  .section-side {
    width: 100%;
  }*/

  /* Footer */
  footer .footer-main {
    flex-wrap: wrap;
    column-gap: 40px;
    row-gap: 32px;
  }

  footer .footer-main .container-1,
  footer .footer-main .container-3 {
    width: 100%;
  }

  footer .footer-main .container-2 {
    order: -1;
    width: 100%;
    text-align: center;
  }
	
	footer .footer-main .subscribe{
		align-items: center;
	}
	
	footer .footer-main .subscribe p{
		width: calc((var( --max-width)/2) - 20px);
	}
	
	footer .footer-main .subscribe form{
		width: calc(var( --max-width)/2);
	}
	
	a.btn, .btn{
		padding: 6px 12px;
	}

  /* Articles: 2-column grid */
  .articles-section {
    gap: 16px;
  }

  .articles-section .article {
    width: var(--article);
  }
	
	.articles-section .article.big{
		width: 100%;
	}

  /* Products: 3-col */
  .products-section {
    flex-wrap: wrap;
    gap: 10px;
  }

  .products-section .product {
    width: calc((96vw - 30px) / 4);
  }

  /* Players grid: 2 cols */
  .players-section {
    grid-template-columns: 1fr 1fr;
  }

  .players-section .player-card:first-child {
    grid-column: 1 / 3;
    grid-row: span 1;
    flex-direction: row;
    height: 120px;
  }

  .players-section .player-card:first-child .card-img {
    width: 120px;
    height: 120px;
	  min-width: 120px;
  }
	
	.players-section .player-card:first-child .card-img img{
		width: 120px;
    	height: 120px;
	}

  .players-section .player-card:first-child .player-info {
    position: static;
    background: transparent;
    height: auto;
    padding: 16px;
  }

  .players-section .player-card:first-child .player-info .number {
    font-size: 36px;
    color: var(--primary-400);
	background: var(--neutral-100);
    border-radius: 4px;
    padding: 9px 11px;
  }

  .players-section .player-card:first-child .player-info .name {
    color: var(--neutral-dark-900);
    font-size: var(--size-h1);
  }

  .players-section .player-card:first-child .player-info .position {
    color: var(--primary-400);
  }

  .players-section .player-card:first-child .player-points {
    position: static;
    background: none;
    color: inherit;
    height: auto;
    padding: 0 16px 0 0;
    flex-direction: row;
    justify-content: flex-end;
    align-self: center;
    margin-left: auto;
  }

  .players-section .player-card:first-child .player-points .team {
    color: var(--neutral-dark-900);
  }
	
	.players-section .player-card:first-child .player-points .team img{
		height: 50px;
	}

  /* Partners */
  .partners-section {
    flex-wrap: wrap;
    gap: 12px;
  }

  .partners-section .partner-logo {
    width: calc((96vw - 36px) / 3);
  }

  /* Match page */
  .match .section-main,
  .match .section-side {
    width: 100%;
  }

  .match .section-side {
    margin-top: 20px;
  }

  /* Col-3 grids */
  .col-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sidebar ads: horizontal row */
  .section-side .ads {
    /*flex-direction: row;*/
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  /*.section-side .ads .big-banner,
  .section-side .ads .small-banner {
    width: calc(50% - 6px);
  }*/

  .section-side .ads img {
    width: 100%;
    height: auto;
  }

  /* Sidebar shop */
  .section-side#news-sidebar {
    padding-left: 0;
    padding-top: 0px;
  }

  .section-side .ads#news-ads,
  .section-side .ads#article-ads {
    padding-top: 0;
    padding-left: 0;
  }

  /* Match score */
  .match-info .match-score {
    width: 100%;
    max-width: 580px;
  }

  /* Article preview */
  .article.preview > div {
    width: 100%;
  }

  .article.preview {
    /*flex-direction: column;*/
	  width: 100%;
  }

  .article.preview .article-img {
    height: calc(96vw / 1.78 / 2);
  }
	
	.articles-section.foto .article.big{
		width: var(--article);
	}
	
	#article-block .sidebar-shop{
		padding-left: 0;
	}
	
	.articles-section.related .article{
		width: calc(((96vw * 0.7) - 32px) / 3)
	}

  /* Statistic overview */
  .overview-statictic .statistic .boxes > div .team {
    min-width: 160px;
  }

  .overview-statictic .statistic .boxes > div .team p.score {
    font-size: calc(var(--size-h3) * 4);
  }
	
	.section-side .sidebar-table{
		display: none;
	}
	
	#home-banner .section-main, #calendar-page .section-main, #teams-page .section-main, #player-single .section-main{
		width: 100%;
	}
	
	#home-banner .section-side,#calendar-page .section-side, #teams-page .section-side, #player-single .section-side{
		display: none;
	}
	
	div.flex#match-finished{
		flex-direction: column;
	}
	
	.player-block .tables{
		overflow-x: scroll;
    padding-bottom: 20px;
	}
	
	.player-block .tables::-webkit-scrollbar-track{
	background-color: transparent;
}

.player-block .tables::-webkit-scrollbar{
  height: 4px;
}

.player-block .tables::-webkit-scrollbar-thumb{
	background: var(--primary-700);
}
	
	.player-block table tbody tr td.game div{
		width: 110px;
	}
}

/* ─── 768px ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --size-h1: 24px;
    --size-h2: 20px;
    --size-h3: 17px;
    --size-h4: 15px;
    --size-text-l: 16px;
    --size-text-m: 14px;
    --product-card: calc((96vw - 20px) / 2);
	--main-section: 100%;
    --side-section: 100%;
  }

  /* ── Top header: hidden on mobile, replaced by burger ── */
  /*header .top-header{
    display: none;
  }*/
	
	div.flex{
		flex-wrap: wrap;
	}
	
	.section-side{
		display: none;
	}
	
	#cart .section-side{
		display: block;
	}

  /* ── Mobile nav burger ── */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
  }

  .mobile-menu-btn span,
  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neutral-100);
    position: relative;
    transition: 0.3s;
  }

  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .mobile-menu-btn span::before { top: -7px; }
  .mobile-menu-btn span::after  { top:  7px; }

  /* ── Menu header layout ── */
  header .menu-header {
    height: auto;
    padding: 8px 0;
  }
	header .top-header{
		justify-content: space-between;
		margin-bottom: 10px;
	}
	
	header .top-header .center-header{
		display: none;
	}
	
	header .top-header .left-header{
		width: calc(100% - 90px);
	}
	
	header .top-header .right-header{
		width: 90px;
	}
	
	header .top-header .left-header .league{
		width: 130px;
		min-height: 34px;
	}

  header .menu-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 0;
    width: 96vw;
    padding: 0;
  }

  header .menu-header .left-header,
  header .menu-header .right-header {
    width: auto;
    flex: 0;
  }

  header .menu-header .center-header {
    width: auto;
    min-width: auto;
  }

  /* Hide desktop nav; show only on .open */
  header .menu-header nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(82, 22, 41, 0.98);
    z-index: 9000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  header .mob-menu.open nav {
    display: flex;
  }

  header .menu-header nav ul {
    flex-direction: column;
    align-items: center;
    row-gap: 8px;
  }

  header nav ul li {
    height: auto;
    padding: 12px 24px;
  }

  header nav ul li a {
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  header .menu-header .logo {
    width: 70px;
    position: static;
    display: block;
  }

  /* Calendar section */
  .calendar-section {
    margin: 16px 0;
  }

  .calendar-slider .slide-game {
    width: calc((100vw - 24px)/4);
    /*min-width: 150px;*/
  }

  /* Articles: single column */
  .articles-section {
    /*flex-direction: column;*/
    gap: 12px;
  }

  .articles-section .article,
  .articles-section .article.big {
    width: calc(50% - 6px);
  }

  .articles-section .article .article-img,
  .articles-section .article.big .article-img, .articles-section.related .article .article-img {
    height: calc((48vw - 6px) / 1.78);
  }

  /* Players: single column */
  .players-section {
    grid-template-columns: 1fr;
  }

  .players-section .player-card:first-child {
    grid-column: auto;
  }

  /* Products */
  .products-section {
    flex-wrap: wrap;
    gap: 12px;
  }

  .products-section .product {
    width: calc(50% - 6px);
  }

  .products-section .product .img-box,
  .products-section .product .info {
    height: auto;
  }

  /* Partners */
  .partners-section .partner-logo {
    width: calc((96vw - 36px) / 3);
  }

  .partners-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  footer .footer-main {
    flex-direction: column;
    padding: 40px 2vw 30px;
    row-gap: 24px;
  }

  footer .footer-main .container-1.menu {
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 12px;
  }

  footer .footer-main .container-1,
  footer .footer-main .container-3 {
    width: 100%;
  }

  footer .footer-main .info {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 12px;
    margin-bottom: 20px;
  }

  footer .footer-main .subscribe {
    flex-direction: column;
    row-gap: 12px;
    margin-bottom: 20px;
  }

  footer .footer-main .subscribe p {
    width: 100%;
  }

  footer .footer-main .subscribe form,
  .popup .subscribe form {
    width: 100%;
  }

  footer .footer-main .extra-btn {
    flex-direction: column;
    row-gap: 8px;
  }

  footer .footer-main .extra-btn a {
    width: 100%;
  }

  footer .socket {
    flex-direction: column;
    align-items: center;
    text-align: center;
    row-gap: 8px;
    padding: 12px 0 20px;
  }

  /* Popup */
  .league-popup .popup-container {
    width: 92vw;
    padding: 0 4vw;
  }

  .league-popup .popup-container .leagues-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
  }

  .league-popup .popup-container .leagues-list .league {
    min-width: auto;
  }

  .popup.active {
    top: 10%;
    left: 5%;
    width: 90%;
    height: auto;
    min-height: 200px;
  }

  .popup .popup-container {
    padding: 30px 24px;
    height: auto;
  }

  /* Match */
  .match-info .match-score {
    width: 96vw;
    padding: 0 4vw;
  }

  .match-info .match-score .score > p {
    font-size: 72px;
  }

  .match-info .match-score .team img {
    height: 60px;
  }

  .match-info .match-progress-bar {
    flex-direction: column;
    row-gap: 12px;
  }

  .match-tabs,
  .statistic-tabs,
  .player-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .match-tabs .tab-item,
  .statistic-tabs .tab-item,
  .player-tabs .tab-item {
    padding: 10px 12px;
    font-size: 11px;
  }

  /* Section headers */
  .section-header.flex {
    flex-wrap: nowrap;
    row-gap: 8px;
  }

  .section-header .btn-box {
    /*width: 100%;*/
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Sidebar */
  .sidebar-table {
    margin-bottom: 30px;
  }

  /* Col-3 grids → single column */
  .col-3 {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery .gallery-container {
    grid-template-columns: 1fr 1fr;
  }

  .gallery .gallery-container .gallery-item:first-child {
    grid-column: 1 / 3;
  }

  /* Shop */
  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Product detail */
  .product .product-info {
    flex-direction: column;
    row-gap: 24px;
    column-gap: 0;
  }

  .product .product-info > div,
  .product .product-info .product-gallery {
    width: 100%;
  }

  /* Cart */
  .product-table .cart-table-title > p:first-child {
    width: 44%;
  }

  div.cart-total {
    padding: 20px;
	  max-width: 300px;
        margin: 0 0 0 auto;
  }

  /* Checkout */
  .checkout form .form-section {
    width: 100%;
  }

  .checkout form .total .checkout {
    min-width: unset;
    width: 100%;
  }

  /* Player page */
  /*.player-block .player-info {
    flex-direction: column;
  }*/

  /*.player-block .player-info .info-box {
    width: 100%;
    border-radius: 0 0 10px 10px;
    border-width: 0 1px 1px 1px;
  }*/

  /* Overview statistic */
  .overview-statictic .statistic .boxes {
    height: auto;
  }

  .overview-statictic .statistic .boxes > div {
    flex-direction: column;
    row-gap: 16px;
    align-items: center;
  }

  .overview-statictic .statistic .boxes > div .team {
    min-width: auto;
  }

  /* Contact */
  .contact-box > div {
    padding: 16px;
  }

  /* Section margins */
  div.margin-m {
    padding: 32px 0;
  }

  div.bg-gray {
    padding: 32px 2vw;
  }
	
	.players-section .player-card:first-child{
		height: auto;
	}
	
	.players-section .player-card:first-child .card-img{
		width: 82px;
        height: 82px;
        min-width: 82px;
	}
	
	.players-section .player-card:first-child .player-info{
		padding: 0;
	}
	
	.players-section .player-card:first-child .player-info .number{
		font-size: var(--size-h2);
	}
	
	.players-section .player-card .player-info .name{
		font-size: var(--size-h1);
	}
	
	.players-section .player-card:first-child .player-points .team{
		flex-direction: column;
	}
	
	.players-section .player-card:first-child .player-points .team img{
		height: 32px;
		margin-bottom: 4px;
	}
	
	.players-section .player-card:first-child .player-points{
		display: flex;
    padding: 10px 0;
    height: 100%;
    margin-left: auto;
    column-gap: 24px;
	}
	
	.players-section .player-card:first-child .player-points .points span.icon{
		display: inline;
	}
	
	.articles-section .article.preview .article-title{
		font-size: var(--size-h5);
		font-weight: 700;
		text-transform: none;
		margin: 8px 0;
	}
	
	.article.preview .article-meta, .article.preview .desc, .article.preview .text-container a.btn{
		display: none;
	}
	
	.article.preview .text-container{
		padding-bottom: 0;
	}
	
	.articles-section.foto .article.big, .articles-section.related .article{
		width: calc(50% - 6px);
	}
	
	.articles-section .article .article-title, .last-article .slide .article-title{
		text-transform: none;
	}
	
	.gallery-lightbox{
		padding: 5%;
	}
	
	.gallery-lightbox .lightbox-img{
		max-width: calc(90vw - 84px);
	}
	
	.calendar-box .calendar-body > div.game .game{
		flex-wrap: wrap;
	}
	
	.calendar-box .calendar-body > div.game .game div{
		width: 100%;
		order: 4;
	}
	
	.calendar-box .calendar-body > div.game .game .team1{
		order: 1;
		width: calc(50% - 5px);
		display: flex;
    flex-direction: column;
    align-items: center;
	}
	
	.calendar-box .calendar-body > div.game .game .team2{
		order: 2;
		width: calc(50% - 5px);
		display: flex;
    flex-direction: column;
    align-items: center;
	}
	
	.calendar-box .calendar-body > div.game .game .score{
		order: 3;
	}
	
	.teams-cards .team-card .team-info{
		flex-wrap: wrap;
		row-gap: 10px;
	}
}

/* ─── 480px ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --size-h1: 22px;
    --size-h2: 18px;
    --size-h3: 16px;
    --size-text-m: 13px;
    --product-card: 96vw;
  }

  /* Container padding */
  div.container {
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

  div.bg-gray {
    padding: 24px 12px;
  }

  div.margin-m {
    padding: 24px 12px;
  }

  /* Articles: all single column */
  .articles-section .article,
  .articles-section .article.big {
    width: 100%;
  }

  .articles-section .article .article-img,
  .articles-section .article.big .article-img {
    height: calc((100vw - 24px) / 1.78);
  }

  /* Players: single column compact */
  .players-section {
    grid-template-columns: 1fr;
    gap: 8px;
	
  }

  .players-section .player-card .player-points .points {
    width: 100px;
    font-size: var(--size-h3);
  }

  /* Products: single column */
  .products-section {
    flex-direction: column;
  }

  .products-section .product {
    width: 100%;
  }

  .products-section .product .img-box {
    height: calc(100vw - 24px);
  }

  /* Partners: 2 columns */
  .partners-section {
    flex-wrap: wrap;
    gap: 8px;
  }

  .partners-section .partner-logo {
    width: calc(50% - 4px);
  }

  .partners-cards {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Calendar slider */
  .calendar-slider .slide-game {
    width: calc((100vw - 8px) / 2);
    /* min-width: 150px;*/
  }

  /* Match */
  .match-info {
    padding: 40px 12px;
  }

  .match-info .match-score {
    flex-direction: column;
    align-items: center;
    row-gap: 16px;
    width: 100%;
  }

  .match-info .match-score .score > p {
    font-size: 56px;
    text-align: center;
  }

  .match-info .match-score .score .periods {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  /* Gallery: 1 column */
  .gallery .gallery-container {
    grid-template-columns: 1fr;
  }

  .gallery .gallery-container .gallery-item:first-child {
    grid-column: auto;
  }

  /* League popup */
  .league-popup .popup-container .leagues-list {
    grid-template-columns: 1fr;
  }

  /* Shop grid */
  .products {
    grid-template-columns: 1fr;
  }

  /* Sidebar table scrollable */
  .sidebar-table .table-content {
    overflow-x: auto;
  }

  .sidebar-table .table-content table {
    min-width: 320px;
  }

  /* Banner slider height */
  .slider.future-games img {
    min-height: 160px;
    object-fit: cover;
  }

  /* Tabs: wrap */
  .match-tabs,
  .statistic-tabs,
  .player-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .match-tabs .tab-item,
  .statistic-tabs .tab-item,
  .player-tabs .tab-item {
    white-space: nowrap;
    padding: 8px 10px;
  }

  /* Statistic overview */
  .overview-statictic .statistic .tabs,
  .progress .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  /* Footer minimal */
  footer .footer-main .container-1.menu {
    flex-direction: column;
    row-gap: 20px;
  }

  footer .footer-main .container-1.menu ul {
    width: 100%;
  }

  /* Article preview */
  .article.preview .article-img {
    height: calc((100vw - 24px) / 1.78);
  }
	
	.articles-section.foto .article.big, .articles-section.related .article{
		width: 100%;
	}

  /* Product detail */
  .product .product-info .product-to-cart {
    width: 100%;
    text-align: left;
  }

  .product .product-info .product-to-cart #add-to-cart {
    min-width: 100%;
  }

  /* Cart table: scroll */
  .product-table {
    overflow-x: auto;
  }

  .product-table .cart-table-title,
  .product-table .product-item {
    min-width: 520px;
  }

  /* Checkout sections stack */
  .checkout form > div > div {
    flex-direction: column;
    column-gap: 0;
    row-gap: 0;
  }

  /* Player block info */
  .player-block .player-info .info-box > div {
    flex-wrap: wrap;
    gap: 8px;
  }
	
	.players-section .player-card .card-img img, .players-section .player-card:first-child .card-img img{
		width: 70px;
        height: 70px;
	}
	
	.players-section .player-card:first-child .card-img, .players-section .player-card .card-img{
		width: 70px;
        height: 70px;
        min-width: 70px;
	}
	
	.players-section .player-card:first-child .player-info .name, .players-section .player-card .player-info .name{
		font-size: var(--size-h3);
	}
	
	.players-section .player-card:first-child .player-info .position, .players-section .player-card .player-info .position{
		font-size: var(--size-caption-m);
	}
	
	.players-section .player-card:first-child .player-points .points span.icon, .players-section .player-card .player-points .points span.icon {
		display: none;
	}
	
	.players-section .player-card .player-info .number{
		padding: 9px;
		font-size: var(--size-h3);
		min-width: 38px;
	}
	
	.calendar-box > .calendar-header{
		display: none;
	}
	
	.calendar-box > .calendar-body {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.product-table .cart-table-title >*, .product-table .product-item>*{
		width: 100px;
	}
	
	.product-table .product-item .product-information{
		flex-direction: column;
		align-items: flex-start;
		width: 170px;
	}
	
	.product-table .cart-table-title > p:first-child{
		width: 170px;
	}
	
	
}

/* ─── 360px ─────────────────────────────────────────────── */
@media (max-width: 360px) {
  :root {
    --size-h1: 20px;
    --size-h2: 16px;
    --size-text-m: 12px;
  }

  div.container {
    padding: 0 8px;
  }

  header .menu-header .logo {
    width: 56px;
  }

  .players-section .player-card .player-points .points {
    width: 80px;
    font-size: var(--size-h4);
  }

  .partners-section .partner-logo {
    width: 100%;
  }

  .match-info .match-score .score > p {
    font-size: 44px;
  }
}

/* ─── Utility: mobile burger button (hidden on desktop) ─── */
.mobile-menu-btn {
  display: none;
}

/* ─── Ensure images are responsive everywhere ────────────── */
img {
  max-width: 100%;
  height: auto;
}

/* ─── Horizontal scroll prevention ──────────────────────── */
body {
  overflow-x: hidden;
}

/* ─── Viewport meta helper (applied via JS if needed) ────── */
@media (max-width: 768px) {
  /* Make tables scrollable rather than breaking layout */
  /*.match-boxes .tab-box,
  .statistic-boxes .tab-box,
  .player-boxes .tab-box {
    overflow-x: auto;
  }*/

  .match-boxes .tab-box table,
  .statistic-boxes .tab-box table,
  .player-boxes .tab-box table {
    min-width: 480px;
  }

  /* Overview players table */
  .overview-players .tables {
    overflow-x: auto;
  }

  .overview-players .tables table {
    min-width: 600px;
  }

  /* Statistic tables */
  .statictic .tables {
    overflow-x: auto;
  }
}

/* ─── Mobile burger button visual styles ─────────────────── */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 100;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-100);
  position: relative;
  transition: background 0.3s;
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-100);
  position: absolute;
  left: 0;
  transition: transform 0.3s, top 0.3s;
}

.mobile-menu-btn span::before { top: -8px; }
.mobile-menu-btn span::after  { top:  8px; }

header .mob-menu {
    display: none;
    position: fixed;
  }

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile nav overlay */
  header .mob-menu.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(82, 22, 41, 0.98);
    z-index: 9000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
  }

  header .mob-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
  }

  header nav ul li {
    height: auto;
    padding: 14px 32px;
    width: 100%;
    text-align: center;
  }

  header nav ul li a {
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  /* Both left and right navs merged visually */
  header .menu-header .left-header,
  header .menu-header .right-header {
    width: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  /* Hide the separate left/right nav wrappers on mobile;
     the .open class on nav controls visibility */
  header .menu-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 96vw;
    column-gap: 0;
  }

  /* Logo stays in center */
  header .menu-header .center-header {
    position: static;
    width: auto;
    min-width: auto;
  }
}

/* ─── Mobile burger icon styling ─────────────────────────── */
.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--neutral-100);
  transition: 0.3s;
}

/* Mobile right nav items inside overlay */
@media (max-width: 768px) {
  header .menu-header nav .mobile-right-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    list-style: none;
  }

  header .menu-header nav .mobile-right-nav li {
    height: auto;
    padding: 12px 24px;
  }

  header .menu-header nav .mobile-right-nav li a {
    font-family: var(--header-font);
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--neutral-100);
    letter-spacing: 0.08em;
  }

  /* Hide right-header nav on mobile (shown in overlay) */
  header .menu-header .right-header {
    display: none;
  }
}

/* ─── Mobile nav: merge left + right nav on small screens ── */
@media (max-width: 768px) {
  /* Both navs become full-screen overlays stacked */
  header .menu-header .left-header nav.open,
  header .menu-header .right-header nav.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(82, 22, 41, 0.98);
    z-index: 9000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Right nav open: sits on top of left nav visually – just show below */
  header .menu-header .right-header nav.open {
    background: transparent;
    z-index: 9001;
    justify-content: flex-end;
    padding-bottom: 80px;
  }

  /* Combine: show both navs as one overlay when left is open */
  header .menu-header .left-header nav.open {
    flex-direction: column;
    justify-content: center;
    row-gap: 0;
    padding-top: 60px;
    padding-bottom: 40px;
    overflow-y: auto;
  }

  header .menu-header .left-header nav.open ul,
  header .menu-header .right-header nav.open ul {
    flex-direction: column;
    align-items: center;
    row-gap: 4px;
    padding: 0;
    margin: 0;
  }

  header .menu-header nav.open ul li {
    height: auto;
    padding: 14px 24px;
    background: none;
  }

  header .menu-header nav.open ul li:hover {
    box-shadow: none;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
  }

  header .menu-header nav.open ul li a {
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  /* Burger icon styling */
  .mobile-menu-btn {
    position: relative;
  }

  .mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neutral-100);
    position: relative;
    transition: 0.3s;
  }

  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neutral-100);
    position: absolute;
    left: 0;
    transition: 0.3s;
  }

  .mobile-menu-btn span::before { top: -7px; }
  .mobile-menu-btn span::after  { top:  7px; }

  /* Mobile close button */
  .mobile-close-btn {
    z-index: 9999;
  }

  /* Hide left/right header flex layout on mobile header */
  header .menu-header .left-header,
  header .menu-header .right-header {
    display: flex;
    align-items: center;
  }
}

/* ─── Mobile burger button visual ───────────────────────── */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    flex-shrink: 0;
    order: -1;
  }

  .mobile-menu-btn span,
  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neutral-100);
    border-radius: 2px;
    position: relative;
    transition: 0.3s;
  }

  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .mobile-menu-btn span::before { top: -7px; }
  .mobile-menu-btn span::after  { top:  7px; }

  /* Logo centered in mobile header */
  header .menu-header .container {
    position: relative;
  }

  header .menu-header .center-header {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Right header icons on mobile */
  header .menu-header .right-header {
    margin-left: auto;
  }

  /* Full-screen nav overlay */
  header .menu-header nav.open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(82, 22, 41, 0.98);
    z-index: 9500;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
  }

  /* Both left and right navs merge in mobile overlay */
  header .menu-header .left-header,
  header .menu-header .right-header {
    width: 100%;
  }

  header .menu-header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  header .menu-header nav ul li {
    height: auto;
    padding: 14px 32px;
    text-align: center;
    background: none !important;
    box-shadow: none !important;
  }

  header .menu-header nav ul li a {
    font-size: 18px;
    letter-spacing: 0.1em;
    font-weight: 400;
  }

  /* Article preview stacked */
  .article.preview {
    flex-direction: column;
  }
  .article.preview > div {
    width: 100%;
  }
}

/* ─── Mobile burger button styling ──────────────────────── */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
    order: 3;
  }

  .mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neutral-100);
    position: relative;
    transition: 0.3s;
  }

  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neutral-100);
    position: absolute;
    left: 0;
    transition: 0.3s;
  }

  .mobile-menu-btn span::before { top: -7px; }
  .mobile-menu-btn span::after  { top:  7px; }

  /* Mobile nav overlay */
  header .menu-header nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(82, 22, 41, 0.98);
    z-index: 9000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  header .menu-header nav.open {
    display: flex;
  }

  header .menu-header nav ul {
    flex-direction: column;
    align-items: center;
    row-gap: 4px;
  }

  header nav ul li {
    height: auto;
    padding: 14px 32px;
  }

  header nav ul li a {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  /* Reorder header items: logo center, burger right */
  header .menu-header .container {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  header .menu-header .left-header,
  header .menu-header .right-header {
    display: none;
  }

  header .menu-header .center-header {
    display: flex;
    justify-content: center;
    flex: 1;
  }
}

/* ─── Mobile burger button visual styles ────────────────── */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    flex-shrink: 0;
    order: 3;
  }

  .mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neutral-100);
    position: relative;
    transition: 0.3s;
  }

  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neutral-100);
    position: absolute;
    left: 0;
    transition: 0.3s;
  }

  .mobile-menu-btn span::before { top: -7px; }
  .mobile-menu-btn span::after  { top:  7px; }

  /* Nav open state covers full screen */
  header .menu-header nav.open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(82, 22, 41, 0.98);
    z-index: 9000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
  }

  header .menu-header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    text-align: center;
  }

  header nav ul li {
    height: auto;
    padding: 14px 24px;
    width: 100%;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  header nav ul li a {
    font-size: 18px;
    letter-spacing: 0.1em;
    color: var(--neutral-100);
  }

  header nav ul li:hover {
    box-shadow: none;
    background: rgba(255,255,255,0.07);
  }

  /* Right nav: show merged under left in the mobile overlay */
  header .menu-header .right-header nav.open,
  header .menu-header .left-header nav.open {
    position: static;
    background: none;
    height: auto;
    width: 100%;
    z-index: auto;
  }
}


