
:root {
    --tp-primary: var(--primary);
    --tp-accent: var(--accent);
    --tp-accent-dark: var(--accent);
    --tp-text: var(--ls-text);
    --tp-text-light: var(--ls-muted);
    --tp-border: #f2f3f4;
    --tp-bg: var(--ls-surface-2);
}

.tp-content-area {
    flex: 1;
    min-width: 0;
}

.tp-trophies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.tp-trophy-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, var(--ls-surface-2) 100%);
    border-radius: var(--ls-radius);
    border: 1px solid var(--tp-border);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.tp-trophy-item:hover {
    transform: translateY(-2px);
    border-color: var(--tp-accent);
    box-shadow: 0 8px 20px rgba(0,230,118,0.1);
}

.tp-trophy-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ls-radius);
    flex-shrink: 0;
    font-size: 18px;
}

.tp-trophy-details {
    flex: 1;
}

.tp-trophy-league {
    font-size: 16px;
    font-weight: 800;
    color: var(--tp-primary);
    margin-bottom: 2px;
}

.tp-trophy-season {
    font-size: 13px;
    font-weight: 700;
    color: var(--tp-accent-dark);
    margin-bottom: 2px;
}

.tp-trophy-country {
    font-size: 11px;
    color: var(--tp-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tp-follow-input-v2 {
    padding: 14px 20px 14px 45px;
    border-radius: var(--ls-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: white;
    font-size: 14px;
    min-width: 280px;
    outline: none;
    transition: all 0.3s;
    color: var(--tp-text);
}

.tp-follow-input-v2:focus {
    box-shadow: 0 0 0 4px rgba(0, 255, 133, 0.2);
}

.tp-btn-follow-v2 {
    background: var(--tp-accent);
    color: #000;
    border: none;
    padding: 14px 25px;
    border-radius: var(--ls-radius);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tp-btn-follow-v2:hover {
    background: var(--tp-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 133, 0.3);
}

@media (max-width: 992px) {
    .tp-follow-banner-premium {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
    }
    .tp-follow-form-container form {
        flex-direction: column;
        width: 100%;
    }
    .tp-input-group, .tp-follow-input-v2, .tp-btn-follow-v2 {
        width: 100%;
    }
}

.tp-alert {
    padding: 15px 20px;
    border-radius: var(--ls-radius);
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tp-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.tp-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid var(--ls-live-soft); }
.tp-alert-info { background: var(--ls-surface-2); color: var(--accent); border: 1px solid #d1d9e4; }

.tp-stats-section {
    background: white !important;
    border-radius: var(--ls-radius) !important;
    padding: 20px !important;
    margin-bottom: 18px !important;
    border: 1px solid var(--tp-border) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    display: block !important;
}

.tp-stats-header {
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.tp-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
}

.tp-stat-card {
    background: var(--ls-surface-2) !important;
    padding: 10px 8px !important;
    border-radius: var(--ls-radius) !important;
    text-align: center !important;
    border: 1px solid transparent !important;
    transition: all 0.3s !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.tp-stat-card:hover {
    border-color: var(--tp-accent) !important;
    background: white !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05) !important;
}

.tp-stat-value {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--tp-primary) !important;
    display: block !important;
    margin-bottom: 2px !important;
}

.tp-stat-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--tp-text-light) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.tp-goals-by-time {
    background: var(--ls-surface-2) !important;
    border-radius: var(--ls-radius) !important;
    padding: 16px !important;
    margin-bottom: 18px !important;
}

.tp-time-intervals {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 10px !important;
}

.tp-interval-bar {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.tp-interval-label {
    width: 60px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--tp-text-light) !important;
}

.tp-bar-container {
    flex: 1 !important;
    height: 10px !important;
    background: var(--ls-border) !important;
    border-radius: var(--ls-radius) !important;
    overflow: hidden !important;
}

.tp-bar {
    height: 100% !important;
    background: linear-gradient(90deg, var(--tp-accent-dark) 0%, var(--tp-accent) 100%) !important;
    border-radius: var(--ls-radius) !important;
}

.tp-interval-value {
    width: 40px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: var(--tp-primary) !important;
    text-align: right !important;
}

.merch-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.merch-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--ls-radius);
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.merch-item:hover {
    transform: translateX(5px);
    border-color: var(--tp-primary);
    box-shadow: 0 4px 12px rgba(var(--ls-primary-rgb), 0.1);
}

.merch-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--ls-surface-2);
    border-radius: var(--ls-radius);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merch-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.merch-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.merch-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ls-text);
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merch-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.merch-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

.merch-store {
    font-size: 10px;
    color: var(--ls-muted-2);
    font-weight: 600;
    text-transform: uppercase;
    background: var(--ls-surface-2);
    padding: 2px 6px;
    border-radius: var(--ls-radius-sm);
}

.tp-interval-value {
    width: 40px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: var(--tp-primary) !important;
    text-align: right !important;
}

.tp-penalties-section {
    margin-top: 20px !important;
}

.tp-penalty-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin-top: 15px !important;
}

.tp-penalty-item {
    background: var(--ls-surface-2) !important;
    padding: 15px !important;
    border-radius: var(--ls-radius) !important;
    text-align: center !important;
}

.tp-penalty-value {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--tp-primary) !important;
}

.tp-penalty-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: var(--tp-text-light) !important;
    text-transform: uppercase !important;
}

.tp-main-grid {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.tp-content-main {
    flex: 1;
    min-width: 0;
}

.tp-sidebar-right {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .tp-main-grid {
        flex-direction: column;
    }
    .tp-sidebar-right {
        width: 100%;
    }
    .tp-follow-banner {
        flex-direction: column;
        text-align: center;
    }
    .tp-follow-input {
        width: 100%;
    }
    .tp-btn-follow {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tp-header-premium {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .tp-logo-large {
        width: 100px !important;
        height: 100px !important;
    }

    .tp-info-content h1 {
        font-size: 32px !important;
    }

    .tp-meta-badges {
        justify-content: center;
    }

    .tp-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.tp-events-list-premium {
    position: relative;
    padding-left: 20px;
    margin-top: 15px;
}

.tp-events-list-premium::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ls-border);
    border-radius: var(--ls-radius-sm);
}

.tp-event-item-premium {
    position: relative;
    margin-bottom: 20px;
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tp-event-item-premium::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: white;
    border: 2px solid var(--tp-accent);
    border-radius: 50%;
    z-index: 1;
}

.tp-event-time-premium {
    font-size: 11px;
    font-weight: 800;
    color: var(--tp-accent-dark);
    background: rgba(0,230,118,0.1);
    padding: 2px 8px;
    border-radius: var(--ls-radius);
    width: fit-content;
}

.tp-event-content-premium {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-event-icon-premium {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.tp-event-player-premium {
    font-size: 13px;
    font-weight: 700;
    color: var(--tp-primary);
}

.tp-event-detail-premium {
    font-size: 11px;
    color: var(--tp-text-light);
    font-weight: 500;
}

.tp-squad-area {
    margin-top: 40px;
}

img[loading="lazy"] {
    content-visibility: auto;
}

.tp-squad-heading {
    font-size: 20px;
    font-weight: 800;
    color: var(--tp-primary);
    margin: 0 0 15px;
}

.tp-squad-summary {
    background: white;
    border: 1px solid var(--tp-border);
    border-radius: var(--ls-radius);
    padding: 15px 18px;
    margin-bottom: 16px;
}

.tp-squad-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.tp-squad-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.tp-squad-stat strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--tp-primary);
    line-height: 1;
}

.tp-squad-stat span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tp-text-light);
}

.tp-squad-parziale p {
    margin: 0;
    font-size: 13px;
    color: var(--tp-text-light);
    line-height: 1.5;
}

.tp-squad-parziale strong {
    color: var(--tp-text);
}

.tp-squad-valore strong {
    color: var(--tp-primary);
}

.tp-squad-fonte {
    margin: 10px 0 0;
    font-size: 11px;
    color: var(--tp-text-light);
    line-height: 1.5;
}

.tp-squad-parziale .tp-squad-fonte {
    margin-top: 8px;
}

.tp-squad-extremes {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--tp-border);
    font-size: 13px;
    color: var(--tp-text-light);
    line-height: 1.5;
}

.tp-squad-extremes strong {
    color: var(--tp-text);
    font-weight: 700;
}

.role-section {
    margin-bottom: 14px;
}

.role-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--tp-text-light);
    margin: 0 0 10px;
}

.role-count {
    font-size: 10px;
    font-weight: 800;
    color: var(--tp-accent-dark);
    background: rgba(0,230,118,0.12);
    padding: 2px 7px;
    border-radius: var(--ls-radius);
    letter-spacing: 0;
}

.tp-squad-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.tp-squad-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px 7px;
    border: 1px solid var(--tp-border);
    border-radius: var(--ls-radius);
    background: white;
    min-width: 0;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.tp-squad-card:hover {
    border-color: var(--tp-accent);
    transform: translateY(-2px);
}

.tp-squad-figure {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.tp-squad-photo {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #f1f5f9;
    display: block;
}

.tp-squad-num {
    position: absolute;
    right: -2px;
    bottom: -2px;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 0 4px;
    border-radius: var(--ls-radius);
    background: var(--tp-primary);
    color: white;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    border: 2px solid white;
    box-sizing: content-box;
}

.tp-squad-cap {
    position: absolute;
    left: -2px;
    top: -2px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    background: var(--tp-accent-dark);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid white;
}

a.tp-squad-name { text-decoration: none; }
a.tp-squad-name:hover { text-decoration: underline; }
.tp-squad-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--tp-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.tp-squad-age {
    font-size: 11px;
    font-weight: 600;
    color: var(--tp-text-light);
    font-variant-numeric: tabular-nums;
}

.tp-squad-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    margin-top: 2px;
}

.tp-chip {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.6;
    padding: 0 5px;
    border-radius: var(--ls-radius);
    background: var(--tp-bg);
    color: var(--tp-text-light);
    white-space: nowrap;
}

.tp-chip b {
    font-weight: 800;
    color: var(--tp-primary);
}

.tp-chip--giallo {
    background: #fde68a;
    color: #713f12;
    font-weight: 800;
}

.tp-chip--rosso {
    background: #fecaca;
    color: #7f1d1d;
    font-weight: 800;
}

.tp-chip--voto {
    background: var(--tp-primary);
    color: white;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .tp-squad-list { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}
@media (max-width: 420px) {
    .tp-squad-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .tp-squad-card { padding: 10px 4px 8px; }
}

.team-news-list-premium {
    display: flex;
    flex-direction: column;
}

.news-item-premium a:hover {
    color: var(--tp-accent-dark) !important;
}

.tp-sidebar-right .widget,
.tp-content-main > .widget {
    background: white !important;
    border-radius: var(--ls-radius) !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
    border: 1px solid var(--tp-border) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
}

.tp-sidebar-right .widget-title,
.tp-content-main > .widget .widget-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--tp-primary) !important;
    border-bottom: 2px solid var(--tp-accent) !important;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.tp-content-main > .widget { margin-bottom: 18px !important; }
.tp-calciomercato .tp-transfer-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.tp-calciomercato .tp-transfer-item { padding: 6px 0; }
@media (max-width: 600px) {
    .tp-calciomercato .tp-transfer-list { grid-template-columns: 1fr; }
}

.next-match-card, .mini-standing-card {
    background: white !important;
    border-radius: var(--ls-radius) !important;
    margin-bottom: 25px !important;
    border: 1px solid var(--tp-border) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    overflow: hidden !important;
}

.next-match-card {
    padding: 20px !important;
}

.next-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.next-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 40%;
    text-align: center;
}

.next-match-team img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.next-match-team span {
    font-size: 12px;
    font-weight: 700;
    color: var(--tp-primary);
}

.form-dots {
    display: flex;
    gap: 5px;
    padding: 0 20px 20px;
}

.form-badge {
    width: 22px;
    height: 22px;
    border-radius: var(--ls-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
}

.form-W { background-color: var(--ls-win); color: white; }
.form-D { background-color: var(--ls-draw); color: white; }
.form-L { background-color: var(--ls-loss); color: white; }

.tp-transfers-tabs {
    display: flex;
    gap: 10px;
    margin: 15px 20px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--ls-radius);
}

.tp-transfer-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--ls-muted);
    border-radius: var(--ls-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.tp-transfer-tab.active {
    background: white;
    color: var(--tp-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tp-transfer-list {
    padding: 0 20px 20px;
}

.tp-transfer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.tp-transfer-item:last-child {
    border-bottom: none;
}

.tr-player-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid var(--ls-border);
}

.tr-player-info-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tr-player-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--tp-text);
}

.tr-details {
    font-size: 10px;
    color: var(--tp-text-light);
    margin-top: 2px;
}

.tr-type {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: var(--ls-radius);
    text-transform: uppercase;
}

.tr-in {
    background: #ecfdf5;
    color: var(--primary);
}

.tr-out {
    background: #fef2f2;
    color: var(--rosso);
}

.tp-testata {
    background: var(--card-bg);
    border: 1px solid #f1f5f9;
    border-radius: var(--ls-radius);
    padding: 22px 26px;
    margin-bottom: 14px;
}

.tp-testata-alto { display: flex; align-items: flex-start; gap: 18px; }

.tp-stemma {
    width: 76px; height: 76px; object-fit: contain; flex-shrink: 0;
    background: #e5e7eb; border-radius: var(--ls-radius); padding: 8px;
}

.tp-stemma[src$="/loghi/496.webp"] { background: #1a1814; }

.tp-titolo { flex: 1; min-width: 0; }
.tp-titolo h1 {
    margin: 2px 0 8px; font-size: 27px; font-weight: 800;
    color: var(--ls-text); letter-spacing: -0.9px; line-height: 1.1;
}

.tp-h1-coda { font-size: 15px; font-weight: 600; color: var(--ls-muted); letter-spacing: 0; }

.tp-sottotitolo {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    font-size: 12.5px; color: var(--ls-muted); line-height: 1.5;
}
.tp-sottotitolo span { display: inline-flex; align-items: center; gap: 6px; }
.tp-sottotitolo i { color: var(--ls-muted-2); font-size: 11px; width: 12px; text-align: center; }

.tp-girone { margin: 8px 0 0; font-size: 13px; color: var(--ls-muted); line-height: 1.5; }
.tp-girone a { color: var(--accent); font-weight: 700; text-decoration: none; }
.tp-girone a:hover { text-decoration: underline; }

.tp-campionato {
    flex-shrink: 0; align-self: flex-start;
    background: var(--primary-light); color: var(--accent);
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
    padding: 7px 13px; border-radius: var(--ls-radius); text-decoration: none;
    border: 1px solid rgba(var(--ls-primary-rgb), 0.14); transition: background .15s;
}
.tp-campionato:hover { background: var(--ls-primary-soft); }

.tp-cifre {
    display: flex; flex-wrap: wrap; gap: 0;
    margin-top: 20px; padding-top: 18px; border-top: 1px solid #f1f5f9;
}
.tp-cifra {
    display: flex; flex-direction: column; gap: 5px;
    padding: 0 22px; border-right: 1px solid #f1f5f9;
}
.tp-cifra:first-child { padding-left: 0; }
.tp-cifra:last-child { border-right: none; }

.tp-num {
    font-family: var(--ls-font-num);
    font-size: 25px; font-weight: 700; color: var(--primary);
    line-height: 1; letter-spacing: -0.5px;
}
.tp-num sup { font-size: 14px; top: -0.5em; }
.tp-num i { font-style: normal; color: var(--ls-border-strong); margin: 0 1px; }
.tp-eti {
    font-size: 8.5px; font-weight: 800; letter-spacing: 0.9px;
    color: var(--ls-muted-2); text-transform: uppercase; white-space: nowrap;
}

.tp-forma { display: flex; gap: 4px; }
.tp-e {
    width: 21px; height: 21px; border-radius: var(--ls-radius);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10.5px; font-weight: 800; color: #fff;
}
.tp-e-w { background: var(--primary); }
.tp-e-d { background: #b7bcc3; }
.tp-e-l { background: var(--rosso); }

.tp-avviso {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 18px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    border: 1px solid rgba(var(--ls-primary-rgb), 0.16); border-left: 4px solid var(--primary);
    border-radius: var(--ls-radius); padding: 16px 20px; margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(var(--ls-primary-rgb), 0.07);
}
.tp-avviso-icona { position: relative; width: 50px; height: 50px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; }
.tp-avviso-icona img { width: 34px; height: 34px; object-fit: contain; }
.tp-avviso-campana {
    position: absolute; right: -4px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: 10.5px; border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center;
}
.tp-avviso-titolo { font-size: 15.5px; font-weight: 800; color: #141921; line-height: 1.25; }
.tp-avviso-punti { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12px; color: #3c4148; }
.tp-avviso-punti i { color: var(--primary); font-size: 11px; margin-right: 3px; }
.tp-avviso-form { display: flex; background: #fff; border: 1px solid #d0d7e3; border-radius: var(--ls-radius-pill); padding: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); transition: border-color .15s, box-shadow .15s; }
.tp-avviso-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--ls-primary-rgb), 0.15); }
.tp-avviso-form input[type="email"] {
    border: 0; background: transparent; padding: 8px 14px; font-size: 13.5px; font-family: inherit;
    min-width: 210px; color: var(--ls-text); outline: none;
}
.tp-avviso-form button {
    background: var(--primary); color: #fff; border: none; border-radius: var(--ls-radius-pill);
    padding: 9px 18px; font-size: 13px; font-weight: 800; font-family: inherit;
    cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s;
}
.tp-avviso-form button:hover { background: var(--accent); transform: translateY(-1px); }
.tp-avviso-form button i { margin-right: 5px; }

.tp-avviso-privacy {
    grid-column: 2 / -1; display: flex; align-items: flex-start; gap: 7px;
    font-size: 11px; color: var(--ls-text-2); line-height: 1.45; cursor: pointer;
}
.tp-avviso-privacy input { margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.tp-avviso-privacy a { color: var(--primary); text-decoration: underline; }

.tp-widget-promo {
    display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 10px 14px;
    border: 1px dashed #c8ced7; border-radius: var(--ls-radius); background: #fff;
    font-size: 12.5px; color: #3c4148; text-decoration: none; line-height: 1.4;
    transition: border-color .15s, background .15s;
}
.tp-widget-promo:hover { border-color: var(--primary); background: var(--primary-light); }
.tp-widget-promo-ico {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--ls-radius); background: var(--primary-light);
    color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.tp-widget-promo-testo { flex: 1; }
.tp-widget-promo-testo b { color: #141921; }
.tp-widget-promo-cta { flex-shrink: 0; font-weight: 800; color: var(--primary); white-space: nowrap; }

@media (max-width: 768px) {
    .tp-testata { padding: 18px; }
    .tp-testata-alto { flex-wrap: wrap; gap: 14px; }
    .tp-stemma { width: 58px; height: 58px; }
    .tp-titolo h1 { font-size: 21px; }
    .tp-campionato { order: 3; width: 100%; text-align: center; }
    .tp-cifre { gap: 16px 0; }
    .tp-cifra { padding: 0 14px; flex: 1 1 40%; }
    .tp-cifra:nth-child(2n) { border-right: none; }
    .tp-avviso { grid-template-columns: auto 1fr; padding: 14px; }
    .tp-avviso-form { grid-column: 1 / -1; }
    .tp-avviso-form input[type="email"] { flex: 1; min-width: 0; }
    .tp-avviso-privacy { grid-column: 1 / -1; }
    .tp-widget-promo { flex-wrap: wrap; }
    .tp-widget-promo-testo { flex: 1 1 calc(100% - 44px); }
    .tp-widget-promo-cta { margin-left: 44px; }
}

.tp-scheda {
    background: var(--card-bg);
    border: 1px solid #f1f5f9;
    border-radius: var(--ls-radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.tp-scheda-titolo {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px 12px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.9px;
    color: var(--ls-text); border-bottom: 1px solid #f1f5f9;
}
.tp-scheda-titolo i { color: var(--primary); font-size: 12px; }

.tp-mister { display: flex; align-items: center; gap: 13px; padding: 14px 16px; }
.tp-mister img {
    width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
    background: var(--ls-surface-2); flex-shrink: 0; border: 1px solid #f1f5f9;
}
.tp-mister-nome { font-size: 14.5px; font-weight: 800; color: var(--ls-text); line-height: 1.2; }
.tp-mister-riga { font-size: 11.5px; color: var(--ls-muted); margin-top: 4px; }

.tp-stadio-cornice {
    position: relative;
    height: 132px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--ls-surface-2);
}
.tp-stadio-foto {
    position: absolute; inset: 0;
    display: block; width: 100%; height: 100%; object-fit: cover;
    background: var(--ls-surface-2);
}
.tps-velo {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .93) 90%);
}

.tps-testo { position: relative; padding: 0 16px 12px; max-width: 236px; }
.tps-nome { font-size: 16.5px; font-weight: 800; color: var(--ls-header-bg); line-height: 1.2; }
.tps-capienza {
    font-family: var(--ls-font-num);
    font-size: 11px; font-weight: 500; color: #6b7481;
    margin-top: 6px; letter-spacing: .2px;
}

.tp-stadio-ripiego {
    position: relative; height: 132px; overflow: hidden;
    display: flex; align-items: flex-end; background: var(--ls-primary-soft);
}
.tsr-taglio {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg,
        rgba(var(--ls-primary-rgb), .075) 0 30px, rgba(var(--ls-primary-rgb), 0) 30px 60px);
}
.tsr-perimetro {
    position: absolute; left: 11px; right: 11px; top: 11px; bottom: 11px;
    border: 2px solid rgba(var(--ls-primary-rgb), .22); border-radius: var(--ls-radius-sm);
}
.tsr-meta {
    position: absolute; left: 50%; top: 11px; bottom: 11px;
    width: 2px; background: rgba(var(--ls-primary-rgb), .22);
}
.tsr-area {
    position: absolute; top: 34px; bottom: 34px; width: 22px;
    border: 2px solid rgba(var(--ls-primary-rgb), .2);
}
.tsr-area-s { left: 11px; border-left: none; }
.tsr-area-d { right: 11px; border-right: none; }
.tsr-punto { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

.tsr-velo {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0) 34%, rgba(241, 245, 249, .94) 92%);
}
.tsr-testo { position: relative; padding: 0 16px 12px; max-width: 236px; }
.tsr-nome { font-size: 16.5px; font-weight: 800; color: var(--ls-header-bg); line-height: 1.2; }
.tsr-capienza {
    font-family: var(--ls-font-num);
    font-size: 11px; font-weight: 500; color: #6b7481;
    margin-top: 6px; letter-spacing: .2px;
}

.tp-stadio-corpo { padding: 13px 16px 15px; }

.tp-stadio-riga {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12px; color: var(--ls-muted); line-height: 1.45; margin-bottom: 5px;
}
.tp-stadio-riga:last-child { margin-bottom: 0; }
.tp-stadio-riga i { color: var(--ls-muted-2); font-size: 11px; width: 13px; text-align: center; margin-top: 2px; flex-shrink: 0; }

.tp-avvertenza {
    display: flex; align-items: flex-start; gap: 9px;
    margin-top: 18px; padding: 11px 14px;
    background: var(--secondary-light); border: 1px solid #f6d99a; border-radius: var(--ls-radius);
    font-size: 12px; line-height: 1.5; color: #7a4a08;
}
.tp-avvertenza i { color: var(--secondary-dark); font-size: 12px; margin-top: 2px; flex-shrink: 0; }
.tp-avvertenza strong { font-weight: 800; }

.tp-top5 {
    display: flex;
    flex-direction: column;
}

.tp-top5-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--tp-border);
}

.tp-top5-row:last-child {
    border-bottom: 0;
}

.tp-top5-pos {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--tp-text-light);
    font-variant-numeric: tabular-nums;
}

.tp-top5-photo {
    flex-shrink: 0;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #f1f5f9;
}

.tp-top5-ident {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tp-top5-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--tp-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-top5-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--tp-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-top5-voto {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 800;
    color: white;
    background: var(--tp-primary);
    border-radius: var(--ls-radius);
    padding: 2px 7px;
    font-variant-numeric: tabular-nums;
}

.tp-top5-voto.tp-voto--alto,
.tp-chip--voto.tp-voto--alto {
    background: var(--accent);
    color: #fff;
}

.tp-top5-voto.tp-voto--buono,
.tp-chip--voto.tp-voto--buono {
    background: var(--tp-primary);
    color: #fff;
}

.tp-top5-voto.tp-voto--medio,
.tp-chip--voto.tp-voto--medio {
    background: var(--primary-light);
    color: var(--accent);
}

.tp-top5-voto.tp-voto--basso,
.tp-chip--voto.tp-voto--basso {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.tp-top5-nota {
    margin: 10px 0 0;
    font-size: 10px;
    color: var(--tp-text-light);
    text-align: center;
}

.tp-squad-valore {
    padding: 4px 10px;
    border-radius: var(--ls-radius);
    background: var(--secondary-light);
}

.tp-squad-valore strong {
    color: var(--secondary-dark);
}

.tp-squad-valore span {
    color: var(--secondary-dark);
    opacity: 0.85;
}

.tp-ris-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--tp-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.tp-ris-row:last-child { border-bottom: 0; }
.tp-ris-row:hover { background: var(--tp-bg); }

.tp-ris-data {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--tp-text-light);
    font-variant-numeric: tabular-nums;
}

.tp-ris-ident {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tp-ris-avv {
    font-size: 12px;
    font-weight: 700;
    color: var(--tp-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-ris-comp {
    font-size: 10px;
    font-weight: 600;
    color: var(--tp-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-ris-punti {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 800;
    border-radius: var(--ls-radius);
    padding: 2px 7px;
    font-variant-numeric: tabular-nums;
}

.tp-ris-punti--v { background: var(--primary); color: #fff; }
.tp-ris-punti--n { background: var(--tp-bg); color: var(--tp-text-light); }
.tp-ris-punti--p { background: #fee2e2; color: #991b1b; }

.tp-ris-row--live {
    border: 1px solid var(--rosso);
    border-radius: var(--ls-radius);
    margin-bottom: 6px;
}

.tp-ris-bollino {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rosso);
    margin-right: 5px;
    vertical-align: 1px;
    animation: tp-ris-pulsa 1.4s ease-in-out infinite;
}

@keyframes tp-ris-pulsa {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

.tp-ris-punti--live {
    background: var(--rosso);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .tp-ris-bollino { animation: none; }
}

.tp-ris-vuoto {
    margin: 0;
    font-size: 12px;
    color: var(--tp-text-light);
    text-align: center;
}

.tp-testata-destra {
    flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.tp-testata-destra .tp-campionato { align-self: flex-end; }
.tp-societa-bottone {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(245, 158, 11, 0.10); color: #92400e; text-decoration: none;
    border: 1px solid rgba(245, 158, 11, 0.55); border-radius: var(--ls-radius);
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
    padding: 6px 12px; transition: background .15s, border-color .15s;
}
.tp-societa-bottone i { font-size: 10px; color: #d97706; }
.tp-societa-bottone:hover { background: rgba(245, 158, 11, 0.20); border-color: #f59e0b; color: #78350f; }
.tp-societa-nota { font-size: 11px; color: #898e94; text-decoration: none; margin-top: -3px; }
.tp-societa-nota:hover { color: var(--primary); text-decoration: underline; }
.tp-societa-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-light); color: var(--accent);
    border: 1px solid rgba(var(--ls-primary-rgb), 0.14); border-radius: var(--ls-radius);
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 6px 12px;
}
.tp-societa-badge i { font-size: 11px; }
@media (max-width: 768px) {
    .tp-testata-destra { order: 3; width: 100%; align-items: center; }
    .tp-testata-destra .tp-campionato { width: 100%; text-align: center; align-self: stretch; }
}

.tp-squad-fonte--societa { color: var(--accent); font-weight: 700; }
.tp-squad-fonte--societa i { margin-right: 3px; }

.tp-scheda-titolo-nota { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: 0.2px; color: var(--ls-muted-2); text-transform: none; }
.tp-societa-biglietti {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 14px 16px 0; padding: 10px 12px;
    background: var(--primary); color: #fff; text-decoration: none; border-radius: var(--ls-radius);
    font-size: 12.5px; font-weight: 800; letter-spacing: 0.3px;
}
.tp-societa-biglietti:hover { background: var(--primary-dark, var(--ls-primary-dark)); color: #fff; }
.tp-societa-contatti { list-style: none; margin: 0; padding: 12px 16px 4px; font-size: 12.5px; line-height: 1.5; color: var(--ls-text); }
.tp-societa-contatti li { display: flex; align-items: flex-start; gap: 9px; padding: 3px 0; word-break: break-word; }
.tp-societa-contatti i { color: var(--ls-muted-2); font-size: 11px; width: 13px; text-align: center; margin-top: 4px; flex-shrink: 0; }
.tp-societa-contatti a { color: var(--accent); text-decoration: none; font-weight: 600; }
.tp-societa-contatti a:hover { text-decoration: underline; }
.tp-societa-social { display: flex; gap: 8px; padding: 10px 16px 4px; }
.tp-societa-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: #f1f3f5; color: var(--ls-text); font-size: 13px; text-decoration: none; transition: background .15s, color .15s;
}
.tp-societa-social a:hover { background: var(--primary); color: #fff; }
.tp-societa-testo { padding: 10px 16px 14px; font-size: 13px; line-height: 1.6; color: #2a2f36; }
.tp-societa-testo p { margin: 0 0 10px; }
.tp-societa-testo p:last-child { margin-bottom: 0; }

.tp-live {
    position: relative; display: flex; justify-content: center; align-items: center;
    margin-top: 16px; padding: 10px 14px;
    border-radius: var(--ls-radius); background: #e9ecf2; color: var(--tp-text); text-decoration: none;
    transition: background .15s;
}
.tp-live:hover { background: #dfe4ec; color: var(--tp-text); }
.tp-live-campo {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
    width: 100%; max-width: 520px; min-width: 0;
}
.tp-live-sq { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tp-live-sq--casa { flex-direction: row-reverse; justify-content: flex-end; text-align: right; }
.tp-live-sq--osp  { flex-direction: row; text-align: left; }
.tp-live-sq img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.tp-live-sq b {
    font-size: 14px; font-weight: 600; color: var(--tp-text-light); line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tp-live-sq--noi b { color: var(--tp-text); font-weight: 700; }
.tp-live-centro { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.tp-live-punti {
    font-family: var(--ls-font-num);
    font-size: 24px; font-weight: 700; letter-spacing: -0.5px; color: var(--accent);
    display: inline-flex; align-items: center;
}
.tp-live-punti i { font-style: normal; font-size: 15px; color: #8397b4; margin: 0 5px; }
.tp-live-punti span { display: inline-block; min-width: 0.6em; text-align: center; }
.tp-live-punti span.tp-live-gol { animation: tp-live-gol 0.8s ease-in-out 3; }
@keyframes tp-live-gol {
    0%, 100% { color: var(--accent); transform: scale(1); }
    50%      { color: var(--rosso);  transform: scale(1.18); }
}
.tp-live-eti {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 4px;
    font-family: var(--ls-font-num);
    font-size: 10.5px; font-weight: 700; color: var(--rosso); white-space: nowrap;
}
.tp-live-bollino {
    width: 6px; height: 6px; border-radius: 50%; background: var(--rosso); flex-shrink: 0;
    animation: tp-live-pulsa 1.4s ease-in-out infinite;
}
@keyframes tp-live-pulsa { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.tp-live-comp {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    font-size: 11px; font-weight: 600; color: var(--primary); opacity: 0.7; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 5px;
}
.tp-live-comp i { font-size: 9px; }

.tp-live--finita .tp-live-bollino { animation: none; background: #999fa7; }
.tp-live--finita .tp-live-eti { color: var(--ls-muted); }

@media (max-width: 768px) {
    .tp-live { padding: 9px 10px; margin-top: 12px; }
    .tp-live-comp { display: none; }
    .tp-live-campo { gap: 10px; }
    .tp-live-sq { gap: 6px; }
    .tp-live-sq img { width: 24px; height: 24px; }
    .tp-live-sq b { font-size: 12.5px; }
    .tp-live-punti { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .tp-live-bollino { animation: none; }
    .tp-live-punti span.tp-live-gol { animation: none; }
}
