/* ============================================
   PL Football Data – CSS v4.0
   Modern redesign with gradients & depth
   ============================================ */

:root {
    --pl-purple-dk: #38003c;
    --pl-purple-mid: #5c1760;
    --pl-purple-lt: #8c3090;
    --pl-green: #00ff85;
    --pl-green-dk: #02d96f;
    --pl-white: #ffffff;
    --pl-bg-page: #f7f5f9;
    --pl-border-lt: #ece7ef;
    --pl-text: #2c0030;
    --pl-text-muted: #6b5570;
    --pl-shadow-sm: 0 1px 3px rgba(56, 0, 60, 0.06);
    --pl-shadow: 0 2px 8px rgba(56, 0, 60, 0.08);
    --pl-shadow-lg: 0 8px 24px rgba(56, 0, 60, 0.12);
    --pl-gradient: linear-gradient(135deg, #38003c 0%, #5c1760 50%, #7a2080 100%);
    --pl-gradient-h: linear-gradient(135deg, #00ff85 0%, #02d96f 100%);
    --pl-radius: 8px;
    --pl-radius-lg: 14px;
}

/* Site logo next to title */
.wp-block-site-title a {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
}

.wp-block-site-title a::before {
    content: '';
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    background: url('favicon.svg') center / contain no-repeat;
}

/* Hide theme-generated post title on pages (content has its own h1) */
body.page .wp-block-post-title {
    display: none;
}

/* Hide page content H1 on team/player profile pages (hero h2 serves as heading) */
body.pl-team-profile-page h1.wp-block-heading,
body.pl-player-profile-page h1.wp-block-heading {
    display: none;
}

/* Collapse whitespace above team/player profile content */
body.pl-team-profile-page .entry-content,
body.pl-player-profile-page .entry-content {
    padding-top: 0 !important;
}

body.pl-team-profile-page .entry-content > h1.wp-block-heading,
body.pl-player-profile-page .entry-content > h1.wp-block-heading {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    height: 0 !important;
    overflow: hidden;
}

body.pl-team-profile-page .entry-content > .wp-block-group,
body.pl-player-profile-page .entry-content > .wp-block-group {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Page background */
body.page .wp-site-blocks {
    background: var(--pl-bg-page);
}

/* ─── Table Wrap & Cards ─── */
.pl-table-wrap,
.pl-kampe-wrap,
.pl-multi-wrap,
.pl-live-wrap,
.pl-teams-grid,
.pl-news-list {
    background: var(--pl-white);
    border-radius: var(--pl-radius-lg);
    box-shadow: var(--pl-shadow);
    padding: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.pl-kampe-wrap,
.pl-multi-wrap,
.pl-live-wrap {
    padding-bottom: 1rem;
}

/* ─── Tables ─── */
.pl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.5;
}

.pl-table thead {
    background: var(--pl-gradient);
    color: var(--pl-white);
}

.pl-table thead th {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pl-table tbody tr {
    border-bottom: 1px solid var(--pl-border-lt);
    transition: background 0.15s ease;
}

.pl-table tbody tr:nth-child(even) {
    background: rgba(56, 0, 60, 0.015);
}

.pl-table tbody tr:hover {
    background: rgba(56, 0, 60, 0.04);
}

.pl-table td {
    padding: 10px 14px;
    vertical-align: middle;
}

/* ─── Standings ─── */
.pl-standings td:first-child,
.pl-standings th:first-child {
    text-align: center;
    width: 36px;
}

.pl-standings td:last-child {
    font-weight: 700;
}

.pl-zone-cl {
    border-left: 3px solid #00ff85;
}

.pl-zone-el {
    border-left: 3px solid #f39c12;
}

.pl-zone-rel {
    border-left: 3px solid #e74c3c;
}

/* ─── Team links ─── */
.pl-team-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.pl-team-link:hover {
    color: var(--pl-purple-mid);
    text-decoration: underline;
}

/* ─── Team cells ─── */
.pl-team-cell,
.pl-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.pl-player-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-player-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* ─── Match rows ─── */
.pl-match-hour {
    font-weight: 600;
    color: var(--pl-purple-dk);
    background: rgba(56, 0, 60, 0.05);
    border-radius: 6px;
    padding: 4px 10px !important;
    text-align: center;
    white-space: nowrap;
    min-width: 54px;
}

.pl-score {
    text-align: center;
    font-weight: 600;
    min-width: 50px;
    color: var(--pl-purple-dk);
}

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

.pl-team--away {
    text-align: left;
}

/* ─── Live indicator ─── */
.pl-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    margin-right: 4px;
    animation: pl-pulse 1.5s ease-in-out infinite;
}

@keyframes pl-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.pl-match--live {
    background: rgba(231, 76, 60, 0.04) !important;
}

.pl-match--live .pl-score {
    color: #e74c3c;
}

/* ─── Date headers ─── */
.pl-date-header {
    background: var(--pl-gradient);
    color: var(--pl-white);
    padding: 10px 18px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ─── League headers (multi-league) ─── */
.pl-league-header {
    background: var(--pl-gradient);
    color: var(--pl-white);
    padding: 10px 18px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.pl-league-group {
    margin-bottom: 0;
}

.pl-league-group + .pl-league-group {
    margin-top: 1rem;
}

.pl-league-sub {
    padding: 8px 18px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--pl-purple-mid);
    border-bottom: 1px solid var(--pl-border-lt);
    background: rgba(56, 0, 60, 0.02);
}

.pl-section-title {
    padding: 12px 18px 8px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--pl-purple-dk);
    font-weight: 700;
}

/* ─── Live scores wrap ─── */
.pl-live-header {
    background: var(--pl-gradient);
    color: var(--pl-white);
    padding: 12px 18px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-live-header .pl-live-dot {
    width: 10px;
    height: 10px;
    background: #00ff85;
}

/* ─── TV badges ─── */
.pl-tv-badge {
    display: inline-block;
    background: var(--pl-purple-dk);
    color: var(--pl-white);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    margin: 1px 2px;
}

.pl-match-tv {
    white-space: nowrap;
}

/* ─── Channel table ─── */
.pl-channel-table-wrap {
    padding: 1rem 18px;
}

.pl-channel-table-wrap h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--pl-purple-dk);
}

/* ─── Teams grid ─── */
.pl-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.pl-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1.2rem 0.8rem;
    background: var(--pl-white);
    border: 1px solid var(--pl-border-lt);
    border-radius: var(--pl-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.pl-team-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pl-shadow);
}

.pl-team-card-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.pl-team-card-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--pl-purple-dk);
}

/* ─── News ─── */
.pl-news-list {
    padding: 0;
}

.pl-news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--pl-border-lt);
    transition: background 0.15s ease;
}

.pl-news-item:hover {
    background: rgba(56, 0, 60, 0.02);
}

.pl-news-item:last-child {
    border-bottom: none;
}

.pl-news-img {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: var(--pl-radius);
    overflow: hidden;
}

.pl-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pl-news-body {
    flex: 1;
    min-width: 0;
}

.pl-news-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    line-height: 1.3;
}

.pl-news-title a {
    color: var(--pl-purple-dk);
    text-decoration: none;
}

.pl-news-title a:hover {
    color: var(--pl-purple-mid);
    text-decoration: underline;
}

.pl-news-desc {
    margin: 0 0 4px;
    font-size: 0.82rem;
    color: var(--pl-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pl-news-date {
    font-size: 0.75rem;
    color: var(--pl-text-muted);
}

/* ─── Dashboard grid (homepage) ─── */
.pl-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.pl-dashboard__section {
    min-width: 0;
    background: var(--pl-white);
    border-radius: var(--pl-radius-lg);
    box-shadow: var(--pl-shadow);
    overflow: hidden;
}

.pl-dashboard__title {
    background: var(--pl-gradient);
    color: var(--pl-white);
    padding: 10px 18px;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Reset inner containers — the section card is the outer shell */
.pl-dashboard__section > .pl-table-wrap,
.pl-dashboard__section > .pl-kampe-wrap,
.pl-dashboard__section > .pl-multi-wrap,
.pl-dashboard__section > .pl-tv-wrap,
.pl-dashboard__section > .pl-news-list {
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

/* Standings/topscorere thead inside dashboard — subtle instead of gradient */
.pl-dashboard__section > .pl-table-wrap > .pl-table > thead {
    background: rgba(56, 0, 60, 0.06);
    color: var(--pl-text);
}

/* Inner league/date headers inside dashboard — subtle style */
.pl-dashboard__section .pl-league-header,
.pl-dashboard__section .pl-date-header {
    background: rgba(56, 0, 60, 0.06);
    color: var(--pl-purple-dk);
    font-size: 0.82rem;
}

/* TV widget matches header inside dashboard — subtle */
.pl-dashboard__section > .pl-tv-wrap .pl-matches--tv > thead {
    background: rgba(56, 0, 60, 0.06);
    color: var(--pl-text);
}

/* TV widget: smaller channel reference table */
.pl-dashboard__section > .pl-tv-wrap .pl-channel-table-wrap h3 {
    font-size: 0.82rem;
}

.pl-dashboard__section > .pl-tv-wrap .pl-channel-table {
    font-size: 0.8rem;
}

/* ─── SEO content blocks ─── */
.pl-seo-content {
    background: var(--pl-white);
    border-radius: var(--pl-radius-lg);
    box-shadow: var(--pl-shadow-sm);
    padding: 2rem 2.5rem;
    margin-top: 2rem;
    line-height: 1.7;
    color: var(--pl-text);
}

.pl-seo-content h2 {
    color: var(--pl-purple-dk);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--pl-border-lt);
}

.pl-seo-content h2:first-child {
    margin-top: 0;
}

.pl-seo-content h3 {
    color: var(--pl-purple-mid);
    font-size: 1.05rem;
    margin: 1rem 0 0.5rem;
}

.pl-seo-content p {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
}

/* ─── FAQ ─── */
.pl-faq h3 {
    margin: 1rem 0 0.3rem;
    font-size: 1rem;
    color: var(--pl-purple-dk);
}

.pl-faq p {
    margin: 0 0 0.8rem;
    color: var(--pl-text-muted);
    font-size: 0.9rem;
}

/* ─── Navigation links ─── */
.pl-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--pl-border-lt);
}

.pl-nav-links a {
    display: inline-block;
    padding: 6px 18px;
    border: 1.5px solid var(--pl-purple-dk);
    border-radius: 50px;
    color: var(--pl-purple-dk);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pl-nav-links a:hover {
    background: var(--pl-purple-dk);
    color: var(--pl-white);
}

/* ─── Team Card Links ─── */
.pl-team-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pl-team-card {
    position: relative;
}

.pl-team-card-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--pl-gradient);
    color: var(--pl-white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pl-team-card-record {
    font-size: 0.72rem;
    color: var(--pl-text-muted);
    letter-spacing: 0.02em;
}

/* ─── Team Profile Page ─── */
.pl-team-profile {
    max-width: 900px;
    margin: 0 auto;
}

/* Breadcrumbs */
.pl-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--pl-text-muted);
}

.pl-breadcrumb a {
    color: var(--pl-purple-dk);
    text-decoration: none;
    font-weight: 500;
}

.pl-breadcrumb a:hover {
    text-decoration: underline;
    color: var(--pl-purple-mid);
}

.pl-breadcrumb-sep {
    color: var(--pl-text-muted);
    opacity: 0.5;
    font-size: 0.75rem;
}

.pl-breadcrumb-current {
    color: var(--pl-text-muted);
    font-weight: 500;
}

/* Hero header */
.pl-team-hero {
    border-radius: var(--pl-radius-lg);
    padding: 2rem 2.5rem;
    color: var(--pl-white);
    margin-bottom: 1.5rem;
    box-shadow: var(--pl-shadow-lg);
}

.pl-team-hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pl-team-hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    flex-shrink: 0;
}

.pl-team-hero-info {
    flex: 1;
}

.pl-team-hero-name {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pl-team-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pl-team-rank-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.pl-team-record {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Stats cards */
.pl-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pl-stat-card {
    background: var(--pl-white);
    border-radius: var(--pl-radius);
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: var(--pl-shadow);
}

.pl-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pl-purple-dk);
    line-height: 1.1;
}

.pl-stat-label {
    font-size: 0.8rem;
    color: var(--pl-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.pl-stat-sub {
    font-size: 0.72rem;
    color: var(--pl-text-muted);
    margin-top: 4px;
}

/* Section headers */
.pl-section-header {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.pl-section-header h2 {
    background: var(--pl-gradient);
    color: var(--pl-white);
    padding: 10px 18px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--pl-radius-lg) var(--pl-radius-lg) 0 0;
}

/* Roster table */
.pl-roster-wrap {
    border-radius: 0 0 var(--pl-radius-lg) var(--pl-radius-lg);
    margin-bottom: 0;
}

.pl-roster-group td {
    background: rgba(56, 0, 60, 0.06);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pl-purple-mid);
    padding: 8px 14px !important;
}

.pl-roster-num {
    text-align: center;
    font-weight: 700;
    color: var(--pl-purple-dk);
    width: 36px;
}

.pl-roster-photo {
    width: 40px;
    text-align: center;
}

.pl-roster-headshot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(56, 0, 60, 0.06);
}

.pl-roster-flag-fallback,
.pl-roster-photo img[alt]:not(.pl-roster-headshot) {
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.15);
}

.pl-roster-name {
    font-weight: 600;
}

.pl-roster-pos {
    color: var(--pl-text-muted);
    font-size: 0.85rem;
}

.pl-roster-age {
    text-align: center;
    color: var(--pl-text-muted);
}

/* ─── Player links ─── */
.pl-player-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.pl-player-link:hover {
    color: var(--pl-purple-mid);
    text-decoration: underline;
}

/* ─── Player Profile Page ─── */
.pl-player-profile {
    max-width: 900px;
    margin: 0 auto;
}

/* Player hero header */
.pl-player-hero {
    border-radius: var(--pl-radius-lg);
    padding: 2rem 2.5rem;
    color: var(--pl-white);
    margin-bottom: 1.5rem;
    box-shadow: var(--pl-shadow-lg);
}

.pl-player-hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pl-player-hero-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.15);
    border: 3px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.pl-player-hero-info {
    flex: 1;
}

.pl-player-hero-top {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.pl-player-hero-name {
    margin: 0 0 0.4rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pl-player-jersey {
    font-size: 1.6rem;
    font-weight: 700;
    opacity: 0.7;
}

.pl-player-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.pl-player-hero-sep {
    opacity: 0.6;
}

.pl-player-team-logo {
    vertical-align: middle;
}

/* Player stats table */
.pl-player-stats-table td:first-child {
    font-weight: 500;
    color: var(--pl-text);
}

.pl-player-stats-table td:last-child {
    text-align: right;
    width: 80px;
}

/* Results table */
.pl-results-wrap {
    border-radius: 0 0 var(--pl-radius-lg) var(--pl-radius-lg);
    margin-bottom: 0;
}

.pl-res-date {
    white-space: nowrap;
    font-weight: 600;
    color: var(--pl-purple-dk);
    font-size: 0.85rem;
}

.pl-res-time {
    white-space: nowrap;
    font-weight: 600;
    color: var(--pl-purple-dk);
}

.pl-res-venue {
    font-size: 0.8rem;
    color: var(--pl-text-muted);
    white-space: nowrap;
}

/* W/D/L badges */
.pl-wdl-w,
.pl-wdl-d,
.pl-wdl-l {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--pl-white);
}

.pl-wdl-w {
    background: #27ae60;
}

.pl-wdl-d {
    background: #95a5a6;
}

.pl-wdl-l {
    background: #e74c3c;
}

/* Full schedule expandable */
.pl-full-schedule {
    margin-top: 0.5rem;
}

.pl-full-schedule summary {
    cursor: pointer;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--pl-purple-dk);
    background: var(--pl-white);
    border-radius: var(--pl-radius);
    box-shadow: var(--pl-shadow-sm);
}

.pl-full-schedule summary:hover {
    background: rgba(56, 0, 60, 0.03);
}

.pl-full-schedule .pl-table-wrap {
    margin-top: 0.5rem;
}

/* ─── Homepage hero ─── */
.pl-fp--hero {
    text-align: center;
    background: var(--pl-gradient);
    color: var(--pl-white);
    padding: 3rem 2rem;
}

.pl-fp--hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.pl-fp--hero .pl-fp-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    opacity: 0.9;
    margin: 0 0 1.5rem;
    font-weight: 400;
}

.pl-fp--hero .pl-seo-intro {
    max-width: 640px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0 auto 2rem;
}

.pl-fp-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.pl-fp-nav a {
    display: inline-block;
    padding: 8px 22px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: var(--pl-white);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.08);
}

.pl-fp-nav a:hover {
    background: var(--pl-green);
    color: var(--pl-purple-dk);
    border-color: var(--pl-green);
}

/* ─── Homepage sections ─── */
.pl-section {
    padding: 2rem 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.pl-section:nth-of-type(even) {
    background: var(--pl-white);
}

.pl-section-heading {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--pl-purple-dk);
    margin: 0 0 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.pl-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--pl-gradient-h);
}

/* ─── SEO bottom (outside scroll-snap) ─── */
.pl-seo-bottom h2 {
    color: var(--pl-purple-dk);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--pl-border-lt);
}

.pl-seo-bottom h2:first-child {
    margin-top: 0;
}

.pl-seo-bottom h3 {
    color: var(--pl-purple-mid);
    font-size: 1.05rem;
    margin: 1rem 0 0.5rem;
}

.pl-seo-bottom p {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--pl-text);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .pl-dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pl-teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.8rem;
        padding: 1rem;
    }

    .pl-table {
        font-size: 0.82rem;
    }

    .pl-table thead th,
    .pl-table td {
        padding: 8px 8px;
    }

    .pl-news-item {
        flex-direction: column;
    }

    .pl-news-img {
        width: 100%;
        height: 160px;
    }

    .pl-seo-content {
        padding: 1.2rem 1rem;
    }

    .pl-team--home,
    .pl-team--away {
        font-size: 0.8rem;
    }

    .pl-match-tv .pl-tv-badge {
        font-size: 0.68rem;
        padding: 1px 6px;
    }

    /* Team profile responsive */
    .pl-team-hero {
        padding: 1.5rem 1.2rem;
    }

    .pl-team-hero-inner {
        gap: 1.2rem;
    }

    .pl-team-hero-logo {
        width: 72px;
        height: 72px;
    }

    .pl-team-hero-name {
        font-size: 1.4rem;
    }

    .pl-team-hero-meta {
        gap: 0.5rem;
    }

    .pl-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    /* Player profile responsive */
    .pl-player-hero {
        padding: 1.5rem 1.2rem;
    }

    .pl-player-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .pl-player-hero-top {
        justify-content: center;
    }

    .pl-player-hero-meta {
        justify-content: center;
    }

    .pl-player-hero-name {
        font-size: 1.4rem;
    }

    .pl-player-hero-img {
        width: 90px;
        height: 90px;
    }

    .pl-stat-value {
        font-size: 1.4rem;
    }

    .pl-roster .pl-roster-pos {
        display: none;
    }

    .pl-res-venue {
        display: none;
    }

    .pl-fp--hero {
        padding: 2rem 1rem;
    }

    .pl-section {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .pl-teams-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .pl-team-card-name {
        font-size: 0.75rem;
    }

    .pl-nav-links a {
        padding: 5px 12px;
        font-size: 0.78rem;
    }
}

/* ═══════════════════════════════════════════════
   Cookie Consent Banner
   ═══════════════════════════════════════════════ */

.pl-cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(56, 0, 60, 0.5);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.pl-cookie-banner {
    background: var(--pl-white);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 32px rgba(56, 0, 60, 0.2);
    padding: 1.8rem 2rem 1.5rem;
    animation: pl-cookie-slide 0.35s ease-out;
}

@keyframes pl-cookie-slide {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.pl-cookie-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--pl-purple-dk);
    margin-bottom: 0.6rem;
}

.pl-cookie-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--pl-text);
    margin: 0 0 1.2rem;
}

.pl-cookie-link {
    color: var(--pl-purple-mid);
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

.pl-cookie-link:hover {
    color: var(--pl-purple-dk);
}

.pl-cookie-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pl-cookie-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 50px;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.pl-cookie-btn--accept {
    background: var(--pl-green);
    color: var(--pl-purple-dk);
}

.pl-cookie-btn--accept:hover {
    background: var(--pl-green-dk);
}

.pl-cookie-btn--reject {
    background: transparent;
    color: var(--pl-purple-dk);
    border: 2px solid var(--pl-purple-dk);
}

.pl-cookie-btn--reject:hover {
    background: var(--pl-purple-dk);
    color: var(--pl-white);
}

.pl-cookie-btn--settings {
    background: transparent;
    color: var(--pl-purple-mid);
    padding: 10px 16px;
    text-decoration: underline;
}

.pl-cookie-btn--settings:hover {
    color: var(--pl-purple-dk);
}

/* ── Settings panel ── */
.pl-cookie-settings {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--pl-border-lt);
}

.pl-cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--pl-border-lt);
}

.pl-cookie-category:last-of-type {
    border-bottom: none;
}

.pl-cookie-category-info {
    flex: 1;
}

.pl-cookie-category-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--pl-purple-dk);
    margin-bottom: 2px;
}

.pl-cookie-category-desc {
    font-size: 0.8rem;
    color: var(--pl-text-muted);
    line-height: 1.4;
}

/* Toggle switch */
.pl-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.pl-cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.pl-cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.pl-cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--pl-white);
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pl-cookie-toggle input:checked + .pl-cookie-toggle-slider {
    background: var(--pl-purple-mid);
}

.pl-cookie-toggle input:checked + .pl-cookie-toggle-slider::before {
    transform: translateX(22px);
}

.pl-cookie-toggle input:disabled + .pl-cookie-toggle-slider {
    background: var(--pl-purple-lt);
    opacity: 0.6;
    cursor: not-allowed;
}

.pl-cookie-settings .pl-cookie-btn--accept {
    margin-top: 1rem;
    width: 100%;
}

/* ── Re-open button (bottom-left) ── */
.pl-cookie-reopen {
    position: fixed;
    bottom: 12px;
    left: 12px;
    z-index: 9998;
    background: var(--pl-purple-dk);
    color: var(--pl-white);
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--pl-shadow);
    transition: background 0.2s ease, transform 0.2s ease;
}

.pl-cookie-reopen:hover {
    background: var(--pl-purple-mid);
    transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .pl-cookie-banner {
        padding: 1.4rem 1.2rem 1.2rem;
        border-radius: 14px 14px 0 0;
    }

    .pl-cookie-buttons {
        flex-direction: column;
    }

    .pl-cookie-btn {
        width: 100%;
        text-align: center;
    }

    .pl-cookie-btn--settings {
        padding: 8px 16px;
    }
}
