/* FM27 R27.80 – isolated editorial, records and match-preview presentation. Dark R27.35 context remains canonical. */
body.fm27-midnight .fm27-r2780-news,body.fm27-midnight .fm27-r2780-article,body.fm27-midnight .fm27-r2780-ranking,body.fm27-midnight .fm27-r2780-hof{color:#ecf3ff;max-width:100%;min-width:0}
body.fm27-midnight .fm27-r2780-eyebrow{color:#62eac4;letter-spacing:.11em;text-transform:uppercase;font-size:.68rem;font-weight:800;display:inline-flex;gap:7px;align-items:center}
body.fm27-midnight .fm27-r2780-news-heading,body.fm27-midnight .fm27-r2780-section-head{margin-bottom:17px;display:flex;align-items:end;justify-content:space-between;gap:16px}
body.fm27-midnight .fm27-r2780-news-heading h2,body.fm27-midnight .fm27-r2780-section-head h2{font-weight:850;font-size:clamp(1.25rem,2vw,1.7rem);line-height:1.17;margin:6px 0 3px;color:#f1f6ff}
body.fm27-midnight .fm27-r2780-news-heading p,body.fm27-midnight .fm27-r2780-section-head p{margin:0;color:#9fb4d2;font-size:.84rem}
body.fm27-midnight .fm27-r2780-news-lead{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(285px,1fr);min-height:260px;border:1px solid #2a4772;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,#13243e,#0c1830);color:#eaf2ff;text-decoration:none;transition:border-color .2s,transform .2s;margin-bottom:14px}
body.fm27-midnight .fm27-r2780-news-lead:has(.fm27-r2780-news-lead-visual) .fm27-r2780-news-lead-body{padding:clamp(20px,3vw,38px)}
body.fm27-midnight .fm27-r2780-news-lead:not(:has(.fm27-r2780-news-lead-visual)){grid-template-columns:1fr;min-height:180px}
body.fm27-midnight .fm27-r2780-news-lead:hover{border-color:#39cfa4;transform:translateY(-1px)}
body.fm27-midnight .fm27-r2780-news-lead-visual{overflow:hidden;position:relative;background:#111d30;min-height:210px}
body.fm27-midnight .fm27-r2780-news-lead-visual img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .3s}
body.fm27-midnight .fm27-r2780-news-lead:hover img{transform:scale(1.035)}
body.fm27-midnight .fm27-r2780-news-lead-body{display:flex;flex-direction:column;justify-content:center;padding:25px;min-width:0}
body.fm27-midnight .fm27-r2780-news-lead h3{font-size:clamp(1.32rem,2.2vw,2.05rem);font-weight:850;line-height:1.16;margin:11px 0 9px;color:#fff}
body.fm27-midnight .fm27-r2780-news-lead p{color:#b9c9e0;font-size:.91rem;line-height:1.5;margin:0 0 17px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.fm27-midnight .fm27-r2780-news-read{font-size:.8rem;color:#63e9bc;font-weight:770}
body.fm27-midnight .fm27-r2780-dot{width:4px;height:4px;background:#5e7799;border-radius:50%;margin-inline:5px}
body.fm27-midnight .fm27-r2780-news-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.fm27-midnight .fm27-r2780-news-row{display:grid;grid-template-columns:124px minmax(0,1fr);gap:14px;min-width:0;padding:12px;background:linear-gradient(130deg,#142642,#101d33);border:1px solid #2a4265;border-radius:11px}
body.fm27-midnight .fm27-r2780-news-row:not(:has(.fm27-r2780-news-row-image)){grid-template-columns:1fr}
body.fm27-midnight .fm27-r2780-news-row-image{height:100%;min-height:120px;overflow:hidden;border-radius:7px;background:#1f3350}
body.fm27-midnight .fm27-r2780-news-row-image img{display:block;width:100%;height:100%;object-fit:cover}
body.fm27-midnight .fm27-r2780-news-row-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
body.fm27-midnight .fm27-r2780-news-date{font-size:.67rem;color:#95aecd}
body.fm27-midnight .fm27-r2780-news-row h3{font-size:.98rem;font-weight:780;line-height:1.28;margin:6px 0}
body.fm27-midnight .fm27-r2780-news-row h3 a{color:#f2f6ff;text-decoration:none}
body.fm27-midnight .fm27-r2780-news-row h3 a:hover{color:#64e9bd}
body.fm27-midnight .fm27-r2780-news-row p{font-size:.75rem;line-height:1.43;color:#b0c2dc;margin:0 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.fm27-midnight .fm27-r2780-news-row-link{color:#6be3c2;font-size:.72rem;font-weight:720;text-decoration:none;margin-top:auto}
body.fm27-midnight .fm27-r2780-article{max-width:950px;margin-inline:auto}
body.fm27-midnight .fm27-r2780-article-header{padding:14px 0 21px;border-bottom:1px solid #2a4265}
body.fm27-midnight .fm27-r2780-article-back{display:inline-flex;gap:8px;align-items:center;color:#a4b9d5;font-size:.79rem;text-decoration:none;margin-bottom:21px}
body.fm27-midnight .fm27-r2780-article-back:hover{color:#6be3c2}
body.fm27-midnight .fm27-r2780-article-header h1{font-size:clamp(1.7rem,3.4vw,2.65rem);line-height:1.13;font-weight:850;letter-spacing:-.025em;margin:12px 0;color:#f8fbff}
body.fm27-midnight .fm27-r2780-article-meta{display:flex;flex-wrap:wrap;gap:16px;color:#9db3d1;font-size:.78rem}
body.fm27-midnight .fm27-r2780-article-meta span{display:inline-flex;gap:7px;align-items:center}
body.fm27-midnight .fm27-r2780-article-hero{margin:20px 0 24px;overflow:hidden;border-radius:12px;border:1px solid #2c4568;background:#172944}
body.fm27-midnight .fm27-r2780-article-hero img{width:100%;display:block;aspect-ratio:16/9;max-height:480px;object-fit:cover}
body.fm27-midnight .fm27-r2780-article-body{font-size:1rem;line-height:1.75;color:#d9e5f5;overflow-wrap:anywhere}
body.fm27-midnight .fm27-r2780-article-body p{margin-bottom:1.18em}
body.fm27-midnight .fm27-r2780-article-body h2,body.fm27-midnight .fm27-r2780-article-body h3{color:#f4f8ff;line-height:1.25;margin-top:1.3em}
body.fm27-midnight .fm27-r2780-article-related{border-top:1px solid #2b4568;padding-top:22px;margin-top:34px}
body.fm27-midnight .fm27-r2780-article-related h2{font-size:1.08rem;color:#fff;margin-bottom:12px}
body.fm27-midnight .fm27-r2780-related-links{display:flex;flex-wrap:wrap;gap:9px}
body.fm27-midnight .fm27-r2780-related-links a{display:inline-flex;align-items:center;gap:8px;color:#d9eeff;border:1px solid #3b577b;padding:9px 12px;border-radius:7px;text-decoration:none;font-size:.79rem}
body.fm27-midnight .fm27-r2780-related-links a:hover{border-color:#56e2b3;color:#64e9bd}
body.fm27-midnight .fm27-r2780-table-shell{border:1px solid #294669;border-radius:12px;background:#101e36;overflow:auto}
body.fm27-midnight .fm27-r2780-data-table{border-collapse:collapse;margin:0;min-width:620px;color:#e2edfd;background:transparent}
body.fm27-midnight .fm27-r2780-data-table thead th{border:0;border-bottom:1px solid #385478;background:#172b48;color:#a4b9d9;text-transform:uppercase;font-size:.68rem;font-weight:800;letter-spacing:.06em;padding:12px 14px;white-space:nowrap}
body.fm27-midnight .fm27-r2780-data-table tbody td{background:transparent;border:0;border-bottom:1px solid #253d5d;padding:12px 14px;color:#dbe6f5;vertical-align:middle;font-size:.84rem}
body.fm27-midnight .fm27-r2780-data-table tbody tr:last-child td{border-bottom:0}
body.fm27-midnight .fm27-r2780-data-table tbody tr:hover td{background:#19304d}
body.fm27-midnight .fm27-r2780-data-table a{color:#f1f6ff;text-decoration:none;font-weight:730}
body.fm27-midnight .fm27-r2780-data-table a:hover{color:#72e6c2}
body.fm27-midnight .fm27-r2780-person{display:flex;align-items:center;gap:10px;min-width:0}
body.fm27-midnight .fm27-r2780-person img,body.fm27-midnight .fm27-r2780-icon-placeholder{width:32px;height:32px;object-fit:contain;border-radius:8px;flex:none}
body.fm27-midnight .fm27-r2780-icon-placeholder{display:grid;place-items:center;color:#aabfdb;background:#213954}
body.fm27-midnight .fm27-r2780-person>a,body.fm27-midnight .fm27-r2780-person>a:not(:first-child){min-width:0}
body.fm27-midnight .fm27-r2780-rank{width:32px;height:32px;display:grid;place-items:center;font-weight:850;border-radius:8px;color:#c8d6ed;background:#243653}
body.fm27-midnight .fm27-r2780-rank.is-podium{background:#174e49;color:#68f0bd}
body.fm27-midnight .fm27-r2780-score{text-align:right;font-weight:850;font-variant-numeric:tabular-nums;color:#62e6b5!important}
body.fm27-midnight .fm27-r2780-muted{color:#97accb!important;font-size:.75rem}
body.fm27-midnight .fm27-r2780-hof-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
body.fm27-midnight .fm27-r2780-hof-competition{min-width:0;border:1px solid #294669;border-radius:11px;background:#11233c;overflow:hidden}
body.fm27-midnight .fm27-r2780-hof-competition summary{display:flex;align-items:center;gap:12px;list-style:none;padding:15px 17px;cursor:pointer;color:#f3f7ff}
body.fm27-midnight .fm27-r2780-hof-competition summary::-webkit-details-marker{display:none}
body.fm27-midnight .fm27-r2780-hof-competition summary>i{transition:transform .2s;color:#91a9ca}
body.fm27-midnight .fm27-r2780-hof-competition[open] summary>i{transform:rotate(180deg)}
body.fm27-midnight .fm27-r2780-hof-competition-title{display:flex;align-items:center;gap:9px;min-width:0;flex:1;font-size:.86rem}
body.fm27-midnight .fm27-r2780-hof-count{color:#9ab0cd;font-size:.7rem;white-space:nowrap}
body.fm27-midnight .fm27-r2780-hof .fm27-r2780-data-table{min-width:0;width:100%}
body.fm27-midnight .fm27-r2780-hof-competition .table-responsive{border-top:1px solid #2c4668}
body.fm27-midnight .fm27-r2780-season{color:#91a9cf;font-variant-numeric:tabular-nums;font-weight:760}
body.fm27-midnight .fm27-r2780-cupname{display:flex;align-items:center;gap:8px}
body.fm27-midnight .fm27-r2780-empty{padding:29px;border-radius:10px;border:1px dashed #385375;background:#15253e;color:#a5b9d5;display:flex;align-items:center;gap:10px}
body.fm27-midnight .fm27-r2780-history .fm27-r2780-data-table{min-width:840px}
body.fm27-midnight .fm27-r2780-history-note{font-size:.72rem;color:#95a9c5;margin:10px 2px 0}
body.fm27-midnight .fm27-r2780-transfer-exchange{display:block;color:#b1bdcd;margin-top:2px;font-size:.68rem}
body.fm27-midnight .fm27-r2780-fee{color:#e5f9f2;font-weight:750;white-space:nowrap}
body.fm27-midnight .fm27-r2780-market-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:33px;padding:6px 11px;border-radius:8px;font-weight:770;font-size:.76rem;text-decoration:none;transition:background-color .18s,border-color .18s,color .18s;white-space:nowrap}
body.fm27-midnight .fm27-r2780-market-action.is-buy{color:#041c1a;border:1px solid #35e3a0;background:#32dba1}
body.fm27-midnight .fm27-r2780-market-action.is-buy:hover{background:#7af2ca;border-color:#7af2ca;color:#051a19}
body.fm27-midnight .fm27-r2780-market-action.is-loan{border:1px solid #4777b2;background:#213d60;color:#cee8ff}
body.fm27-midnight .fm27-r2780-market-action.is-loan:hover{background:#315c87;color:#fff}
body.fm27-midnight .fm27-r2780-prematch-expander{margin:10px 0 0;border-top:1px solid #274362;padding-top:9px}
body.fm27-midnight .fm27-r2780-prematch-expander summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:.76rem;color:#a7d4d2;list-style:none}
body.fm27-midnight .fm27-r2780-prematch-expander summary::-webkit-details-marker{display:none}
body.fm27-midnight .fm27-r2780-prematch-expander[open] summary i{transform:rotate(180deg)}
body.fm27-midnight .fm27-r2780-prematch-expander .fm27-r83-prematch-results{margin-top:8px}
@media(max-width:1040px){body.fm27-midnight .fm27-r2780-news-list{grid-template-columns:1fr}body.fm27-midnight .fm27-r2780-hof-grid{grid-template-columns:1fr}}
@media(max-width:720px){body.fm27-midnight .fm27-r2780-news-lead{grid-template-columns:1fr}body.fm27-midnight .fm27-r2780-news-lead-visual{min-height:190px}body.fm27-midnight .fm27-r2780-news-lead-visual img{position:static;height:190px}body.fm27-midnight .fm27-r2780-news-lead-body{padding:18px!important}body.fm27-midnight .fm27-r2780-news-row{grid-template-columns:97px minmax(0,1fr);gap:10px;padding:10px}body.fm27-midnight .fm27-r2780-news-row-image{min-height:100px}body.fm27-midnight .fm27-r2780-article-header h1{font-size:1.65rem}body.fm27-midnight .fm27-r2780-article-body{font-size:.94rem}}
@media(prefers-reduced-motion:reduce){body.fm27-midnight .fm27-r2780-news-lead,body.fm27-midnight .fm27-r2780-news-lead img{transition:none}}


/* FM27 R36 – Einheitliche Transfermarkt-Aktionen, nur Darstellung */
body.fm27-midnight #transferTable .fm27-r2780-market-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 136px;
  min-width: 136px;
  height: 34px;
  min-height: 34px;
  padding: 5px 9px;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
}

/* R97.38: player-loan history responsive cards; keep desktop table unchanged. */
@media(max-width:650px){
 body.fm27-midnight .fm27-r2780-history .fm27-r2780-table-shell{overflow:visible}
 body.fm27-midnight .fm27-r2780-history .fm27-r2780-data-table{min-width:0;width:100%;display:block}
 body.fm27-midnight .fm27-r2780-history .fm27-r2780-data-table thead{display:none}
 body.fm27-midnight .fm27-r2780-history .fm27-r2780-data-table tbody{display:block}
 body.fm27-midnight .fm27-r2780-history .fm27-r2780-data-table tbody tr{display:block;border-bottom:1px solid #334a68;padding:8px 9px}
 body.fm27-midnight .fm27-r2780-history .fm27-r2780-data-table tbody td{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;text-align:right!important;min-width:0;padding:6px 3px;font-size:.82rem;overflow-wrap:anywhere}
 body.fm27-midnight .fm27-r2780-history .fm27-r2780-data-table tbody td::before{content:attr(data-label);color:#98b3d4;text-align:left;font-weight:700;flex:0 0 60px}
}
/* R97.38 club transfer history: same compact mobile cards, desktop retains its table. */
@media(max-width:650px){
 body.fm27-midnight .fm27-r9738-team-history .table-responsive{overflow:visible}
 body.fm27-midnight .fm27-r9738-team-history .fm27-r2780-data-table{display:block;min-width:0;width:100%}
 body.fm27-midnight .fm27-r9738-team-history .fm27-r2780-data-table thead{display:none}
 body.fm27-midnight .fm27-r9738-team-history .fm27-r2780-data-table tbody{display:block}
 body.fm27-midnight .fm27-r9738-team-history .fm27-r2780-data-table tbody tr{display:block;border-bottom:1px solid #334a68;padding:8px 9px}
 body.fm27-midnight .fm27-r9738-team-history .fm27-r2780-data-table tbody td{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;text-align:right!important;min-width:0;padding:6px 3px;overflow-wrap:anywhere}
 body.fm27-midnight .fm27-r9738-team-history .fm27-r2780-data-table tbody td::before{content:attr(data-label);color:#98b3d4;text-align:left;font-weight:700;flex:0 0 64px}
}
