html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #800000;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #a50000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

a:hover {
    color: #800000;
    text-decoration: underline;
}

.site-header {
    background-color: #800000;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header img {
    height: 50px;
}

.site-nav a {
    color: #ccc;
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #f0d070;
}


.site-content {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
    width: 100%;
    flex-grow: 1;
}

footer {
    background-color: #800000;
    color: #ccc;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

.content-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.chronology-container {
    margin-bottom: 30px;
}

.chronology-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.chronology-table th,
.chronology-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.chronology-table thead {
    background-color: #a50000;
    color: #fff;
}

.chronology-table tbody tr:nth-child(even) {
    background-color: #f8f4eb;
}

.chronology-table tbody tr:hover {
    background-color: #f2eadd;
}

.chronology-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: #a50000;
    margin-bottom: 0.5rem;
    margin-top: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.win-loss-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.win-loss-table th,
.win-loss-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.win-loss-table thead {
    background-color: #a50000;
    color: #fff;
}

.win-loss-table tbody tr:nth-child(even) {
    background-color: #f8f4eb;
}

.win-loss-table tbody tr:hover {
    background-color: #f2eadd;
}

.win-loss-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #a50000;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tabs for filtering or sorting */
.tab-button {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
}

.tab-button:hover,
.tab-button.active {
    background-color: #a50000;
    color: white;
    border-color: #a50000;
}

.filter-bar {
    text-align: center;
    margin-bottom: 1.5rem;
}
.filter-bar input,
.filter-bar select,
.filter-bar button {
    font-size: 1rem;
    padding: 5px 10px;
    margin: 0 5px;
}

.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 1rem;
    width: 100%;
}

.tab-links li a {
    padding: 10px 16px;
    background-color: #a50000;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.tab-links li.active a,
.tab-links li a:hover {
    background-color: #800000;
}

.tab-content .tab {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content .tab.active {
    display: block;
}

.tab-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
}

.headshot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.headshot-grid img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s;
}

.headshot-grid a:hover img {
    transform: scale(1.05);
}

/* Promo List Layout */
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-entry {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.promo-image img {
    height: 100px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

.promo-info {
    flex: 1;
}

.promo-info h2 {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    color: #a50000;
}

.promo-info h2 a {
    text-decoration: none;
    color: #a50000;
}

.promo-info h2 a:hover {
    text-decoration: underline;
    color: #800000;
}

.promo-info div {
    line-height: 1.5;
    margin-bottom: 2px;
}

.title-img {
    width: 200px;
    height: auto;
    border-radius: 4px;
}

.champion-block {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.champion-info {
    text-align: left;
    min-width: 200px;
}

.history-wrapper {
    margin-top: 10px;
    margin-bottom: 20px;
}

.history-wrapper summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 5px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.history-table th, .history-table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.history-table th {
    background-color: #f0f0f0;
}

.roster-search {
    display: block;
    margin: 0 auto 20px auto;
    padding: 8px 12px;
    max-width: 300px;
    width: 90%;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.headshot {
    position: relative;
    display: inline-block;
}

.character-img {
    width: 150px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.character-img:hover {
    transform: scale(1.05);
}

.champion-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px !important;
    height: 25px !important;
    z-index: 10;
    pointer-events: none;
    object-fit: contain;
    filter: brightness(1.5) invert(1) grayscale(1);
}

.gender-tabs ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 10px 0 20px;
}

.gender-tab {
    padding: 6px 12px;
    background: #e3e3e3;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.gender-tab.active {
    background: #333;
    color: #fff;
}

 .gender-tabs li a {
      display: inline-block;
      padding: 6px 10px;
      background: #e3e3e3;
      color: #333;
      text-decoration: none;
      border-radius: 4px;
      transition: background 0.2s;
      font-weight: bold;
    }

    .gender-tabs li.active a {
      background: #333;
      color: #fff;
    }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

.rankings-table th, .rankings-table td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

.rankings-table th {
    background-color: #eee;
}

.movement-up {
    color: green;
    font-weight: bold;
}

.movement-down {
    color: red;
    font-weight: bold;
}

.movement-same {
    color: gray;
    font-weight: bold;
}

.updated-date {
    margin: 0.5em 0 1em;
    font-style: italic;
    color: #666;
}

.legend-box {
    margin-top: 2em;
    font-size: 0.9em;
    color: #444;
}

.legend-box h4 {
    margin-bottom: 0.5em;
}

.legend-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1em;
}

.manual-notes {
    padding-left: 0;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #444;
}

.event-header {
    text-align: center;
    margin-bottom: 2rem;
}

.event-header img {
    display: block;
    margin: 0 auto 1rem;
    max-width: 100%;
    height: auto;
    border: 2px solid #000000;
}

.event-meta {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.match-segment {
    margin-bottom: 2rem;
}

.match-segment h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #800000;
}

.match-segment .content {
    margin-left: 1rem;
    text-align: left;
}

.credits-box {
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #333;
    line-height: 1.4;
    text-align: left;
}

.credits-box h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.credits-box ul {
    padding-left: 1.2rem;
    margin: 0;
}

.credits-box li {
    margin-bottom: 0.3rem;
}

/* CHARACTER PROFILE ADDITIONS */
.profile-header {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-photo {
    flex: 0 0 180px;
    margin-right: 30px;
}

.profile-photo img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    color: #a50000;
}

.profile-info .basic-stats {
    font-size: 1rem;
    color: #555;
    margin-bottom: 12px;
}

.profile-info .basic-stats span {
    display: inline-block;
    margin-right: 20px;
}

.profile-info .bio-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}

.quick-facts {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.quick-facts .fact {
    flex: 1 1 250px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.quick-facts .fact .label {
    font-weight: bold;
    margin-right: 8px;
    color: #333;
    white-space: nowrap;
}

.quick-facts .fact .value {
    color: #555;
    line-height: 1.4;
}

.quick-facts .fact .value.audio-player {
    display: flex;
    align-items: center;
}

.quick-facts .fact .value.audio-player audio {
    margin-left: 8px;
    width: 200px;
}

/* TABS */
.tabs {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    display: block;
}

.tabs .tab-buttons {
    display: flex;
    background-color: #f1f5f9;
    border-bottom: 1px solid #ddd;
}

.tabs .tab-buttons button {
    flex: 1;
    padding: 12px;
    background: #f1f5f9;
    border: none;
    border-right: 1px solid #d9e2eb;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tabs .tab-buttons button:last-child {
    border-right: none;
}

.tabs .tab-buttons button:hover {
    background-color: #e2e8f0;
}

.tabs .tab-buttons button.active {
    background-color: #a50000;
    color: #fff;
    border-bottom: 3px solid #a50000;
    font-weight: bold;
}

.tabs .tab-content {
    display: none;
    width: 100%;
    clear: both;
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    background-color: #fff;
    box-sizing: border-box;
}

.tabs .tab-content.active {
    display: block;
}

.tabs table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tabs table th {
    background-color: #a50000;
    color: #fff;
    padding: 8px 12px;
    border: 1px solid #eee;
    text-align: left;
    font-size: 1rem;
}

.tabs table td {
    padding: 8px 12px;
    border: 1px solid #eee;
    font-size: 1rem;
    color: #444;
}

.tabs table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* IN THE RING TABLE */
.in-ring-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.in-ring-table th {
    width: 30%;
    background-color: #a50000;
    color: #fff;
    padding: 8px 12px;
    border: 1px solid #eee;
    font-size: 1rem;
    text-align: left;
}

.in-ring-table td {
    width: 70%;
    padding: 8px 12px;
    border: 1px solid #eee;
    font-size: 1rem;
    color: #444;
}

.in-ring-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-photo {
        margin: 0 0 15px 0;
    }

    .tabs .tab-buttons {
        flex-wrap: wrap;
    }

    .tabs .tab-buttons button {
        flex: 1 1 50%;
    }
}
