/* ═══════════════════════════════════════════════════════════════════
   Futbol Para Todos v3.0
   Changes: better logo, SVG league tabs, cleaner subscribe modal
   Modal overlay: UNTOUCHED
═══════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&display=swap');

:root {
    --fpt-bg:           #0d1f12;
    --fpt-surface:      #132018;
    --fpt-surface2:     #1a2d1f;
    --fpt-green:        #2e7d32;
    --fpt-green-bright: #4caf50;
    --fpt-green-glow:   rgba(76,175,80,0.15);
    --fpt-green-hover:  #1b5e20;
    --fpt-white:        #ffffff;
    --fpt-text:         #e8f0ea;
    --fpt-text-muted:   rgba(232,240,234,0.45);
    --fpt-border:       rgba(255,255,255,0.07);
    --fpt-time:         #4caf50;
    --fpt-live-bg:      #c62828;
    --fpt-shadow:       rgba(0,0,0,0.5);
    --fpt-green-mid:    #388e3c;
    --fpt-green-light:  #e8f5e9;
    --fpt-radius:       14px;
    --fpt-bar-h:        60px;
}

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--fpt-bg);
    overflow-x: hidden;
}

#fpt-wrapper {
    font-family: 'Barlow', sans-serif;
    background: var(--fpt-bg);
    color: var(--fpt-text);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    min-height: 100dvh;
    position: relative;
}

/* Stadium glow */
#fpt-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 280px;
    background: radial-gradient(ellipse 130% 60% at 50% 0%,
        rgba(46,125,50,0.38) 0%,
        rgba(46,125,50,0.08) 55%,
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

#fpt-agenda-header {
    position: relative;
    z-index: 10;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════
   TOP BAR — improved logo
═══════════════════════════════════════════ */
#fpt-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    min-height: var(--fpt-bar-h);
}

/* ── LOGO — bigger, clearer, with glow ring ── */
#fpt-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

#fpt-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        0 0 0 2px rgba(76,175,80,0.5),
        0 0 18px rgba(76,175,80,0.4),
        0 4px 12px rgba(0,0,0,0.5);
    background: #1a2d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
#fpt-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#fpt-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
#fpt-logo-text .fpt-l1 {
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(76,175,80,0.3);
}
#fpt-logo-text .fpt-l2 {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--fpt-green-bright);
    letter-spacing: 4px;
    text-transform: uppercase;
}

#fpt-nav-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fpt-nav-icon-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    color: var(--fpt-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    border-radius: 12px;
    transition: background 0.18s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.fpt-nav-icon-btn:hover,
.fpt-nav-icon-btn:active { background: rgba(76,175,80,0.18); transform: scale(0.95); }
.fpt-nav-icon-btn.fpt-active { background: rgba(76,175,80,0.22); color: var(--fpt-green-bright); }

#fpt-notif-wrap { position: relative; }
#fpt-notif-dot {
    width: 8px; height: 8px;
    background: var(--fpt-green-bright);
    border-radius: 50%;
    position: absolute;
    top: 4px; right: 4px;
    border: 1.5px solid var(--fpt-bg);
    display: none;
}
#fpt-notif-dot.visible { display: block; }

/* ═══════════════════════════════════════════
   LIVE NOTIFICATION BAR
═══════════════════════════════════════════ */
#fpt-live-bar {
    display: none;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
    padding: 10px 16px;
    position: relative;
    z-index: 20;
    animation: fpt-slide-down 0.4s cubic-bezier(0.34,1.56,0.64,1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#fpt-live-bar.visible { display: flex; }

@keyframes fpt-slide-down {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

#fpt-live-bar-dot {
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: fpt-pulse 1s ease-in-out infinite;
}
#fpt-live-bar-text {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#fpt-live-bar-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════════════
   SEARCH PANEL
═══════════════════════════════════════════ */
#fpt-search-panel {
    display: none;
    padding: 8px 14px;
    background: var(--fpt-surface);
    border-bottom: 1px solid var(--fpt-border);
    position: relative;
    z-index: 15;
    animation: fpt-fade-in 0.2s ease;
}
#fpt-search-panel.visible { display: block; }

@keyframes fpt-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fpt-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--fpt-surface2);
    border: 1px solid rgba(76,175,80,0.25);
    border-radius: 12px;
    padding: 0 12px;
    transition: border-color 0.2s;
}
.fpt-search-inner:focus-within { border-color: var(--fpt-green-bright); }
.fpt-search-icon-sm { color: var(--fpt-text-muted); flex-shrink: 0; }
#fpt-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--fpt-text);
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 0;
    caret-color: var(--fpt-green-bright);
}
#fpt-search-input::placeholder { color: var(--fpt-text-muted); }
#fpt-search-clear {
    background: none;
    border: none;
    color: var(--fpt-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}

/* ═══════════════════════════════════════════
   LEAGUE TABS — SVG flags, improved styling
═══════════════════════════════════════════ */
#fpt-league-tabs-wrap {
    position: relative;
    z-index: 9;
    border-bottom: 1px solid var(--fpt-border);
    background: rgba(13,31,18,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#fpt-league-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 2px;
    padding: 6px 10px;
}
#fpt-league-tabs::-webkit-scrollbar { display: none; }

.fpt-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    color: var(--fpt-text-muted);
    font-family: 'Barlow', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 6px 10px;
    white-space: nowrap;
    transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.12s;
    scroll-snap-align: start;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    min-width: 52px;
}
.fpt-tab:hover {
    color: var(--fpt-text);
    background: rgba(76,175,80,0.08);
}
.fpt-tab:active { transform: scale(0.95); }
.fpt-tab-active {
    color: var(--fpt-green-bright) !important;
    background: rgba(76,175,80,0.14) !important;
    border-color: rgba(76,175,80,0.35) !important;
}

/* SVG flag inside tab */
.fpt-tab-flag {
    display: block;
    width: 24px;
    height: 17px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
    line-height: 0;
}
.fpt-tab-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}
.fpt-tab-active .fpt-tab-flag {
    box-shadow: 0 0 0 1.5px var(--fpt-green-bright), 0 2px 8px rgba(76,175,80,0.4);
}

.fpt-tab-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════
   DATE BAR
═══════════════════════════════════════════ */
#fpt-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    position: relative;
    z-index: 8;
}
#fpt-date-display {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fpt-text-muted);
    text-transform: capitalize;
}
#fpt-live-indicator {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ef5350;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
#fpt-live-indicator.visible { display: flex; }
#fpt-live-dot {
    width: 7px; height: 7px;
    background: #ef5350;
    border-radius: 50%;
    animation: fpt-pulse 1s ease-in-out infinite;
}
@keyframes fpt-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ── SKELETON SHIMMER (match rows only, not chrome) ── */
@keyframes fpt-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.fpt-skeleton {
    list-style: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--fpt-border);
    pointer-events: none;
}
.fpt-sk-block {
    border-radius: 6px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.09) 50%,
        rgba(255,255,255,0.04) 75%);
    background-size: 800px 100%;
    animation: fpt-shimmer 1.4s ease-in-out infinite;
}
.fpt-sk-time  { width: 38px; height: 32px; flex-shrink: 0; }
.fpt-sk-icon  { width: 32px; height: 32px; min-width:32px; border-radius: 50%; flex-shrink: 0; }
.fpt-sk-title { flex: 1; height: 14px; }
.fpt-sk-arrow { width: 10px; height: 16px; flex-shrink: 0; }

/* ── ADS SLOT ── */
#fpt-ads-slot {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* no min-height — invisible when empty */
}
#fpt-ads-slot:not(:empty) {
    padding: 8px 0;
    border-bottom: 1px solid var(--fpt-border);
    background: var(--fpt-surface);
    min-height: 66px; /* fits a 320x50 banner + padding */
}
#fpt-ads-slot ins,
#fpt-ads-slot > * {
    display: block;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════
   EVENT LIST
═══════════════════════════════════════════ */
#fpt-event-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 5;
}

.fpt-league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 6px;
    background: var(--fpt-surface);
    border-top: 1px solid var(--fpt-border);
    border-bottom: 1px solid var(--fpt-border);
    list-style: none !important;
}
.fpt-league-header.fpt-first-group { border-top: none; }
.fpt-league-header-flag {
    width: 24px; height: 18px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.fpt-league-header-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--fpt-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fpt-event-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--fpt-border);
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    list-style: none !important;
    -webkit-tap-highlight-color: transparent;
}
.fpt-event-row:hover { background: rgba(76,175,80,0.06); }
.fpt-event-row:active { background: rgba(76,175,80,0.12); }
.fpt-row-live { background: rgba(198,40,40,0.06) !important; }
.fpt-row-live:hover { background: rgba(198,40,40,0.12) !important; }

.fpt-event-time {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--fpt-time);
    min-width: 42px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}
.fpt-time-ampm {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--fpt-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fpt-event-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--fpt-surface2);
    box-shadow: 0 1px 6px rgba(0,0,0,0.4);
    display: block;
}

.fpt-event-title {
    flex: 1;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--fpt-text);
    line-height: 1.35;
    overflow: hidden;
}

/* Teams layout */
.fpt-teams-home, .fpt-teams-away {
    font-weight: 700;
    color: var(--fpt-text);
}
.fpt-teams-vs {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--fpt-text-muted);
    margin: 0 4px;
}

.fpt-live-badge {
    background: var(--fpt-live-bg);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 3px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    animation: fpt-blink 1.4s ease-in-out infinite;
}
@keyframes fpt-blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

.fpt-watch-arrow {
    color: var(--fpt-green-bright);
    font-size: 0.9rem;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.15s, transform 0.15s;
}
.fpt-event-row:hover .fpt-watch-arrow,
.fpt-event-row:active .fpt-watch-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.fpt-state-msg {
    padding: 48px 24px;
    text-align: center;
    color: var(--fpt-text-muted);
    font-size: 0.92rem;
    list-style: none !important;
    font-family: 'Barlow', sans-serif;
}
.fpt-state-msg.error { color: #ef9a9a; }
.fpt-highlight { color: var(--fpt-green-bright); font-weight: 800; }
.fpt-no-results {
    padding: 40px 20px;
    text-align: center;
    list-style: none !important;
}
.fpt-no-results-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.fpt-no-results-text {
    color: var(--fpt-text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

/* Subscribe modal removed — button opens external site */

/* ═══════════════════════════════════════════
   MODAL OVERLAY — COMPLETELY UNTOUCHED
═══════════════════════════════════════════ */
.fpt-modal-dimmer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    overflow-y: auto;
    padding: 40px 20px;
    align-items: flex-start;
    justify-content: center;
}
.fpt-modal-dimmer.visible { display: flex; }
.fpt-modal-panel {
    background: var(--fpt-white);
    border: 2px solid var(--fpt-green);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    position: relative;
    box-shadow: 0 10px 50px rgba(46, 125, 50, 0.25);
    min-height: 100px;
}
.fpt-close-trigger {
    position: absolute;
    top: 20px; right: 20px; left: auto;
    color: var(--fpt-green-hover);
    cursor: pointer;
    z-index: 20;
    background: rgba(46, 125, 50, 0.12);
    border-radius: 50%;
    padding: 8px 12px;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s;
}
.fpt-close-trigger:hover { background: var(--fpt-green); color: #fff; }
.fpt-modal-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--fpt-green-hover);
    font-size: 1.5rem;
    min-height: 1.5rem;
}
.fpt-player-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    direction: ltr;
}
.fpt-video-frame {
    width: 100%; height: 100%;
    border: none; overflow: hidden;
    pointer-events: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    margin-left: 20px; margin-top: 10px;
}
.fpt-video-frame::-webkit-scrollbar { display: none; }
.fpt-player-shield {
    position: absolute; top: 8px; right: 8px; left: auto;
    padding: 2px 8px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px; z-index: 10; pointer-events: auto;
    color: var(--fpt-live-bg);
    font-size: 10px; font-weight: 800; letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5); direction: ltr;
}
.fpt-channel-links {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; direction: ltr;
}
.fpt-link-node {
    padding: 8px 16px;
    border: 1px solid var(--fpt-green);
    border-radius: 6px;
    color: var(--fpt-green);
    cursor: pointer; font-weight: 600;
    transition: all 0.2s; background: var(--fpt-white);
}
.fpt-link-node:hover, .fpt-link-node.active {
    border-color: var(--fpt-green-hover);
    background: var(--fpt-green); color: #fff;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — single column on ALL devices
═══════════════════════════════════════════ */

/* Force single column always — no grid breakpoints */
#fpt-event-list {
    display: block !important;
}
.fpt-event-row {
    border-right: none !important;
}

@media (min-width: 900px) {
    #fpt-top-bar { padding: 18px 28px 14px; }
    #fpt-logo-icon { width: 52px; height: 52px; border-radius: 16px; }
    #fpt-logo-text .fpt-l1 { font-size: 1.1rem; }
    .fpt-auth-panel { border-radius: 28px; margin: auto; }
    #fpt-auth-modal { align-items: center; }
}

@media (min-width: 1200px) {
    #fpt-top-bar { padding: 18px 36px 14px; }
}

@media (max-width: 380px) {
    .fpt-event-row { padding: 9px 12px; gap: 9px; }
    .fpt-event-title { font-size: 0.82rem; }
    .fpt-event-time { font-size: 0.76rem; min-width: 38px; }
    #fpt-logo-icon { width: 42px; height: 42px; }
    #fpt-logo-text .fpt-l1 { font-size: 0.9rem; }
    #fpt-logo-text .fpt-l2 { font-size: 0.62rem; }
    .fpt-tab { min-width: 46px; padding: 5px 8px; font-size: 0.62rem; }
    .fpt-tab-flag { width: 20px; height: 14px; }
}

@supports (padding: env(safe-area-inset-top)) {
    #fpt-top-bar {
        padding-top: max(16px, env(safe-area-inset-top, 16px));
    }
    #fpt-event-list {
        padding-bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 72px));
    }
}

/* ═══════════════════════════════════════════
   BOTTOM FOOTER NAV — App style (5 tabs)
   Matches screenshot: Home / Matches /
   Leagues / Favorites / Profile
═══════════════════════════════════════════ */
#fpt-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #0e1f13;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: stretch;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}

.fpt-fnav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(232,240,234,0.38);
    font-family: 'Barlow', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    padding: 8px 4px 6px;
    transition: color 0.18s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.fpt-fnav-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
    transition: stroke 0.18s;
}
.fpt-fnav-btn.fpt-fnav-active {
    color: #4caf50;
}
.fpt-fnav-btn.fpt-fnav-active svg {
    stroke: #4caf50;
}
/* Green underline indicator on active tab */
.fpt-fnav-btn.fpt-fnav-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: #4caf50;
    border-radius: 3px 3px 0 0;
}
/* Notification dot on bell */
.fpt-fnav-dot {
    position: absolute;
    top: 6px;
    right: calc(50% - 14px);
    width: 7px;
    height: 7px;
    background: #4caf50;
    border-radius: 50%;
    border: 1.5px solid #0e1f13;
    display: none;
}
.fpt-fnav-dot.visible { display: block; }

/* Push list content above the fixed footer */
#fpt-wrapper {
    padding-bottom: 64px;
}

/* ═══════════════════════════════════════════
   FAVORITE STAR BUTTON on match rows
═══════════════════════════════════════════ */
.fpt-fav-star {
    background: none;
    border: none;
    color: rgba(232,240,234,0.25);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    flex-shrink: 0;
    transition: color 0.18s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.fpt-fav-star:hover { color: #ef5350; }
.fpt-fav-star-on    { color: #ef5350 !important; }
.fpt-fav-star.fpt-fav-pulse { animation: fpt-fav-pop 0.35s ease; }
@keyframes fpt-fav-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════
   FAVORITES PANEL
═══════════════════════════════════════════ */
#fpt-favorites-panel {
    display: none;
    padding: 0 0 80px;
    min-height: 60vh;
    background: var(--fpt-bg);
}
.fpt-fav-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px 10px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--fpt-text);
    border-bottom: 1px solid var(--fpt-border);
    letter-spacing: 0.3px;
}
.fpt-fav-header span { flex: 1; }
#fpt-fav-clear-all {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--fpt-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#fpt-fav-empty {
    padding: 60px 24px;
    text-align: center;
    color: var(--fpt-text-muted);
}
#fpt-fav-empty p {
    margin: 16px 0 0;
    font-size: 0.88rem;
    line-height: 1.7;
}
#fpt-fav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fpt-fav-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--fpt-border);
    cursor: pointer;
    transition: background 0.15s;
}
.fpt-fav-row:hover { background: rgba(76,175,80,0.06); }
.fpt-fav-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}
.fpt-fav-teams {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--fpt-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fpt-fav-meta {
    font-size: 0.72rem;
    color: var(--fpt-text-muted);
}
.fpt-fav-remove {
    background: none;
    border: none;
    color: var(--fpt-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 6px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.fpt-fav-remove:hover { opacity: 1; color: #ef5350; }

/* ═══════════════════════════════════════════
   CANALES PANEL
═══════════════════════════════════════════ */
#fpt-canales-panel {
    display: none;
    padding-bottom: 80px;
    min-height: 60vh;
    background: var(--fpt-bg);
}
#fpt-canales-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--fpt-surface);
    border-bottom: 1px solid var(--fpt-border);
    padding: 8px 14px;
}
#fpt-ch-search {
    flex: 1;
    background: var(--fpt-surface2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--fpt-text);
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    outline: none;
    caret-color: var(--fpt-green-bright);
}
#fpt-ch-search::placeholder { color: var(--fpt-text-muted); }
#fpt-ch-search:focus { border-color: rgba(76,175,80,0.4); }
#fpt-ch-search-clear {
    background: none;
    border: none;
    color: var(--fpt-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}
#fpt-canales-filter-bar {
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    background: var(--fpt-surface);
    border-bottom: 1px solid var(--fpt-border);
}
.fpt-ch-filter {
    background: var(--fpt-surface2);
    border: 1px solid var(--fpt-border);
    color: var(--fpt-text-muted);
    font-family: 'Barlow', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s;
    -webkit-tap-highlight-color: transparent;
}
.fpt-ch-filter-active {
    background: rgba(76,175,80,0.18);
    border-color: rgba(76,175,80,0.4);
    color: var(--fpt-green-bright);
}
.fpt-ch-fdot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.fpt-ch-fdot.live { background: var(--fpt-green-bright); }
.fpt-ch-fdot.off  { background: rgba(232,240,234,0.3); }

/* Region header */
.fpt-ch-region-hdr {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 6px;
    background: var(--fpt-surface);
    border-bottom: 1px solid var(--fpt-border);
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--fpt-text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.fpt-ch-region-flag { font-size: 1rem; }
.fpt-ch-region-count {
    margin-left: auto;
    background: var(--fpt-surface2);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 0.68rem;
    color: var(--fpt-text-muted);
}

/* Channel row */
.fpt-ch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--fpt-border);
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.fpt-ch-row:hover,
.fpt-ch-row:active { background: rgba(76,175,80,0.06); }
.fpt-ch-offline { opacity: 0.55; }

/* Channel logo — initials on colored bg */
.fpt-ch-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.3px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.fpt-ch-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}
.fpt-ch-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--fpt-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fpt-ch-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
}
.fpt-ch-status.live { color: var(--fpt-green-bright); }
.fpt-ch-status.off  { color: var(--fpt-text-muted); }
.fpt-ch-sdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
}
.fpt-ch-status.live .fpt-ch-sdot { animation: fpt-pulse 1.2s ease-in-out infinite; }
.fpt-ch-watch {
    background: var(--fpt-green);
    border: none;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 7px 13px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: background 0.18s;
    -webkit-tap-highlight-color: transparent;
}
.fpt-ch-watch:hover { background: var(--fpt-green-mid); }
.fpt-ch-row.fpt-ch-offline .fpt-ch-watch {
    background: var(--fpt-surface2);
    color: var(--fpt-text-muted);
}
.fpt-ch-empty {
    padding: 60px 24px;
    text-align: center;
    color: var(--fpt-text-muted);
    font-size: 0.88rem;
}
.fpt-ch-empty p { margin: 16px 0 0; }
