/* =============================================
   YallaShoot Theme - Main Stylesheet
   Arabic RTL Sports Theme
   ============================================= */

:root {
    --ys-primary:    #e8232a;
    --ys-primary-dk: #b5181e;
    --ys-secondary:  #f5a623;
    --ys-dark:       #0d0f14;
    --ys-dark2:      #161921;
    --ys-dark3:      #1e222d;
    --ys-card:       #252a36;
    --ys-card2:      #2d3243;
    --ys-border:     #2f3447;
    --ys-border2:    #3a4060;
    --ys-text:       #e8eaf0;
    --ys-text2:      #9da3b4;
    --ys-text3:      #5f6880;
    --ys-live:       #16a34a;
    --ys-live-bg:    rgba(22,163,74,.15);
    --ys-soon-bg:    rgba(245,158,11,.15);
    --ys-soon-color: #f59e0b;
    --ys-fin-bg:     rgba(99,115,160,.15);
    --ys-radius:     10px;
    --ys-radius-sm:  6px;
    --ys-radius-lg:  14px;
    --ys-shadow:     0 2px 12px rgba(0,0,0,.4);
    --ys-font:       'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --ys-container:  1280px;
    --ys-transition: .2s ease;
}

/* Light theme */
.ys-light {
    --ys-dark:   #f0f2f7;
    --ys-dark2:  #ffffff;
    --ys-dark3:  #f8f9fc;
    --ys-card:   #ffffff;
    --ys-card2:  #f3f5fa;
    --ys-border: #e2e6f0;
    --ys-border2:#d0d5e8;
    --ys-text:   #1a1f2e;
    --ys-text2:  #5a6180;
    --ys-text3:  #8a92a8;
    --ys-shadow: 0 2px 12px rgba(0,0,0,.08);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--ys-font);
    background: var(--ys-dark);
    color: var(--ys-text);
    direction: rtl;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--ys-font); }

/* =============================================
   LAYOUT
   ============================================= */
.ys-container {
    max-width: var(--ys-container);
    margin: 0 auto;
    padding: 0 20px;
}

.ys-page-wrapper { padding: 24px 0 40px; }

.ys-content-area {
    display: grid;
    gap: 24px;
}

.ys-content-area.has-sidebar {
    grid-template-columns: 1fr 300px;
}

.ys-content-area.no-sidebar {
    grid-template-columns: 1fr;
}

/* =============================================
   HEADER
   ============================================= */
.ys-header {
    background: var(--ys-dark2);
    border-bottom: 1px solid var(--ys-border);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--ys-shadow);
}

.ys-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}

/* Logo */
.ys-logo a { display: flex; align-items: center; }

.ys-logo-text {
    font-size: 22px;
    font-weight: 900;
    color: var(--ys-primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.ys-logo img { height: 42px; width: auto; }

/* Nav */
.ys-nav { flex: 1; }

.ys-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ys-nav-list li a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--ys-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--ys-text2);
    transition: var(--ys-transition);
    white-space: nowrap;
}

.ys-nav-list li a:hover,
.ys-nav-list li.current-menu-item a {
    background: var(--ys-dark3);
    color: var(--ys-text);
}

.ys-nav-list li.current-menu-item a {
    color: var(--ys-primary);
}

/* Social Icons */
.ys-social-icons { display: flex; gap: 6px; }

.ys-social-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--ys-radius-sm);
    background: var(--ys-dark3);
    border: 1px solid var(--ys-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ys-transition);
    color: var(--ys-text2);
    font-size: 11px;
}

.ys-social-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.ys-social-tw:hover { background: #000; color: #fff; border-color: #000; }
.ys-social-yt:hover { background: #ff0000; color: #fff; border-color: #ff0000; }
.ys-social-tg:hover { background: #26a5e4; color: #fff; border-color: #26a5e4; }

/* Mobile Toggle */
.ys-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: var(--ys-dark3);
    border: 1px solid var(--ys-border);
    border-radius: var(--ys-radius-sm);
    padding: 9px;
    align-items: center;
    justify-content: center;
}

.ys-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--ys-text2);
    border-radius: 2px;
    transition: var(--ys-transition);
}

/* =============================================
   TICKER
   ============================================= */
.ys-ticker {
    background: var(--ys-primary);
    padding: 0;
    overflow: hidden;
    height: 34px;
    display: flex;
    align-items: center;
}

.ys-ticker .ys-container { overflow: hidden; }

.ys-ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 34px;
}

.ys-ticker-label {
    background: var(--ys-primary-dk);
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ys-ticker-track {
    overflow: hidden;
    flex: 1;
}

.ys-ticker-content {
    display: flex;
    gap: 0;
    animation: ys-ticker 35s linear infinite;
    white-space: nowrap;
}

.ys-ticker-content a {
    padding: 0 24px;
    font-size: 13px;
    font-weight: 600;
    opacity: .95;
}

.ys-ticker-content a::before {
    content: '◆';
    margin-left: 24px;
    font-size: 8px;
    opacity: .6;
}

@keyframes ys-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =============================================
   SECTION STYLES
   ============================================= */
.ys-section {
    background: var(--ys-card);
    border-radius: var(--ys-radius-lg);
    border: 1px solid var(--ys-border);
    padding: 20px;
    margin-bottom: 24px;
}

.ys-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ys-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ys-text);
}

.ys-title-icon { font-size: 18px; }

.ys-section-title::after {
    content: '';
    display: block;
    width: 4px;
    height: 22px;
    background: var(--ys-primary);
    border-radius: 2px;
    order: -1;
}

.ys-view-all {
    font-size: 13px;
    color: var(--ys-text2);
    border: 1px solid var(--ys-border);
    padding: 6px 14px;
    border-radius: var(--ys-radius-sm);
    transition: var(--ys-transition);
    font-weight: 600;
}

.ys-view-all:hover {
    background: var(--ys-dark3);
    color: var(--ys-text);
    border-color: var(--ys-border2);
}

/* =============================================
   DAY TABS
   ============================================= */
.ys-day-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: var(--ys-dark3);
    padding: 5px;
    border-radius: var(--ys-radius);
    border: 1px solid var(--ys-border);
}

.ys-tab-btn {
    flex: 1;
    padding: 10px 6px;
    border-radius: var(--ys-radius-sm);
    border: none;
    background: transparent;
    color: var(--ys-text2);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ys-transition);
    text-align: center;
    line-height: 1.3;
}

.ys-tab-btn:hover:not(.active) {
    background: var(--ys-card2);
    color: var(--ys-text);
}

.ys-tab-btn.active {
    background: var(--ys-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(232,35,42,.3);
}

.ys-tab-date {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: .8;
    margin-top: 2px;
}

/* =============================================
   MATCHES SCHEDULE
   ============================================= */
.ys-league-group {
    margin-bottom: 12px;
    border-radius: var(--ys-radius);
    overflow: hidden;
    border: 1px solid var(--ys-border);
}

.ys-league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--ys-dark3);
    border-bottom: 1px solid var(--ys-border);
}

.ys-league-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--ys-card2);
}

.ys-league-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ys-text);
    flex: 1;
}

.ys-match-count {
    font-size: 12px;
    color: var(--ys-text3);
}

/* Match Row */
.ys-match-row {
    display: grid;
    grid-template-columns: 1fr 100px 1fr auto;
    align-items: center;
    padding: 12px 16px;
    background: var(--ys-card);
    border-bottom: 1px solid var(--ys-border);
    transition: background var(--ys-transition);
    cursor: pointer;
    text-decoration: none;
    gap: 0;
}

.ys-match-row:last-child { border-bottom: none; }
.ys-match-row:hover { background: var(--ys-card2); }
.ys-match-row.ys-status-live {
    background: linear-gradient(90deg, rgba(22,163,74,.06), var(--ys-card), rgba(22,163,74,.06));
}

/* Teams */
.ys-mr-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ys-mr-home { flex-direction: row-reverse; justify-content: flex-start; }
.ys-mr-away { flex-direction: row; justify-content: flex-start; }

.ys-mr-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ys-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    line-height: 1.3;
}

.ys-mr-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--ys-dark3);
    border: 1px solid var(--ys-border);
    padding: 3px;
    flex-shrink: 0;
}

/* Center */
.ys-mr-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
}

.ys-mr-score {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 22px;
    font-weight: 900;
    color: var(--ys-text);
    line-height: 1;
}

.ys-score-sep { color: var(--ys-text3); font-weight: 400; font-size: 16px; }

.ys-mr-time {
    font-size: 18px;
    font-weight: 700;
    color: var(--ys-text);
    line-height: 1;
}

.ys-mr-play-icon {
    font-size: 10px;
    color: var(--ys-secondary);
    background: rgba(245,166,35,.15);
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}

/* Channel */
.ys-mr-channel {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--ys-text3);
    white-space: nowrap;
    border-right: 1px solid var(--ys-border);
    padding-right: 12px;
    margin-right: 4px;
}

/* Status Badges */
.ys-mr-badge, .ys-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.badge-live {
    background: var(--ys-live-bg);
    color: var(--ys-live);
    border: 1px solid rgba(22,163,74,.3);
}

.badge-soon {
    background: var(--ys-soon-bg);
    color: var(--ys-soon-color);
    border: 1px solid rgba(245,158,11,.3);
}

.badge-finished {
    background: var(--ys-fin-bg);
    color: var(--ys-text3);
    border: 1px solid var(--ys-border);
}

.badge-postponed, .badge-cancelled {
    background: rgba(239,68,68,.12);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,.3);
}

/* Live pulse */
.ys-live-dot, .ys-live-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ys-live);
    display: inline-block;
    animation: ys-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes ys-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.8); }
}

/* No Matches */
.ys-no-matches-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--ys-text3);
}
.ys-no-icon { font-size: 48px; display: block; margin-bottom: 12px; opacity: .4; }

/* =============================================
   NEWS GRID
   ============================================= */
.ys-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.ys-news-card {
    background: var(--ys-dark3);
    border-radius: var(--ys-radius);
    border: 1px solid var(--ys-border);
    overflow: hidden;
    transition: transform var(--ys-transition), box-shadow var(--ys-transition);
}

.ys-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    border-color: var(--ys-border2);
}

.ys-news-card-link { display: block; }

.ys-news-thumb {
    position: relative;
    padding-top: 58%;
    overflow: hidden;
    background: var(--ys-card2);
}

.ys-news-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ys-news-card:hover .ys-news-thumb img { transform: scale(1.05); }

.ys-news-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    opacity: .2;
}

.ys-news-cat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ys-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.ys-news-body {
    padding: 14px;
}

.ys-news-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ys-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.ys-news-meta { font-size: 12px; color: var(--ys-text3); }

/* Load More */
.ys-load-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.ys-load-more-btn {
    background: var(--ys-dark3);
    color: var(--ys-text2);
    border: 1px solid var(--ys-border);
    padding: 12px 40px;
    border-radius: var(--ys-radius);
    font-size: 14px;
    font-weight: 700;
    transition: var(--ys-transition);
}

.ys-load-more-btn:hover {
    background: var(--ys-card2);
    color: var(--ys-text);
    border-color: var(--ys-border2);
}

.ys-load-more-btn.loading {
    opacity: .6;
    cursor: not-allowed;
}

/* =============================================
   SINGLE MATCH HERO — Stadium Style
   ============================================= */
.ys-match-hero {
    position: relative;
    background:
        linear-gradient(180deg, rgba(13,15,20,.3) 0%, rgba(13,15,20,.85) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="300"><defs><radialGradient id="g" cx="50%25" cy="50%25" r="50%25"><stop offset="0%25" stop-color="%232d4a1e"/><stop offset="100%25" stop-color="%231a2e10"/></radialGradient></defs><rect width="800" height="300" fill="url(%23g)"/><rect x="50" y="30" width="700" height="240" rx="4" fill="none" stroke="%23ffffff22" stroke-width="2"/><line x1="400" y1="30" x2="400" y2="270" stroke="%23ffffff15" stroke-width="1.5"/><circle cx="400" cy="150" r="60" fill="none" stroke="%23ffffff15" stroke-width="1.5"/><circle cx="400" cy="150" r="4" fill="%23ffffff22"/></svg>') center/cover no-repeat;
    border-radius: var(--ys-radius-lg);
    border: 1px solid var(--ys-border);
    padding: 28px 24px 24px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* League badge */
.ys-hero-league {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    font-weight: 600;
    margin-bottom: 24px;
}

.ys-hero-league img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
}

/* Scoreboard grid: home | center | away */
.ys-hero-board {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    align-items: center;
    gap: 16px;
}

/* Each team block */
.ys-hero-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

/* Logo container — circular with glow */
.ys-hero-logo-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    backdrop-filter: blur(4px);
    transition: transform .25s ease;
}

.ys-hero-team:hover .ys-hero-logo-wrap {
    transform: scale(1.05);
    border-color: rgba(255,255,255,.3);
}

.ys-hero-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.ys-hero-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    line-height: 1.3;
    max-width: 160px;
}

/* Center area */
.ys-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ys-hero-vs {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    letter-spacing: -2px;
    line-height: 1;
}

.ys-hero-time {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    line-height: 1;
}

.ys-hero-date {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    font-weight: 600;
}

.ys-hero-score {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.ys-hero-score span {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    line-height: 1;
}

.ys-hero-score-sep {
    font-size: 36px !important;
    color: rgba(255,255,255,.4) !important;
    font-weight: 400 !important;
}

.ys-hero-penalty {
    font-size: 12px;
    color: var(--ys-secondary);
    font-weight: 700;
    background: rgba(245,166,35,.15);
    padding: 3px 10px;
    border-radius: 4px;
}

/* Status badge in hero */
.ys-match-hero .ys-status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

.ys-match-article { padding: 20px; }

/* Tabs */
.ys-match-tabs-wrap {
    background: var(--ys-card);
    border-radius: var(--ys-radius-lg);
    border: 1px solid var(--ys-border);
    overflow: hidden;
}

.ys-match-tabs {
    display: flex;
    border-bottom: 1px solid var(--ys-border);
    background: var(--ys-dark3);
}

.ys-match-tab {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--ys-text2);
    font-size: 14px;
    font-weight: 700;
    transition: var(--ys-transition);
    margin-bottom: -1px;
}

.ys-match-tab:hover { color: var(--ys-text); background: var(--ys-card2); }

.ys-match-tab.active {
    color: var(--ys-primary);
    border-bottom-color: var(--ys-primary);
    background: var(--ys-card);
}

.ys-tab-content {
    display: none;
    padding: 20px;
}

.ys-tab-content.active { display: block; }

/* Servers */
.ys-servers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ys-server-btn {
    padding: 8px 18px;
    background: var(--ys-dark3);
    border: 1px solid var(--ys-border);
    border-radius: var(--ys-radius-sm);
    color: var(--ys-text2);
    font-size: 13px;
    font-weight: 700;
    transition: var(--ys-transition);
}

.ys-server-btn:hover { background: var(--ys-card2); color: var(--ys-text); }

.ys-server-btn.active {
    background: var(--ys-primary);
    color: #fff;
    border-color: var(--ys-primary);
}

/* Player */
.ys-player-wrap {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--ys-radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.ys-player-wrap iframe,
.ys-player-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Match Card Table */
.ys-match-card-table h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--ys-text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ys-border);
}

.ys-match-card-table table {
    width: 100%;
    border-collapse: collapse;
}

.ys-match-card-table tr {
    border-bottom: 1px solid var(--ys-border);
}

.ys-match-card-table tr:last-child { border-bottom: none; }

.ys-match-card-table td {
    padding: 12px 0;
    font-size: 14px;
    vertical-align: top;
}

.ys-card-label {
    color: var(--ys-text2);
    font-weight: 600;
    min-width: 150px;
}

/* =============================================
   SINGLE POST
   ============================================= */
.ys-single-post {
    background: var(--ys-card);
    border-radius: var(--ys-radius-lg);
    border: 1px solid var(--ys-border);
    padding: 28px;
    margin-bottom: 24px;
}

.ys-post-header { margin-bottom: 20px; }

.ys-post-cats {
    margin-bottom: 10px;
}

.ys-post-cats a {
    display: inline-block;
    background: var(--ys-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    margin-left: 6px;
}

.ys-post-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--ys-text);
    line-height: 1.4;
    margin-bottom: 14px;
}

.ys-post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--ys-text3);
}

.ys-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ys-post-thumb {
    border-radius: var(--ys-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.ys-post-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--ys-text);
}

.ys-post-content h2, .ys-post-content h3 {
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--ys-text);
}

.ys-post-content p { margin-bottom: 16px; }

.ys-post-content a { color: var(--ys-primary); }

.ys-post-tags {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--ys-border);
    font-size: 13px;
    color: var(--ys-text2);
}

.ys-post-tags a {
    display: inline-block;
    background: var(--ys-dark3);
    border: 1px solid var(--ys-border);
    padding: 4px 12px;
    border-radius: 4px;
    margin: 4px 0 4px 6px;
    font-size: 12px;
    transition: var(--ys-transition);
}

.ys-post-tags a:hover { background: var(--ys-card2); color: var(--ys-text); }

/* =============================================
   SIDEBAR
   ============================================= */
.ys-sidebar { display: flex; flex-direction: column; gap: 20px; }

.ys-widget {
    background: var(--ys-card);
    border-radius: var(--ys-radius-lg);
    border: 1px solid var(--ys-border);
    overflow: hidden;
}

.ys-widget-title {
    padding: 12px 16px;
    background: var(--ys-dark3);
    border-bottom: 1px solid var(--ys-border);
    font-size: 14px;
    font-weight: 700;
}

.ys-widget-title span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ys-widget-title span::before {
    content: '';
    display: block;
    width: 3px;
    height: 16px;
    background: var(--ys-primary);
    border-radius: 2px;
}

/* Widget Matches */
.ys-widget-matches { padding: 4px 0; }

.ys-widget-match {
    border-bottom: 1px solid var(--ys-border);
}

.ys-widget-match:last-child { border-bottom: none; }

.ys-widget-match a {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    transition: background var(--ys-transition);
}

.ys-widget-match a:hover { background: var(--ys-dark3); }

.ys-widget-match img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 50%;
}

.ys-wm-team { flex: 1; color: var(--ys-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ys-wm-score {
    text-align: center;
    font-weight: 700;
    padding: 0 6px;
    white-space: nowrap;
}

/* Widget News */
.ys-widget-news { padding: 4px 0; }

.ys-widget-news li { border-bottom: 1px solid var(--ys-border); }

.ys-widget-news li:last-child { border-bottom: none; }

.ys-widget-news a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ys-text);
    transition: background var(--ys-transition);
    line-height: 1.4;
}

.ys-widget-news a:hover { background: var(--ys-dark3); }

.ys-widget-news img {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--ys-card2);
}

/* =============================================
   FOOTER
   ============================================= */
.ys-footer {
    background: var(--ys-dark2);
    border-top: 1px solid var(--ys-border);
    margin-top: 20px;
}

.ys-footer-widgets {
    padding: 40px 0;
}

.ys-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}

.ys-footer-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--ys-primary);
    margin-bottom: 12px;
}

.ys-footer-desc {
    font-size: 13px;
    color: var(--ys-text2);
    line-height: 1.7;
    margin-bottom: 16px;
}

.ys-footer-social {
    display: flex;
    gap: 8px;
}

.ys-footer-widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ys-text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ys-primary);
    display: inline-block;
}

.ys-footer-bottom {
    background: var(--ys-dark);
    border-top: 1px solid var(--ys-border);
    padding: 14px 0;
}

.ys-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ys-text3);
}

.ys-footer-nav {
    display: flex;
    gap: 16px;
}

.ys-footer-nav a { transition: color var(--ys-transition); }
.ys-footer-nav a:hover { color: var(--ys-text); }

/* =============================================
   ADS
   ============================================= */
.ys-ad {
    text-align: center;
    padding: 10px 0;
    clear: both;
}

/* =============================================
   UTILITY
   ============================================= */
.ys-no-content, .ys-no-matches {
    text-align: center;
    padding: 30px;
    color: var(--ys-text3);
    font-size: 14px;
}

.ys-events-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--ys-text3);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
    .ys-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 768px) {
    .ys-content-area.has-sidebar {
        grid-template-columns: 1fr;
    }

    .ys-sidebar { display: none; }

    .ys-menu-toggle { display: flex; }

    .ys-nav {
        position: fixed;
        top: 64px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 64px);
        background: var(--ys-dark2);
        border-left: 1px solid var(--ys-border);
        transition: right var(--ys-transition);
        overflow-y: auto;
        z-index: 199;
    }

    .ys-nav.open { right: 0; }

    .ys-nav-list { flex-direction: column; padding: 16px; gap: 4px; }
    .ys-nav-list li { width: 100%; }
    .ys-nav-list li a { padding: 12px 16px; }

    /* Match Hero mobile */
    .ys-hero-board { grid-template-columns: 1fr 100px 1fr; gap: 8px; }
    .ys-hero-logo-wrap { width: 70px; height: 70px; }
    .ys-hero-logo { width: 56px; height: 56px; }
    .ys-hero-name { font-size: 13px; max-width: 110px; }
    .ys-hero-vs { font-size: 30px; }
    .ys-hero-time { font-size: 26px; }
    .ys-hero-score span { font-size: 36px; }

    /* Match row mobile */
    .ys-match-row { grid-template-columns: 1fr 90px 1fr; padding: 10px 10px; }
    .ys-mr-channel { display: none; }
    .ys-mr-name { max-width: 85px; font-size: 12px; }
    .ys-mr-logo { width: 32px; height: 32px; }
    .ys-mr-time { font-size: 15px; }
    .ys-mr-score { font-size: 18px; }

    .ys-post-title { font-size: 20px; }
    .ys-news-grid { grid-template-columns: 1fr 1fr; }
    .ys-footer-grid { grid-template-columns: 1fr; }
    .ys-footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
    .ys-news-grid { grid-template-columns: 1fr; }
    .ys-section { padding: 14px; }
    .ys-match-hero { padding: 16px 12px; }
    .ys-hero-board { grid-template-columns: 1fr 80px 1fr; gap: 4px; }
    .ys-hero-logo-wrap { width: 58px; height: 58px; padding: 5px; }
    .ys-hero-logo { width: 46px; height: 46px; }
    .ys-hero-name { font-size: 11px; max-width: 90px; }
    .ys-hero-vs { font-size: 24px; }
    .ys-hero-score span { font-size: 28px; }
    .ys-mr-name { max-width: 65px; font-size: 11px; }
    .ys-mr-logo { width: 28px; height: 28px; }
}
