/* ============================================
   CANLI TV - Modern Dark Theme
   ============================================ */

:root {
    --bg-primary: #080a0f;
    --bg-secondary: #0d1018;
    --bg-card: #111625;
    --bg-card-hover: #172038;
    --bg-sidebar: #0c0f1a;
    --navy: #1c2b5e;
    --navy-light: #243672;
    --accent: #b8964e;
    --accent-hover: #d4ae5a;
    --accent-r: 184;
    --accent-g: 150;
    --accent-b: 78;
    --accent-dim: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.12);
    --green: #22c55e;
    --red: #ef4444;
    --text: #eaeaea;
    --text-dim: #8a90a0;
    --text-muted: #555c70;
    --border: #1a2040;
    --border-light: #253060;
    --radius: 8px;
    --radius-sm: 5px;
    --shadow: 0 4px 24px rgba(0,0,0,.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body[style*="background-image"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 15, .82);
    z-index: 0;
    pointer-events: none;
}
body[style*="background-image"] > *:not(.mobile-overlay):not(.mobile-drawer):not(.mobile-bottom-nav):not(#siteModal) {
    position: relative;
    z-index: 1;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; font-family: inherit; }
img { max-width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================
   TICKER BAR
   ============================================ */
.ticker-bar {
    position: relative;
    z-index: 1001;
    background: var(--accent, #b8964e);
    overflow: hidden;
    white-space: nowrap;
    height: 32px;
    display: flex;
    align-items: center;
}
.ticker-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.ticker-content {
    display: inline-block;
    padding-left: 100%;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .3px;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
    animation: tickerScroll 14s linear infinite;
}
.ticker-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.2);
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: .7rem;
    transition: all .2s;
}
.ticker-close:hover {
    background: rgba(0,0,0,.4);
    color: #fff;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.ticker-bar.hidden { display: none; }
.ticker-bar.hidden + .site-header.has-ticker { top: 0; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--bg-secondary);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.header-top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    width: 100%;
    text-align: center;
}
.top-bar-link {
    color: var(--accent);
    background: linear-gradient(135deg, rgba(var(--accent-r),var(--accent-g),var(--accent-b),.08), rgba(var(--accent-r),var(--accent-g),var(--accent-b),.04));
    border: 1px solid rgba(var(--accent-r),var(--accent-g),var(--accent-b),.18);
    padding: 9px 28px;
    border-radius: 24px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .25s;
    white-space: nowrap;
    letter-spacing: .2px;
}
.top-bar-link:hover {
    background: linear-gradient(135deg, rgba(var(--accent-r),var(--accent-g),var(--accent-b),.16), rgba(var(--accent-r),var(--accent-g),var(--accent-b),.08));
    border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.15);
}
.top-bar-link i { font-size: .8rem; }

/* Navigation */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.06));
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.nav-link {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    font-size: .88rem;
    padding: 9px 16px;
    border-radius: 24px;
    background: rgba(255,255,255,.04);
    border: 1px solid transparent;
    transition: all .25s cubic-bezier(.25,.8,.25,1);
}
.nav-link i {
    color: var(--accent);
    font-size: .85rem;
}
.nav-link:hover {
    color: var(--accent);
    background: rgba(255,255,255,.08);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.06);
}
.nav-link.active {
    color: var(--accent);
    background: var(--accent-dim);
    border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.15);
}

/* Live Dot (shared) */
.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(.8); }
}

/* ============================================
   AD BANNERS
   ============================================ */
.ad-header-banner {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}
.ad-header-banner:empty { display: none; margin: 0; }
.ad-header-banner a,
.ad-header-banner div { display: inline-block; }
.ad-header-banner .ad-banner-img {
    max-width: 1000px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.ad-player-bottom {
    margin-top: 10px;
    text-align: center;
}
.ad-player-bottom:empty { display: none; }
.ad-player-bottom a,
.ad-player-bottom div { display: inline-block; }
.ad-player-bottom .ad-banner-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.ad-sidebar-bottom {
    padding: 10px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.04);
}
.ad-sidebar-bottom:empty { display: none; }
.ad-sidebar-bottom a,
.ad-sidebar-bottom div { display: inline-block; }
.ad-sidebar-bottom .ad-banner-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* ============================================
   MAIN CONTENT - Player + Sidebar Layout
   ============================================ */
.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 24px;
}
.content-wrapper {
    display: flex;
    gap: 16px;
    min-height: calc(100vh - 200px);
}

/* ============================================
   PLAYER SECTION (Sol)
   ============================================ */
.player-section {
    flex: 0 1 58%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.player-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
    border: 1px solid var(--border-light);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 18px 24px;
}
.channel-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
}
.channel-name i {
    color: var(--accent);
    font-size: 1.2rem;
}
.player-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #e04040, #c0392b);
    padding: 9px 22px;
    border-radius: 24px;
    letter-spacing: .8px;
    box-shadow: 0 3px 12px rgba(224,64,64,.4);
    text-transform: uppercase;
}
.player-badge .live-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

.player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
    border: 1px solid var(--border);
    border-top: none;
}

.player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-card) 50%, var(--bg-primary) 100%);
}
.placeholder-content {
    text-align: center;
}
.placeholder-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: .6;
}
.placeholder-text {
    font-size: .95rem;
    color: var(--text-dim);
    line-height: 1.6;
}
.ph-mobile { display: none; }
@media (max-width: 1024px) {
    .ph-desktop { display: none; }
    .ph-mobile { display: inline; }
}
.placeholder-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}
.placeholder-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: dotBounce 1.4s ease-in-out infinite;
}
.placeholder-dots span:nth-child(2) { animation-delay: .2s; }
.placeholder-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce {
    0%, 80%, 100% { opacity: .3; transform: scale(.8); }
    40% { opacity: 1; transform: scale(1.1); }
}

/* ============================================
   CUSTOM VIDEO PLAYER
   ============================================ */
.vp-wrapper {
    position: absolute;
    inset: 0;
    background: #000;
    cursor: pointer;
}
.vp-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vp-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 10;
}
.vp-wrapper.vp-show-controls .vp-controls,
.vp-wrapper:hover .vp-controls {
    opacity: 1;
}

.vp-controls-left,
.vp-controls-center,
.vp-controls-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vp-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: .95rem;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    transition: all .2s;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.vp-btn:hover {
    background: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.25);
    color: #fff;
    border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.4);
    transform: scale(1.08);
}

.vp-volume-group {
    display: flex;
    align-items: center;
    gap: 4px;
}
.vp-vol-slider-wrap {
    width: 0;
    overflow: hidden;
    transition: width .25s ease;
}
.vp-volume-group:hover .vp-vol-slider-wrap {
    width: 80px;
}

.vp-vol-slider {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.2);
    outline: none;
    margin: 0 6px;
}
.vp-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.4);
}
.vp-vol-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
}

.vp-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .8px;
    background: rgba(239,68,68,.2);
    border: 1px solid rgba(239,68,68,.35);
    padding: 5px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.vp-live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(239,68,68,.5);
}

.vp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
}
.vp-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.vp-big-play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.2);
    border: 2px solid rgba(var(--accent-r),var(--accent-g),var(--accent-b),.5);
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s;
    backdrop-filter: blur(8px);
}
.vp-big-play:hover {
    background: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.35);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.3);
}
.vp-big-play i {
    margin-left: 4px;
}

.player-container:fullscreen .vp-wrapper,
.player-container:-webkit-full-screen .vp-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

/* ============================================
   MATCH SIDEBAR (Sağ)
   ============================================ */
.match-sidebar {
    flex: 0 0 480px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-height: calc(100vh - 90px);
    position: sticky;
    top: 76px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-bottom: 1px solid var(--border);
}
.sidebar-header h3 {
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.sidebar-header h3 i { color: var(--accent); }
.refresh-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,.1);
    transition: all .25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.refresh-btn:hover { background: var(--bg-card); color: var(--accent); border-color: var(--accent); box-shadow: 0 2px 12px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.2); }
.refresh-btn.spinning i { animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sport Filters */
.sport-filters {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.sport-icons {
    display: flex;
    flex-direction: column;
    width: 82px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 6px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sport-icons::-webkit-scrollbar { width: 3px; }
.sport-icons::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.sport-icons::-webkit-scrollbar-track { background: transparent; }

.sport-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 6px;
    font-size: .72rem;
    color: rgba(255,255,255,.55);
    transition: all .2s;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    border-left: 2px solid transparent;
    outline: none;
    -webkit-appearance: none;
}
.sport-icon-btn i {
    font-size: 1.4rem;
    transition: all .2s;
    color: rgba(255,255,255,.7);
}
.sport-icon-btn span {
    font-size: .68rem;
    font-weight: 600;
    white-space: nowrap;
}
.sport-icon-btn:hover {
    color: #fff;
    background: rgba(255,255,255,.05);
}
.sport-icon-btn:hover i {
    color: #fff;
}
.sport-icon-btn.active {
    color: var(--accent);
    background: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.1);
    border-left-color: var(--accent);
}
.sport-icon-btn.active i {
    color: var(--accent);
}
.sport-icon-btn .count-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #fff;
    color: #0a0e1a;
    font-size: .62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
    line-height: 1.2;
}

/* Match List */
.match-list-container {
    flex: 1;
    overflow-y: auto;
    min-width: 0;
    min-height: 0;
}

.match-list {
    padding: 6px 0;
}

.match-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin: 4px 6px;
    cursor: pointer;
    transition: all .2s ease;
    border-bottom: 1px solid rgba(255,255,255,.04);
    border-left: 3px solid transparent;
    border-radius: 8px;
}
.match-item:hover {
    background: rgba(255,255,255,.04);
    border-left-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.4);
}
.match-item.active {
    background: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.1);
    border-left-color: var(--accent);
}

.mi-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.mi-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.mi-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.mi-logo-ph {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.25);
    font-size: .6rem;
}
.mi-name {
    font-size: .88rem;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-item:hover .mi-name {
    color: #fff;
}
.mi-vs {
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    flex-shrink: 0;
}

.mi-live {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .58rem;
    font-weight: 700;
    color: #34d399;
    letter-spacing: .5px;
    flex-shrink: 0;
    background: rgba(52,211,153,.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(52,211,153,.15);
    white-space: nowrap;
    text-transform: uppercase;
}
.mi-live .live-dot {
    background: #34d399;
    box-shadow: 0 0 6px rgba(52,211,153,.5);
}
.mi-live-hd {
    color: #f97316;
    background: rgba(249,115,22,.1);
    border-color: rgba(249,115,22,.2);
}
.mi-live-hd .live-dot {
    background: #f97316;
    box-shadow: 0 0 6px rgba(249,115,22,.5);
}

/* Match type badges */
.mi-type-badge {
    font-size: .52rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.mi-badge-hd {
    background: rgba(249,115,22,.15);
    color: #f97316;
    border: 1px solid rgba(249,115,22,.25);
}
.mi-badge-ch {
    font-size: .56rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    background: rgba(6,182,212,.1);
    color: #06b6d4;
    border: 1px solid rgba(6,182,212,.2);
    white-space: nowrap;
}

/* Match status indicators */
.mi-status {
    font-size: .58rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}
.mi-starting {
    background: rgba(234,179,8,.1);
    color: #eab308;
    border: 1px solid rgba(234,179,8,.2);
}
.mi-time {
    background: rgba(255,255,255,.04);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,.06);
}

/* Section labels in match list */
.match-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 6px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.match-section-label i { font-size: .7rem; }
.match-section-label .section-count {
    font-size: .6rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.5);
}
.hd-label { color: rgba(249,115,22,.7); }
.hd-label .section-count { background: rgba(249,115,22,.12); color: #f97316; }
.live-label { color: rgba(52,211,153,.7); }
.live-label .section-count { background: rgba(52,211,153,.12); color: #34d399; }
.ch-label { color: rgba(6,182,212,.7); }
.ch-label .section-count { background: rgba(6,182,212,.12); color: #06b6d4; }

/* HD match item subtle highlight */
.match-hd { border-left-color: rgba(249,115,22,.15); }
.match-hd:hover { border-left-color: rgba(249,115,22,.5); }
.match-hd.active { border-left-color: #f97316; background: rgba(249,115,22,.08); }

/* Channel item */
.match-channel {
    padding: 14px 16px;
    gap: 12px;
    border-left-color: rgba(6,182,212,.1);
    margin: 4px 6px;
    border-radius: 8px;
    background: rgba(255,255,255,.02);
}
.match-channel:hover {
    border-left-color: rgba(6,182,212,.4);
    background: rgba(6,182,212,.05);
}
.match-channel.active {
    border-left-color: #06b6d4;
    background: rgba(6,182,212,.08);
    border: 1px solid rgba(6,182,212,.25);
}
.ch-play-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255,255,255,.5);
    font-size: .7rem;
    transition: all .2s;
}
.match-channel:hover .ch-play-icon {
    background: rgba(6,182,212,.12);
    border-color: rgba(6,182,212,.3);
    color: #06b6d4;
}
.match-channel.active .ch-play-icon {
    background: rgba(6,182,212,.15);
    border-color: rgba(6,182,212,.4);
    color: #06b6d4;
}
.ch-name {
    font-size: .92rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .3px;
}
.match-channel:hover .ch-name { color: #fff; }
.ch-logo {
    height: 28px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}
.mi-live-ch {
    font-size: .62rem;
    padding: 5px 14px;
    border-radius: 6px;
}

/* HD filter button highlight */
.sport-icon-btn.hd-filter { color: rgba(249,115,22,.7); }
.sport-icon-btn.hd-filter i { color: rgba(249,115,22,.8); }
.sport-icon-btn.hd-filter.active { color: #f97316; background: rgba(249,115,22,.1); border-left-color: #f97316; }
.sport-icon-btn.hd-filter.active i { color: #f97316; }
.sport-icon-btn.hd-filter .count-badge { background: #f97316; color: #fff; }

/* Channel filter button highlight */
.sport-icon-btn.ch-filter { color: rgba(6,182,212,.7); }
.sport-icon-btn.ch-filter i { color: rgba(6,182,212,.8); }
.sport-icon-btn.ch-filter.active { color: #06b6d4; background: rgba(6,182,212,.1); border-left-color: #06b6d4; }
.sport-icon-btn.ch-filter.active i { color: #06b6d4; }
.sport-icon-btn.ch-filter .count-badge { background: #06b6d4; color: #fff; }

.match-loading, .match-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: .8rem;
    gap: 10px;
}
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}


/* ============================================
   CHANNELS SECTION
   ============================================ */
.channels-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px 40px;
}
.channels-inner h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.channels-inner h3 i { color: var(--accent); }
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: all .2s;
    cursor: pointer;
}
.channel-card:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}
.channel-card i {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--accent);
    opacity: .7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding: 2.5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}
.footer-logo-img {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,.08));
}
.footer-desc {
    font-size: .88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
}
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.08);
    font-size: .9rem;
    transition: all .25s cubic-bezier(.25,.8,.25,1);
}
.social-icon:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.3);
}

.footer-section {
    text-align: center;
}
.footer-section h3 {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding-bottom: 6px;
    display: inline-block;
    letter-spacing: .3px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin: 10px 0;
}
.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: .92rem;
    opacity: .7;
    transition: all .25s;
}
.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-seo {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 1.5rem 20px 0;
    border-top: 1px solid var(--border);
    font-size: .82rem;
    color: var(--text-muted);
    text-align: justify;
    line-height: 1.7;
}
.footer-seo h4 {
    color: var(--text-dim);
    margin-bottom: 10px;
    font-size: .92rem;
    font-weight: 600;
}
.footer-seo p {
    margin-bottom: 8px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding: 18px 20px;
    border-top: 1px solid rgba(255,255,255,.05);
    text-align: center;
    font-size: .82rem;
    color: var(--text-muted);
}
.footer-powered {
    text-align: center;
    padding: 20px 0 8px;
}
.powered-badge {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50px;
    padding: 8px 22px 8px 18px;
    text-decoration: none;
    transition: all .3s;
}
.powered-badge:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.powered-label {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.45);
    margin-right: 10px;
}
.powered-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    margin-right: 8px;
}
.powered-icon i {
    font-size: .8rem;
    color: #0a0e1a;
}
.powered-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .match-sidebar {
        flex: 0 0 380px;
    }
    .player-section {
        flex: 1;
    }
}
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    .player-section {
        flex: none;
        width: 100%;
    }
    .match-sidebar {
        flex: 0 0 auto;
        width: 100%;
        max-height: 420px;
        position: static;
    }
    .sport-icons {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px 10px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .sport-icon-btn {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 10px 14px 8px;
        flex-shrink: 0;
        border-radius: 8px;
    }
    .sport-icon-btn.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent);
    }
    .sport-filters {
        flex-direction: column;
    }
    .match-list-container {
        max-height: 320px;
    }
}

/* ============================================
   MOBILE DRAWER MENU
   ============================================ */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99990;
    opacity: 0;
    transition: opacity .3s ease;
}
.mobile-overlay.open {
    display: block;
    opacity: 1;
}
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    border-right: 1px solid var(--border);
    z-index: 99991;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.22,.68,0,1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 50px rgba(0,0,0,.6);
}
.mobile-drawer.open {
    transform: translateX(0);
}
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.drawer-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}
.drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.drawer-close:hover {
    background: rgba(239,68,68,.15);
    color: #f87171;
    border-color: rgba(239,68,68,.25);
}
.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 24px;
    color: var(--text, rgba(255,255,255,.85));
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .25s cubic-bezier(.25,.8,.25,1);
    border: 1px solid transparent;
    background: rgba(255,255,255,.04);
}
.drawer-link i {
    width: 20px;
    text-align: center;
    font-size: .88rem;
    color: var(--accent);
    flex-shrink: 0;
}
.drawer-link:hover,
.drawer-link:active {
    color: var(--accent);
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.06);
}
.drawer-link:hover i,
.drawer-link:active i {
    color: var(--accent);
}
.drawer-link.active {
    color: var(--accent);
    background: var(--accent-dim);
    border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.15);
}
.drawer-link.active i {
    color: var(--accent);
}

@media (min-width: 769px) {
    .mobile-overlay,
    .mobile-drawer { display: none !important; }
    .nav-toggle { display: none !important; }
}

@media (max-width: 768px) {
    .ticker-bar { height: 28px; }
    .ticker-content { font-size: .7rem; }
    .ticker-close { width: 28px; height: 28px; font-size: .6rem; }
    .header-container { padding: 0 12px; }
    .header-top-bar { padding: 15px 0; }
    .top-bar-link { font-size: .78rem; padding: 7px 16px; }
    .nav-toggle { display: block; position: relative; z-index: 2; }
    #navMenuDesktop { display: none !important; }
    .header-nav { position: relative; justify-content: flex-end; }
    .header-nav .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .main-content { padding: 8px 10px; }
    .content-wrapper { gap: 10px; min-height: auto; }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 0 14px;
    }
    .footer-seo { padding: 1rem 14px 0; font-size: .76rem; }
    .footer-bottom { padding: 14px 14px; font-size: .76rem; }
    .channels-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Player mobile */
    .player-top-bar { padding: 12px 14px; }
    .channel-name { font-size: .95rem; gap: 8px; }
    .channel-name i { font-size: 1rem; }
    .player-badge { font-size: .72rem; padding: 6px 14px; }
    .placeholder-icon { font-size: 2.8rem; margin-bottom: 12px; }
    .placeholder-text { font-size: .82rem; }

    /* Match sidebar mobile */
    .match-sidebar {
        position: static;
        max-height: none;
        border-radius: var(--radius);
    }
    .match-list-container {
        max-height: 380px;
    }
    .sport-icons {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 10px 8px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .sport-icon-btn {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 10px 10px 8px;
        min-width: 50px;
        flex-shrink: 0;
        border-radius: 8px;
    }
    .sport-icon-btn.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent);
    }
    .sport-icon-btn i { font-size: 1.05rem; }
    .sport-icon-btn span { font-size: .58rem; }
    .sport-filters { flex-direction: column; }
    .match-item { padding: 12px 12px; margin: 3px 4px; gap: 10px; }
    .mi-name { font-size: .82rem; }
    .mi-live { font-size: .56rem; padding: 4px 10px; }
    .mi-logo, .mi-logo-ph { width: 26px; height: 26px; }
    .sidebar-header { padding: 10px 14px; }
    .sidebar-header h3 { font-size: .82rem; }

    /* Background fix for mobile */
    body[style*="background-image"] {
        background-attachment: scroll !important;
    }

    /* Home blog mobile */
    .home-blog-section { margin-top: 20px; }
    .home-blog-header h2 { font-size: .92rem; }
    .hbc-body { padding: 12px 14px 14px; }
    .hbc-body h3 { font-size: .92rem; }
    .hbc-body p { font-size: .8rem; }
    .hbc-date { font-size: .68rem; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 1.2rem; }
    .channels-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-text { display: none; }
    .main-content { padding: 6px 8px; }
    .player-top-bar { padding: 10px 10px; }
    .channel-name { font-size: .85rem; }
    .match-item { padding: 9px 8px; gap: 6px; }
    .mi-name { font-size: .68rem; }
    .mi-vs { font-size: .6rem; }
    .top-bar-link { font-size: .72rem; padding: 6px 12px; gap: 6px; }
    .top-bar-link i { font-size: .65rem; }
}

/* ============================================
   PAGE DETAIL
   ============================================ */
.page-detail {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px;
}
.page-detail-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.page-detail-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}
.page-detail-icon i {
    font-size: 1.4rem;
    color: var(--accent);
}
.page-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: .3px;
}
.page-detail-image {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.page-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}
.page-detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,.82);
}
.page-detail-back {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.page-detail-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: .9rem;
    font-weight: 600;
    transition: opacity .2s;
}
.page-detail-back a:hover { opacity: .7; }

/* ============================================
   PROMOTIONS PAGE
   ============================================ */
.promo-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.promo-hero {
    text-align: center;
    padding: 56px 20px 44px;
}
.promo-hero-sub {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.promo-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 2px;
    margin-bottom: 14px;
    line-height: 1.1;
}
.promo-hero-desc {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.promo-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-primary);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 8px;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.3);
    text-transform: uppercase;
}
.promo-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.45);
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}
.promo-hero-btn i {
    font-size: 1rem;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.promo-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid rgba(var(--accent-r),var(--accent-g),var(--accent-b),.12);
    transition: all .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.promo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.25);
    border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.3);
}

.promo-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.promo-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.promo-card:hover .promo-card-img img {
    transform: scale(1.06);
}

.promo-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy), var(--bg-card));
    color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.3);
    font-size: 3rem;
}

.promo-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
}
.promo-card:hover .promo-card-overlay {
    opacity: 1;
}
.promo-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: .85rem;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.5);
    transition: transform .2s ease, box-shadow .2s ease;
}
.promo-card:hover .promo-card-cta {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.6);
}


.promo-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,.35);
}
.promo-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: .4;
}
.promo-empty p {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .promo-hero-title { font-size: 1.8rem; }
    .promo-hero { padding: 36px 16px 28px; }
    .promo-grid { grid-template-columns: 1fr; gap: 16px; }
    .promo-page { padding: 0 12px 40px; }
    .page-detail { padding: 24px 14px; }
    .page-detail-title { font-size: 1.2rem; }
    .page-detail-icon { width: 44px; height: 44px; border-radius: 10px; }
    .page-detail-icon i { font-size: 1.1rem; }
    .page-detail-header { gap: 12px; margin-bottom: 20px; padding-bottom: 14px; }
    .page-detail-content { font-size: .9rem; }
}

@media (max-width: 480px) {
    .promo-hero-title { font-size: 1.5rem; }
    .promo-hero-btn { padding: 12px 24px; font-size: .8rem; }
    .page-detail { padding: 18px 10px; }
    .page-detail-title { font-size: 1.05rem; }
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    height: 62px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border);
    align-items: stretch;
    justify-content: center;
    padding: 0;
    box-shadow: 0 -6px 30px rgba(0,0,0,.6);
}

.bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: rgba(255,255,255,.5);
    transition: color .2s ease;
    padding: 6px 0 8px;
    position: relative;
}
.bn-item i {
    font-size: 1.3rem;
    transition: transform .2s ease, color .2s ease;
}
.bn-item span {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .2px;
    white-space: nowrap;
}
.bn-item.active,
.bn-item:hover {
    color: var(--accent);
}
.bn-item.active i,
.bn-item:hover i {
    transform: scale(1.1);
}

.bn-center-spacer {
    flex: 0 0 72px;
}

.bn-center-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    z-index: 2;
    text-decoration: none;
}
.bn-center-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--navy) 0%, var(--bg-secondary) 100%);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 5px var(--bg-secondary),
        0 -4px 20px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.3),
        0 6px 20px rgba(0,0,0,.5);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}
.bn-center-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(var(--accent-r),var(--accent-g),var(--accent-b),.55),
        rgba(var(--accent-r),var(--accent-g),var(--accent-b),.08),
        rgba(var(--accent-r),var(--accent-g),var(--accent-b),.55),
        rgba(var(--accent-r),var(--accent-g),var(--accent-b),.08),
        rgba(var(--accent-r),var(--accent-g),var(--accent-b),.55)
    );
    z-index: -1;
    animation: bnRingSpin 8s linear infinite;
}
@keyframes bnRingSpin {
    to { transform: rotate(360deg); }
}
.bn-center-ring:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 0 5px var(--bg-secondary),
        0 -4px 28px rgba(var(--accent-r),var(--accent-g),var(--accent-b),.45),
        0 8px 24px rgba(0,0,0,.6);
}
.bn-center-ring img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    filter: brightness(1.1);
}

/* Curved notch behind center button */
.mobile-bottom-nav::before {
    content: '';
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 44px;
    background: var(--navy);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 0;
}
.mobile-bottom-nav::after {
    content: '';
    position: absolute;
    top: -23px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 45px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-left: 1px solid rgba(255,255,255,.08);
    border-right: 1px solid rgba(255,255,255,.08);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        z-index: 9990 !important;
    }
    body {
        padding-bottom: 70px;
    }
    .site-footer {
        padding-bottom: 70px;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ============================================
   BLOG LIST PAGE
   ============================================ */
.blog-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.blog-hero {
    text-align: center;
    padding: 48px 20px 36px;
}
.blog-hero-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.blog-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}
.blog-hero-desc {
    font-size: .95rem;
    color: var(--text-dim);
    max-width: 440px;
    margin: 0 auto;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-card {
    display: flex;
    text-decoration: none;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid rgba(var(--accent-r),var(--accent-g),var(--accent-b),.1);
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.25);
}

.blog-card-img {
    flex: 0 0 260px;
    overflow: hidden;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    min-height: 180px;
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}
.blog-card-ph {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy), var(--bg-card));
    color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.2);
    font-size: 2.5rem;
}

.blog-card-body {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-card-date {
    font-size: .75rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.4;
}
.blog-card-desc {
    font-size: .85rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0 0 14px;
}
.blog-card-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap .25s;
}
.blog-card:hover .blog-card-read {
    gap: 10px;
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,.3);
}
.blog-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 14px;
    opacity: .4;
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}
.bp-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    transition: all .2s;
}
.bp-btn:hover {
    background: var(--accent-dim);
    border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.3);
    color: var(--accent);
}
.bp-active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--bg-primary) !important;
    font-weight: 700;
}

/* ============================================
   BLOG DETAIL PAGE
   ============================================ */
.blog-detail-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}
.blog-detail-cover {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid rgba(var(--accent-r),var(--accent-g),var(--accent-b),.12);
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.blog-detail-cover img {
    width: 100%;
    height: auto;
    display: block;
}
.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.blog-detail-meta span {
    font-size: .82rem;
    color: var(--accent);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.blog-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 16px;
}
.blog-detail-desc {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    font-style: italic;
}
.blog-detail-content {
    font-size: .95rem;
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 36px;
    opacity: .85;
}

.blog-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
    gap: 16px;
}
.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.blog-back-btn:hover { opacity: .7; }

.blog-share {
    display: flex;
    align-items: center;
    gap: 10px;
}
.blog-share span {
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}
.blog-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .9rem;
    transition: all .2s;
}
.blog-share a:hover {
    background: var(--accent-dim);
    border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.3);
    color: var(--accent);
}

/* Recent posts */
.blog-recent {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.blog-recent-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.blog-recent-title i {
    color: var(--accent);
}
.blog-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.blog-recent-card {
    display: flex;
    text-decoration: none;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all .25s;
}
.blog-recent-card:hover {
    border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.2);
    background: rgba(255,255,255,.05);
}
.blog-rc-img {
    flex: 0 0 100px;
    overflow: hidden;
}
.blog-rc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 80px;
}
.blog-rc-ph {
    width: 100%;
    height: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy), var(--bg-card));
    color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.15);
    font-size: 1.2rem;
}
.blog-rc-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-rc-date {
    font-size: .68rem;
    color: var(--accent);
    margin-bottom: 4px;
}
.blog-rc-body h4 {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.35;
}

/* ============================================
   HOME PAGE BLOG SECTION
   ============================================ */
.home-blog-section {
    margin-top: 32px;
    padding: 0 4px;
}
.home-blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.home-blog-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.home-blog-header h2 i {
    color: var(--accent);
}
.home-blog-all {
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity .2s;
}
.home-blog-all:hover { opacity: .7; }

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.home-blog-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid rgba(var(--accent-r),var(--accent-g),var(--accent-b),.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.home-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
    border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.22);
}

.hbc-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.hbc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.home-blog-card:hover .hbc-img img {
    transform: scale(1.06);
}
.hbc-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy), var(--bg-card));
    color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),.15);
    font-size: 2rem;
}

.hbc-body {
    padding: 16px 18px 18px;
}
.hbc-date {
    font-size: .75rem;
    color: var(--accent);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}
.hbc-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.4;
}
.hbc-body p {
    font-size: .88rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 768px) {
    .blog-card { flex-direction: column; }
    .blog-card-img { flex: none; height: 200px; }
    .blog-card-body { padding: 18px 20px; }
    .blog-hero-title { font-size: 1.6rem; }
    .blog-detail-title { font-size: 1.4rem; }
    .blog-recent-grid { grid-template-columns: 1fr; }
    .home-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .home-blog-grid { grid-template-columns: 1fr; }
    .blog-page { padding: 0 12px 40px; }
}
