/* ==========================================================================
   MaxPreps (Screenshot 1 & 2 Exact UI) + LiveSports Auto-Sync Stylesheet
   ========================================================================== */

:root {
    --mp-red: #e10500;
    --mp-red-sub: #cc0500;
    --mp-red-net: #a51811;
    --mp-red-hover: #b80400;
    --mp-obsidian: #11141a;
    --mp-slate-900: #181e29;
    --mp-bg: #edeef0;
    --mp-surface: #ffffff;
    --mp-border: #d8dce2;
    --mp-border-soft: #eaedf1;
    --mp-text: #14171a;
    --mp-text-muted: #5f6672;
    --mp-blue: #0a66c2;
    --mp-emerald: #15803d;
    --mp-green-bg: #e0f2e3;
    --mp-green-border: #43a047;
    --mp-radius-lg: 12px;
    --mp-radius-md: 6px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--mp-bg);
    color: var(--mp-text);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.mp-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.mp-container.mp-header-wide {
    max-width: 1380px;
    padding: 0 22px;
}

/* ==========================================================================
   Live Dots & Action Buttons
   ========================================================================== */
.mp-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff2a25;
    animation: mp-pulse 1.6s infinite;
    vertical-align: middle;
}

.mp-live-dot.is-green {
    background-color: #22c55e;
    animation: mp-pulse-green 1.8s infinite;
}

@keyframes mp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 42, 37, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 42, 37, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 42, 37, 0); }
}

@keyframes mp-pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.mp-btn-crimson {
    background-color: var(--mp-red);
    border: 1px solid var(--mp-red);
    color: #ffffff !important;
    border-radius: var(--mp-radius-md);
}

.mp-btn-crimson:hover {
    background-color: var(--mp-red-hover);
    border-color: var(--mp-red-hover);
}

.mp-btn-dark {
    background-color: var(--mp-slate-900);
    border: 1px solid var(--mp-slate-900);
    color: #ffffff !important;
    border-radius: var(--mp-radius-md);
}

.mp-btn-emerald {
    background-color: var(--mp-emerald);
    border: 1px solid var(--mp-emerald);
    color: #ffffff !important;
    border-radius: var(--mp-radius-md);
}

.mp-btn-outline-red {
    background-color: #ffffff;
    border: 1px solid var(--mp-red);
    color: var(--mp-red);
    border-radius: var(--mp-radius-md);
}

.mp-btn-outline-red:hover {
    background-color: var(--mp-red);
    color: #ffffff;
}

/* ==========================================================================
   3-TIER MAXPREPS HEADER (Exact Match to Screenshot 1)
   ========================================================================== */
.mp-site-header {
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Tier 1: Dark Crimson Network Bar */
.mp-network-bar {
    background-color: var(--mp-red-net);
    height: 30px;
    line-height: 30px;
    font-size: 10.5px;
}

.mp-network-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mp-network-links a {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.mp-network-links a.active,
.mp-network-links a:hover {
    color: #ffffff;
}

.mp-network-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-network-socials a {
    width: 34px;
    height: 21px;
    background-color: var(--mp-red);
    color: #ffffff;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mp-network-socials a:hover {
    background-color: #ff1e1a;
    color: #ffffff;
}

/* Tier 2: Main Red Navbar (#e10500) */
.mp-main-nav {
    background-color: var(--mp-red);
    min-height: 54px;
    display: flex;
    align-items: center;
}

.mp-main-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mp-nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.mp-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mp-brand img {
    height: 30px;
    width: auto;
    display: block;
}

.mp-primary-links {
    gap: 6px;
}

.mp-nav-link {
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    padding: 7px 11px;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.mp-nav-link:hover,
.mp-nav-link:focus-visible,
.mp-nav-link.active {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.16);
}

.mp-nav-link:focus:not(:focus-visible):not(.active) {
    color: #ffffff;
    background-color: transparent;
}

.mp-dots-trigger {
    padding: 7px 10px;
}

/* ••• Popular Sports 2-Column White Popover (Exact Match to Screenshot 1) */
.mp-popular-dropdown {
    position: relative;
}

.mp-popular-popover {
    width: 336px;
    padding: 16px 20px 18px;
    margin-top: 10px !important;
    left: -12px !important;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.mp-popular-popover::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 22px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

.mp-popular-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mp-popular-head span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #5f6672;
}

.mp-popular-head a {
    font-size: 12px;
    font-weight: 600;
    color: #14171a;
    text-decoration: underline;
}

.mp-popular-head a:hover {
    color: var(--mp-red);
}

.mp-popular-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mp-popular-col h6 {
    font-size: 13px;
    font-weight: 800;
    color: #14171a;
    margin: 0 0 8px;
}

.mp-popular-col ul li {
    margin-bottom: 6px;
}

.mp-popular-col ul li:last-child {
    margin-bottom: 0;
}

.mp-popular-col ul a {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    padding: 2px 0;
}

.mp-popular-col ul a:hover,
.mp-popular-col ul a.active {
    color: var(--mp-red);
    font-weight: 700;
}

/* Header Right Icons & White Sign In Button */
.mp-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mp-header-icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.mp-header-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.16);
}

.mp-signin-rect {
    background-color: #ffffff;
    color: var(--mp-red);
    border: 1px solid #ffffff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    cursor: pointer;
    white-space: nowrap;
}

.mp-signin-rect:hover {
    background-color: #f8f9fa;
    color: #b80400;
}

/* Search Drawer */
.mp-search-drawer {
    display: none;
    background-color: #b50400;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mp-search-drawer.show {
    display: block;
}

.mp-drawer-search-form {
    display: flex;
    gap: 8px;
}

.mp-drawer-search-form input {
    flex: 1;
    height: 38px;
    border-radius: 6px;
    border: none;
    padding: 0 14px;
    font-size: 13.5px;
    outline: none;
}

.mp-drawer-search-form button {
    padding: 0 18px;
    font-weight: 700;
    background: #14171a;
    border-color: #14171a;
}

/* Tier 3: Red Sub-Navigation Bar (Exact Match to Screenshot 1) */
.mp-red-subnav {
    background-color: var(--mp-red-sub);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    height: 38px;
    display: flex;
    align-items: center;
}

.mp-red-subnav-list {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}

.mp-red-subnav-list::-webkit-scrollbar {
    display: none;
}

.mp-red-subnav-list a {
    display: inline-block;
    line-height: 37px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 3px solid transparent;
}

.mp-red-subnav-list a:hover,
.mp-red-subnav-list a.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Mobile Offcanvas */
.mp-offcanvas {
    background-color: var(--mp-slate-900);
    color: #ffffff;
    max-width: 310px;
}

.mp-offcanvas .offcanvas-header {
    background-color: var(--mp-red);
}

.mp-offcanvas-section {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}

.mp-offcanvas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mp-offcanvas-link {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
}

.mp-offcanvas-link:hover {
    background: var(--mp-red);
    color: #ffffff;
}

/* ==========================================================================
   Dynamic ?live= Marquee Banner
   ========================================================================== */
.mp-live-marquee-wrap {
    background: #141821;
    border-bottom: 2px solid var(--mp-red);
    padding: 8px 0;
}

.mp-live-marquee-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-live-pill {
    background: var(--mp-red);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mp-live-pill .mp-live-dot {
    background: #ffffff;
}

.mp-marquee-viewport {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.mp-marquee-text {
    display: inline-block;
    margin: 0;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 800;
    padding-left: 100%;
    animation: mp-marquee 18s linear infinite;
}

@keyframes mp-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.mp-live-cta-sm {
    background: #ffffff;
    color: #14171a;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ==========================================================================
   Screenshot 1 Top Showcase: "High School Sports" Card + "Latest Videos"
   ========================================================================== */
.mp-card {
    background-color: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
}

.mp-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mp-border-soft);
    background: #ffffff;
}

.mp-card-body {
    padding: 18px 20px;
}

.mp-section-heading {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mp-text);
}

.mp-card-title {
    font-size: 15.5px;
    font-weight: 800;
}

.mp-eyebrow {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--mp-text-muted);
    margin-bottom: 2px;
}

.mp-link-action {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--mp-blue);
}

.mp-home-hero-card {
    display: flex;
    flex-direction: column;
}

.mp-home-hero-header {
    padding: 18px 22px;
    background: #ffffff;
}

.mp-home-hero-header h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: #14171a;
}

.mp-home-hero-media {
    position: relative;
    display: block;
    flex: 1;
    min-height: 340px;
    background: #000000;
    overflow: hidden;
}

.mp-home-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.mp-home-hero-media:hover img {
    transform: scale(1.03);
}

.mp-home-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.85) 100%);
}

.mp-home-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px;
    color: #ffffff;
}

.mp-home-hero-caption h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px;
}

.mp-home-hero-caption span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.78);
}

/* Latest Videos Right Card */
.mp-latest-videos-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-video-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-video-row:hover .mp-video-row-title {
    color: var(--mp-red);
}

.mp-video-row-thumb {
    position: relative;
    flex: 0 0 116px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #111827;
}

.mp-video-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-video-play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(10, 102, 194, 0.92);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
}

.mp-video-row-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #14171a;
}

/* ==========================================================================
   SCREENSHOT 2 SYNCED SCHEDULE & SCORES HUB
   ========================================================================== */
.mp-sched-page-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #14171a;
}

/* 5-Column Filter Row + Toggle Switch */
.mp-sched-filters-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
}

.mp-filter-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mp-filter-field label {
    font-size: 11px;
    font-weight: 600;
    color: #5f6672;
}

.mp-filter-field select,
.mp-filter-field input {
    height: 38px;
    background-color: #ffffff;
    border: 1px solid #cfd5dd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: #14171a;
    outline: none;
    width: 100%;
}

.mp-filter-field select:focus,
.mp-filter-field input:focus {
    border-color: var(--mp-red);
}

.mp-filter-toggle-wrap {
    height: 38px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    border-left: 1px solid #d4d9e1;
}

.mp-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
}

.mp-switch-label input {
    display: none;
}

.mp-switch-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.mp-switch-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.mp-switch-label input:checked + .mp-switch-slider {
    background: var(--mp-red);
}

.mp-switch-label input:checked + .mp-switch-slider::after {
    transform: translateX(16px);
}

/* White Outer Schedule Sheet */
.mp-sched-sheet {
    background-color: #ffffff;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    padding: 20px;
}

/* Date Tabs + Calendar Icon */
.mp-date-tabs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--mp-border-soft);
    padding-bottom: 10px;
}

.mp-date-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mp-date-tabs::-webkit-scrollbar {
    display: none;
}

.mp-date-tab {
    background: #f8fafc;
    border: 1px solid #dcdfe4;
    border-top: 3px solid transparent;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.mp-date-tab:hover {
    color: #14171a;
    background: #ffffff;
}

.mp-date-tab.active {
    background: #ffffff;
    border-color: #dcdfe4;
    border-top: 3px solid var(--mp-red);
    color: #14171a;
    font-weight: 800;
}

.mp-cal-NativeBtn {
    position: relative;
    width: 34px;
    height: 34px;
    border: 1px solid #dcdfe4;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.mp-cal-NativeBtn:hover {
    border-color: var(--mp-red);
    color: var(--mp-red);
}

.mp-cal-NativeBtn input[type="date"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* Green Summary Callout Box (Screenshot 2) */
.mp-green-callout {
    background-color: var(--mp-green-bg);
    border-left: 4px solid var(--mp-green-border);
    padding: 14px 16px;
    border-radius: 2px 6px 6px 2px;
}

.mp-green-summary-text {
    font-size: 12.5px;
    line-height: 1.55;
    color: #1f3a24;
    margin: 0 0 10px;
}

.mp-green-related {
    margin-bottom: 10px;
    font-size: 12px;
}

.mp-green-related strong {
    display: block;
    color: #14171a;
    margin-bottom: 2px;
}

.mp-green-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #2e7d32;
}

.mp-green-links a {
    color: #1b5e20;
    font-weight: 600;
    text-decoration: underline;
}

.mp-green-headlines-label {
    font-size: 12px;
    font-weight: 700;
    color: #14171a;
    margin-bottom: 6px;
}

.mp-mini-headline-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 6px 8px;
    height: 100%;
}

.mp-mini-headline-card:hover {
    border-color: var(--mp-red);
}

.mp-mini-headline-card img {
    width: 46px;
    height: 36px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.mp-mini-headline-card span {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
}

/* Scoreboard Subheading & Status Filter Pills */
.mp-scoreboard-subtitle {
    font-size: 15px;
    font-weight: 800;
    color: #14171a;
}

.mp-games-count-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.mp-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mp-status-pill,
.mp-status-reset {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.mp-status-pill.active {
    background: var(--mp-red);
    border-color: var(--mp-red);
    color: #ffffff;
}

.mp-status-reset:hover {
    border-color: #14171a;
    color: #14171a;
}

/* 2-Column Contest Box Cards (Exact Match to Screenshot 2) */
.mp-contest-box {
    border: 1px solid #dcdfe4;
    border-radius: 3px;
    background-color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mp-contest-box:hover {
    border-color: var(--mp-red);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.mp-contest-main {
    display: flex;
    align-items: stretch;
    min-height: 78px;
}

.mp-contest-teams {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.mp-contest-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mp-contest-team-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mp-school-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--school-bg, #334155);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.mp-school-logo.has-img {
    background: #ffffff;
}

.mp-school-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    opacity: 0;
}

.mp-school-logo.has-img img {
    opacity: 1;
}

.mp-school-rank {
    font-size: 11.5px;
    color: #6b7280;
    font-weight: 600;
    margin-right: 3px;
}

.mp-school-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-contest-team-row.is-winner .mp-school-name {
    font-weight: 800;
    color: #000000;
}

.mp-school-stat {
    font-size: 12.5px;
    color: #4b5563;
    font-weight: 600;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mp-school-stat.is-score {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.mp-win-caret {
    font-size: 9px;
    color: #111827;
}

.mp-contest-status {
    width: 76px;
    border-left: 1px solid #ebeef2;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11.5px;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.mp-contest-status.is-live {
    color: #16a34a;
    font-weight: 800;
}

.mp-contest-status small {
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.mp-contest-footer {
    border-top: 1px solid #eceff3;
    padding: 8px 12px;
    font-size: 11.5px;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    justify-content: space-between;
}

.mp-contest-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.mp-contest-watch-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 700;
    color: #14171a;
    padding-top: 3px;
}

.mp-contest-watch-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--mp-red);
    font-weight: 700;
}

.mp-contest-watch-link:hover {
    text-decoration: underline;
}

/* Right Column: NATIONAL TOP TEAMS Sidebar (Screenshot 2) */
.mp-national-sidebar {
    border-left: 1px solid var(--mp-border-soft);
}

.mp-national-header {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #5f6672;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--mp-border-soft);
}

.mp-national-video-box {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 4px;
    overflow: hidden;
}

.mp-national-video-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
}

.mp-national-video-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-national-vid-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--mp-red);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
}

.mp-national-play-tri {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
}

.mp-national-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mp-nat-card {
    border: 1px solid #dcdfe4;
    border-radius: 3px;
    background: #ffffff;
    overflow: hidden;
}

.mp-nat-card.is-live-dark {
    background: #33373d;
    border-color: #33373d;
    color: #ffffff;
}

.mp-nat-card.is-live-dark .mp-school-name,
.mp-nat-card.is-live-dark .mp-school-stat {
    color: #ffffff;
}

.mp-nat-card.is-live-dark .mp-contest-status {
    border-left-color: rgba(255, 255, 255, 0.14);
    color: #4ade80;
    font-weight: 700;
}

.mp-nat-stream-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 11.5px;
    font-weight: 700;
    background: #f8fafc;
    border-top: 1px solid #eceff3;
    color: #1f2937;
}

.mp-nat-card.is-live-dark .mp-nat-stream-strip {
    background: #23262b;
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mp-nat-stream-strip:hover {
    color: var(--mp-red);
}

.mp-sched-loading {
    padding: 28px 16px;
    text-align: center;
    color: var(--mp-text-muted);
    font-weight: 600;
}

/* ==========================================================================
   Directory Section (63 Divisions + Synced Cities + 52 States)
   ========================================================================== */
.mp-dir-tabs {
    display: inline-flex;
    background: #f1f4f8;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.mp-dir-tab {
    border: none;
    background: transparent;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--mp-text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.mp-dir-tab.active {
    background: var(--mp-red);
    color: #ffffff;
}

.mp-dir-filter input {
    height: 35px;
    border: 1px solid var(--mp-border);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 12.5px;
    outline: none;
}

.mp-dir-panel {
    display: none;
}

.mp-dir-panel.active {
    display: block;
}

.mp-division-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--mp-border-soft);
}

.mp-division-header strong {
    font-size: 14px;
    font-weight: 800;
}

.mp-division-header span {
    font-size: 11.5px;
    color: var(--mp-text-muted);
    font-weight: 600;
}

.mp-dir-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--mp-border-soft);
    border-radius: 6px;
    background: #f9fafb;
    color: var(--mp-text);
    font-size: 12.5px;
    font-weight: 600;
    height: 100%;
}

.mp-dir-chip:hover {
    background: #fef2f2;
    border-color: var(--mp-red);
    color: var(--mp-red);
}

.mp-dir-chip img {
    flex-shrink: 0;
}

.mp-dir-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-dir-count,
.mp-state-code {
    font-size: 10px;
    font-weight: 800;
    background: #e2e8f0;
    color: #334155;
    padding: 2px 6px;
    border-radius: 999px;
    flex-shrink: 0;
}

.mp-dir-chip.has-live-count .mp-dir-count {
    background: #fee2e2;
    color: var(--mp-red);
}

/* ==========================================================================
   Watch / Broadcast Page & Synced Matchup Details
   ========================================================================== */
.mp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mp-text-muted);
}

.mp-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
}

.mp-broadcast-title {
    font-size: clamp(20px, 2.4vw, 27px);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-hd-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--mp-red);
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
}

/* Watch Matchup Banner */
.mp-watch-matchup-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(90deg, #161c28 0%, #1f2937 50%, #161c28 100%);
    color: #ffffff;
}

.mp-wm-team {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-wm-team.is-home {
    flex-direction: row-reverse;
    text-align: right;
}

.mp-wm-logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--school-bg, #b91c1c);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.mp-wm-logo.has-img {
    background: #ffffff;
}

.mp-wm-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    opacity: 0;
}

.mp-wm-logo.has-img img {
    opacity: 1;
}

.mp-wm-info strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
}

.mp-wm-info small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.mp-wm-center {
    text-align: center;
}

.mp-wm-score {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.mp-wm-meta {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 4px;
}

/* Broadcast Video Player */
.mp-player-shell {
    width: 100%;
    max-width: 100%;
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
    background-color: #07090d;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.mp-player-stage {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    padding: 54px 20px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
}

.mp-player-scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(180deg, rgba(8, 12, 20, 0.52) 0%, rgba(8, 12, 20, 0.34) 45%, rgba(7, 10, 16, 0.82) 100%),
        var(--venue-bg, url('../assets/venues/football.jpg'));
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
}

.mp-player-topbar {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mp-player-channel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.62);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 800;
    max-width: calc(100% - 70px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-live-gif {
    height: 24px;
    flex-shrink: 0;
}

.mp-player-center {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 340px;
    text-align: center;
    padding: 12px;
}

.mp-throbber {
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
}

.mp-connecting-label {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
}

.mp-connect-bar {
    width: min(210px, 80%);
    height: 6px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto;
}

.mp-connect-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--mp-red);
    transition: width 0.2s linear;
}

.mp-countdown-badge {
    display: inline-block;
    background: rgba(15, 18, 24, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 14px 28px;
    border-radius: 12px;
}

.mp-countdown-label {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.mp-countdown-badge strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px;
}

.mp-player-gate {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 560px;
    padding: 0;
    text-align: center;
}

.mp-gate-card {
    width: 100%;
    background: rgba(12, 16, 24, 0.86);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 20px 22px;
}

.mp-gate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #ff6b67;
    margin-bottom: 6px;
}

.mp-gate-card h2 {
    font-size: clamp(15px, 2vw, 21px);
    line-height: 1.3;
    font-weight: 800;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.mp-gate-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.mp-gate-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.mp-gate-btn-primary,
.mp-gate-btn-secondary {
    padding: 10px 22px;
    font-size: 14.5px;
    border-radius: 6px;
}

.mp-player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
    font-size: 12px;
}

.mp-player-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px;
}

.mp-ctrl-left,
.mp-ctrl-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mp-ctrl-title {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.22);
}

.mp-progress-live {
    width: 100%;
    height: 100%;
    background: var(--mp-red);
}

.mp-ctrl-btn { color: #ffffff; }
.mp-ctrl-live { font-weight: 800; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; }
.mp-ctrl-title { color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.mp-ctrl-hd { border: 1px solid rgba(255, 255, 255, 0.45); padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.mp-match-card-title { font-size: 17.5px; font-weight: 800; }

/* Live Fan Activity */
.mp-online-pill {
    font-size: 12px;
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 3px 10px;
    border-radius: 999px;
}

.mp-proof-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mp-proof-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.mp-proof-avatar-fallback {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mp-red);
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mp-proof-meta strong { display: block; font-size: 13px; }
.mp-proof-meta span { font-size: 12px; color: var(--mp-emerald); font-weight: 600; }

/* Synced Match Info Table */
.mp-info-kv {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--mp-border-soft);
    font-size: 13px;
}

.mp-info-kv:last-child { border-bottom: none; }
.mp-info-kv span { color: var(--mp-text-muted); }

/* ==========================================================================
   Footer & Modal
   ========================================================================== */
.mp-footer {
    background-color: var(--mp-obsidian);
    color: rgba(255, 255, 255, 0.78);
    padding: 50px 0 36px;
    border-top: 4px solid var(--mp-red);
}

.mp-footer-columns { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mp-footer-desc { font-size: 13px; color: rgba(255, 255, 255, 0.62); max-width: 340px; margin-bottom: 18px; }
.mp-footer-socials { display: flex; gap: 10px; }
.mp-footer-socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; }
.mp-footer-socials a:hover { background: var(--mp-red); }
.mp-footer-heading { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: #ffffff; margin-bottom: 14px; }
.mp-footer-list li { margin-bottom: 8px; }
.mp-footer-list a { font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.mp-footer-list a:hover { color: #ffffff; }
.mp-playon-badge { font-size: 12px; letter-spacing: 0.08em; background: rgba(255, 255, 255, 0.08); color: #ffffff; padding: 4px 10px; border-radius: 6px; }
.mp-copyright, .mp-trademark { font-size: 12px; color: rgba(255, 255, 255, 0.5); }

.mp-modal-content { border: none; border-radius: 14px; overflow: hidden; }
.mp-modal-top { background: var(--mp-red); padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; }
.mp-input { height: 44px; border-radius: 8px; border: 1px solid var(--mp-border); font-size: 14px; }
.mp-alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.mp-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.mp-modal-divider { position: relative; text-align: center; margin: 18px 0; }
.mp-modal-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--mp-border); }
.mp-modal-divider span { position: relative; background: #ffffff; padding: 0 10px; font-size: 10.5px; font-weight: 800; color: var(--mp-text-muted); }

/* ==========================================================================
   Responsive Adjustments (Desktop, Tablet & Mobile)
   ========================================================================== */
@media (max-width: 991.98px) {
    .mp-sched-filters-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mp-filter-toggle-wrap {
        border-left: none;
        padding-left: 0;
    }
    .mp-national-sidebar {
        border-left: none;
        border-top: 1px solid var(--mp-border-soft);
        padding-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .mp-watch-matchup-grid {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
        padding: 12px 10px;
    }
    .mp-wm-team,
    .mp-wm-team.is-home {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    .mp-wm-logo {
        width: 40px;
        height: 40px;
        font-size: 13px;
        border-radius: 8px;
    }
    .mp-wm-info strong {
        font-size: 13px;
        line-height: 1.25;
    }
    .mp-wm-info small {
        font-size: 10.5px;
    }
    .mp-wm-score {
        font-size: 24px;
    }
    .mp-wm-meta {
        font-size: 10px;
        max-width: 110px;
        line-height: 1.3;
    }
    .mp-player-stage {
        aspect-ratio: auto;
        min-height: 252px;
        padding: 46px 12px 42px;
    }
    .mp-player-topbar {
        top: 9px;
        left: 10px;
        right: 10px;
    }
    .mp-player-channel {
        font-size: 9.5px;
        padding: 4px 8px;
    }
    .mp-live-gif {
        height: 20px;
    }
    .mp-gate-card {
        padding: 14px 12px;
        border-radius: 11px;
    }
    .mp-gate-badge {
        font-size: 10px;
        margin-bottom: 4px;
    }
    .mp-gate-card h2 {
        font-size: 14.5px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    .mp-gate-card p {
        display: none;
    }
    .mp-gate-actions {
        margin-top: 10px;
        gap: 8px;
    }
    .mp-gate-btn-primary,
    .mp-gate-btn-secondary {
        padding: 8px 12px;
        font-size: 12.5px;
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    .mp-sched-filters-bar {
        grid-template-columns: 1fr;
    }
    .mp-sched-sheet {
        padding: 14px;
    }
    .mp-broadcast-title {
        font-size: 18px;
    }
}
