/* Navigation reference: Figma xUUmuZgyOHgXbajRkbR5Xq, section 21. */
.figma-icon.fa-calendar-day, .figma-icon.fa-calendar-plus, .icon-calendar {
    --figma-icon: url("figma-icons/retail-calendar.svg");
}
.figma-icon.fa-circle-up, .figma-icon.fa-up-long, .icon-top-odds {
    --figma-icon: url("figma-icons/retail-top-odds.svg");
}
.figma-icon.fa-dog, .icon-greyhound { --figma-icon: url("figma-icons/retail-greyhound.svg"); }
.figma-icon.fa-horse, .icon-horses { --figma-icon: url("figma-icons/retail-horses.svg"); }
.figma-icon.fa-shop, .figma-icon.fa-store, .icon-local { --figma-icon: url("figma-icons/retail-local.svg"); }
.icon-more { --figma-icon: url("figma-icons/retail-more.svg"); }
.icon-menu-close { --figma-icon: url("figma-icons/retail-close.svg"); }
.icon-podcast { --figma-icon: url("figma-icons/retail-podcast.svg"); }

.bottom-nav {
    box-sizing: border-box;
    height: calc(104px + env(safe-area-inset-bottom));
    padding: 20px 16px calc(32px + env(safe-area-inset-bottom));
    gap: 4px;
    justify-content: space-between;
    border: 0;
    box-shadow: 0 -4px 24px #0008;
}
.bottom-nav .nav-item {
    box-sizing: border-box;
    min-width: 0;
    width: 62px;
    max-width: 80px;
    height: 52px;
    flex: 1 1 62px;
    gap: 4px;
    padding: 2px;
    font-family: 'TT Commons Pro DemiBold', sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    text-align: center;
    color: #fff;
    border: 0;
    background: transparent;
    transition: color .2s ease-out, background-color .2s ease-out;
}
.bottom-nav .nav-mas-item { color: #fff !important; background: transparent !important; }
.bottom-nav .nav-item.active, .bottom-nav .nav-item[aria-expanded="true"] {
    color: #000 !important;
    background: #06ffd8 !important;
    border: 0;
}
.bottom-nav .nav-item .figma-icon, .bottom-nav .nav-item svg {
    width: 28px !important; height: 28px !important; margin: 0;
    fill: currentColor;
}
.bottom-nav .nav-item:focus-visible, .retail-menu-row:focus-visible, .retail-menu-close:focus-visible {
    outline: 2px solid #06ffd8; outline-offset: 2px;
}
body:has(.bottom-nav) { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
body:has(.bottom-nav) .mini-player { bottom: calc(104px + env(safe-area-inset-bottom)); }

/* Live prototype 4184:7651: 20ms hold + 200ms grow + 20ms hold +
   400ms grow + 20ms hold + 400ms fade + 10ms hold = 1070ms.
   Diameters and opacities come from the four prototype variants. */
.live-waves {
    position: relative; display: inline-block; width: 28px; height: 28px;
    flex: 0 0 28px; color: #06ffd8;
}
.live-waves::before, .live-waves::after {
    content: ''; position: absolute; box-sizing: border-box;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 28.571429%; height: 28.571429%;
    border: 2px solid currentColor; border-radius: 50%; opacity: 0;
    animation: retail-wave-outer 1.07s linear infinite;
}
.live-waves::after { animation-name: retail-wave-inner; }
.live-waves__dot {
    position: absolute; left: 35.714286%; top: 35.714286%;
    width: 28.571429%; height: 28.571429%; border-radius: 50%; background: currentColor;
}
.nav-item.active .live-waves { color: #000; }
@keyframes retail-wave-outer {
    0%, 1.869159% { width: 28.571429%; height: 28.571429%; opacity: 0; }
    20.560748%, 22.429907% { width: 71.428571%; height: 71.428571%; opacity: .55; }
    59.813084%, 61.682243% { width: 92.857143%; height: 92.857143%; opacity: .3; }
    99.065421%, 100% { width: 100%; height: 100%; opacity: 0; }
}
@keyframes retail-wave-inner {
    0%, 1.869159% { width: 28.571429%; height: 28.571429%; opacity: 0; }
    20.560748%, 22.429907% { width: 50%; height: 50%; opacity: .95; }
    59.813084%, 61.682243% { width: 71.428571%; height: 71.428571%; opacity: .65; }
    99.065421%, 100% { width: 100%; height: 100%; opacity: 0; }
}

/* Desktop uses the same 62px rows, dividers and icon alignment as Figma. */
.sidebar-nav { gap: 0; margin: 24px 0; }
.sidebar-nav .nav-btn {
    box-sizing: border-box; min-height: 62px; padding: 19px 24px;
    gap: 12px; border: 0; border-bottom: 1px solid #262626;
    background: #000; color: #fff; box-shadow: none;
    font-family: 'TT Commons Pro DemiBold', sans-serif; font-size: 16px; line-height: 22px;
}
.sidebar-nav .nav-btn .figma-icon {
    width: 22px !important; height: 22px !important; color: inherit !important;
}
.sidebar-nav .nav-btn .live-waves {
    width: 22px; height: 22px; flex-basis: 22px; color: #06ffd8;
}
.sidebar-nav .nav-btn.active {
    background: #06ffd8; color: #000; box-shadow: none;
}
.sidebar-nav .nav-btn:hover:not(.active) { background: #151515; color: #fff; }

/* Native modal keeps background content inert and handles keyboard focus. */
dialog.retail-side-menu {
    box-sizing: border-box; position: fixed; inset: 0 0 0 auto;
    margin: 0 0 0 auto; padding: 0; width: min(320px, 100vw);
    max-width: 100vw; height: 100dvh; max-height: 100dvh;
    overflow-y: auto; overscroll-behavior: contain;
    border: 0; border-radius: 0; color: #fff; background: #000;
}
dialog.retail-side-menu:not([open]) { display: none !important; }
dialog.retail-side-menu[open] { display: block; animation: retail-menu-enter .25s ease-out; }
dialog.retail-side-menu::backdrop { background: #0009; }
body:has(dialog.retail-side-menu[open]) { overflow: hidden; }
.retail-menu-header {
    display: flex; justify-content: flex-end; align-items: center;
    box-sizing: border-box; height: 80px; padding: 24px;
}
.retail-menu-close {
    display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
    border: 0; background: transparent; color: #06ffd8; cursor: pointer;
}
.retail-menu-close .figma-icon { width: 32px; height: 32px; }
.retail-menu-row {
    display: flex; align-items: center; gap: 12px; box-sizing: border-box;
    min-height: 62px; width: 100%; padding: 19px 24px;
    color: #fff; background: #000; border: 0; border-bottom: 1px solid #262626;
    text-align: left; font: 16px/22px 'TT Commons Pro DemiBold', sans-serif;
    cursor: pointer; text-decoration: none;
}
.retail-menu-row .figma-icon { width: 22px !important; height: 22px !important; }
.retail-menu-row:hover { background: #151515; }
@keyframes retail-menu-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }

.retail-section-heading {
    display: flex; align-items: center; gap: 12px;
    font-size: 32px !important; line-height: 40px; letter-spacing: 0 !important;
}
.retail-heading-text { min-width: 0; }
.retail-section-heading::before {
    content: ''; display: inline-block; width: 32px; height: 32px; flex: 0 0 32px;
    background: currentColor;
    -webkit-mask: var(--heading-icon) center / contain no-repeat;
    mask: var(--heading-icon) center / contain no-repeat;
}
[data-heading-icon="calendar"] { --heading-icon: url("figma-icons/retail-calendar.svg"); }
[data-heading-icon="top-odds"] { --heading-icon: url("figma-icons/retail-top-odds.svg"); }
[data-heading-icon="greyhound"] { --heading-icon: url("figma-icons/retail-greyhound.svg"); }
[data-heading-icon="horses"] { --heading-icon: url("figma-icons/retail-horses.svg"); }
[data-heading-icon="local"] { --heading-icon: url("figma-icons/retail-local.svg"); }
[data-heading-icon="live"] { --heading-icon: url("figma-icons/live.svg"); }
[data-heading-icon="soccer"] { --heading-icon: url("figma-icons/soccer.svg"); }
[data-heading-icon="podcast"] { --heading-icon: url("figma-icons/retail-podcast.svg"); }
.widget-title { justify-content: flex-start; gap: 12px; }
.widget-title::before {
    content: ''; flex: 0 0 22px; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: url("figma-icons/retail-top-odds.svg") center / contain no-repeat;
    mask: url("figma-icons/retail-top-odds.svg") center / contain no-repeat;
}
.widget-title > span { margin-left: auto; }

/* Figma 4144:7610: 40px strip, 24px tabs, 4px spacing and 6px inset. */
.days-nav, .days-nav-desktop {
    box-sizing: border-box; height: 40px; min-height: 40px;
    display: flex; align-items: center; gap: 4px; padding: 8px 6px;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    background: transparent; border: 0;
}
.days-nav { width: calc(100% - 32px); margin: 0 16px; }
.days-nav-desktop { min-width: 0; max-width: min(40vw, 760px); }
.days-nav-desktop::-webkit-scrollbar { display: none; }
.days-nav .day-btn, .days-nav-desktop .day-tab {
    box-sizing: border-box; flex: 0 0 auto; height: 24px; min-height: 24px;
    width: auto; padding: 4px 8px; border: 1px solid #06ffd8; border-radius: 0;
    background: transparent; color: #06ffd8; box-shadow: none;
    font: 600 12px/15px 'TT Commons Pro DemiBold', sans-serif;
    letter-spacing: 0; text-transform: uppercase; white-space: nowrap;
}
.days-nav .day-btn.active, .days-nav-desktop .day-tab.active {
    background: #06ffd8; color: #000; border-color: #06ffd8; box-shadow: none;
}
.days-nav .day-btn:focus-visible, .days-nav-desktop .day-tab:focus-visible {
    outline: 2px solid #fff; outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
    .live-waves::before, .live-waves::after { animation: none; }
    .live-waves::before { width: 92.857143%; height: 92.857143%; opacity: .3; }
    .live-waves::after { width: 71.428571%; height: 71.428571%; opacity: .65; }
    dialog.retail-side-menu[open] { animation: none; }
    .bottom-nav .nav-item { transition: none; }
}

/* Keep the aquamarine live icon visible on the selected aquamarine row. */
.sidebar-nav #nav-btn-retransmisiones.active { background: #07141e; color: #06ffd8; }
