/* ============================================
   Putrakop Liga - Responsive Stylesheet (Sidebar Layout)
   Breakpoints: 1200, 768, 480, 390, 375
   Layout: 224px fixed sidebar + sticky topbar
   ============================================ */

/* ============================================
   Table of Contents
   --------------------------------------------
   1. Desktop (>= 1200px) — DEFAULT
   2. Tablet (max-width: 1199px)
   3. Mobile Large (max-width: 480px)
   4. Mobile Medium (max-width: 390px)
   5. Mobile Small (max-width: 375px)
   6. Touch Device Optimizations
   7. Print Styles
   ============================================ */


/* ============================================
   1. Desktop (>= 1200px) — DEFAULT
   --------------------------------------------
   Sidebar visible at 224px, content fills
   remaining space. Grid works normally.
   ============================================ */

.public-sidebar {
  transform: none;
  transition: transform 0.3s ease;
}

.public-main {
  margin-left: 224px;
}

.public-sidebar-toggle {
  display: none;
}

.public-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.public-topbar-brand-icon {
  display: inline-flex;
}

.public-topbar-brand-text .ptb-subtitle {
  display: block;
}


/* ============================================
   2. Tablet (max-width: 1199px)
   --------------------------------------------
   Sidebar hidden by default, slides in from
   left on toggle. Content goes full width.
   ============================================ */
@media (max-width: 1199px) {

  /* --- Sidebar --- */
  .public-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .public-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-strong, 0 4px 20px rgba(0, 0, 0, 0.12));
  }

  /* --- Overlay --- */
  .public-sidebar-overlay.active {
    display: block;
  }

  /* --- Main area --- */
  .public-main {
    margin-left: 0;
  }

  /* --- Hamburger toggle --- */
  .public-sidebar-toggle {
    display: flex;
  }

  /* --- Topbar --- */
  .public-topbar {
    padding: 0 16px;
  }

  .public-topbar-brand-text .ptb-subtitle {
    display: none;
  }

  /* --- Content padding --- */
  .public-content {
    padding: 20px;
  }

  /* --- Homepage grid: 9+3 becomes stacked --- */
  .home-main {
    grid-column: span 12;
  }

  .home-sidebar {
    grid-column: span 12;
  }

  /* --- Generic 12-col grid collapse --- */
  .grid-12 {
    grid-template-columns: repeat(12, 1fr);
  }

  .col-span-9 {
    grid-column: span 9;
  }

  .col-span-3 {
    grid-column: span 3;
  }

  /* --- Standings grid: 2 columns if space allows --- */
  .standings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* --- Stat grid --- */
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stat-card {
    padding: 18px 16px;
  }

  .stat-card-number {
    font-size: 24px;
  }

  /* --- Match grids --- */
  .match-grid,
  .upcoming-grid,
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  /* --- Card grids --- */
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* --- Hero banner --- */
  .hero-banner {
    padding: 32px;
    min-height: 160px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-features {
    gap: 16px;
  }

  /* --- Live score card (sidebar widget) --- */
  .live-score-display {
    font-size: 32px;
  }

  .live-team-logo {
    width: 44px;
    height: 44px;
  }

  /* --- Bracket: horizontal scroll --- */
  .bracket-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bracket-container {
    gap: 24px;
  }

  .bracket-round {
    min-width: 220px;
  }

  .bracket-match {
    min-width: 190px;
    padding: 14px;
  }

  /* --- Teams grid --- */
  .teams-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }

  /* --- Standings table --- */
  .standings-table th,
  .standings-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .standings-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* --- Filter bar --- */
  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    padding: 7px 16px;
    font-size: 13px;
  }

  /* --- Footer banner --- */
  .footer-banner {
    padding: 40px 20px;
  }

  .footer-banner-text h3 {
    font-size: 17px;
  }

  .footer-copyright-content {
    gap: 16px;
  }

  /* --- Container --- */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* --- Section & page titles --- */
  .section-title {
    font-size: 15px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-description {
    font-size: 0.9rem;
  }

  /* --- Live match card expanded --- */
  .live-card-body {
    padding: 16px;
  }

  /* --- Champion section --- */
  .champion-section {
    padding: 28px;
  }

  .champion-name {
    font-size: 22px;
  }

  .trophy-icon {
    font-size: 56px;
  }
}


/* ============================================
   3. Mobile Large (max-width: 480px)
   --------------------------------------------
   Sidebar hidden, slide from left on toggle.
   Topbar: brand title only, icon on small.
   Content padding: 16px. Single column grid.
   All sections stack vertically.
   ============================================ */
@media (max-width: 480px) {

  /* --- Sidebar --- */
  .public-sidebar {
    width: 280px;
    transform: translateX(-100%);
  }

  .public-sidebar.open {
    transform: translateX(0);
  }

  /* --- Topbar --- */
  .public-topbar {
    height: 64px;
    padding: 0 12px;
  }

  .public-topbar-brand-icon {
    display: none;
  }

  .public-topbar-brand-text .ptb-title {
    font-size: 14px;
  }

  .public-topbar-brand-text .ptb-subtitle {
    display: none;
  }

  .public-topbar-admin-btn span {
    display: none;
  }

  .public-topbar-admin-btn {
    padding: 8px 12px;
  }

  /* --- Content --- */
  .public-content {
    padding: 16px;
  }

  /* --- Homepage grid: single column --- */
  .home-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-main,
  .home-sidebar {
    grid-column: span 1;
  }

  /* --- Grid 12 collapse --- */
  .grid-12 {
    grid-template-columns: 1fr;
  }

  .col-span-1,
  .col-span-2,
  .col-span-3,
  .col-span-4,
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8,
  .col-span-9,
  .col-span-10,
  .col-span-11,
  .col-span-12 {
    grid-column: span 1;
  }

  /* --- Hero banner --- */
  .hero-banner {
    padding: 24px 20px;
    min-height: 140px;
  }

  .hero-title {
    font-size: 22px;
    letter-spacing: 0.5px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-features {
    flex-direction: column;
    gap: 8px;
  }

  .hero-feature {
    font-size: 12px;
  }

  /* --- Live match card (homepage sidebar widget) --- */
  .live-match-row {
    flex-direction: column;
    gap: 12px;
  }

  .live-team {
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }

  .live-team-logo {
    width: 48px;
    height: 48px;
  }

  .live-team-name {
    font-size: 13px;
  }

  .live-score-display {
    font-size: 28px;
    gap: 10px;
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }

  .live-minute {
    font-size: 11px;
  }

  /* --- Match cards: full width --- */
  .match-grid,
  .upcoming-grid,
  .results-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .match-card-body {
    padding: 12px;
    gap: 8px;
  }

  .match-card-header {
    padding: 8px 12px;
    font-size: 11px;
  }

  .match-team .team-logo-sm {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .match-team .team-name {
    font-size: 12px;
  }

  .match-score .score {
    font-size: 16px;
  }

  .match-score .score-sep {
    font-size: 14px;
  }

  /* --- Standings: single column --- */
  .standings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .standings-table th,
  .standings-table td {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .standings-table th:first-child,
  .standings-table td:first-child {
    width: 32px;
  }

  .team-logo-xs,
  .team-initials-xs {
    width: 22px;
    height: 22px;
  }

  .team-initials-xs {
    font-size: 8px;
  }

  /* --- Stat grid: single column --- */
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px 12px;
  }

  .stat-card-icon {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .stat-card-number {
    font-size: 22px;
  }

  .stat-card-label {
    font-size: 11px;
  }

  /* --- Teams grid --- */
  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .team-card {
    padding: 16px;
  }

  .team-card-logo,
  .team-card-initials {
    width: 56px;
    height: 56px;
  }

  .team-card-initials {
    font-size: 20px;
  }

  .team-card-name {
    font-size: 14px;
  }

  .team-card-code {
    font-size: 11px;
  }

  .team-card-stats {
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .team-card-stat .stat-val {
    font-size: 1rem;
  }

  .team-card-stat .stat-lbl {
    font-size: 0.65rem;
  }

  /* --- Bracket: horizontal scroll with touch --- */
  .bracket-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }

  .bracket-container {
    gap: 20px;
    padding-bottom: 4px;
  }

  .bracket-round {
    min-width: 220px;
  }

  .bracket-round-title {
    font-size: 12px;
  }

  .bracket-match {
    min-width: 190px;
    padding: 12px;
  }

  .bracket-team-logo {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .bracket-team-name {
    font-size: 12px;
  }

  .bracket-score {
    font-size: 13px;
  }

  .third-place-section {
    min-width: 200px;
  }

  /* --- Champion section --- */
  .champion-section {
    padding: 24px 16px;
  }

  .trophy-icon {
    font-size: 48px;
    margin-bottom: 12px;
  }

  .champion-logo,
  .champion-initials {
    width: 64px;
    height: 64px;
  }

  .champion-initials {
    font-size: 22px;
  }

  .champion-name {
    font-size: 20px;
  }

  /* --- Filter bar: horizontal scroll --- */
  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 4px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 12px;
    white-space: nowrap;
    min-height: 44px;
  }

  .filter-date {
    min-height: 44px;
  }

  /* --- Card grids: single column --- */
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* --- Buttons: 44px touch target --- */
  .btn {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 13px;
  }

  .btn-sm {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .btn-lg {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 15px;
  }

  .btn-full {
    width: 100%;
  }

  /* --- Section & page titles --- */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-title {
    font-size: 14px;
  }

  .section-link {
    font-size: 12px;
  }

  .page-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .page-description {
    font-size: 0.85rem;
  }

  /* --- Container --- */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .container-narrow {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* --- Live card (info widget) --- */
  .live-card-body {
    padding: 14px 12px;
  }

  .live-card-header {
    padding: 10px 12px;
  }

  .live-card-footer {
    padding: 10px 12px;
  }

  .live-card-btn {
    min-height: 40px;
    font-size: 12px;
  }

  /* --- Info card items --- */
  .info-match-item {
    padding: 10px 12px;
  }

  .info-match-teams {
    font-size: 12px;
  }

  .info-match-score {
    font-size: 13px;
  }

  .info-card-btn {
    min-height: 40px;
    font-size: 12px;
  }

  /* --- Match cards list --- */
  .matches-list {
    gap: 10px;
  }

  /* --- Badge sizing --- */
  .badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* --- Standings cards (mobile alternative) --- */
  .standings-card {
    padding: 12px 14px;
  }

  .standings-card-rank {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .standings-card-team-name {
    font-size: 13px;
  }

  .standings-card-points {
    font-size: 16px;
  }

  /* --- Standings legend --- */
  .standings-legend {
    padding: 12px;
    font-size: 12px;
  }

  /* --- Footer banner: stacked --- */
  .footer-banner {
    padding: 32px 16px;
  }

  .footer-banner-text h3 {
    font-size: 15px;
    letter-spacing: 1px;
  }

  .footer-banner-text p {
    font-size: 13px;
  }

  /* --- Footer copyright: stacked --- */
  .footer-copyright {
    padding: 16px;
  }

  .footer-copyright-content {
    flex-direction: column;
    gap: 8px;
  }

  /* --- Schedule --- */
  .schedule-date-header {
    font-size: 14px;
    padding: 10px 0;
  }

  /* --- Empty state / messages --- */
  .empty-state {
    padding: 32px 16px;
  }

  .empty-message {
    padding: 32px 16px;
  }

  /* --- Chart --- */
  .chart-container {
    padding: 16px;
  }

  /* --- Table wrappers --- */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* --- Rank badge sizing --- */
  .rank-badge {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
}


/* ============================================
   4. Mobile Medium (max-width: 390px)
   --------------------------------------------
   Further compact padding. Score display
   slightly smaller. Filter buttons smaller.
   ============================================ */
@media (max-width: 390px) {

  /* --- Content --- */
  .public-content {
    padding: 14px;
  }

  /* --- Topbar --- */
  .public-topbar {
    height: 58px;
    padding: 0 10px;
  }

  .public-topbar-brand-text .ptb-title {
    font-size: 13px;
  }

  .public-sidebar-toggle {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  /* --- Hero --- */
  .hero-banner {
    padding: 20px 16px;
    min-height: 120px;
    border-radius: var(--radius-md, 10px);
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  /* --- Live match card --- */
  .live-team-logo {
    width: 42px;
    height: 42px;
  }

  .live-team-name {
    font-size: 12px;
  }

  .live-score-display {
    font-size: 24px;
    gap: 8px;
  }

  .live-minute {
    font-size: 10px;
  }

  /* --- Match cards --- */
  .match-card-body {
    padding: 10px;
  }

  .match-team .team-logo-sm {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .match-team .team-name {
    font-size: 11px;
  }

  .match-score .score {
    font-size: 15px;
  }

  /* --- Stat grid --- */
  .stat-card {
    padding: 12px 10px;
  }

  .stat-card-number {
    font-size: 20px;
  }

  .stat-card-label {
    font-size: 10px;
  }

  .stat-card-icon {
    font-size: 18px;
    margin-bottom: 4px;
  }

  /* --- Teams grid --- */
  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .team-card {
    padding: 12px;
  }

  .team-card-logo,
  .team-card-initials {
    width: 48px;
    height: 48px;
  }

  .team-card-initials {
    font-size: 18px;
  }

  .team-card-name {
    font-size: 13px;
  }

  .team-card-code {
    font-size: 10px;
  }

  .team-card-group {
    font-size: 10px;
  }

  .team-card-stats {
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .team-card-stat .stat-val {
    font-size: 0.9rem;
  }

  .team-card-stat .stat-lbl {
    font-size: 0.6rem;
  }

  /* --- Standings --- */
  .standings-table th,
  .standings-table td {
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .standings-table th:first-child,
  .standings-table td:first-child {
    width: 28px;
  }

  /* --- Bracket --- */
  .bracket-round {
    min-width: 200px;
  }

  .bracket-match {
    min-width: 175px;
    padding: 10px;
  }

  .bracket-team-name {
    font-size: 11px;
  }

  .bracket-team-logo {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

  .bracket-round-title {
    font-size: 11px;
  }

  /* --- Filter buttons: smaller padding --- */
  .filter-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* --- Section & page titles --- */
  .section-title {
    font-size: 13px;
  }

  .page-title {
    font-size: 18px;
  }

  .page-description {
    font-size: 0.8rem;
  }

  /* --- Container --- */
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* --- Champion section --- */
  .trophy-icon {
    font-size: 42px;
  }

  .champion-logo,
  .champion-initials {
    width: 56px;
    height: 56px;
  }

  .champion-initials {
    font-size: 20px;
  }

  .champion-name {
    font-size: 18px;
  }

  .champion-section {
    padding: 20px 14px;
  }

  /* --- Footer --- */
  .footer-banner {
    padding: 28px 14px;
  }

  .footer-banner-text h3 {
    font-size: 14px;
    letter-spacing: 1px;
  }

  /* --- Standings cards --- */
  .standings-card-points {
    font-size: 15px;
  }

  .standings-card-team-name {
    font-size: 12px;
  }

  /* --- Live card (widget) --- */
  .live-card-header {
    padding: 8px 10px;
  }

  .live-card-title {
    font-size: 12px;
  }

  .live-card-body {
    padding: 12px 10px;
  }

  .live-card-footer {
    padding: 8px 10px;
  }

  /* --- Info match items --- */
  .info-match-teams {
    font-size: 11px;
  }

  .info-match-meta {
    font-size: 10px;
  }

  /* --- Form inputs: prevent iOS zoom --- */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
  }

  .form-label {
    font-size: 0.8rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  /* --- Table action buttons --- */
  .table-action-btn {
    min-width: 36px;
    min-height: 36px;
  }

  /* --- Pagination --- */
  .pagination-btn {
    min-width: 36px;
    min-height: 36px;
    font-size: 12px;
  }
}


/* ============================================
   5. Mobile Small (max-width: 375px)
   --------------------------------------------
   Minimum supported width. Everything still
   readable and functional. No horizontal
   overflow. Min font size: 13px body text.
   ============================================ */
@media (max-width: 375px) {

  html {
    font-size: 15px;
  }

  /* --- Sidebar: slightly narrower --- */
  .public-sidebar {
    width: 260px;
  }

  /* --- Content --- */
  .public-content {
    padding: 12px;
  }

  /* --- Topbar --- */
  .public-topbar {
    height: 56px;
    padding: 0 8px;
  }

  .public-topbar-brand-text .ptb-title {
    font-size: 12px;
    letter-spacing: 0.3px;
  }

  .public-topbar-admin-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .public-topbar-admin-btn i {
    font-size: 16px;
  }

  /* --- Hero --- */
  .hero-banner {
    padding: 18px 14px;
    min-height: 110px;
  }

  .hero-title {
    font-size: 18px;
    letter-spacing: 0.3px;
  }

  .hero-subtitle {
    font-size: 11px;
    margin-top: 6px;
  }

  .hero-feature {
    font-size: 11px;
  }

  /* --- Live match card --- */
  .live-team-logo {
    width: 38px;
    height: 38px;
  }

  .live-team-name {
    font-size: 11px;
  }

  .live-team-code {
    font-size: 10px;
  }

  .live-score-display {
    font-size: 22px;
    gap: 6px;
  }

  .live-score-divider {
    font-size: 18px;
  }

  .live-minute {
    font-size: 10px;
    margin-top: 6px;
  }

  /* --- Match cards --- */
  .match-team .team-logo-sm {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }

  .match-team .team-name {
    font-size: 11px;
  }

  .match-score .score {
    font-size: 14px;
  }

  .match-score .score-sep {
    font-size: 12px;
  }

  .match-card-header {
    padding: 6px 10px;
  }

  .match-card-body {
    padding: 10px;
  }

  /* --- Stat grid --- */
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 10px 8px;
  }

  .stat-card-number {
    font-size: 18px;
  }

  .stat-card-label {
    font-size: 9px;
  }

  .stat-card-icon {
    font-size: 16px;
    margin-bottom: 4px;
  }

  /* --- Teams grid --- */
  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .team-card {
    padding: 10px;
  }

  .team-card-logo,
  .team-card-initials {
    width: 42px;
    height: 42px;
  }

  .team-card-initials {
    font-size: 16px;
  }

  .team-card-name {
    font-size: 12px;
  }

  .team-card-code {
    font-size: 9px;
  }

  .team-card-stats {
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .team-card-stat .stat-val {
    font-size: 0.85rem;
  }

  .team-card-stat .stat-lbl {
    font-size: 0.55rem;
  }

  /* --- Standings --- */
  .standings-table th,
  .standings-table td {
    padding: 5px 6px;
    font-size: 0.65rem;
  }

  .standings-table th:first-child,
  .standings-table td:first-child {
    width: 24px;
  }

  .rank-badge {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .team-logo-xs,
  .team-initials-xs {
    width: 20px;
    height: 20px;
  }

  .team-initials-xs {
    font-size: 7px;
  }

  /* --- Bracket --- */
  .bracket-round {
    min-width: 185px;
  }

  .bracket-match {
    min-width: 165px;
    padding: 8px;
  }

  .bracket-team-name {
    font-size: 10px;
  }

  .bracket-team-logo {
    width: 22px;
    height: 22px;
    font-size: 8px;
  }

  .bracket-score {
    font-size: 12px;
  }

  .bracket-round-title {
    font-size: 10px;
  }

  .bracket-vs {
    font-size: 10px;
    padding: 2px 0;
  }

  .bracket-winner-badge {
    font-size: 10px;
    padding: 3px 6px;
  }

  .third-place-section {
    min-width: 185px;
  }

  /* --- Champion section --- */
  .champion-section {
    padding: 16px 12px;
  }

  .trophy-icon {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .champion-logo,
  .champion-initials {
    width: 48px;
    height: 48px;
  }

  .champion-initials {
    font-size: 18px;
  }

  .champion-name {
    font-size: 16px;
  }

  /* --- Filter bar --- */
  .filter-bar {
    gap: 4px;
    margin-bottom: 14px;
  }

  .filter-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  /* --- Section & page titles --- */
  .section-title {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .section-header {
    margin-bottom: 12px;
  }

  .section-link {
    font-size: 11px;
  }

  .page-title {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .page-description {
    font-size: 0.75rem;
  }

  /* --- Container --- */
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .container-narrow {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* --- Buttons: strictly enforce 44px touch targets --- */
  .btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .btn-sm {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .filter-btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* --- Standings cards --- */
  .standings-card {
    padding: 10px 12px;
  }

  .standings-card-rank {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .standings-card-team-name {
    font-size: 12px;
  }

  .standings-card-team-code {
    font-size: 10px;
  }

  .standings-card-points {
    font-size: 14px;
  }

  /* --- Footer banner --- */
  .footer-banner {
    padding: 24px 12px;
  }

  .footer-banner-text h3 {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .footer-banner-text p {
    font-size: 12px;
  }

  .footer-copyright {
    padding: 14px 12px;
    font-size: 11px;
  }

  /* --- Badge --- */
  .badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  /* --- Live card (widget) --- */
  .live-card-header {
    padding: 8px;
  }

  .live-card-body {
    padding: 10px 8px;
  }

  /* --- Chart --- */
  .chart-container {
    padding: 14px;
  }

  .chart-title {
    font-size: 0.85rem;
  }

  /* --- Table action buttons --- */
  .table-action-btn {
    min-width: 34px;
    min-height: 34px;
  }

  /* --- No overflow on page --- */
  body,
  .public-body,
  .public-layout {
    overflow-x: hidden;
  }

  .public-main {
    min-width: 0;
    overflow-x: hidden;
  }

  /* --- Table scroll hint --- */
  .table-scroll-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
    text-align: right;
    padding: 4px 8px;
  }
}


/* ============================================
   6. Touch Device Optimizations
   ============================================ */
@media (hover: none) and (pointer: coarse) {

  /* Remove hover transforms on touch */
  .match-card:hover {
    transform: none;
    box-shadow: var(--shadow-card, 0 2px 10px rgba(0, 0, 0, 0.08));
  }

  .stat-card:hover {
    transform: none;
  }

  .team-card:hover {
    transform: none;
  }

  .bracket-match:hover {
    box-shadow: var(--shadow-card, 0 2px 10px rgba(0, 0, 0, 0.08));
  }

  .btn:hover {
    transform: none;
  }

  /* Larger tap areas for sidebar links */
  .public-sidebar-link {
    padding: 12px 14px;
    min-height: 44px;
  }

  /* Scrollable filter bar with momentum */
  .filter-bar {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  /* Bracket scroll */
  .bracket-wrapper {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .bracket-round {
    scroll-snap-align: start;
  }
}


/* ============================================
   7. Print Styles
   ============================================ */
@media print {
  .public-sidebar,
  .public-topbar,
  .public-sidebar-overlay,
  .public-sidebar-toggle,
  .footer-banner,
  .footer-copyright,
  .filter-bar,
  .btn,
  .section-link {
    display: none !important;
  }

  .public-main {
    margin-left: 0 !important;
  }

  .public-content {
    padding: 0 !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .match-card,
  .info-card,
  .live-card,
  .standings-group-card,
  .team-card,
  .bracket-match,
  .stat-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  .standings-table th,
  .standings-table td {
    border: 1px solid #ddd !important;
  }

  .hero-banner {
    background: var(--primary) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .live-card-header,
  .standings-group-header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .bracket-wrapper {
    overflow: visible !important;
  }

  .bracket-container {
    min-width: auto !important;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    color: #666;
  }
}


/* ============================================
   End of Putrakop Liga Responsive Stylesheet
   ============================================ */
