:root {
  --ink: #17080b;
  --green: #b20d2a;
  --green-2: #e11d3f;
  --lime: #ff4d68;
  --paper: #f7f8f4;
  --white: #ffffff;
  --muted: #607068;
  --line: #dce4de;
  --danger: #c3372f;
  --amber: #d99516;
  --shadow: 0 18px 50px rgba(4, 27, 18, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; padding: 10px 14px; background: white; transform: translateY(-140%); }
.skip-link:focus { transform: none; }

.breaking-bar { background: var(--lime); color: var(--ink); font-size: .78rem; }
.breaking-inner { min-height: 34px; display: flex; align-items: center; gap: 16px; }
.breaking-inner strong { text-transform: uppercase; letter-spacing: .12em; }
.breaking-inner a { margin-left: auto; font-weight: 800; text-decoration: underline; }
.site-header { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.16); }
.header-main { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 950; font-size: 1.5rem; letter-spacing: -.06em; white-space: nowrap; }
.brand > span:last-child > span { color: var(--lime); }
.brand-mark { width: 38px; aspect-ratio: 1; border: 3px solid var(--lime); border-radius: 50%; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, rgba(200,243,67,.2), transparent); }
.brand-mark::before, .brand-mark::after, .brand-mark i { content: ""; position: absolute; background: var(--lime); border-radius: 2px; }
.brand-mark::before { width: 16px; height: 3px; transform: rotate(33deg); }
.brand-mark::after { width: 3px; height: 16px; transform: rotate(33deg); }
.brand-mark i { width: 7px; height: 7px; border-radius: 50%; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: .88rem; font-weight: 760; }
.main-nav a { padding: 28px 0 24px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--lime); border-color: var(--lime); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-button, .menu-button { min-width: 42px; min-height: 42px; border: 1px solid rgba(255,255,255,.22); color: white; background: rgba(255,255,255,.06); border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
.icon-button { font-size: 1.4rem; }
.menu-button { display: none; padding: 9px; }
.menu-button span { width: 20px; height: 2px; margin: 2px 0; background: white; display: block; }
.menu-button b { position: absolute; clip: rect(0 0 0 0); }
.topic-strip { min-height: 34px; display: flex; align-items: center; gap: 20px; overflow-x: auto; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; color: #c2cec8; white-space: nowrap; }
.topic-strip > span { color: var(--lime); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.topic-strip a:hover { color: white; }

.hero-grid { padding-block: 34px 44px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .8fr); gap: 22px; }
.lead-story { border-radius: 24px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.lead-image { position: relative; display: block; aspect-ratio: 16/8.2; overflow: hidden; background: #43131c; }
.lead-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.lead-story:hover .lead-image img { transform: scale(1.025); }
.content-badge { position: absolute; top: 16px; left: 16px; display: inline-flex; padding: 7px 10px; border-radius: 8px; background: var(--lime); color: var(--ink); text-transform: uppercase; font-weight: 900; font-size: .66rem; letter-spacing: .08em; box-shadow: 0 4px 16px rgba(0,0,0,.14); }
.badge-rumor { background: #f6d77c; }
.badge-opiniao { background: #cddcff; }
.badge-patrocinado { background: #ffe1a9; }
.badge-informacao-oficial, .badge-oficial { background: #b9f0d4; }
.lead-content { padding: 24px 28px 28px; }
.lead-content > a, .card-category { color: var(--green); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.lead-content h1 { margin: 8px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.45rem); line-height: .98; letter-spacing: -.045em; }
.lead-content p { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.lead-meta, .card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .74rem; color: var(--muted); }
.lead-meta span { font-weight: 750; color: var(--ink); }
.hero-side { display: grid; grid-template-columns: 1fr; gap: 14px; }
.article-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; min-width: 0; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-image-wrap { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #eadde0; }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-content { padding: 18px 19px 20px; }
.card-content h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.15; margin: 7px 0 10px; letter-spacing: -.025em; }
.card-content p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.article-card-compact { display: grid; grid-template-columns: 142px 1fr; min-height: 134px; }
.article-card-compact .card-image-wrap { aspect-ratio: auto; min-height: 100%; }
.article-card-compact .card-content { padding: 14px; }
.article-card-compact .card-content h3 { font-size: 1.03rem; margin-bottom: 8px; }
.article-card-compact .content-badge { top: 8px; left: 8px; padding: 4px 6px; font-size: .56rem; }

.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; padding-bottom: 70px; }
.home-section { margin-bottom: 54px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-top: 4px solid var(--ink); padding-top: 14px; margin-bottom: 20px; }
.section-heading span, .popular-title span { color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; font-weight: 900; }
.section-heading h2, .popular-title h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1; margin: 4px 0 0; }
.section-heading > a { color: var(--green); font-size: .8rem; font-weight: 850; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.latest-list { display: grid; gap: 14px; }
.latest-list .article-card { display: grid; grid-template-columns: 250px 1fr; }
.latest-list .card-image-wrap { aspect-ratio: 16/10; }
.pagination { display: flex; gap: 8px; margin-top: 22px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding-inline: 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; background: white; }
.pagination span { background: var(--ink); color: white; }
.popular-panel { position: sticky; top: 132px; background: var(--ink); color: white; border-radius: 22px; padding: 24px; }
.popular-title span { color: var(--lime); }
.popular-panel ol { list-style: none; padding: 0; margin: 18px 0 0; }
.popular-panel li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.13); }
.popular-panel li > b { color: var(--lime); font: 900 1.5rem Georgia, serif; }
.popular-panel li div > a { color: var(--lime); font-size: .63rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.popular-panel h3 { font: 700 1rem/1.18 Georgia, serif; margin: 4px 0 5px; }
.popular-panel li span { color: #aebdb6; font-size: .68rem; }
.newsletter-box { background: var(--green); border-radius: 16px; padding: 18px; margin-top: 20px; }
.newsletter-box > span { color: var(--lime); text-transform: uppercase; letter-spacing: .1em; font-size: .64rem; font-weight: 900; }
.newsletter-box h3 { font-size: 1.35rem; margin: 6px 0; }
.newsletter-box p { font-size: .8rem; color: #ffe8ec; }
.newsletter-box button { width: 100%; border: 0; border-radius: 10px; padding: 10px; background: var(--lime); font-weight: 900; color: var(--ink); }

.page-shell { padding-block: 42px 70px; }
.page-hero { background: var(--ink); color: white; padding: 46px 0; }
.page-hero .eyebrow, .article-hero .eyebrow { color: var(--lime); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }
.page-hero h1 { font: 800 clamp(2.2rem, 6vw, 4.7rem)/.95 Georgia, serif; max-width: 900px; margin: 8px 0 12px; }
.page-hero p { max-width: 700px; color: #c9d7d0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .74rem; color: var(--muted); margin-bottom: 20px; }
.page-hero .breadcrumbs { color: #c9d7d0; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }

.article-hero { background: var(--ink); color: white; padding: 42px 0 34px; }
.article-heading { max-width: 940px; }
.article-heading h1 { font: 800 clamp(2.2rem, 6vw, 5.3rem)/.94 Georgia, serif; letter-spacing: -.045em; margin: 10px 0 18px; }
.article-heading .subtitle { color: #c9d7d0; font-size: 1.15rem; max-width: 780px; }
.opinion-alert { background: #e9efff; border-left: 5px solid #3957ad; color: #1e326d; padding: 14px 16px; border-radius: 8px; font-weight: 750; margin: 18px 0; }
.source-status { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.source-status .content-badge { position: static; box-shadow: none; }
.article-byline { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: #c9d7d0; margin-top: 22px; }
.author-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 950; }
.article-byline strong { display: block; color: white; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 46px; align-items: start; padding-block: 32px 70px; }
.article-cover { margin: 0 0 28px; }
.article-cover img { width: 100%; border-radius: 20px; aspect-ratio: 16/9; object-fit: cover; }
.article-cover figcaption { color: var(--muted); font-size: .72rem; padding-top: 8px; }
.article-body { font-family: Georgia, "Times New Roman", serif; font-size: 1.14rem; line-height: 1.82; }
.article-body p:first-of-type::first-letter { float: left; font-size: 4.3rem; line-height: .8; padding: 10px 8px 0 0; color: var(--green); font-weight: 800; }
.article-body h2 { font-size: 1.9rem; line-height: 1.1; margin-top: 40px; }
.article-tools { display: flex; gap: 8px; margin: 24px 0; flex-wrap: wrap; }
.article-tools a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font: 750 .75rem ui-sans-serif, system-ui; background: white; }
.article-sources, .article-tags, .author-box, .related-box { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.article-sources h2, .article-tags h2, .author-box h2, .related-box h2 { font: 800 1.25rem ui-sans-serif, system-ui; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags h2 { width: 100%; }
.article-tags a { background: #e9eee9; padding: 7px 10px; border-radius: 8px; font: 750 .72rem ui-sans-serif, system-ui; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 16px; font: .9rem ui-sans-serif, system-ui; }
.author-box .author-avatar { width: 64px; height: 64px; }
.article-aside { position: sticky; top: 140px; }
.aside-box { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 16px; }
.aside-box h2 { font: 800 1.2rem Georgia, serif; margin-top: 0; }
.aside-box ul { padding-left: 18px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.prev-next a { border: 1px solid var(--line); background: white; border-radius: 14px; padding: 14px; font: 750 .8rem ui-sans-serif, system-ui; }

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.teams-heading { align-items: end; }
.teams-heading > small { color: var(--muted); text-align: right; }
.team-card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; gap: 14px; align-items: center; color: var(--ink); box-shadow: 0 6px 18px rgba(25, 8, 12, .04); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.team-card:hover, .team-card:focus-visible { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 12px 28px rgba(96, 9, 21, .12); }
.team-card-logo { flex: 0 0 68px; width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 15px; background: #faf8f7; padding: 7px; }
.team-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.team-card-copy { min-width: 0; display: grid; gap: 5px; }
.team-card-copy strong { font-size: 1rem; font-weight: 900; line-height: 1.1; }
.team-card-copy small { color: var(--muted); font-size: .75rem; line-height: 1.25; }
.institutional-card { max-width: 840px; background: white; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 54px); box-shadow: var(--shadow); }
.institutional-card h2 { margin-top: 32px; }

.admin-shell { background: #f4edef; min-height: 70vh; padding: 40px 0 70px; }
.admin-top { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.admin-top h1 { margin: 0; font: 800 2.5rem Georgia, serif; }
.admin-user { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .8rem; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
.admin-panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.admin-form { display: grid; gap: 16px; }
.admin-form label { display: grid; gap: 6px; font-size: .76rem; font-weight: 800; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; border: 1px solid #bdc9c1; border-radius: 10px; padding: 11px 12px; background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.check-row input { width: auto; }
.admin-button { border: 0; border-radius: 10px; background: var(--green); color: white; padding: 13px 16px; font-weight: 900; cursor: pointer; }
.admin-button:disabled { opacity: .55; cursor: wait; }
.admin-note { color: var(--muted); font-size: .78rem; }
.admin-success { background: #dff5e8; color: #075b35; padding: 10px; border-radius: 8px; }
.admin-error { background: #fde5e2; color: #9b211b; padding: 10px; border-radius: 8px; }
.ai-admin-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; align-items: start; }
.ai-panel-title { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 20px; }
.ai-panel-title h2 { margin: 3px 0 0; }
.ai-status { border-radius: 999px; padding: 8px 11px; background: #fde5e2; color: #9b211b; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.ai-status.is-ready { background: #dff5e8; color: #075b35; }
.ai-warning { border: 1px solid #e5bf65; border-radius: 12px; padding: 13px 15px; background: #fff8e6; color: #5f4510; }
.ai-warning p { margin: 4px 0 0; font-size: .82rem; line-height: 1.55; }
.ai-settings { position: sticky; top: 20px; }
.ai-settings hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.ai-remove-key { margin-top: 12px; border: 0; padding: 8px 0; background: none; color: #a40016; cursor: pointer; font-weight: 800; }
.ai-service-list { display: grid; gap: 13px; padding: 0; list-style: none; }
.ai-service-list li { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.ai-service-list span { color: var(--muted); font-size: .78rem; line-height: 1.45; }

.brasileirao-page { padding-block: 34px 70px; }
.football-dashboard { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 52px; }
.football-dashboard-head { background: var(--ink); color: #fff; padding: 26px 28px 20px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.football-dashboard-head > div:first-child > span { color: var(--lime); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.football-dashboard-head h2 { margin: 4px 0 5px; font: 800 clamp(1.7rem, 4vw, 2.5rem)/1 Georgia, serif; }
.data-status { margin: 0; color: #decbd0; font-size: .72rem; }
.data-status.is-stale { color: #ffd477; }
.football-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.football-tabs button { border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 9px 14px; background: rgba(255,255,255,.06); color: #fff; font-size: .76rem; font-weight: 850; cursor: pointer; }
.football-tabs button[aria-selected="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.standings-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .78rem; }
.standings-table th { padding: 13px 10px; background: #f4edef; color: #6d5860; text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; text-align: center; }
.standings-table th:nth-child(2) { text-align: left; }
.standings-table td { border-top: 1px solid var(--line); padding: 10px; text-align: center; }
.standings-table tbody tr { border-left: 4px solid transparent; }
.admin-login-card { max-width: 560px; margin-inline: auto; }
.admin-login-card form { display: grid; gap: 18px; margin-top: 24px; }
.admin-login-card label { display: grid; gap: 8px; font-weight: 800; }
.admin-login-card input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--surface); color: var(--ink); font: inherit; }
.admin-login-card button { width: 100%; border: 0; cursor: pointer; }
.form-error { color: #a40016; background: #fff0f2; border: 1px solid #e7a5af; border-radius: 10px; padding: 10px 12px; }
.standings-table .zone-libertadores { border-left-color: #2364d2; }
.standings-table .zone-pre { border-left-color: #4d9af0; }
.standings-table .zone-relegation { border-left-color: var(--green-2); }
.team-cell { min-width: 190px; display: flex; align-items: center; gap: 9px; text-align: left !important; position: sticky; left: 0; background: #fff; z-index: 1; }
.team-cell img { object-fit: contain; }
.form-dots { display: inline-flex; gap: 3px; }
.form-dots i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #92999c; color: #fff; font-size: .58rem; font-style: normal; font-weight: 900; }
.form-dots .result-w { background: #15945c; }
.form-dots .result-l { background: #d63148; }
.leaders-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; padding: 8px 28px 22px; }
.leader-row { display: grid; grid-template-columns: 30px 54px minmax(0, 1fr) 56px; gap: 11px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.leader-row > b { color: var(--green); font: 900 1.25rem Georgia, serif; text-align: center; }
.player-photo { width: 54px; height: 54px; object-fit: cover; border-radius: 50%; background: #f0e8ea; }
.leader-row div { min-width: 0; }
.leader-row div > strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-row span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; }
.leader-row span img { object-fit: contain; }
.leader-row small { display: block; color: #8a767d; font-size: .62rem; }
.leader-row > em { color: var(--green); font: 900 1.55rem/1 Georgia, serif; text-align: center; font-style: normal; }
.leader-row > em small { margin-top: 4px; font: 800 .55rem/1 ui-sans-serif, system-ui; text-transform: uppercase; }
.competition-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 28px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .68rem; }
.competition-legend span { display: flex; align-items: center; gap: 6px; }
.competition-legend i { width: 9px; height: 9px; border-radius: 2px; background: #999; }
.competition-legend .legend-libertadores { background: #2364d2; }
.competition-legend .legend-pre { background: #4d9af0; }
.competition-legend .legend-relegation { background: var(--green-2); }
.football-empty { padding: 70px 24px; text-align: center; }
.football-empty strong { display: block; font: 800 1.4rem Georgia, serif; }
.football-empty p { color: var(--muted); max-width: 520px; margin: 8px auto 0; }

.team-page { background: var(--surface); }
.team-hero { background: linear-gradient(135deg, #120407 0%, #24070d 72%, #5d0b1a 100%); color: #fff; padding: 34px 0 38px; }
.team-hero .breadcrumbs { color: #d9c8cd; margin-bottom: 26px; }
.team-hero .breadcrumbs a { color: #fff; }
.team-hero-inner { display: grid; gap: 26px; }
.team-identity { display: flex; align-items: center; gap: clamp(20px,4vw,38px); }
.team-crest { width: 150px; height: 150px; flex: 0 0 150px; display: grid; place-items: center; border-radius: 28px; padding: 15px; background: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.28); }
.team-crest img { width: 100%; height: 100%; object-fit: contain; }
.team-identity h1 { margin: 4px 0 8px; color: #fff; font: 900 clamp(2.8rem,7vw,5.4rem)/.92 Georgia,serif; }
.team-identity p { margin: 0; color: #d9c8cd; font-size: clamp(.95rem,2vw,1.2rem); }
.team-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.team-facts > div { border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.06); }
.team-facts small,.team-stat-grid small { display: block; margin-bottom: 5px; color: #a99299; font-size: .64rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.team-facts strong { font-size: .9rem; }
.team-page-shell { display: grid; gap: 52px; padding-block: 40px 72px; }
.team-overview { min-width: 0; }
.team-stat-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(25,8,12,.05); }
.team-stat-grid > div { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.team-stat-grid > div:last-child { border-right: 0; }
.team-stat-grid strong { color: var(--ink); font: 900 clamp(1.25rem,3vw,1.8rem)/1.05 Georgia,serif; }
.team-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.team-match-list { display: grid; gap: 10px; }
.team-match { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
.team-match-date { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .7rem; }
.team-match-date strong { color: var(--green); }
.team-match-clubs { display: grid; grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); gap: 8px; align-items: center; }
.team-match-clubs > span { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: .75rem; font-weight: 850; }
.team-match-clubs > span:last-child { flex-direction: row-reverse; text-align: right; }
.team-match-clubs img { flex: 0 0 34px; object-fit: contain; }
.team-match-clubs b { text-align: center; }
.team-match > small { color: var(--muted); font-size: .65rem; }
.team-data-empty { border: 1px dashed #cdbfc3; border-radius: 16px; padding: 24px; background: #fff; }
.team-data-empty strong { display: block; margin-bottom: 6px; font: 850 1.05rem Georgia,serif; }
.team-data-empty p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.team-editorial-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; border: 1px solid #dfc9cf; border-left: 5px solid var(--red); border-radius: 14px; padding: 14px 18px; background: #fff; font-size: .76rem; }
.team-editorial-meta strong { color: var(--red); }
.team-editorial-meta span { color: var(--muted); }
.team-editorial-meta a { margin-left: auto; font-weight: 800; }
.team-editorial-content { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; font-size: .9rem; line-height: 1.7; }
.team-editorial-content p:first-child { margin-top: 0; }
.team-editorial-content p:last-child { margin-bottom: 0; }
.team-editorial-content ul,.team-editorial-content ol { margin: 8px 0; padding-left: 22px; }
.club-picker { display: grid; grid-template-columns: minmax(220px,1fr) auto auto; align-items: end; gap: 12px; }
.club-editor-form { display: grid; gap: 18px; margin-top: 18px; }
.club-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.club-editor-head > p { max-width: 620px; color: var(--muted); line-height: 1.6; }
.team-admin-name { display: flex; align-items: center; gap: 14px; }
.team-admin-name img { object-fit: contain; border-radius: 50%; background: #fff; }
.team-admin-name h2 { margin: 2px 0 0; }
.club-editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.club-section-editor:last-child { grid-column: 1 / -1; }
.club-section-editor h2,.club-source-panel h2 { margin-top: 0; }
.club-section-editor textarea { min-height: 180px; }
.team-player-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.team-player-grid article { display: flex; align-items: center; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
.team-player-grid img { width: 58px; height: 58px; flex: 0 0 58px; object-fit: cover; border-radius: 50%; background: #f0e8ea; }
.team-player-grid strong,.team-player-grid span { display: block; }
.team-player-grid strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.team-player-grid span { margin-top: 4px; color: var(--muted); font-size: .7rem; }

.site-footer { background: #100507; color: #e7dadd; padding: 52px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 38px; }
.brand-footer { color: white; }
.footer-grid p { color: #9fafA6; max-width: 360px; font-size: .84rem; }
.footer-grid h2 { color: var(--lime); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 8px 0; font-size: .82rem; }
.footer-grid a:hover { color: var(--lime); }
.footer-note { text-transform: uppercase; letter-spacing: .1em; font-size: .64rem !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; color: #83938a; font-size: .7rem; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--ink); padding: 18px; border-top: 1px solid rgba(255,255,255,.12); flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-grid, .home-layout, .article-layout, .admin-grid, .ai-admin-grid { grid-template-columns: 1fr; }
  .ai-settings { position: static; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .popular-panel, .article-aside { position: static; }
  .cards-grid, .listing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .team-stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .team-stat-grid > div:nth-child(3) { border-right: 0; }
  .team-stat-grid > div { border-bottom: 1px solid var(--line); }
  .team-player-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .preview-bar { position:static; flex-direction:column; gap:5px; text-align:center; }
  .editor-actions > * { width:100%; }
  .container { width: min(100% - 24px, 1180px); }
  .breaking-inner span { display: none; }
  .header-main { min-height: 66px; gap: 12px; }
  .brand { font-size: 1.25rem; }
  .brand-mark { width: 34px; }
  .main-nav { top: 66px; }
  .topic-strip { gap: 16px; }
  .hero-grid { padding-block: 20px 34px; }
  .lead-image { aspect-ratio: 4/3; }
  .lead-content { padding: 20px; }
  .lead-content h1 { font-size: 2.2rem; }
  .hero-side, .cards-grid, .listing-grid, .team-grid { grid-template-columns: 1fr; }
  .team-hero { padding-top: 22px; }
  .team-identity { align-items: flex-start; }
  .team-crest { width: 92px; height: 92px; flex-basis: 92px; padding: 10px; border-radius: 20px; }
  .team-identity h1 { font-size: 2.55rem; }
  .team-facts,.team-columns,.team-player-grid { grid-template-columns: 1fr; }
  .team-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .team-stat-grid > div,.team-stat-grid > div:nth-child(3) { border-right: 1px solid var(--line); }
  .team-stat-grid > div:nth-child(even) { border-right: 0; }
  .team-page-shell { gap: 40px; padding-top: 28px; }
  .article-card-compact { grid-template-columns: 122px 1fr; }
  .latest-list .article-card { grid-template-columns: 118px 1fr; }
  .latest-list .card-content { padding: 12px; }
  .latest-list .card-content h3 { font-size: 1rem; }
  .latest-list .card-content p, .latest-list .card-meta span { display: none; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 1.7rem; }
  .article-heading h1 { font-size: 2.55rem; }
  .article-layout { padding-top: 18px; }
  .article-body { font-size: 1.04rem; }
  .prev-next, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .admin-top { align-items: start; flex-direction: column; }
  .club-picker,.club-editor-grid { grid-template-columns: 1fr; }
  .club-section-editor:last-child { grid-column: auto; }
  .club-editor-head { align-items: flex-start; flex-direction: column; }
  .team-editorial-meta { align-items: flex-start; flex-direction: column; }
  .team-editorial-meta a { margin-left: 0; }
  .football-dashboard-head { align-items: start; flex-direction: column; padding: 22px 18px 18px; }
  .football-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .football-tabs button { padding: 9px 6px; font-size: .68rem; }
  .leaders-list { grid-template-columns: 1fr; padding: 4px 16px 18px; }
  .leader-row { grid-template-columns: 24px 46px minmax(0, 1fr) 48px; gap: 8px; }
  .player-photo { width: 46px; height: 46px; }
  .competition-legend { padding-inline: 18px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

.search-form { display:grid; grid-template-columns:1fr auto; gap:10px; margin:24px 0 34px; }
.search-form input { min-width:0; border:1px solid var(--line); border-radius:12px; padding:14px 16px; background:#fff; }
.search-form button, .button { border:0; border-radius:10px; padding:12px 18px; background:var(--green); color:#fff; font-weight:900; cursor:pointer; }
.empty-state { padding:48px 20px; text-align:center; border:1px dashed var(--line); border-radius:16px; background:#fff; }
.install-alert { background:#fff2c7; border:1px solid #e3bd43; padding:12px 16px; text-align:center; }
.team-card-logo-fallback { font-weight:950; color:var(--green); }
.cookie-banner { position:fixed; inset:auto 18px 18px 18px; z-index:100; max-width:780px; margin:auto; display:flex; align-items:center; gap:18px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px 18px; box-shadow:var(--shadow); }
.cookie-banner p { margin:0; font-size:.82rem; }
.cookie-banner[hidden] { display:none; }
.article-body a, .institutional-card a { color:var(--green); text-decoration:underline; }
.article-body img { width:100%; height:auto; border-radius:16px; margin:28px 0; }
.article-inline-image { margin:36px 0; }
.article-inline-image img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:16px; background:#eee; }
.article-inline-image figcaption { margin-top:9px; color:var(--muted); font: .82rem/1.5 Arial,sans-serif; }
.article-end-image { margin-top:44px; }
.preview-bar { position:sticky; top:0; z-index:100; display:flex; justify-content:center; align-items:center; gap:16px; padding:12px 18px; color:#fff; background:#9f001b; box-shadow:0 5px 18px rgba(0,0,0,.2); }
.preview-bar a { color:#fff; font-weight:800; text-decoration:underline; }
.media-editor { margin:22px 0; padding:18px; border:1px solid var(--line); border-radius:14px; }
.media-editor legend { padding:0 8px; font-weight:900; font-size:1.05rem; }
.media-editor > p { margin-top:0; color:var(--muted); }
.editor-actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.preview-button { border:1px solid #17385f; border-radius:10px; padding:13px 18px; color:#17385f; background:#fff; font-weight:900; cursor:pointer; }
@media(max-width:680px){.search-form{grid-template-columns:1fr}.cookie-banner{align-items:stretch;flex-direction:column}.cookie-banner .button{width:100%}.preview-bar{position:static;flex-direction:column;gap:5px;text-align:center}.editor-actions{align-items:stretch;flex-direction:column}.editor-actions button{width:100%}}
