/* Shared visual refinements for season and opponent archive pages. */
.opponent-profile {
    margin: 26px 0 10px;
    padding: 0 26px 26px;
    overflow: hidden;
    border: 1px solid #e7e4df;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(27, 24, 20, .055);
}
.opponent-profile-heading {
    position: relative;
    margin: 0 -26px 22px;
    padding: 25px 26px;
    color: #fff;
    background: radial-gradient(ellipse at 90% 0%, rgba(255,255,255,.14), transparent 38%), linear-gradient(125deg, #19191c, #30272a 70%, #6d1119);
}
.opponent-profile-heading .eyebrow,
.opponent-record span,
.opponent-record small { color: rgba(255,255,255,.72); }
.opponent-profile-heading h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.opponent-logo { width: 74px; height: 74px; padding: 8px; border: 0; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.opponent-record { text-align: right; }
.opponent-record strong { color: #fff; font-size: 30px; }
.opponent-split,
.opponent-extreme,
.opponent-top-scorers li a,
.opponent-top-appearances li a { border-radius: 10px; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.opponent-split { border: 1px solid #efede9; background: #faf9f7; }
.opponent-split:hover,
.opponent-extreme:hover { transform: translateY(-2px); }
.opponent-extreme { border-radius: 10px; background: #fff; text-decoration: none; }
.opponent-top-scorers li a,
.opponent-top-appearances li a { border: 1px solid transparent; text-decoration: none; }
.opponent-top-scorers li a:hover,
.opponent-top-appearances li a:hover { border-color: #eee4e2; background: #fff8f7; }
.opponent-decade-row { border-radius: 9px; }
.opponent-decade-bar { width: 100%; height: 9px; display: block; overflow: hidden; background: #eee; }
.opponent-decade-bar .is-win { fill: var(--red); }
.opponent-decade-bar .is-draw { fill: #aaa9a6; }
.opponent-decade-bar .is-loss { fill: #272727; }
.season-story { padding: 22px 24px; border: 1px solid #e9e6e1; border-left: 3px solid #b20f19; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(27,24,20,.04); }
.season-story h3 { margin-top: 0; }
.season-photo { border-radius: 14px; }
.season-table-section { margin-top: 40px; }
.season-table-section .section-heading { margin-bottom: 14px; }
.legacy-standings { padding: 6px; border-color: #e7e4df; border-radius: 13px; box-shadow: 0 10px 30px rgba(27,24,20,.045); }
.legacy-standings table { border-collapse: separate; border-spacing: 0; }
.legacy-standings th { background: #f6f4f1; color: #55545a; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.legacy-standings th:first-child { border-radius: 8px 0 0 0; }
.legacy-standings th:last-child { border-radius: 0 8px 0 0; }
.legacy-standings tbody tr:nth-child(even) { background: #faf9f7; }
.legacy-standings tbody tr:hover { background: #fff1ef; }
.legacy-standings td { color: #37363b; }
.season-squad-group { border-color: #e8e5e0; border-radius: 12px; box-shadow: 0 6px 20px rgba(27,24,20,.035); }
.season-squad-group h3 { font-size: 14px; }
.season-squad-group li a { border-radius: 6px; }
.season-filter-note,
.suggestion-inline { padding: 12px 15px; border: 1px solid #e9e6e1; border-radius: 10px; background: #fff; }

@media (max-width: 640px) {
    .opponent-profile { padding: 0 15px 18px; border-radius: 12px; }
    .opponent-profile-heading { margin: 0 -15px 17px; padding: 18px 15px; align-items: flex-start; }
    .opponent-identity { gap: 10px; }
    .opponent-logo { width: 52px; height: 52px; padding: 5px; border-radius: 9px; }
    .opponent-profile-heading h2 { margin-top: 5px; font-size: 21px; }
    .opponent-record { gap: 2px; }
    .opponent-record strong { font-size: 23px; }
    .opponent-record span, .opponent-record small { font-size: 9px; }
    .opponent-record small { max-width: 140px; }
    .opponent-splits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .opponent-top-scorers ol, .opponent-top-appearances ol { grid-template-columns: 1fr; }
    .season-story { padding: 17px; }
    .season-table-section { margin-top: 30px; }
    .legacy-standings { padding: 4px; }
    .legacy-standings th, .legacy-standings td { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .opponent-split, .opponent-extreme,
    .opponent-top-scorers li a, .opponent-top-appearances li a { transition: none; }
}
