:root {
    --bg-color: #020617; /* Slate-950 */
    --card-bg: #0f172a;  /* Slate-900 */
    --primary-color: #e50914;
    --accent-green: #22c55e;
    --text-color: #f8fafc; /* Slate-50 */
    --text-muted: #94a3b8; /* Slate-400 */
    --transition: all 0.2s ease-in-out;
    --header-height: 70px;
    --radius: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: var(--radius) !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    height: var(--header-height);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.server-selector {
    display: flex;
    gap: 10px;
}

.server-btn {
    padding: 8px 16px;
    background: #2a2a2a;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.server-btn.active {
    background: var(--primary-color);
}

.server-btn:hover {
    background: #3a3a3a;
}

.server-btn.active:hover {
    background: #ff0f1b;
}

/* Hero Section */
.hero {
    margin-top: calc(var(--header-height) + 20px);
    padding: 40px 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
}

/* Match Sections */
.match-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 9, 20, 0.2);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

.scroll-row .match-card {
    min-width: 300px;
    flex-shrink: 0;
}

.match-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.thumbnail-wrapper {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #222;
    overflow: hidden;
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumbnail-wrapper::after {
    content: 'DEPORTES';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #444;
    font-weight: 800;
    z-index: 0;
}

.thumbnail-wrapper img {
    z-index: 1;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.match-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-info {
    padding: 15px;
}

.competition {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.match-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.countdown {
    background: #2a2a2a;
    padding: 2px 8px;
    border-radius: 4px;
    color: #ffd700;
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    font-size: 0.8rem;
}

.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Match Page */
.match-layout {
    margin-top: var(--header-height);
    padding: 20px 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

@media (max-width: 1024px) {
    .match-layout {
        grid-template-columns: 1fr;
    }
}

.player-section {
    width: 100%;
}

.video-container {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ad-container {
    margin: 15px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Admin Panel Styling */
.admin-navbar {
    background: #111;
    padding: 15px 0;
    margin-bottom: 30px;
}

.admin-nav-links {
    display: flex;
    gap: 20px;
}

.admin-nav-links a {
    color: var(--text-color);
    font-weight: 600;
}

.admin-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: #333;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
}
/* Match Page Premium Redesign */
.match-page-hero {
    position: relative;
    height: 450px;
    margin-top: var(--header-height);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.5);
    transform: scale(1.1);
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #0f0f0f 20%, transparent 100%),
                linear-gradient(to top, #0f0f0f 0%, transparent 60%);
    z-index: 0;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.match-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 15px 0;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .match-page-hero {
        height: 300px;
    }
    .match-hero-title {
        font-size: 2rem;
    }
}

/* Viral Blocks */
.viral-block {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.share-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.share-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-whatsapp { background: #25D366; color: white; }
.btn-telegram { background: #0088cc; color: white; }
.btn-twitter { background: #000; color: white; border: 1px solid #333; }
.btn-facebook { background: #1877F2; color: white; }
.btn-copy { background: #333; color: white; }

/* Telegram Card */
.telegram-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0088cc 400%);
    border: 1px solid rgba(0, 136, 204, 0.4);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.telegram-text h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.telegram-text p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Video Player Enhancements */
.premium-player {
    border-radius: 16px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.9), 0 0 30px rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    background: #000;
}

.video-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
    opacity: 0.7;
}

/* Match Info Card */
.match-meta-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.meta-value {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.trending-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    transition: var(--transition);
}

.trending-item:hover {
    transform: translateX(5px);
}

.trending-thumb {
    width: 90px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.trending-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-views {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 4px;
}

/* Sticky Mobile Ad */
.sticky-mobile-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .sticky-mobile-ad {
        display: flex;
    }
}

.pulse-button {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

/* Technical Utilities */
.slate-border {
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.slate-glow {
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.5);
}

.slate-text-gradient {
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sharp Tables */
table {
    border: 1px solid rgba(148, 163, 184, 0.1);
}

th {
    background: rgba(15, 23, 42, 0.5);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Admin Sidebar Tweak */
.admin-navbar {
    background: var(--card-bg);
    border-bottom: 2px solid var(--primary-color);
}

/* Featured Match Badge */
.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-green);
    color: #000;
    padding: 4px 12px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Technical Navigation */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 24px;
    margin: 0 40px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-color);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Sharp Slate Components */
.admin-card, .match-card, .match-meta-card, .sidebar-widget, .telegram-card {
    border-radius: var(--radius) !important;
    border: 1px solid rgba(148, 163, 184, 0.05);
}

.btn {
    border-radius: var(--radius) !important;
}

.live-badge {
    border-radius: 0 0 var(--radius) var(--radius) !important;
}

.thumbnail-wrapper img {
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* Hero Slider Styles */
.hero-slider-container {
    position: relative;
    height: 500px;
    background: #000;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-slide {
    height: 100%;
    display: none;
    align-items: center;
    animation: fadeIn 0.8s ease-in-out;
}

.hero-slide.active {
    display: flex;
}

.hero-meta-badge {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.badge {
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
}

.badge-live { background: var(--primary-color); color: #fff; }
.badge-upcoming { background: rgba(148, 163, 184, 0.2); color: var(--text-color); border: 1px solid rgba(148, 163, 184, 0.3); }

.hero-stream-quality {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 3px 10px;
    border-radius: var(--radius);
}

.competition-tag {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 35px;
}

.hero-time-info {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
}

.slider-controls button:hover { background: var(--primary-color); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 30px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active { background: var(--primary-color); width: 50px; }

/* Grouped Schedule Styles */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 60px 0 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.header-left h2 { font-size: 2.2rem; font-weight: 900; }
.header-left p { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }

.technical-label {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 50px 0 25px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-color);
    white-space: nowrap;
}

.header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(148, 163, 184, 0.2), transparent);
}

/* Match Card Enhancements */
.match-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.status-live {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 900;
    animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0.4; } }

.technical-font {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
}

.upcoming-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.match-time-slot {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 8px 0;
    font-weight: 600;
}

.countdown-timer {
    background: rgba(15, 23, 42, 0.8);
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.9rem;
    color: var(--accent-green);
}

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

@media (max-width: 768px) {
    .header-left h2 { font-size: 1.5rem; }
    .hero-slider-container { height: 400px; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Match Page Technical Styles */
.live-indicator-technical {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid var(--primary-color);
    padding: 6px 15px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.hero-stats-row {
    display: flex;
    gap: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-stats-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.viral-block {
    padding: 24px;
    background: var(--card-bg);
    margin-bottom: 30px;
}

.share-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.player-container {
    background: #000;
    margin-bottom: 20px;
}

.player-tabs {
    display: flex;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.player-tab {
    background: none;
    border: none;
    padding: 15px 25px;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.player-tab.active {
    background: #000;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
}

.iframe-ratio-lock {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
}

.iframe-ratio-lock iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-footer {
    padding: 12px 20px;
    background: var(--card-bg);
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.telegram-promo-box {
    display: flex;
    align-items: center;
    padding: 30px;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    margin: 40px 0;
    gap: 25px;
}

.promo-icon {
    width: 60px;
    height: 60px;
    background: #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.views-technical {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--primary-color);
    background: rgba(229, 9, 20, 0.1);
    padding: 2px 8px;
    margin-top: 5px;
    display: inline-block;
}

.video-disclaimer {
    font-size: 0.75rem;
    color: #475569;
    font-style: italic;
    margin-top: 15px;
    text-align: center;
}

.sidebar-telegram-card {
    padding: 25px;
    background: var(--card-bg);
    text-align: center;
}

.sidebar-telegram-card h4 { margin-bottom: 10px; }
.sidebar-telegram-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
