/* =========================
   MOTOCAL – DRIVERS ONLY
========================= */

/* Grid */
.motogp-drivers-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 1024px){
  .motogp-drivers-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px){
  .motogp-drivers-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Card polish */
.motogp-driver-card{
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.8);
  transition:
    transform .35s cubic-bezier(.22,.61,.36,1),
    box-shadow .35s ease,
    border-color .35s ease;
}

.motogp-driver-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.9);
  border-color: rgba(177,18,23,.35);
}

/* Driver number badge */
.motogp-driver-card .driver-number{
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: linear-gradient(180deg, #c4161c 0%, #a01015 50%, #7d0b0e 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 10px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(177,18,23,.45), inset 0 1px 0 rgba(255,255,255,.35);
  letter-spacing: .5px;
  transition: transform .25s ease;
}

.motogp-driver-card:hover .driver-number{
  transform: scale(1.05);
}

/* Text hover */
.motogp-driver-card:hover .gp-name{
  color: #b11217;
}

.motogp-driver-card:hover .motocal-track{
  color: #111;
}

/* Calendar kalıntı pseudo’su varsa bastır */
.motogp-driver-card .motocal-content::before{
  content: none !important;
  display: none !important;
}

/* =========================
   DRIVERS PAGE – TOP SPACING FIX
========================= */

.page-template-page-motogp-suruculeri .motocal-inner,
.page-template-page-moto2-suruculeri .motocal-inner,
.page-template-page-moto3-suruculeri .motocal-inner,
.page-template-page-worldsbk-suruculeri .motocal-inner,
.page-template-page-worldssp-suruculeri .motocal-inner{
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* Başlık hizalama */
.page-template-page-motogp-suruculeri .motocal-page-title,
.page-template-page-moto2-suruculeri .motocal-page-title,
.page-template-page-moto3-suruculeri .motocal-page-title,
.page-template-page-worldsbk-suruculeri .motocal-page-title,
.page-template-page-worldssp-suruculeri .motocal-page-title{
  margin-top: 0 !important;
}
/* Driver kart görseli biraz daha yüksek */
.motogp-driver-card .motocal-img{
  height: 230px;
}
/* =========================
   DRIVER CARD – PREMIUM POLISH
========================= */

/* Görsel üstüne hafif editorial gradient */
.motogp-driver-card .motocal-img::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%);
  pointer-events:none;
}

/* Hover'da görsel hafif zoom */
.motogp-driver-card:hover .motocal-img{
  transform:scale(1.03);
  transition:transform .35s ease;
}

/* Driver numarasını biraz daha güçlü yap */
.motogp-driver-card .driver-number{
  font-size:24px;
  padding:7px 13px;
}

/* Kart hover daha editorial */
.motogp-driver-card:hover{
  transform:translateY(-8px);
}
/* =========================================================
   RIDERS HUB HEADER
========================================================= */
.riders-hub--motogp{
    padding-top: 24px;
    padding-bottom: 40px;
}

.riders-page-head{
    position: relative;
    margin-bottom: 24px;
    padding: 28px 28px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #111 0%, #1b1b1b 60%, #222 100%);
    box-shadow: 0 12px 35px rgba(0,0,0,.14);
    overflow: hidden;
}

.riders-page-head::after{
    content: "";
    position: absolute;
    left: 28px;
    bottom: 0;
    width: 96px;
    height: 3px;
    background: #b11217;
    border-radius: 999px;
}

.riders-page-head .motocal-page-title{
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.riders-page-subtitle{
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

/* =========================================================
   RIDERS TABS
========================================================= */
.riders-tabs-nav{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px;
    border-radius: 16px;
    background: #f3f4f6;
    border: 1px solid rgba(0,0,0,.06);
}

.riders-tab-btn{
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .22s ease;
}

.riders-tab-btn:hover{
    background: rgba(177,18,23,.08);
    color: #b11217;
}

.riders-tab-btn.is-active{
    background: #b11217;
    color: #fff;
    box-shadow: 0 8px 22px rgba(177,18,23,.22);
}

.riders-tab-btn:focus-visible{
    box-shadow:
        0 0 0 3px rgba(177,18,23,.16),
        0 8px 22px rgba(177,18,23,.18);
}

/* =========================================================
   RIDERS PANEL
========================================================= */
.riders-tabs-panels{
    position: relative;
}

.riders-tab-panel{
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.riders-empty{
    margin: 0;
    padding: 18px;
    border-radius: 14px;
    background: #f7f7f8;
    color: #555;
    font-size: 15px;
    font-weight: 600;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px){
    .riders-page-head{
        padding: 22px 18px 18px;
        border-radius: 16px;
    }

    .riders-page-head::after{
        left: 18px;
        width: 72px;
    }

    .riders-page-head .motocal-page-title{
        font-size: 26px;
    }

    .riders-page-subtitle{
        font-size: 14px;
    }

    .riders-tabs-nav{
        gap: 8px;
        padding: 6px;
        border-radius: 14px;
    }

    .riders-tab-btn{
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .riders-tab-panel{
        padding: 14px;
        border-radius: 16px;
    }
}

/* =========================================================
   RIDERS CARDS
========================================================= */

.motogp-drivers-grid{
    gap: 22px;
}

.motogp-driver-card{
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
    transition: all .28s ease;
}

.motogp-driver-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* =========================================================
   DRIVER IMAGE
========================================================= */

.motogp-driver-card .motocal-img{
    position: relative;
    height: 210px;
    background-size: cover;
    background-position: center;
    transition: transform .35s ease;
}

.motogp-driver-card:hover .motocal-img{
    transform: scale(1.04);
}

/* =========================================================
   DRIVER NUMBER
========================================================= */

.driver-number{
    position: absolute;
    top: 12px;
    left: 12px;
    background: #b11217;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

/* =========================================================
   CARD CONTENT
========================================================= */

.motogp-driver-card .motocal-content{
    padding: 14px 16px 16px;
}

.motogp-driver-card .motocal-title{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.motogp-driver-card .gp-name{
    color: #111;
}

/* =========================================================
   FLAG
========================================================= */

.motocal-flag{
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* =========================================================
   TEAM
========================================================= */

.motogp-driver-card .motocal-track{
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:768px){

    .motogp-driver-card .motocal-img{
        height: 180px;
    }

    .motogp-driver-card .motocal-title{
        font-size: 15px;
    }

}
/* =========================================================
   SERIES ACCENT COLORS
========================================================= */

/* MotoGP */

.riders-tab-btn[data-tab="motogp"].is-active{
    background:#b11217;
}

.riders-tab-panel[data-panel="motogp"] .motogp-driver-card{
    border-bottom:3px solid #b11217;
}


/* Moto2 */

.riders-tab-btn[data-tab="moto2"].is-active{
    background:#4f46e5;
}

.riders-tab-panel[data-panel="moto2"] .motogp-driver-card{
    border-bottom:3px solid #4f46e5;
}


/* Moto3 */

.riders-tab-btn[data-tab="moto3"].is-active{
    background:#f59e0b;
}

.riders-tab-panel[data-panel="moto3"] .motogp-driver-card{
    border-bottom:3px solid #f59e0b;
}
/* =========================================================
   DRIVER IMAGE OVERLAY
========================================================= */

.motogp-driver-card .motocal-img::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        rgba(177,18,23,0) 40%,
        rgba(177,18,23,.15) 100%
    );
    opacity:0;
    transition:opacity .35s ease;
}

.motogp-driver-card:hover .motocal-img::after{
    opacity:1;
}
.motogp-driver-card:hover .driver-number{
    transform:scale(1.08);
}
/* =========================================================
   WSBK / WSSP ACCENT COLORS
========================================================= */

.riders-tab-btn[data-tab="worldsbk"].is-active{
    background: #b11217;
    color: #fff;
    box-shadow: 0 8px 22px rgba(177,18,23,.22);
}

.riders-tab-panel[data-panel="worldsbk"] .motogp-driver-card{
    border-bottom: 3px solid #b11217;
}

.riders-tab-btn[data-tab="worldssp"].is-active{
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37,99,235,.22);
}

.riders-tab-panel[data-panel="worldssp"] .motogp-driver-card{
    border-bottom: 3px solid #2563eb;
}

/* v22.5 riders grouping */
.riders-group{margin:0 0 28px;}
.riders-group:last-child{margin-bottom:0;}
.riders-group-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;}
.riders-group-title{margin:0;font-size:20px;line-height:1.2;font-weight:800;letter-spacing:-.02em;color:#111;}
.riders-group-title::after{content:'';display:block;width:54px;height:3px;margin-top:10px;border-radius:999px;background:#b11217;}
.riders-group--guests .riders-group-title{font-size:18px;color:#1b1b1b;}
.riders-group--guests .riders-group-title::after{width:44px;background:rgba(177,18,23,.55);}
.riders-status-badge{position:absolute;left:12px;bottom:12px;z-index:2;display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:rgba(0,0,0,.7);color:#fff;border:1px solid rgba(255,255,255,.18);}
.riders-card--wildcard .riders-status-badge{background:rgba(154,27,27,.9);}
.riders-card--substitute .riders-status-badge{background:rgba(24,85,154,.92);}
.riders-card--reserve .riders-status-badge{background:rgba(51,51,51,.92);}
.riders-group--guests{margin-top:8px;padding-top:6px;border-top:1px solid rgba(0,0,0,.08);}
.riders-group--guests .motogp-driver-card{opacity:.96;}


/* =========================================================
   SINGLE DRIVER PROFILE
========================================================= */
.me-driver-profile{display:grid;gap:28px;position:relative;}
.me-driver-profile__hero,.me-driver-profile__section{position:relative;overflow:hidden;border-radius:28px;padding:30px;background:linear-gradient(180deg, rgba(18,18,21,.96) 0%, rgba(11,11,14,.98) 100%);border:1px solid rgba(255,255,255,.06);box-shadow:0 18px 50px rgba(0,0,0,.24);}
.me-driver-profile__hero::before,.me-driver-profile__section::before{content:"";position:absolute;inset:0 auto auto 0;width:180px;height:180px;background:radial-gradient(circle, rgba(177,18,23,.22) 0%, rgba(177,18,23,0) 72%);pointer-events:none;}
.me-driver-profile__hero-grid{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:30px;align-items:stretch;}
.me-driver-profile__media{position:relative;min-height:520px;border-radius:24px;overflow:hidden;background:radial-gradient(circle at 18% 18%, rgba(213,21,28,.42), transparent 34%),radial-gradient(circle at 82% 18%, rgba(255,255,255,.12), transparent 24%),linear-gradient(145deg, #111217 0%, #1b0d10 48%, #090909 100%);background-position:center;background-size:cover;box-shadow:inset 0 1px 0 rgba(255,255,255,.08);}
.me-driver-profile__media.is-placeholder{display:flex;align-items:center;justify-content:center;}
.me-driver-profile__media-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(7,7,8,.14) 0%, rgba(7,7,8,.4) 42%, rgba(7,7,8,.82) 100%);}
.me-driver-profile__media-top,.me-driver-profile__media-bottom{position:absolute;left:20px;right:20px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:14px;}
.me-driver-profile__media-top{top:20px;align-items:flex-start;}
.me-driver-profile__media-bottom{bottom:20px;align-items:flex-end;}
.me-driver-profile__placeholder-mark{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;width:120px;height:120px;border-radius:30px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);backdrop-filter:blur(10px);font-size:44px;font-weight:900;letter-spacing:.04em;color:#fff;box-shadow:0 20px 60px rgba(0,0,0,.24);}
.me-driver-profile__number{position:static;display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:10px 16px;font-size:28px;border-radius:16px;box-shadow:0 10px 25px rgba(177,18,23,.34);}
.me-driver-profile__country{display:inline-flex;align-items:center;gap:12px;padding:10px 14px;border-radius:16px;background:rgba(8,8,10,.42);backdrop-filter:blur(10px);color:#fff;font-weight:800;line-height:1.2;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);}
.me-driver-profile__country img{display:block;border-radius:6px;box-shadow:0 0 0 1px rgba(255,255,255,.18);}
.me-driver-profile__content{display:grid;align-content:center;gap:20px;position:relative;z-index:1;}
.me-driver-profile__headline{display:grid;gap:10px;}
.me-driver-profile__eyebrow{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;background:rgba(177,18,23,.12);border:1px solid rgba(177,18,23,.28);font-size:11px;text-transform:uppercase;letter-spacing:.18em;color:#ffb5b8;font-weight:800;}
.me-driver-profile__title{margin:0;font-size:clamp(40px,5.2vw,64px);line-height:.96;letter-spacing:-.045em;color:#fff;text-wrap:balance;}
.me-driver-profile__subtitle{display:flex;flex-wrap:wrap;gap:10px;color:rgba(255,255,255,.7);font-weight:700;font-size:14px;}
.me-driver-profile__excerpt{margin:0;font-size:16px;line-height:1.8;color:rgba(255,255,255,.84);max-width:760px;}
.me-driver-profile__chips{display:flex;flex-wrap:wrap;gap:10px;}
.me-driver-profile__chip{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#fff;font-size:13px;font-weight:700;}
.me-driver-profile__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.me-driver-profile__stats--hero{margin-top:2px;}
.me-driver-stat{position:relative;border-radius:20px;padding:17px 18px;background:linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%);border:1px solid rgba(255,255,255,.08);overflow:hidden;}
.me-driver-stat::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg, #d4151c 0%, rgba(212,21,28,0) 100%);opacity:.9;}
.me-driver-stat__label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:rgba(255,255,255,.58);margin-bottom:10px;font-weight:800;}
.me-driver-stat__value{display:block;color:#fff;font-size:18px;line-height:1.35;letter-spacing:-.02em;}
.me-driver-profile__toolbar{display:grid;gap:14px;align-items:start;}
.me-driver-profile__season-form{display:flex;flex-wrap:wrap;align-items:center;gap:12px;}
.me-driver-profile__season-form label{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:rgba(255,255,255,.62);font-weight:800;}
.me-driver-profile__season-controls{display:flex;flex-wrap:wrap;gap:10px;}
.me-driver-profile__season-form select,.me-driver-profile__season-form button{min-height:46px;padding:0 16px;border-radius:14px;border:1px solid rgba(255,255,255,.12);font-weight:800;}
.me-driver-profile__season-form select{min-width:180px;background:#fff;color:#111;box-shadow:0 10px 22px rgba(0,0,0,.18);}
.me-driver-profile__season-form button{background:#b11217;color:#fff;cursor:pointer;transition:transform .2s ease, box-shadow .2s ease, background .2s ease;box-shadow:0 10px 20px rgba(177,18,23,.25);}
.me-driver-profile__season-form button:hover{transform:translateY(-1px);background:#c8171d;}
.me-driver-profile__season-pills{display:flex;flex-wrap:wrap;gap:10px;}
.me-driver-profile__season-pill{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#fff;font-size:13px;font-weight:800;text-decoration:none;transition:all .2s ease;}
.me-driver-profile__season-pill:hover,.me-driver-profile__season-pill.is-active{background:#fff;color:#111;border-color:#fff;}
.me-driver-profile__body-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start;}
.me-driver-profile__section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:20px;position:relative;z-index:1;}
.me-driver-profile__section-head h2{margin:0 0 6px;font-size:clamp(24px,3vw,32px);line-height:1.05;letter-spacing:-.03em;color:#fff;}
.me-driver-profile__section-head p{margin:0;color:rgba(255,255,255,.68);font-size:14px;line-height:1.65;}
.me-driver-season-card{display:grid;grid-template-columns:1.05fr .95fr;gap:20px;padding:24px;border-radius:24px;background:linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);border:1px solid rgba(255,255,255,.08);position:relative;overflow:hidden;}
.me-driver-season-card::before{content:"";position:absolute;inset:0 auto 0 0;width:6px;background:linear-gradient(180deg, #d4151c 0%, #7f0f12 100%);}
.me-driver-season-card__main{display:grid;gap:8px;padding-left:6px;}
.me-driver-season-card__year{font-size:12px;text-transform:uppercase;letter-spacing:.18em;color:#ffb2b6;font-weight:900;}
.me-driver-season-card__series{font-size:32px;line-height:1;color:#fff;letter-spacing:-.04em;}
.me-driver-season-card__team{color:rgba(255,255,255,.78);font-size:16px;line-height:1.6;}
.me-driver-season-card__meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start;}
.me-driver-season-card__meta span{display:grid;gap:6px;padding:14px 15px;border-radius:16px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.06);}
.me-driver-season-card__meta strong{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:rgba(255,255,255,.56);font-weight:800;}
.me-driver-season-card__meta em{font-style:normal;color:#fff;font-size:15px;font-weight:700;line-height:1.5;}
.me-driver-timeline{display:grid;gap:14px;position:relative;}
.me-driver-timeline__item{display:grid;grid-template-columns:6px 94px minmax(0,1fr) auto;gap:16px;align-items:center;padding:18px 20px;border-radius:20px;background:linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.025) 100%);border:1px solid rgba(255,255,255,.07);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;}
.me-driver-timeline__item:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.14);box-shadow:0 12px 28px rgba(0,0,0,.18);}
.me-driver-timeline__item.is-current{border-color:rgba(177,18,23,.45);box-shadow:0 0 0 1px rgba(177,18,23,.12) inset, 0 12px 28px rgba(0,0,0,.18);}
.me-driver-timeline__accent{align-self:stretch;border-radius:999px;background:linear-gradient(180deg, #d4151c 0%, #7f0f12 100%);}
.me-driver-timeline__year{font-size:28px;font-weight:900;line-height:1;color:#fff;letter-spacing:-.04em;}
.me-driver-timeline__body{display:grid;gap:7px;min-width:0;}
.me-driver-timeline__topline{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#fff;}
.me-driver-timeline__topline strong{font-size:18px;letter-spacing:-.02em;}
.me-driver-timeline__status{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 10px;border-radius:999px;background:rgba(177,18,23,.12);color:#ffb0b4;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;}
.me-driver-timeline__subline{display:flex;flex-wrap:wrap;gap:8px;color:rgba(255,255,255,.74);font-size:14px;line-height:1.6;}
.me-driver-timeline__flag{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);}
.me-driver-timeline__flag img{display:block;border-radius:4px;box-shadow:0 0 0 1px rgba(255,255,255,.14);}
.me-driver-profile__empty{padding:24px;border-radius:18px;background:rgba(255,255,255,.03);border:1px dashed rgba(255,255,255,.16);color:rgba(255,255,255,.72);line-height:1.7;}
.me-driver-profile__section--content .entry-content{max-width:none;}

.me-driver-profile__section--timeline,.me-driver-profile__section--content{height:100%;}
.me-driver-profile__section--content .me-driver-profile__section-head{margin-bottom:18px;}
.me-driver-profile__section--content .entry-content{max-width:none;}
.me-driver-profile__section--placeholder{display:flex;flex-direction:column;}
.me-driver-profile__empty--soft{display:flex;align-items:center;justify-content:center;min-height:280px;border:1px dashed rgba(255,255,255,.08);background:rgba(255,255,255,.02);color:rgba(255,255,255,.62);border-radius:20px;text-align:center;padding:24px;}

.me-driver-profile__content-body{color:#fff;line-height:1.9;font-size:16px;}
.me-driver-profile__content-body p:last-child{margin-bottom:0;}
@media (max-width: 1200px){.me-driver-profile__stats{grid-template-columns:repeat(2,minmax(0,1fr));}.me-driver-profile__body-grid{grid-template-columns:1fr;}.me-driver-profile__media{min-height:460px;}}
@media (max-width: 1024px){.me-driver-profile__hero-grid{grid-template-columns:1fr;}.me-driver-profile__hero,.me-driver-profile__section{padding:24px;}.me-driver-profile__media{min-height:380px;}.me-driver-season-card{grid-template-columns:1fr;}.me-driver-season-card__meta{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 640px){.me-driver-profile{gap:20px;}.me-driver-profile__hero,.me-driver-profile__section{padding:18px;border-radius:22px;}.me-driver-profile__title{font-size:36px;}.me-driver-profile__stats,.me-driver-season-card__meta{grid-template-columns:1fr;}.me-driver-profile__season-controls{width:100%;}.me-driver-profile__season-form select,.me-driver-profile__season-form button{width:100%;}.me-driver-profile__media{min-height:320px;}.me-driver-profile__media-top,.me-driver-profile__media-bottom{left:16px;right:16px;}.me-driver-profile__placeholder-mark{width:96px;height:96px;font-size:34px;border-radius:24px;}.me-driver-timeline__item{grid-template-columns:6px 1fr;align-items:flex-start;}.me-driver-timeline__year,.me-driver-timeline__body,.me-driver-timeline__flag{grid-column:2;}.me-driver-timeline__year{font-size:24px;}.me-driver-timeline__flag{margin-top:4px;width:40px;height:40px;}}



.me-flag-emoji{display:inline-flex;align-items:center;justify-content:center;line-height:1;font-style:normal}
.me-driver-profile__flag-emoji{font-size:28px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.35));}
.me-driver-timeline__flag-emoji{font-size:20px;filter:drop-shadow(0 1px 4px rgba(0,0,0,.25));}
.me-driver-profile__country .me-flag-emoji{width:auto;height:auto;box-shadow:none;border-radius:0;background:none}
.me-driver-timeline__flag .me-flag-emoji{width:auto;height:auto;box-shadow:none;border-radius:0;background:none}

.me-driver-profile__flag-wrap{display:inline-flex;align-items:center;justify-content:center;width:32px;height:24px;border-radius:6px;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.me-driver-profile__flag-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.me-driver-timeline__flag-image{display:block;width:24px;height:18px;object-fit:cover;border-radius:4px;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.me-driver-profile__country{gap:10px}

/* =========================================================
   DRIVER PROFILE – MINI RESULTS
========================================================= */
.me-driver-profile__section--results .me-driver-profile__section-head p{max-width:none}
.me-driver-mini-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.me-driver-mini-results__card{position:relative;padding:18px 18px 16px;border-radius:22px;background:linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.015) 100%);border:1px solid rgba(255,255,255,.07);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.me-driver-mini-results__card::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:999px;background:linear-gradient(180deg, #db1117 0%, rgba(219,17,23,.2) 100%)}
.me-driver-mini-results__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.me-driver-mini-results__round-meta{display:flex;align-items:center;gap:12px;min-width:0}
.me-driver-mini-results__flag{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);flex:0 0 auto}
.me-driver-mini-results__flag-image{display:block;width:20px;height:14px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.me-driver-mini-results__title{margin:0;font-size:20px;line-height:1.1;font-weight:800;letter-spacing:-.02em}
.me-driver-mini-results__title a{color:#fff;text-decoration:none}
.me-driver-mini-results__title a:hover{color:#ff4d55}
.me-driver-mini-results__sub{display:block;margin-top:6px;color:rgba(255,255,255,.58);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.me-driver-mini-results__sessions{display:flex;flex-wrap:wrap;gap:10px}
.me-driver-mini-results__session{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:132px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.me-driver-mini-results__label{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:rgba(255,255,255,.64)}
.me-driver-mini-results__value{font-size:15px;font-weight:900;letter-spacing:.01em;color:#fff}
.me-driver-mini-results__value.is-status-finished{color:#fff}
.me-driver-mini-results__value.is-status-dnf,.me-driver-mini-results__value.is-status-ret,.me-driver-mini-results__value.is-status-dns,.me-driver-mini-results__value.is-status-dsq,.me-driver-mini-results__value.is-status-nc{color:#ff5f66}
@media (max-width: 1024px){.me-driver-mini-results{grid-template-columns:1fr}}
@media (max-width: 640px){.me-driver-mini-results__card{padding:16px 16px 14px}.me-driver-mini-results__head{margin-bottom:12px}.me-driver-mini-results__title{font-size:18px}.me-driver-mini-results__sessions{display:grid;grid-template-columns:1fr 1fr}.me-driver-mini-results__session{min-width:0}}


/* Driver single final cleanup */
.me-driver-profile__body-grid--single{grid-template-columns:1fr;gap:0}
.me-driver-profile__section--timeline-full{width:100%}
.me-driver-timeline--compact{display:grid;gap:12px}
.me-driver-timeline--compact .me-driver-timeline__item{grid-template-columns:4px 84px minmax(0,1fr) auto;gap:14px;padding:14px 16px;border-radius:16px}
.me-driver-timeline--compact .me-driver-timeline__year{font-size:26px;line-height:1}
.me-driver-timeline--compact .me-driver-timeline__topline strong{font-size:15px}
.me-driver-timeline--compact .me-driver-timeline__subline{font-size:13px;gap:8px}
.me-driver-timeline--compact .me-driver-timeline__flag{width:36px;height:36px;border-radius:10px}
@media (max-width:640px){.me-driver-timeline--compact .me-driver-timeline__item{grid-template-columns:4px 1fr;gap:12px;padding:14px}.me-driver-timeline--compact .me-driver-timeline__year,.me-driver-timeline--compact .me-driver-timeline__body,.me-driver-timeline--compact .me-driver-timeline__flag{grid-column:2}.me-driver-timeline--compact .me-driver-timeline__year{font-size:22px}}


/* Driver career compact cleanup */
.me-driver-profile__section--timeline .me-driver-profile__section-head h2{margin-bottom:0}
.me-driver-timeline--compact{gap:10px}
.me-driver-timeline--compact .me-driver-timeline__item{grid-template-columns:4px minmax(0,1fr);gap:12px;padding:12px 14px;border-radius:14px;align-items:center}
.me-driver-timeline--compact .me-driver-timeline__body{gap:0}
.me-driver-timeline--compact .me-driver-timeline__topline strong{display:block;font-size:14px;line-height:1.45;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-driver-timeline--compact .me-driver-timeline__year,
.me-driver-timeline--compact .me-driver-timeline__subline,
.me-driver-timeline--compact .me-driver-timeline__flag,
.me-driver-timeline--compact .me-driver-timeline__status{display:none !important}
@media (max-width:640px){
  .me-driver-timeline--compact .me-driver-timeline__item{grid-template-columns:4px minmax(0,1fr);padding:12px 13px}
}
