/* =========================================================
   MOF RECORDS - MODERN LEADERBOARD
   Scoped to this page so the existing site CSS stays intact.
   ========================================================= */

.mof-record-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px auto 24px;
    flex-wrap: wrap;
}

.mof-record-toggle button {
    appearance: none;
    border: 1px solid #0b477d;
    background: #ffffff;
    color: #0b477d;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .4px;
    cursor: pointer;
    transition: all .18s ease;
}

.mof-record-toggle button:hover,
.mof-record-toggle button.active {
    background: #0b477d;
    color: #ffffff;
}

.mof-record-panel {
    display: none;
}

.mof-record-panel.active {
    display: block;
}

.mof-record-section {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 34px;
}

.mof-record-section-title {
    background: linear-gradient(90deg, #073b68 0%, #0a4c85 55%, #073b68 100%);
    color: #ffffff;
    text-align: center;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .4px;
    padding: 10px 14px;
    border: 1px solid #082f51;
    text-transform: uppercase;
}

.mof-record-hero {
    position: relative;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 235px;
    align-items: stretch;
    min-height: 185px;
    background:
        radial-gradient(circle at 14% 40%, rgba(255, 53, 23, .22), transparent 34%),
        radial-gradient(circle at 78% 15%, rgba(138, 0, 0, .10), transparent 28%),
        linear-gradient(110deg, #fff7f4 0%, #f7f3f2 46%, #fff0eb 72%, #f4e3de 100%);
    border: 1px solid #aeb5bc;
    border-top: 0;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.13);
    border-bottom: 3px solid #d92600;
}

.mof-record-hero:before {
    content: "MOF RECORD HOLDER";
    position: absolute;
    right: -52px;
    top: 18px;
    transform: rotate(34deg);
    width: 230px;
    text-align: center;
    background: #111111;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.3px;
    padding: 5px 0;
    z-index: 5;
}

.mof-record-hero-media {
    position: relative;
    min-height: 185px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 85, 48, .16), transparent 42%),
        linear-gradient(145deg, #f5ebe7, #ffffff);
    border-right: 1px solid #c3c7cb;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.mof-record-player {
    width: 148px;
    height: 178px;
    object-fit: cover;
    object-position: center top;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,.22));
    z-index: 2;
}

.mof-record-helmet {
    position: absolute;
    right: 3px;
    bottom: 8px;
    width: 78px;
    height: 78px;
    object-fit: contain;
    z-index: 3;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,.22));
}

.mof-record-blocklogo {
    width: 154px;
    height: 154px;
    object-fit: contain;
    margin: auto;
    filter: drop-shadow(0 5px 6px rgba(0,0,0,.18));
}

.mof-record-hero-info {
    padding: 28px 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mof-record-rank-label {
    color: #6f7479;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    margin-bottom: 7px;
    text-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.mof-record-hero-name {
    color: #222222;
    font-size: 26px;
    line-height: 1.08;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mof-record-hero-team {
    color: #0b477d;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mof-record-hero-meta {
    display: flex;
    gap: 8px 14px;
    flex-wrap: wrap;
    color: #666666;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mof-record-hero-meta a {
    color: #555555;
    text-decoration: none;
}

.mof-record-hero-meta a:hover {
    color: #0b477d;
    text-decoration: underline;
}

.mof-record-hero-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #c3c7cb;
    background:
        linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,241,236,.90));
    padding: 18px;
}

.mof-record-hero-value span {
    color: #5e6266;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.15px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.mof-record-hero-value strong {
    color: #ff2a00;
    font-size: clamp(56px, 6.5vw, 86px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -3px;
    text-shadow:
        0 2px 0 rgba(255,255,255,.9),
        0 4px 10px rgba(255,42,0,.22),
        0 1px 1px rgba(117,0,0,.18);
}

.mof-record-table-wrap {
    overflow-x: auto;
    border: 1px solid #aeb5bc;
    border-top: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.mof-record-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    min-width: 770px;
}

.mof-record-table thead th {
    background: #292929;
    color: #ffffff;
    padding: 9px 10px;
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.mof-record-table thead th:first-child,
.mof-record-table thead th:nth-child(2) {
    text-align: center;
}

.mof-record-table tbody td {
    border-bottom: 1px solid #d1d1d1;
    padding: 10px 10px;
    font-size: 13px;
    color: #242424;
    vertical-align: middle;
}

.mof-record-table tbody tr:nth-child(even) {
    background: #f2f3f4;
}

.mof-record-table tbody tr:hover {
    background: #e8f0f7;
}

.mof-record-rank {
    width: 56px;
    text-align: center;
    font-weight: 900;
}

.mof-record-value {
    width: 90px;
    text-align: center;
    color: #e52400 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: 16px !important;
    letter-spacing: .15px;
    text-shadow:
        0 1px 0 rgba(255,255,255,.75),
        0 2px 5px rgba(229,36,0,.22);
}

.mof-record-season,
.mof-record-edition {
    white-space: nowrap;
    font-weight: 700;
}

.mof-record-team-link,
.mof-record-coach-link {
    color: inherit;
    text-decoration: none;
}

.mof-record-team-link:hover,
.mof-record-coach-link:hover {
    color: #0b477d;
    text-decoration: underline;
}

.mof-record-empty {
    padding: 30px;
    border: 1px solid #cccccc;
    text-align: center;
    background: #f5f5f5;
    color: #666666;
}


/* =========================================================
   MODERN RECORD BOOK NAVIGATION
   Primary categories + stat-specific secondary navigation.
   ========================================================= */
.mof-record-nav {
    width: 100%;
    max-width: 1080px;
    margin: 8px auto 26px;
}

.mof-record-categories {
    display: flex;
    align-items: stretch;
    gap: 5px;
    padding: 6px;
    background: #202020;
    border-radius: 4px 4px 0 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.mof-record-category {
    flex: 1 0 auto;
    min-width: 92px;
    padding: 10px 12px;
    color: #dddddd !important;
    text-decoration: none !important;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .35px;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.mof-record-category:hover {
    background: #343434;
    color: #ffffff !important;
    border-color: #4a4a4a;
}

.mof-record-category.active {
    background: #0b477d;
    color: #ffffff !important;
    border-color: #14639f;
    box-shadow: inset 0 -2px 0 rgba(255,255,255,.14);
}

.mof-record-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    padding: 12px 12px 13px;
    background: #f1f3f5;
    border: 1px solid #c9cdd1;
    border-top: 0;
    border-radius: 0 0 4px 4px;
}

.mof-record-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #c5c9cd;
    border-radius: 16px;
    color: #333333 !important;
    text-decoration: none !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    transition: all .16s ease;
}

.mof-record-stat:hover {
    border-color: #0b477d;
    color: #0b477d !important;
    background: #f8fbfe;
}

.mof-record-stat.active {
    background: #0b477d;
    border-color: #0b477d;
    color: #ffffff !important;
    font-weight: 600;
}

@media (max-width: 760px) {
    .mof-record-categories {
        justify-content: flex-start;
    }

    .mof-record-category {
        min-width: 88px;
        font-size: 11px;
        padding: 9px 10px;
    }

    .mof-record-stats {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .mof-record-hero {
        grid-template-columns: 135px minmax(0, 1fr);
        min-height: 165px;
    }

    .mof-record-hero-value {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid #c3c7cb;
        padding: 12px;
    }

    .mof-record-hero-value strong {
        font-size: 58px;
    }

    .mof-record-player {
        width: 126px;
        height: 158px;
    }

    .mof-record-helmet {
        width: 58px;
        height: 58px;
    }

    .mof-record-hero-info {
        padding: 20px 16px;
    }

    .mof-record-hero-name {
        font-size: 20px;
    }
}
