@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@300;400;500;700&display=swap');

:root, #wtm-monitor-root {
    /* CI Colors from svemporerfurt.de */
    --wtm-primary-color: #01639A;
    --primary-dark: #004b75;
    --accent-color: #009FE3;
    /* Lighter blue often seen in sport contexts */

    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    /* Slight contrast to white bg */
    --text-color: #333333;
    --text-muted: #666666;

    /* Flatter design -> Subtler shadows */
    --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 5px 15px rgba(1, 99, 154, 0.15);

    /* Badge Colors */
    --badge-live: #e63946;
    --badge-active: #01639A;
    /* Primary */
    --badge-finished: #333333;
    --badge-planned: #7f8c8d;
}

body {
    background: var(--bg-color) !important;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 10px;
    overflow-x: hidden;
    min-height: 100vh;
}

.wtm-hero-header img {
    height: 100px;
    width: auto;
}

/* Typography Update: Cleaner, less "Gaming", more "Verein" */
h1,
h2,
h3,
h4,
.wtm-hub-header h1,
.wtm-hero-title,
.wtm-hub-card-title,
.wtm-header h1,
.wtm-ticker-label {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Keep Bebas for "Data" that needs to be big and compact */
.wtm-score-large,
.wtm-live-timer,
#live-timer-frontend,
.podium-block {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-weight: 400 !important;
}

#wtm-monitor-root {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================================
   HUB VIEW STYLES
   ========================================= */

.wtm-hub-view,
#wtm-monitor-root.wtm-hub-view {
    padding: 0;
    background: transparent !important;
    background-color: transparent !important;
}

/* Hero: Flat, Clean Blue */
.wtm-hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px 20px 25px;
    margin-bottom: 30px;
    box-shadow: none;
    box-sizing: border-box;
    gap: 12px;
}

/* Subtle pattern can stay */
.wtm-hero-header::after { display: none; }

.wtm-hero-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    max-width: 350px;
    height: auto;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: none;
    margin: 0 auto 5px auto;
}

.wtm-hero-logo {
    max-width: 100%;
    max-height: 180px;
    height: auto;
    object-fit: contain;
}

.wtm-hero-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 3.5em !important;
    font-weight: 700 !important;
    line-height: 1.0 !important;
    color: var(--wtm-primary-color) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wtm-hero-subtitle {
    display: inline-block;
    color: var(--wtm-primary-color);
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-top: 5px;
    line-height: 1;
}

.wtm-card-left-badge-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 5px;
    flex-direction: column;
    align-items: flex-start;
}

.wtm-card-time-badge {
    background: var(--wtm-primary-color);
    color: #fff;
    padding: 4px 8px 3px;
    font-size: 1.15em;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Bebas Neue', sans-serif !important;
    line-height: 1;
}

.wtm-hub-group {
    margin-bottom: 60px;
    animation: fadeInUp 0.5s ease-out both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wtm-hub-group-title {
    font-size: 1.8em;
    color: var(--wtm-primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    display: inline-block;
}

.wtm-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Card: Clean, Bordered */
.wtm-hub-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 8px;
    /* Slightly reduced radius */
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease-in-out;
    overflow: hidden;
    position: relative;
    min-height: 160px;
    border: 1px solid #e0e0e0;
    /* Distinct border */
}

.wtm-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--wtm-primary-color);
    background: #fff;
}

.wtm-hub-card::before {
    /* Left accent bar instead of top? No, Top is fine, but cleaner */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wtm-primary-color);
    opacity: 1;
}

.wtm-hub-card-content {
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.wtm-hub-card-title {
    font-size: 1.4em;
    /* Smaller, cleaner */
    font-weight: 400 !important;
    margin: 0 0 10px 0;
    line-height: 1.2;
    color: var(--wtm-primary-color) !important;
}

.wtm-hub-card-meta {
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.wtm-hub-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* BADGES - Cleaner */
.wtm-card-badge-container {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 5px;
    flex-direction: column;
    align-items: flex-end;
}

.wtm-card-live-badge,
.wtm-card-active-badge,
.wtm-card-finished-badge,
.wtm-card-planned-badge {
    padding: 4px 8px 3px;
    font-size: 1.15em;
    border-radius: 4px;
    color: #fff;
    box-shadow: none;
    /* Flat */
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Bebas Neue', sans-serif !important;
    line-height: 1;
}

.wtm-card-live-badge {
    background: var(--badge-live) !important;
    animation: hub-pulse 2s infinite;
}

.wtm-card-active-badge {
    background: var(--badge-active) !important;
}

.wtm-card-finished-badge {
    background: var(--badge-finished);
    color: #fff;
}

.wtm-card-planned-badge {
    background: var(--badge-planned);
    color: #fff;
}

@keyframes hub-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* =========================================
   STANDARD MONITOR VIEW STYLES
   ========================================= */

/* =========================================
   HEADER HERO - Clean Minimal Style
   ========================================= */
.wtm-header-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px 20px 25px;
    margin-bottom: 30px;
    box-shadow: none;
    box-sizing: border-box;
    gap: 12px;
}

.wtm-header-card::before,
.wtm-header-card::after {
    display: none;
}

/* Logo container — transparent, centered and naturally sized */
.wtm-header-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    max-width: 350px;
    height: auto;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: none;
    margin-bottom: 15px;
}

.wtm-header-logo {
    max-width: 100%;
    max-height: 180px;
    height: auto;
    object-fit: contain;
}

/* Text container */
.wtm-header-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

/* Event name — clean uppercase Bebas Neue badge */
.wtm-header-event-badge {
    display: inline-block;
    color: var(--wtm-primary-color);
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.75;
    line-height: 1;
}

/* Tournament name */
.wtm-header-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 3.5em !important;
    font-weight: 700 !important;
    line-height: 1.0 !important;
    color: var(--wtm-primary-color) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Date / Time badge row */
.wtm-header-meta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
}

/* Feld-style badges: solid blue, Bebas Neue */
.wtm-meta-badge {
    display: inline-flex;
    align-items: center;
    background: var(--wtm-primary-color);
    color: #fff;
    padding: 5px 14px;
    border-radius: 4px;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.4em;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
}

.wtm-meta-icon {
    display: none;
}

.wtm-delay-badge {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

.wtm-delay-ok {
    background: #2ecc71 !important;
    color: #fff !important;
}

.wtm-delay-late {
    background: #e74c3c !important;
    color: #fff !important;
    animation: wtm-blink-delay 2s infinite ease-in-out;
}

@keyframes wtm-blink-delay {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.podium-team-name {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 5px;
    /* Add space between logo and name */
    color: #333;
    display: block;
    /* Removed flex */
    text-align: center;
    padding-top: 0;
    /* REMOVED 50px padding */
    border-radius: 8px 8px 0 0;
    box-shadow: none;
    /* Removed shadow */
    border: none;
}

.wtm-info-line {
    font-size: 1.1em;
    color: var(--text-color);
    margin-top: 5px;
    opacity: 0.8;
    font-weight: 400;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

/* Ticker: Flat */
.wtm-ticker {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)) !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
    align-items: stretch !important;
}

.wtm-ticker-box {
    flex: 1 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-top: 3px solid var(--wtm-primary-color) !important;
    padding: 20px !important;
    border-radius: 6px !important;
    text-align: center !important;
    box-shadow: var(--shadow-soft) !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 180px !important;
}

.wtm-ticker-label {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.5em !important;
    color: var(--wtm-primary-color) !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
    letter-spacing: 2px !important;
    font-weight: 400 !important;
    display: block !important;
}

.wtm-ticker-content {
    font-size: 1em !important;
    font-weight: 500 !important;
    color: #333 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.wtm-ticker-content img {}

/* handled below */

/* LOGO FIX: Fixed Size for Next/Last Games and Tables */
.wtm-logo-small {
    /* FORCE FIXED SIZE for uniformity */
    width: 50px !important;
    height: 50px !important;
    object-fit: contain;
    vertical-align: middle;
}

.wtm-ticker-content .wtm-logo-small,
.wtm-ticker-content img {
    /* Same constraint for ticker */
    width: 50px !important;
    height: 50px !important;
    object-fit: contain;
    margin: 0 10px 5px 10px;
}

.wtm-score-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.wtm-score-box {
    background: var(--wtm-primary-color);
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 8.5em;
    font-weight: 400;
    padding: 10px 30px;
    border-radius: 12px;
    line-height: 1;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.wtm-score-divider {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 7.5em;
    color: var(--wtm-primary-color);
    font-weight: 400;
    animation: wtm-pulse-divider 4s infinite ease-in-out;
}

/* Split view adjustments */
.wtm-split-card .wtm-score-box {
    font-size: 4.2em !important;
    font-weight: 400 !important;
    padding: 5px 20px !important;
    min-width: 80px !important;
    border-radius: 8px !important;
}

.wtm-split-card .wtm-score-divider {
    font-size: 3.8em !important;
}

@keyframes wtm-pulse-divider {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}


.podium-logo {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain;
    margin-bottom: 5px;
    /* Reduced from 15px */
    z-index: 5;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    position: relative;
}

/* Main Stage: Flat Frame */
.wtm-main-stage {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.wtm-main-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wtm-primary-color);
}

.wtm-live-indicator {
    position: absolute !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: var(--badge-live) !important;
    color: #fff !important;
    padding: 6px 16px 5px;
    font-size: 1.8em !important;
    border-radius: 4px;
    box-shadow: none;
    animation: pulse 2s infinite;
    z-index: 10;
    font-weight: 400 !important;
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        opacity: 0.85;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

.wtm-match-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 40px;
    margin-top: 65px;
}

.wtm-team-large {
    flex: 1;
    max-width: 40%;
    text-align: center;
}

.wtm-team-large h1 {
    font-size: 2em;
    margin: 15px 0 0 0;
    color: var(--wtm-primary-color) !important;
    line-height: 1.1;
}

.wtm-logo-large {
    height: 110px;
    width: 110px;
    object-fit: contain;
    filter: none;
    /* Clean images */
    transition: transform 0.3s;
}

.wtm-score-large {
    font-size: 7.5em !important;
    font-family: 'Bebas Neue', sans-serif;
    color: var(--wtm-primary-color) !important;
    font-weight: 400 !important;
    line-height: 1;
}

#live-timer-frontend {
    font-size: 2.5em !important;
    margin-top: 10px !important;
    color: #444 !important;
    font-weight: 400 !important;
}

/* Tables: Clean Lines */
.wtm-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.wtm-table-card {
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid var(--wtm-primary-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    padding: 20px 10px;
}

.wtm-table-header {
    background: transparent;
    color: var(--wtm-primary-color);
    padding: 0 10px 15px 10px;
    text-align: center;
    font-size: 1.5em;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px dashed #eee;
    margin-bottom: 10px;
}

.wtm-table {
    width: 100% !important;
    border-collapse: collapse !important;
    color: #333 !important;
    border: none !important;
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 0.5px !important;
}

#wtm-monitor-root table.wtm-table thead,
#wtm-monitor-root table.wtm-table thead tr,
#wtm-monitor-root table.wtm-table thead tr th,
#wtm-monitor-root .wtm-table th,
.wtm-table th {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid #eee !important;
    padding: 10px 12px !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    color: #01639A !important;
    text-transform: uppercase !important;
}

.wtm-table tr {
    border: none !important;
}

.wtm-table tbody tr {
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wtm-table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

.wtm-table tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

.wtm-table td {
    padding: 8px 12px !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    background-color: inherit !important;
}

.wtm-table tr:last-child td {
    border: none !important;
    border-bottom: none !important;
}

.wtm-table tbody tr:hover {
    background-color: #f0f7fc !important;
    transform: scale(1.006);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    z-index: 2;
    position: relative;
}

/* Alignments & Widths */
.wtm-table th:nth-child(1),
.wtm-table td:nth-child(1) {
    text-align: center !important;
    width: 35px !important;
    padding-right: 0 !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}

.wtm-table th:nth-child(2),
.wtm-table td:nth-child(2) {
    text-align: left !important;
}

.wtm-table th:nth-child(3),
.wtm-table td:nth-child(3),
.wtm-table th:nth-child(4),
.wtm-table td:nth-child(4),
.wtm-table th:nth-child(5),
.wtm-table td:nth-child(5) {
    text-align: center !important;
}

.wtm-table th:nth-child(5),
.wtm-table td:nth-child(5) {
    font-weight: 400 !important;
    color: var(--wtm-primary-color) !important;
}

/* Apply logo constraint to Tables specifically as well */
.wtm-table td img,
.wtm-table .wtm-logo-small {
    /* FIXED SIZE for Tables */
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.2s ease-in-out;
}

.wtm-table tbody tr:hover td img,
.wtm-table tbody tr:hover td .wtm-logo-small {
    transform: scale(1.15);
}

/* Sponsors Bar: Clean */
.wtm-sponsors-bar {
    background: #fff !important;
    margin-top: 40px !important;
    padding: 25px 20px !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    border-top: 3px solid var(--wtm-primary-color) !important;
    text-align: center !important;
    box-shadow: var(--shadow-soft) !important;
}

.wtm-sponsors-label {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.5em !important;
    color: var(--wtm-primary-color) !important;
    margin-bottom: 20px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

.wtm-sponsors-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* INCREASED SPONSOR SIZE per request */
.wtm-sponsor-logo {
    max-height: 90px;
    /* Increased from 60 */
    max-width: 220px;
    /* Increased from 180 */
    object-fit: contain;
    transition: all 0.3s;
}

/* Schedule Button: Flat outline */
.button-schedule {
    font-size: 1.1em !important;
    padding: 10px 30px !important;
    background: var(--wtm-primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin-top: 30px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.button-schedule:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
}

/* --- Modal Filter & Buttons --- */
#sch-filter {
    padding: 10px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 0.95em !important;
    font-family: 'Roboto', sans-serif !important;
    width: 250px !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05) !important;
}

#sch-filter:focus {
    border-color: var(--wtm-primary-color) !important;
    outline: none !important;
}

#btn-toggle-brk {
    padding: 10px 20px !important;
    background: var(--wtm-primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.9em !important;
    transition: all 0.2s !important;
}

#btn-toggle-brk:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px) !important;
}

/* --- Voting Modal --- */
#wtm-v-modal,
#wtm-announcement-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wtm-fade-in 0.2s ease-out;
}

.wtm-v-modal-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 8px;
    border-top: 5px solid var(--wtm-primary-color);
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    box-sizing: border-box;
    animation: wtm-slide-up 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wtm-v-modal-title {
    color: var(--wtm-primary-color) !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 2.4em !important;
    font-weight: 400 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.1 !important;
}

.wtm-v-modal-label {
    display: block !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.25em !important;
    font-weight: 400 !important;
    color: var(--text-color) !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.5px !important;
    text-align: left !important;
}

.wtm-v-modal-input,
.wtm-v-modal-select {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    color: var(--text-color) !important;
    background: #ffffff !important;
    border: 1.5px solid #d0d0d0 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    display: block !important;
    margin-bottom: 15px !important;
    transition: all 0.2s ease-in-out !important;
    font-family: 'Roboto', sans-serif !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text !important;
}

.wtm-v-modal-select {
    height: 48px !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

.wtm-v-modal-input:focus,
.wtm-v-modal-select:focus {
    border-color: var(--wtm-primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(1, 99, 154, 0.15) !important;
}

.wtm-v-modal-scrollable {
    text-align: left !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    margin: 15px 0 !important;
    padding-right: 8px !important;
}

.wtm-v-modal-scrollable::-webkit-scrollbar {
    width: 6px;
}
.wtm-v-modal-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.wtm-v-modal-scrollable::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.wtm-v-modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--wtm-primary-color);
}

.wtm-v-modal-as-row {
    margin-bottom: 12px !important;
}

.wtm-v-modal-submit {
    background: var(--wtm-primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px !important;
    width: 100% !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    font-size: 1.5em !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
}

.wtm-v-modal-submit:hover {
    background: var(--primary-dark) !important;
}

.wtm-v-modal-submit:active {
    transform: scale(0.98);
}

.wtm-v-modal-submit:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.wtm-v-modal-close-x {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    font-size: 2.2em !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
    color: #999999 !important;
    transition: color 0.2s ease !important;
    padding: 5px !important;
}

.wtm-v-modal-close-x:hover {
    color: var(--wtm-primary-color) !important;
}

.wtm-v-modal-later {
    background: none !important;
    border: none !important;
    color: #888888 !important;
    cursor: pointer !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    font-size: 1.15em !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    display: block !important;
    margin: 15px auto 0 auto !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.wtm-v-modal-later:hover {
    color: var(--wtm-primary-color) !important;
}

.wtm-v-modal-success {
    background: #ffffff !important;
    padding: 40px 30px !important;
    border-radius: 8px !important;
    border-top: 5px solid #2e7d32 !important;
    text-align: center !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
    width: 90% !important;
    max-width: 420px !important;
    box-sizing: border-box !important;
    animation: wtm-slide-up 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wtm-v-modal-success-icon {
    width: 60px;
    height: 60px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: #2e7d32;
    font-size: 32px;
    font-weight: bold;
}

.wtm-v-modal-success-title {
    color: #2e7d32 !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    font-size: 2.6em !important;
    margin: 0 0 10px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.wtm-v-modal-success-desc {
    color: var(--text-muted) !important;
    margin: 0 !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.1em !important;
    line-height: 1.4 !important;
}

@keyframes wtm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wtm-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Schedule Modal --- */
#wtm-schedule-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    display: none;
    animation: wtm-fade-in 0.2s ease-out;
}

.wtm-sch-modal-card {
    max-width: 1000px;
    width: 92%;
    margin: 50px auto;
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 8px;
    border-top: 5px solid var(--wtm-primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    box-sizing: border-box;
    animation: wtm-slide-up 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wtm-sch-modal-close-x {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 2.5em !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
    color: #999999 !important;
    transition: color 0.2s ease !important;
    padding: 5px !important;
}

.wtm-sch-modal-close-x:hover {
    color: var(--wtm-primary-color) !important;
}

.wtm-sch-modal-title {
    text-align: center !important;
    color: var(--wtm-primary-color) !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 2.5em !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
}

.wtm-sch-modal-controls {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    gap: 15px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Schedule Table Logos wrapper */
.wtm-sch-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.wtm-sch-logo-wrapper img,
.wtm-sch-logo-wrapper .wtm-logo-small {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
    margin: 0 !important;
}

#wtm-schedule-modal table th {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #eee !important;
    color: var(--wtm-primary-color) !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wtm-match-live {
    background-color: rgba(230, 57, 70, 0.06) !important;
}

.wtm-match-live td {
    color: var(--badge-live) !important;
    font-weight: bold !important;
}

.wtm-match-live td:first-child {
    border-left: 4px solid var(--badge-live) !important;
}

.wtm-match-finished {
    opacity: 0.5 !important;
}

/* --- Schedule Table Premium Look --- */
.wtm-schedule-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 15px !important;
    background: #fff !important;
    border: none !important;
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 0.5px !important;
    color: #01639A !important;
    font-weight: 400 !important;
}

.wtm-schedule-table thead th {
    background-color: transparent !important;
    color: var(--wtm-primary-color) !important;
    padding: 10px 12px !important;
    text-align: left !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    border-bottom: 2px solid #eee !important;
}

.wtm-schedule-table tbody tr {
    border: none !important;
    background-color: #ffffff !important;
}

.wtm-schedule-table tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

.wtm-schedule-table tbody td {
    padding: 10px 12px !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    color: #01639A !important;
    background-color: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.wtm-schedule-table tbody tr:hover {
    background-color: #f1f3f5 !important;
}

/* Alignments & Widths */
.wtm-schedule-table th:nth-child(1),
.wtm-schedule-table td:nth-child(1),
.wtm-schedule-table th:nth-child(4),
.wtm-schedule-table td:nth-child(4),
.wtm-schedule-table th:nth-child(5),
.wtm-schedule-table td:nth-child(5) {
    text-align: center !important;
}

.wtm-sch-round {
    font-weight: 400 !important;
    color: var(--wtm-primary-color) !important;
    font-size: 0.95em !important;
}

.wtm-sch-match {
    font-weight: 400 !important;
}

.wtm-sch-score {
    font-weight: 400 !important;
    color: var(--wtm-primary-color) !important;
    text-align: center !important;
}

.wtm-schedule-table strong {
    font-weight: 400 !important;
}

/* --- Podium --- */
.podium-block {
    border-radius: 4px 4px 0 0;
}

/* --- Parallel Live Matches (Split View) --- */
.wtm-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.wtm-split-card {
    margin-bottom: 0;
    /* Reset */
    padding: 10px;
    /* Reduced padding */
}

/* Specific Overrides for Split View */
.wtm-split-card .wtm-score-large {
    font-size: 3em !important;
    /* Smaller score */
    margin: 5px 0;
}

.wtm-split-card .wtm-logo-large {
    height: 65px !important;
    width: 65px !important;
    /* Smaller logos */
}

.wtm-split-card .wtm-team-large h1 {
    font-size: 1.2em !important;
    /* Smaller team names */
    margin-top: 5px;
    color: var(--wtm-primary-color) !important;
}

.wtm-split-card .wtm-live-indicator {
    font-size: 1.25em !important;
    padding: 4px 10px;
    top: 10px;
    font-weight: 400 !important;
}

.wtm-split-card .wtm-match-display {
    margin-top: 35px;
    /* Less gap */
    gap: 10px;
}

.wtm-split-card .wtm-center-stage {
    min-width: 160px;
}

.wtm-split-card .wtm-live-timer {
    font-size: 1.6em !important;
    min-width: 80px !important;
    margin-top: 5px !important;
}

/* Stack internal items nicely if very narrow */
@media (max-width: 1200px) and (min-width: 900px) {
    .wtm-split-card .wtm-match-display {
        flex-direction: column;
    }
}

/* --- Ticker Alignment (Grid) --- */
.wtm-ticker-content {
    display: flex;
    /* Kept for column flow */
    flex-direction: column;
    gap: 5px;
}

.wtm-ticker-row {
    display: grid;
    /* Logo Team Scope Team Logo */
    grid-template-columns: 35px 1fr 60px 1fr 35px;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    border-bottom: 1px dashed #eee;
}

.wtm-ticker-row:last-child {
    border-bottom: none;
}

.wtm-t-logo {
    display: flex;
    justify-content: center;
}

.wtm-t-logo img,
.wtm-t-logo .wtm-logo-small {
    /* Hard override for size */
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
}

.wtm-t-name {
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wtm-t-r {
    text-align: right;
}

.wtm-t-l {
    text-align: left;
}

.wtm-t-score {
    text-align: center;
    font-weight: bold;
    color: var(--wtm-primary-color);
}

.wtm-score-split {
    font-size: 4em;
    /* Slightly smaller for split view */
}

@media (max-width: 900px) {
    .wtm-live-grid {
        grid-template-columns: 1fr;
        /* Stack if narrow */
    }
}

/* Responsive Optimization for Mobile */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .wtm-hero-title {
        font-size: 2.5em !important;
        letter-spacing: 1px;
    }
    .wtm-hero-subtitle {
        font-size: 1.4em !important;
        letter-spacing: 2px;
    }
    .wtm-hero-logo-container {
        max-width: 180px !important;
        height: auto !important;
        margin-bottom: 0 !important;
    }

    .wtm-header-card {
        padding: 15px 10px !important;
        gap: 10px !important;
    }
    .wtm-header-logo-container {
        max-width: 180px !important;
        height: auto !important;
        margin-bottom: 0 !important;
    }
    .wtm-header-text-container {
        align-items: center !important;
    }
    .wtm-header-meta-row {
        gap: 8px;
        padding-top: 5px;
        justify-content: center !important;
    }
    .wtm-header-title {
        font-size: 2.5em !important;
        letter-spacing: 1px;
    }
    .wtm-header-event-badge {
        font-size: 1.4em !important;
        letter-spacing: 2px;
    }
    .wtm-meta-badge {
        padding: 5px 12px !important;
        font-size: 1.1em !important;
    }

    /* Stack Match Display */
    .wtm-match-display {
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
        padding-top: 10px;
    }

    .wtm-team-large {
        max-width: 100%;
        width: 100%;
    }

    .wtm-team-large h1 {
        font-size: 1.4em;
        margin-top: 5px;
    }

    .wtm-logo-large {
        height: 85px;
        width: 85px;
    }

    /* Score in middle */
    .wtm-score-large {
        font-size: 3.5em;
        /* Smaller on mobile */
        margin: 5px 0;
    }

    #live-timer-frontend {
        font-size: 1.8em !important;
        margin-top: 0 !important;
    }

    /* Ticker Stack */
    .wtm-ticker {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .wtm-ticker-box {
        padding: 10px;
    }

    .wtm-ticker-content {
        font-size: 1.1em;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .wtm-ticker-content span {
        white-space: nowrap;
    }

    /* Tables */
    .wtm-tables-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wtm-table-card {
        margin-bottom: 10px;
    }

    .wtm-table td,
    .wtm-table th {
        padding: 6px 4px;
        font-size: 0.85em;
    }

    /* Show fewer columns if needed? Or allow scroll */
    .wtm-table {
        min-width: 0;
        /* Allow grid item check */
    }

    /* Sponsors */
    .wtm-sponsors-bar {
        padding: 10px;
        margin-top: 20px;
    }

    .wtm-sponsor-logo {
        max-height: 50px;
        max-width: 120px;
    }

    /* Hub Grid */
    .wtm-hub-grid {
        grid-template-columns: 1fr;
    }

    /* Voting Modal Mobile (handled in main styles) */

    button {
        padding: 15px !important;
        /* Touch targets */
    }

    /* Schedule Modal Table Scroll */
    #wtm-schedule-content {
        overflow-x: auto;
    }

    #wtm-schedule-content table {
        min-width: 600px;
        /* Force scroll if too small */
    }
}

/* --- FULLSCREEN MONITOR BACKGROUND --- */
.wtm-monitor-fullscreen {
    background: #fff;
    min-height: 100vh;
    box-sizing: border-box;
    color: #333;
}

.wtm-hub-view#wtm-monitor-root {
    background: #f4f6f8;
}

/* --- PODIUM STYLES --- */
#wtm-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-top: 60px;
    padding-bottom: 50px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 220px;
    position: relative;
    animation: fadeInUp 0.8s ease-out both;
}

.podium-place.rank-1 {
    order: 2;
    z-index: 3;
}

.podium-place.rank-2 {
    order: 1;
    z-index: 2;
    animation-delay: 0.3s;
}

.podium-place.rank-3 {
    order: 3;
    z-index: 1;
    animation-delay: 0.6s;
}

.podium-team-name {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 5px;
    /* Add space between logo and name */
    color: #333;
    display: block;
    /* Removed flex */
    text-align: center;
    padding-top: 0;
    /* REMOVED 50px padding */
    border-radius: 8px 8px 0 0;
    box-shadow: none;
    /* Removed shadow */
    border: none;
}

.rank-1 .podium-block {
    height: 280px;
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rank-2 .podium-block {
    height: 200px;
    background: linear-gradient(135deg, #E0E0E0 0%, #C0C0C0 100%);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rank-3 .podium-block {
    height: 160px;
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
/* --- MOBILE PODIUM OPTIMIZATION --- */
@media (max-width: 768px) {
    #wtm-podium {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        gap: 30px;
    }

    .podium-place {
        width: 100%;
        max-width: 320px;
        /* Reset Animation for smoother mobile load? Keep it. */
    }

    /* Reorder to 1st, 2nd, 3rd from top down */
    .podium-place.rank-1 { order: 1; }
    .podium-place.rank-2 { order: 2; }
    .podium-place.rank-3 { order: 3; }

    /* Adjust sizing */
    .podium-team-name {
        font-size: 1.5em; /* Smaller font */
    }

    .podium-logo {
        width: 100px !important; 
        height: 100px !important;
    }
    
    /* Ensure images don't overflow */
    .podium-graphic {
        max-width: 100%;
        height: auto;
    }
}

/* --- PODIUM POINTS STYLING --- */
.podium-points {
    font-weight: bold;
    font-size: 1.4em;
    margin-bottom: 5px;
    color: var(--wtm-primary-color);
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.9);
    padding: 2px 10px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Mobile Adjustment for Points */
@media (max-width: 768px) {
    .podium-points {
        font-size: 1.2em;
    }
}

/* Disabled Styles */
.wtm-hub-card.wtm-card-disabled {
    opacity: 0.6;
    filter: grayscale(100%);
    pointer-events: none;
    cursor: default;
    box-shadow: none;
    transform: none;
}


.wtm-hub-logos {
    display: flex;
    gap: 6px; /* Increased gap */
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}
.wtm-hub-logo-icon {
    width: 26px; /* Increased size */
    height: 26px;
    object-fit: contain;
    border-radius: 4px; /* Rounded square */
    background: #fff;
    border: 1px solid #ddd;
    padding: 2px;
    flex-shrink: 0; /* No shrinking */
    display: block;
}


/* --- Date Group Header --- */
.wtm-date-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 50px;
    position: relative;
    width: 100%;
}
.wtm-date-header-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}
.wtm-date-header-box {
    background: var(--wtm-primary-color);
    color: #fff;
    padding: 12px 40px;
    border-radius: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8em; 
    font-weight: 400;
    text-transform: uppercase;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    letter-spacing: 2px;
    min-width: 200px;
    text-align: center;
}




.wtm-hero-logo { max-width: 100px; height: auto; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; }



/* Layout Stabilizer Fix */
.wtm-center-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 350px; flex-shrink: 0; }
.wtm-live-timer { font-size: 2.5em; font-weight: bold; color: var(--wtm-primary-color); margin-top: 10px; display: inline-block; min-width: 120px; text-align: center; }
.wtm-split-card .wtm-center-stage { min-width: 160px; }
.wtm-split-card .wtm-live-timer { font-size: 1.6em !important; min-width: 80px !important; margin-top: 5px !important; }
#live-timer-frontend { display: none !important; }

/* No Match Box Styling */
.wtm-no-match-box {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8em;
    color: var(--text-muted);
    padding: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    text-align: center;
    width: 100%;
}
.wtm-no-match-box div {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    letter-spacing: normal;
    text-transform: none;
}

/* --- Floating Vote Badge --- */
.wtm-floating-vote-badge {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--wtm-primary-color) !important;
    color: #ffffff !important;
    padding: 5px 14px;
    border-radius: 4px;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 1.4em !important;
    font-weight: 400 !important;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 99998;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    animation: wtm-badge-float 3s ease-in-out infinite;
}

.wtm-floating-vote-badge:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wtm-floating-vote-badge:active {
    transform: scale(0.98);
}

.wtm-vote-badge-pulse {
    width: 10px;
    height: 10px;
    background: #e63946;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.wtm-vote-badge-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #e63946;
    animation: wtm-dot-pulse 1.5s infinite;
    opacity: 0;
}

/* White pulse overrides for badges with solid colored background */
.wtm-floating-vote-badge .wtm-vote-badge-pulse,
.wtm-header-vote-badge .wtm-vote-badge-pulse {
    background: #ffffff !important;
}

.wtm-floating-vote-badge .wtm-vote-badge-pulse::after,
.wtm-header-vote-badge .wtm-vote-badge-pulse::after {
    border-color: #ffffff !important;
}

@keyframes wtm-badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes wtm-dot-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Abstain Button styling in Voting Modal */
.wtm-v-modal-abstain-btn {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border: none !important;
    padding: 14px !important;
    width: 100% !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-weight: 400 !important;
    font-size: 1.5em !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin-top: 10px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
}

.wtm-v-modal-abstain-btn:hover {
    background: #cbd5e1 !important;
}

.wtm-v-modal-abstain-btn:active {
    transform: scale(0.98);
}

.wtm-v-modal-description {
    font-size: 0.95em !important;
    color: var(--text-muted) !important;
    margin: -5px 0 18px 0 !important;
    line-height: 1.45 !important;
    text-align: center !important;
}

/* =========================================
   MOBILE RESPONSIVE — Comprehensive Fix
   ========================================= */

/* === Tablets / Large Phones (max 768px) === */
@media (max-width: 768px) {

    #wtm-monitor-root {
        padding: 10px !important;
    }

    .wtm-header-card {
        padding: 12px 10px !important;
        gap: 8px !important;
    }
    .wtm-header-title {
        font-size: 2em !important;
        letter-spacing: 1px;
    }
    .wtm-header-event-badge {
        font-size: 1.2em !important;
    }
    .wtm-header-meta-row {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .wtm-meta-badge {
        font-size: 1.05em !important;
        padding: 4px 10px !important;
    }

    .wtm-hero-title {
        font-size: 2.2em !important;
    }
    .wtm-hero-subtitle {
        font-size: 1.1em !important;
    }

    .wtm-score-box {
        font-size: 5em !important;
        padding: 8px 18px !important;
        min-width: 80px !important;
    }
    .wtm-score-divider {
        font-size: 4.5em !important;
    }
    .wtm-score-large {
        font-size: 4.5em !important;
    }
    .wtm-team-large h1 {
        font-size: 1.3em !important;
    }
    .wtm-logo-large {
        height: 60px !important;
        width: 60px !important;
    }
    .wtm-match-display {
        gap: 10px !important;
        padding: 10px 0 !important;
    }
    .wtm-center-stage {
        min-width: unset !important;
        width: 100%;
    }
    .wtm-live-indicator {
        font-size: 1.4em !important;
        padding: 4px 12px 3px !important;
    }
    .wtm-live-timer {
        font-size: 1.8em !important;
    }

    .wtm-ticker {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    .wtm-ticker-box {
        min-height: unset !important;
        padding: 15px !important;
    }
    .wtm-ticker-label {
        font-size: 1.6em !important; /* Make it as big as Gruppe A */
        letter-spacing: 2px !important;
        margin-bottom: 12px !important;
    }

    .wtm-tables-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .wtm-table-card {
        width: 100% !important;
        padding: 15px 10px !important;
        box-sizing: border-box !important;
    }
    .wtm-table td,
    .wtm-table th {
        padding: 6px 8px !important;
        font-size: 14px !important;
    }
    .wtm-table td {
        font-size: 15px !important;
    }
    .wtm-table-card {
        padding: 12px 6px !important;
    }

    .wtm-date-header-box {
        font-size: 1.3em !important;
        padding: 8px 20px !important;
        min-width: 140px !important;
    }
    .wtm-date-header-container {
        margin-top: 30px !important;
        margin-bottom: 25px !important;
    }

    /* Hub Grid: 2 Spalten auf Tablets, 1 auf kleinen Phones */
    .wtm-hub-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .wtm-hub-group {
        margin-bottom: 30px !important;
    }
    .wtm-hub-card {
        min-height: 130px !important;
    }
    .wtm-hub-card:hover {
        transform: none !important;
    }
    .wtm-hero-header {
        padding: 15px 12px 18px !important;
        margin-bottom: 15px !important;
        gap: 8px !important;
    }
    .wtm-hero-logo-container {
        max-width: 200px !important;
    }
    .wtm-hero-logo {
        max-height: 100px !important;
    }
    .wtm-hub-card-title {
        font-size: 1.15em !important;
    }
    .wtm-live-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .button-schedule {
        font-size: 0.95em !important;
        padding: 10px 20px !important;
        margin-top: 20px !important;
    }

    .wtm-sponsors-bar {
        padding: 15px 10px !important;
        margin-top: 20px !important;
    }
    .wtm-sponsor-logo {
        max-height: 55px !important;
        max-width: 130px !important;
    }

    .wtm-v-modal-submit,
    .wtm-v-modal-abstain-btn {
        padding: 16px !important;
        font-size: 1.3em !important;
    }

    .wtm-floating-vote-badge {
        bottom: 16px !important;
        right: 16px !important;
        font-size: 1.2em !important;
        padding: 6px 14px !important;
    }
}

/* === Phones (max 480px) === */
@media (max-width: 480px) {

    #wtm-monitor-root {
        padding: 10px 8px !important;
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        box-sizing: border-box !important;
    }

    .wtm-header-title {
        font-size: 2.6em !important;
        letter-spacing: 1.5px !important;
    }
    .wtm-header-event-badge {
        font-size: 1.6em !important;
        margin-bottom: 8px !important;
    }
    .wtm-meta-badge {
        font-size: 1.5em !important;
        padding: 8px 16px !important;
    }
    .wtm-header-event {
        display: none; /* old class */
    }    .wtm-hub-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .wtm-hub-group {
        margin-bottom: 20px !important;
    }
    .wtm-hero-title {
        font-size: 1.8em !important;
    }
    .wtm-hero-subtitle {
        font-size: 1em !important;
    }
    .wtm-hero-logo {
        max-height: 70px !important;
    }

    .wtm-score-box {
        font-size: 3.8em !important;
        padding: 6px 12px !important;
        min-width: 60px !important;
    }
    .wtm-score-divider {
        font-size: 3.5em !important;
    }
    .wtm-score-large {
        font-size: 3.8em !important;
    }
    .wtm-team-large h1 {
        font-size: 1.1em !important;
    }
    .wtm-logo-large {
        height: 45px !important;
        width: 45px !important;
    }

    /* Voting Modal: Vollbild auf kleinen Phones */
    .wtm-v-modal-card {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100dvh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 80px 16px env(safe-area-inset-bottom, 20px) 16px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
    }

    /* Schedule Modal: Vollbild auf kleinen Phones */
    .wtm-sch-modal-card {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 80px 12px 20px 12px !important;
        min-height: 100dvh !important;
        box-sizing: border-box !important;
    }
    .wtm-sch-modal-close-x,
    .wtm-v-modal-close-x {
        right: auto !important;
        left: 15px !important;
    }
    .wtm-sch-modal-controls {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    #sch-filter {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #wtm-schedule-content {
        overflow-x: auto !important;
    }
    #wtm-schedule-content table {
        min-width: unset !important;
        width: 100% !important;
        table-layout: fixed !important;
        word-wrap: break-word !important;
    }

    .wtm-schedule-table tbody td,
    .wtm-schedule-table thead th {
        font-size: 11px !important;
        padding: 6px 3px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .wtm-t-name {
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .wtm-table {
        table-layout: fixed !important;
        width: 100% !important;
        word-wrap: break-word !important;
    }

    .wtm-table td {
        font-size: 15px !important;
        padding: 8px 4px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .wtm-table th {
        font-size: 16px !important;
        padding: 8px 4px !important;
    }
    
    .wtm-table th:nth-child(1), .wtm-table td:nth-child(1) { width: 10% !important; }
    .wtm-table th:nth-child(2), .wtm-table td:nth-child(2) { width: 50% !important; text-align: center !important; }
    .wtm-table th:nth-child(3), .wtm-table td:nth-child(3) { width: 10% !important; }
    .wtm-table th:nth-child(4), .wtm-table td:nth-child(4) { width: 15% !important; }
    .wtm-table th:nth-child(5), .wtm-table td:nth-child(5) { width: 15% !important; }

    /* Make the actual numbers for Sp, TD, Pkt larger and bolder */
    .wtm-table td:nth-child(3),
    .wtm-table td:nth-child(4),
    .wtm-table td:nth-child(5) {
        font-size: 18px !important;
        font-weight: bold !important;
    }

    .wtm-table td:nth-child(2) img,
    .wtm-table td:nth-child(2) .wtm-logo-small {
        display: block !important;
        margin: 0 auto 4px auto !important;
        width: 25px !important;
        height: 25px !important;
    }

    .wtm-sch-logo-wrapper img,
    .wtm-sch-logo-wrapper .wtm-logo {
        width: 35px !important;
        height: 35px !important;
        margin-right: 0 !important;
        margin-bottom: 4px !important;
    }

    .wtm-schedule-table th, .wtm-schedule-table td {
        padding: 8px 2px !important;
        font-size: 1.1em !important; /* Larger general table font */
    }

    .wtm-schedule-table img {
        width: 35px !important; /* Much larger logos since they are stacked */
        height: 35px !important;
        margin-right: 0 !important;
        margin-bottom: 4px !important;
    }

    .wtm-schedule-table img {
        width: 35px !important; /* Much larger logos since they are stacked */
        height: 35px !important;
        margin-right: 0 !important;
        margin-bottom: 4px !important;
    }
    /* --- Schedule Table (Modal) --- */
    .wtm-schedule-table th:nth-child(1), .wtm-schedule-table td:nth-child(1) { width: 15% !important; } /* Zeit */
    .wtm-schedule-table th:nth-child(2), .wtm-schedule-table td:nth-child(2) { width: 10% !important; } /* Runde */
    .wtm-schedule-table th:nth-child(3), .wtm-schedule-table td:nth-child(3) { width: 65% !important; } /* Match (widen) */
    .wtm-schedule-table th:nth-child(4), .wtm-schedule-table td:nth-child(4) { width: 10% !important; } /* Feld */
    .wtm-schedule-table th:nth-child(5), .wtm-schedule-table td:nth-child(5) { display: none !important; } /* Hide Ergebnis */
    
    .wtm-sch-colon { display: none !important; }
    .wtm-sch-mobile-score { display: flex !important; margin: 2px 0 !important; font-size: 2.2em !important; font-weight: bold; align-items: center; justify-content: center; width: 100%; text-align: center; }

    /* Matches side-by-side but with text wrap */
    .wtm-sch-match > div {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }
    .wtm-sch-match > div > div:first-child,
    .wtm-sch-match > div > div:last-child {
        padding-right: 2px !important;
        padding-left: 2px !important;
        width: 40% !important; /* Give teams 40% each, leaving 20% for the score */
        min-width: 0 !important;
    }
    .wtm-sch-match > div > div:nth-child(2) {
        width: 20% !important; /* Make sure the middle score wrapper has enough space */
        flex-shrink: 0 !important;
    }
    .wtm-sch-match > div > span {
        display: none !important; /* Hide the old inline colon if any remains */
    }
    
    /* Allow long team names to wrap so they don't break the table layout */
    .wtm-sch-match > div > div > span {
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.1 !important;
        font-size: 13px !important; /* Much more readable! */
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Team A is Name then Logo. We want Logo on top, Name on bottom */
    .wtm-sch-match > div > div:first-child {
        flex-direction: column-reverse !important;
        justify-content: center !important;
        text-align: center !important;
        align-items: center !important;
        gap: 4px !important;
    }
    /* Team B is Logo then Name. We want Logo on top, Name on bottom */
    .wtm-sch-match > div > div:last-child {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
        align-items: center !important;
        gap: 4px !important;
    }

    /* Revert scores to side-by-side */
    .wtm-schedule-table td:nth-child(5) > div {
        flex-direction: row !important;
        gap: 2px !important;
    }
    .wtm-schedule-table td:nth-child(5) > div > span {
        display: inline !important; /* Show the colon between scores */
    }

    .wtm-ticker-content {
        font-size: 0.95em !important;
    }

    .wtm-floating-vote-badge {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        right: 12px !important;
        font-size: 1.1em !important;
    }

    .wtm-hero-title {
        font-size: 1.9em !important;
    }

    /* Shrink ticker components for mobile */
    .wtm-ticker-content .wtm-logo-small,
    .wtm-ticker-content img {
        width: 35px !important;
        height: 35px !important;
        margin: 0 5px !important;
    }
    
    .wtm-ticker-row {
        flex-direction: row !important;
        gap: 0 !important;
        padding-top: 5px !important;
        align-items: center !important; /* Center vertically */
        justify-content: space-between !important;
    }
    
    .wtm-ticker-row > div:first-child,
    .wtm-ticker-row > div:last-child {
        width: calc(50% - 38px) !important;
        flex-direction: column !important;
        justify-content: center !important; /* Center internally */
        align-items: center !important;
        text-align: center !important; /* Override inline text-align: right */
        gap: 4px !important;
    }
    
    .wtm-ticker-row > div:first-child > div,
    .wtm-ticker-row > div:last-child > div {
        flex: unset !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
    
    /* Apply line-clamp ONLY to the text, not the logos */
    .wtm-ticker-row > div:first-child > div:last-child,
    .wtm-ticker-row > div:last-child > div:first-child {
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.1 !important;
        font-size: 1.25em !important; /* Reduce font size to prevent mid-word breaks */
        text-align: center !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }
    
    .wtm-ticker-row > div:last-child > div:last-child {
        order: -1 !important; /* Move Team B Logo to top */
    }
    
    .wtm-ticker-row > div:nth-child(2) {
        width: 76px !important;
        text-align: center !important;
        margin: 0 !important;
        padding-top: 5px !important;
    }
    
    /* Make the headings for Letzte Ergebnisse / Nächste Spiele larger on mobile */
    /* Make the headings for Letzte Ergebnisse / Nächste Spiele larger on mobile */
    .wtm-split-card h3 {
        font-size: 1.6em !important;
        margin-bottom: 15px !important;
    }
    
    /* Shrink Live Game on mobile to match ticker rows */
    .wtm-split-card > div:nth-child(2) {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }
    
    .wtm-split-card > div:nth-child(2) > div:first-child,
    .wtm-split-card > div:nth-child(2) > div:last-child {
        width: 35% !important;
        flex-direction: column-reverse !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .wtm-split-card > div:nth-child(2) > div:last-child {
        flex-direction: column !important; /* Team B logo on top */
    }

    .wtm-split-card > div:nth-child(2) > div:first-child > div:last-child,
    .wtm-split-card > div:nth-child(2) > div:last-child > div:last-child {
        font-size: 1.25em !important;
        line-height: 1.1 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .wtm-split-card img {
        width: 28px !important;
        height: 28px !important;
    }

    .wtm-split-card .wtm-score-box {
        font-size: 2.2em !important;
        width: 45px !important;
        height: 45px !important;
        min-width: unset !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .wtm-split-card > div:nth-child(2) > div:nth-child(2) {
        width: 30% !important;
        padding: 0 !important;
        gap: 5px !important;
    }

    .wtm-split-card > div:nth-child(2) > div:nth-child(2) > div:first-child {
        gap: 5px !important;
        margin-bottom: 5px !important;
    }

    .wtm-split-card > div:nth-child(2) > div:nth-child(2) > div:last-child {
        font-size: 1.4em !important;
    }
}
