/* =========================================
   PUNTERS PORTAL - LEAGUE PAGE
========================================= */

.pp-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* HERO */
.pp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(79, 140, 255, 0.22), transparent 32%),
        radial-gradient(circle at right bottom, rgba(34, 197, 94, 0.10), transparent 22%),
        linear-gradient(135deg, #08122d 0%, #0b1531 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    padding: 28px;
    color: #fff;
    box-shadow: 0 18px 38px rgba(0,0,0,.22);
}

.pp-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.pp-hero-left {
    min-width: 0;
}

.pp-hero-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    color: #9fb0c7;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pp-hero-breadcrumbs a {
    color: #9fb0c7;
    text-decoration: none;
}

.pp-hero-breadcrumbs a:hover {
    color: #ffffff;
}

.pp-hero-title {
    margin: 0;
    font-size: clamp(2rem, 2.8vw, 3rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.pp-hero-subtitle {
    margin: 10px 0 0;
    color: #c7d2e2;
    font-size: 15px;
    line-height: 1.65;
    max-width: 780px;
}

.pp-league-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}

.pp-league-logo-lg {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex: 0 0 38px;
}

.pp-league-meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pp-league-country {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.pp-league-meta-sub {
    color: #9fb0c7;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* NAVIGATION */
.pp-league-nav-wrap {
    margin-top: -4px;
}

.pp-league-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, #111c3a 0%, #0f1730 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.pp-league-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #c7d2e2;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: .18s ease;
    white-space: nowrap;
}

.pp-league-nav-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.10);
    transform: translateY(-1px);
}

.pp-league-nav-link.active {
    color: #ffffff;
    background: linear-gradient(180deg, #4f8cff 0%, #3e78f0 100%);
    border-color: rgba(79, 140, 255, 0.95);
    box-shadow: 0 8px 18px rgba(79, 140, 255, 0.28);
}

.pp-league-nav-link.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
}

/* GENERIC CARDS */
.pp-section-card {
    background: linear-gradient(180deg, #111c3a 0%, #0f1730 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.pp-section-pad {
    padding: 18px;
}

.pp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pp-section-title {
    margin: 0;
    font-size: 22px;
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.pp-section-subtitle {
    color: #9fb0c7;
    font-size: 13px;
    font-weight: 700;
}

.pp-empty {
    color: #d7e1f0;
    padding: 26px 0 10px;
    font-size: 15px;
}

/* MATCH LIST */
.pp-match-list {
    display: flex;
    flex-direction: column;
}

.pp-match-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 96px 150px 30px;
    gap: 16px;
    align-items: center;
    padding: 15px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.pp-match-row:first-child {
    border-top: 0;
}

.pp-match-row:hover {
    background: rgba(255,255,255,0.03);
}

.pp-time {
    color: #d8e2f1;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.pp-status-live {
    color: #fca5a5;
}

.pp-row-teams {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.pp-row-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pp-team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 22px;
}

.pp-row-team span {
    color: #e9eff8;
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-scorebox {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.pp-score {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.pp-insights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.pp-arrow {
    color: #93a5bf;
    font-size: 22px;
    font-weight: 300;
    text-align: right;
}

.pp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pp-badge-green {
    background: #dcfce7;
    color: #166534;
}

.pp-badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.pp-badge-gray {
    background: #e5e7eb;
    color: #374151;
}

/* OVERVIEW STATS */
.pp-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.pp-overview-stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
}

.pp-overview-label {
    color: #9fb0c7;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pp-overview-value {
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    color: #fff;
}

/* STATS CARDS */
.pp-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.pp-stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
}

.pp-stat-label {
    color: #9fb0c7;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pp-stat-value {
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    color: #fff;
}

/* STANDINGS */
.pp-standings-wrap,
.pp-standings-wrap * {
    box-sizing: border-box;
}

.pp-standings-inner {
    padding: 18px;
}

.pp-standings-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pp-standings-tabs {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pp-standings-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: .18s ease;
}

.pp-standings-tab:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
}

.pp-standings-tab.active {
    background: #ffffff;
    color: #182640;
    border-color: #ffffff;
}

.pp-standings-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.pp-standings-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.pp-standings-table thead th {
    padding: 13px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8ea3bf;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    white-space: nowrap;
}

.pp-standings-table tbody tr {
    transition: background .15s ease;
}

.pp-standings-table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

.pp-standings-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #e5edf7;
    font-size: 14px;
    vertical-align: middle;
    white-space: nowrap;
}

.pp-standings-table tbody tr:last-child td {
    border-bottom: 0;
}

.pp-col-rank {
    width: 64px;
}

.pp-col-team {
    min-width: 220px;
}

.pp-col-form {
    min-width: 170px;
}

.pp-rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12);
}

.pp-rank-default {
    background: #20304f;
    color: #dbe7f7;
}

.pp-rank-cl {
    background: #0d63c9;
}

.pp-rank-el {
    background: #8a1457;
}

.pp-rank-ecl {
    background: #b7860b;
}

.pp-rank-relegation {
    background: #c1121f;
}

.pp-team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pp-team-name {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-pts {
    font-weight: 900;
    color: #ffffff;
}

.pp-form-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.pp-form-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12);
}

.pp-form-win {
    background: #16a34a;
}

.pp-form-draw {
    background: #d97706;
}

.pp-form-loss {
    background: #dc2626;
}

.pp-form-empty {
    background: #7c8798;
    color: #f8fafc;
}

.pp-standings-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.pp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c9d5e5;
    font-size: 13px;
    line-height: 1.4;
}

.pp-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex: 0 0 12px;
}

.pp-legend-cl {
    background: #0d63c9;
}

.pp-legend-el {
    background: #8a1457;
}

.pp-legend-ecl {
    background: #b7860b;
}

.pp-legend-relegation {
    background: #c1121f;
}

/* RESPONSIVE */
@media (max-width: 1180px) {
    .pp-overview-grid,
    .pp-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .pp-match-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pp-arrow {
        text-align: left;
        font-size: 18px;
    }

    .pp-scorebox {
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .pp-hero {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .pp-league-nav {
        gap: 8px;
        padding: 8px;
    }

    .pp-league-nav-link {
        min-height: 38px;
        padding: 0 12px;
        font-size: 12px;
    }

    .pp-overview-grid,
    .pp-stats-grid {
        grid-template-columns: 1fr;
    }

    .pp-section-pad,
    .pp-standings-inner {
        padding: 14px;
    }

    .pp-standings-table thead th,
    .pp-standings-table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .pp-team-name,
    .pp-row-team span {
        font-size: 13px;
    }

    .pp-form-badge {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .pp-rank-badge {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}

.pp-rankings-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
}

.pp-ranking-card{
    background:#111827;
    border:1px solid rgba(255,255,255,0.06);
    border-radius:16px;
    overflow:hidden;
}

.pp-ranking-card-head{
    padding:14px 16px;
    border-bottom:1px solid rgba(255,255,255,0.06);
}

.pp-ranking-title{
    margin:0;
    font-size:15px;
    font-weight:700;
    color:#fff;
}

.pp-ranking-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 16px;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.pp-ranking-row:last-child{
    border-bottom:none;
}

.pp-ranking-left{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    flex:1;
}

.pp-ranking-pos{
    width:26px;
    min-width:26px;
    height:26px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#1f2937;
    color:#cbd5e1;
    font-size:12px;
    font-weight:700;
}

.pp-ranking-photo{
    width:34px;
    height:34px;
    border-radius:50%;
    object-fit:cover;
    background:#0f172a;
}

.pp-ranking-meta{
    min-width:0;
    display:flex;
    flex-direction:column;
}

.pp-ranking-name{
    font-size:14px;
    font-weight:600;
    color:#fff;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.pp-ranking-team{
    font-size:12px;
    color:#94a3b8;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.pp-ranking-value{
    min-width:28px;
    text-align:right;
    font-size:16px;
    font-weight:800;
    color:#fff;
}

@media (max-width: 900px){
    .pp-rankings-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 768px){
  .pp-sidebar{
    display:none;
  }
}

.pp-date-switcher{
    position:relative;
    display:flex;
    align-items:center;
    gap:6px;
}

.pp-date-arrow{
    width:36px;
    height:36px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#ececec;
    color:#111;
    font-weight:900;
}

.pp-date-current{
    min-width:120px;
    height:36px;
    border-radius:10px;
    border:0;
    background:#ececec;
    font-weight:800;
    cursor:pointer;
}

.pp-date-dropdown{
    position:absolute;
    top:46px;
    right:0;
    width:200px;
    background:#fff;
    border-radius:12px;
    padding:8px;
    display:none;
    flex-direction:column;
    gap:4px;
    z-index:999;
}

.pp-date-dropdown.active{
    display:flex;
}

.pp-date-item{
    display:flex;
    justify-content:space-between;
    padding:8px 10px;
    border-radius:8px;
    font-weight:700;
    color:#111;
}

.pp-date-item:hover{
    background:#f3f4f6;
}

.pp-date-item.active{
    background:#4f8cff;
    color:#fff;
}

.pp-date-today{
    margin-top:6px;
    padding:8px;
    text-align:center;
    font-weight:900;
    color:#4f8cff;
}