/**
 * Sesto Sports - NewsPaper Professional Edition
 * استایل خبری حرفه‌ای - بدون عکس
 */

:root {
    --c-accent: #E63946;
    --c-primary: #E63946;
    --c-primary-d: #C5283B;
    --c-primary-l: #F25A6B;
    --c-dark: #0a0a0a;
    --c-dark-2: #1a1a1a;
    --c-text: #1a1a1a;
    --c-text-2: #555555;
    --c-text-3: #888888;
    --c-bg: #ffffff;
    --c-bg-2: #f5f5f5;
    --c-border: #e0e0e0;
    --c-border-l: #f0f0f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 6px 20px rgba(0,0,0,.1);
    --r: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --t: .25s ease;
    --font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1340px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 15px; line-height: 1.75; color: var(--c-text); background: var(--c-bg-2); margin: 0; direction: rtl; text-align: right; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-text); text-decoration: none; transition: var(--t); }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 800; line-height: 1.3; color: var(--c-text); margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; line-height: 1.85; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); font-size: 14px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
::selection { background: var(--c-primary); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-bg-2); }
::-webkit-scrollbar-thumb { background: var(--c-text-3); border-radius: 8px; }

.sesto-container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
#content { min-height: 60vh; padding: 24px 0; }

/* ===== Header ===== */
.site-header {
    background: var(--c-bg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--c-border);
}
.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-logo img { max-height: 48px; width: auto; }
.site-text-logo { font-size: 24px; font-weight: 800; color: var(--c-dark); text-decoration: none; }
.site-text-logo:hover { color: var(--c-accent); }
.header-search { max-width: 400px; flex: 1; }

/* سطر تگ‌های پربازدید */
.header-tags-row {
    padding: 8px 0;
    border-top: 1px solid var(--c-border-l);
}
.header-tags {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.header-tags::-webkit-scrollbar { display: none; }
.header-tag {
    background: var(--c-bg-2);
    color: var(--c-text-2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--t);
}
.header-tag:hover { background: var(--c-accent); color: #fff; text-decoration: none; }
.header-tag.placeholder { opacity: 0.5; }

/* ===== Search ===== */
.sesto-search-form {
    display: flex;
    border: 2px solid var(--c-border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--c-bg);
}
.sesto-search-field { flex: 1; border: none; padding: 8px 14px; font-size: 14px; background: transparent; color: var(--c-text); }
.sesto-search-field:focus { outline: none; }
.sesto-search-submit { background: var(--c-primary); color: #fff; border: none; padding: 0 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sesto-search-submit svg { color: #fff; stroke: #fff; }
.sesto-search-submit:hover { background: var(--c-primary-d); }
.sesto-search-submit:hover svg { color: #fff; stroke: #fff; }

/* ===== Front Page ===== */
.sesto-front-section { margin: 32px 0; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--c-border); position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -2px; right: 0; width: 80px; height: 2px; background: var(--c-accent); }
.section-title-icon { background: var(--c-accent); color: #fff; width: 34px; height: 34px; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center; }
.section-title-text { font-size: 20px; font-weight: 800; flex: 1; }
.section-title-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--c-accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 14px;
    transition: background .2s;
}
.section-title-link:hover {
    background: rgba(230,57,70,.08);
}
.section-title-badge { background: var(--c-primary); color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; }

/* دکمه «مشاهده همه» زیر هر بلاک */
.home-block-footer {
    margin-top: 20px;
    padding-top: 4px;
}
.sesto-btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--c-border);
    background: transparent;
    color: var(--c-text-2);
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}
.sesto-btn-block:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: rgba(230,57,70,.04);
}

/* ===== Team Matches ===== */
.sesto-team-section { background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%); color: #fff; padding: 24px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border-top: 4px solid var(--c-primary); }
.sesto-team-section .section-title { border-bottom-color: rgba(255,255,255,.1); }
.sesto-team-section .section-title::after { background: var(--c-primary); }
.sesto-team-section .section-title-text { color: #fff; }
.sesto-team-section .section-title-icon { background: var(--c-primary); }
.sesto-team-matches { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.team-matches-block { background: rgba(255,255,255,.05); border-radius: var(--r); padding: 16px; }
.block-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--c-primary); padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.matches-list { display: flex; flex-direction: column; gap: 8px; }
.match-item { background: rgba(255,255,255,.04); border-radius: var(--r); padding: 10px 12px; border-right: 3px solid transparent; }
.match-item.win { border-right-color: #10b981; }
.match-item.loss { border-right-color: var(--c-accent); }
.match-item.draw { border-right-color: var(--c-primary); }
.match-item.upcoming { border-right-color: #3b82f6; }
.match-competition { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.match-date { font-size: 11px; color: var(--c-primary); margin-bottom: 6px; font-weight: 600; }
.match-teams { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.match-team.winner { color: #4ade80; font-weight: 800; }
.match-score { background: rgba(0,0,0,.3); padding: 2px 10px; border-radius: var(--r); font-weight: 800; color: #fff; min-width: 50px; text-align: center; }
.match-vs { color: rgba(255,255,255,.4); font-size: 11px; }
.match-result-tag { font-size: 11px; margin-top: 4px; text-align: left; color: rgba(255,255,255,.6); }
.no-matches, .team-matches-error { color: rgba(255,255,255,.5); text-align: center; padding: 20px; font-size: 13px; }

/* ===== Home Grid ===== */
.sesto-home-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; }
.home-block { margin-bottom: 32px; }

/* ===== Posts Grid ===== */
.sesto-posts-grid { display: grid; gap: 16px; }
.sesto-posts-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sesto-posts-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sesto-posts-list.popular-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sesto-posts-list { display: flex; flex-direction: column; gap: 12px; }

/* ===== Post Card (بدون عکس) ===== */
.sesto-post-card {
    background: var(--c-bg);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
    border: 1px solid var(--c-border-l);
    position: relative;
}
.sesto-post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--c-accent); }
.post-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--c-accent);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}
.post-card-category {
    display: inline-block;
    background: var(--c-bg-2);
    color: var(--c-accent);
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
    align-self: flex-start;
}
.post-card-title { margin: 0 0 10px; font-size: 17px; font-weight: 800; line-height: 1.5; }
.post-card-title a { color: var(--c-text); text-decoration: none; }
.post-card-title a:hover { color: var(--c-accent); }
.post-card-excerpt { color: var(--c-text-2); font-size: 14px; line-height: 1.7; margin: 0 0 12px; flex: 1; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--c-text-3); padding-top: 10px; border-top: 1px solid var(--c-border-l); }
.post-card-meta svg { color: var(--c-accent); margin-left: 4px; }

/* ===== Sidebar ===== */
.sesto-home-sidebar, .sesto-archive-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sesto-widget { background: var(--c-bg); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--c-border-l); margin-bottom: 24px; }
.sesto-widget:last-child { margin-bottom: 0; }
.sesto-widget-title { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--c-text); padding-bottom: 10px; border-bottom: 2px solid var(--c-border); position: relative; }
.sesto-widget-title::after { content: ''; position: absolute; bottom: -2px; right: 0; width: 50px; height: 2px; background: var(--c-accent); }
.widget-post-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.widget-post-link { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; transition: var(--t); }
.widget-post-link:hover { color: var(--c-accent); }
.widget-post-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.widget-post-title { font-size: 13px; font-weight: 700; line-height: 1.4; margin: 0; }
.widget-post-date, .widget-post-views { font-size: 11px; color: var(--c-text-3); }
.widget-post-views svg { color: var(--c-accent); margin-left: 4px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tagcloud a { background: var(--c-bg-2); color: var(--c-text-2); padding: 4px 10px; border-radius: var(--r); font-size: 12px !important; text-decoration: none; transition: var(--t); }
.tagcloud a:hover { background: var(--c-accent); color: #fff; }

/* League Table */
.widget-league-table .league-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.widget-league-table .league-table th { background: var(--c-bg-2); color: var(--c-text-2); padding: 8px 6px; text-align: center; font-weight: 700; font-size: 12px; border-bottom: 2px solid var(--c-accent); }
.widget-league-table .league-table td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--c-border-l); }
.widget-league-table .league-table .pos { font-weight: 800; color: var(--c-accent); width: 30px; }
.widget-league-table .league-table .team-name { text-align: right; font-weight: 600; }
.widget-league-table .league-table .pts { font-weight: 800; width: 40px; }
.widget-league-table .league-table .my-team { background: rgba(230,57,70,.15); }
.widget-league-table .league-table .my-team .team-name { color: var(--c-accent); font-weight: 800; }
.widget-league-table .no-data { text-align: center; color: var(--c-text-3); padding: 20px; font-size: 13px; }

/* Popular Tags */
.popular-tags .tag-link { background: var(--c-bg-2); color: var(--c-text-2); padding: 6px 12px; border-radius: var(--r); font-size: 12px; text-decoration: none; transition: var(--t); display: inline-flex; align-items: center; gap: 4px; }
.popular-tags .tag-link:hover { background: var(--c-accent); color: #fff; }
.popular-tags .tag-count { background: rgba(0,0,0,.1); padding: 1px 6px; border-radius: 8px; font-size: 10px; font-weight: 700; }

/* ===== Archive ===== */
.sesto-archive-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; margin: 30px 0; }
.page-title { font-size: 24px; font-weight: 800; margin: 0 0 20px; color: var(--c-text); display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--c-border); }
.page-title-icon { background: var(--c-accent); color: #fff; width: 34px; height: 34px; border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center; }
.search-query { color: var(--c-accent); font-weight: 700; }
.no-posts { text-align: center; padding: 60px 20px; color: var(--c-text-3); }

/* ===== Pagination ===== */
.sesto-pagination { margin: 30px 0; display: flex; justify-content: center; }
.sesto-pagination .nav-links { display: flex; gap: 6px; }
.sesto-pagination a, .sesto-pagination span { background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); padding: 8px 14px; border-radius: var(--r); text-decoration: none; font-size: 14px; font-weight: 600; }
.sesto-pagination a:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.sesto-pagination .current { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

/* ===== Single Post ===== */
.sesto-article { max-width: 100%; background: var(--c-bg); padding: 32px; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.article-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-text-3); margin-bottom: 16px; }
.article-breadcrumb a { color: var(--c-text-3); }
.article-breadcrumb a:hover { color: var(--c-accent); }
.article-breadcrumb svg { font-size: 10px; opacity: .5; }
.article-title { font-size: 32px; font-weight: 800; line-height: 1.3; margin: 0 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--c-text-2); padding-bottom: 16px; border-bottom: 1px solid var(--c-border-l); margin-bottom: 20px; }
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta svg { color: var(--c-accent); }
.article-content { font-size: 16px; line-height: 1.95; color: var(--c-text); }
.article-content h2 { font-size: 22px; font-weight: 800; margin: 30px 0 14px; padding-right: 14px; border-right: 4px solid var(--c-accent); }
.article-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 12px; color: var(--c-dark-2); }
.article-content p { margin: 0 0 18px; }
.article-content a { color: var(--c-accent); text-decoration: underline; }
.article-content blockquote { border-right: 4px solid var(--c-accent); background: var(--c-bg-2); padding: 14px 20px; margin: 20px 0; border-radius: var(--r); font-style: italic; color: var(--c-text-2); }
.article-content ul, .article-content ol { padding-right: 24px; margin: 0 0 18px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-content table th, .article-content table td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: right; }
.article-content table th { background: var(--c-bg-2); font-weight: 700; }
.article-source { background: linear-gradient(135deg, #fef3c7, #fde68a); padding: 14px 18px; border-radius: var(--r); margin: 24px 0; font-size: 14px; color: #78350f; border-right: 4px solid #f59e0b; display: flex; align-items: center; gap: 8px; }
.article-source a { color: #1e40af; font-weight: 700; text-decoration: none; }
.article-tags { margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--c-border-l); border-bottom: 1px solid var(--c-border-l); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.article-tags strong { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.article-tags a { background: var(--c-bg-2); color: var(--c-text-2); padding: 4px 12px; border-radius: 12px; font-size: 12px; }
.article-tags a:hover { background: var(--c-accent); color: #fff; }
.article-share { display: flex; align-items: center; gap: 10px; margin: 24px 0; padding: 16px; background: var(--c-bg-2); border-radius: var(--r); }
.share-label { font-weight: 700; margin-left: 8px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: none; transition: var(--t); }
.share-btn:hover { transform: translateY(-3px); }
.share-telegram { background: #0088cc; }
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }
.share-copy { background: var(--c-text-3); }
.article-likes { display: flex; justify-content: center; padding: 20px 0; border-top: 1px solid var(--c-border-l); border-bottom: 1px solid var(--c-border-l); margin: 20px 0; }
.sesto-like-dislike { display: flex; gap: 16px; }
.sesto-like-btn, .sesto-dislike-btn { background: var(--c-bg); border: 1px solid var(--c-border); padding: 8px 18px; border-radius: 20px; cursor: pointer; color: var(--c-text); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.sesto-like-btn:hover { background: #d1fae5; border-color: #10b981; }
.sesto-dislike-btn:hover { background: #fee2e2; border-color: var(--c-accent); }
.sesto-like-btn.active { background: #10b981; color: #fff; }
.sesto-dislike-btn.active { background: var(--c-accent); color: #fff; }
.article-related { margin: 30px 0; }
.related-title { font-size: 18px; font-weight: 800; margin: 0 0 18px; display: flex; align-items: center; gap: 8px; }
.related-title svg { color: var(--c-accent); }

/* ===== Comments (مینیمال و شیک) ===== */
.sesto-comments { margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--c-border); }
.comments-title { font-size: 18px; font-weight: 800; margin: 0 0 24px; color: var(--c-text); display: flex; align-items: center; gap: 8px; }
.comments-title svg { color: var(--c-accent); }
.comment-list { padding: 0; margin: 0; }

/* باکس thread: شامل نظر اصلی + پاسخ‌ها */
.comment-thread-box {
    background: var(--c-bg);
    border: 1px solid var(--c-border-l);
    border-radius: var(--r-md);
    margin-bottom: 16px;
    padding: 20px;
    transition: border-color .2s;
}
.comment-thread-box:hover { border-color: var(--c-border); }

/* نظر اصلی (top-level) - باکس مجزا با padding کافی */
.sesto-comment-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--r);
}
.sesto-comment-item.depth-1 {
    background: var(--c-bg-2, rgba(0,0,0,.02));
    border: 1px solid var(--c-border-l);
    margin-bottom: 12px;
}
.sesto-comment-item.depth-1:last-of-type { margin-bottom: 0; }

/* پاسخ‌ها - در همان باکس، زیر نظر اصلی */
.comment-replies {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--c-border-l);
    padding-right: 52px; /* هم‌تراز با محتوای نظر اصلی */
}
.comment-replies .sesto-comment-item {
    margin-bottom: 10px;
    padding: 10px 12px;
    background: var(--c-bg-2, rgba(0,0,0,.02));
    border: 1px solid var(--c-border-l);
    border-radius: var(--r);
}
.comment-replies .sesto-comment-item:last-child { margin-bottom: 0; }

/* بج پاسخ */
.comment-reply-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--c-accent);
    background: rgba(230,57,70,.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 4px;
}

.comment-avatar img { border-radius: 50%; }
.comment-content { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.comment-author { font-weight: 700; font-size: 14px; color: var(--c-text); }
.comment-date { font-size: 12px; color: var(--c-text-3); }
.comment-text { font-size: 14px; line-height: 1.7; color: var(--c-text-2); }
.comment-text p { margin: 0 0 8px; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.comment-actions a { font-size: 12px; color: var(--c-accent); text-decoration: none; font-weight: 600; }

/* دکمه‌های لایک */
.comment-like-btn, .comment-dislike-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--c-border-l);
    color: var(--c-text-3);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.comment-like-btn:hover, .comment-dislike-btn:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}
.comment-like-btn.active {
    background: rgba(34,197,94,.1);
    border-color: rgba(34,197,94,.4);
    color: #22c55e;
}
.comment-dislike-btn.active {
    background: rgba(239,68,68,.1);
    border-color: rgba(239,68,68,.4);
    color: #ef4444;
}
.comment-replies .comment-like-btn,
.comment-replies .comment-dislike-btn {
    padding: 3px 8px;
    font-size: 11px;
}

/* فیلتر نظرات */
.comments-sort {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.comments-sort .sort-btn {
    background: var(--c-bg);
    border: 1px solid var(--c-border-l);
    color: var(--c-text-2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.comments-sort .sort-btn:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}
.comments-sort .sort-btn.active {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #fff;
}

/* Comment Form */
.sesto-comment-form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.sesto-comment-form-field { flex: 1; margin-bottom: 12px; }
.sesto-comment-form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--c-text-2); }
.sesto-comment-form-field input, .sesto-comment-form-field textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--r); font-size: 14px; font-family: inherit; background: var(--c-bg); color: var(--c-text); }
.sesto-comment-form-field input:focus, .sesto-comment-form-field textarea:focus { outline: none; border-color: var(--c-accent); }
.sesto-comment-submit { background: var(--c-accent); color: #fff; padding: 10px 28px; border: none; border-radius: var(--r); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sesto-comment-submit:hover { background: var(--c-primary-d); }
#respond { margin-top: 24px; }
#reply-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.comment-form { display: flex; flex-direction: column; gap: 0; }
.comment-notes { display: none; }

.no-comments-yet {
    text-align: center;
    padding: 32px 16px;
    color: var(--c-text-3);
    font-size: 14px;
    background: var(--c-bg);
    border: 1px dashed var(--c-border-l);
    border-radius: var(--r-md);
    margin-bottom: 20px;
}

/* ===== Footer ===== */
.site-footer { background: var(--c-dark); color: #cbd5e1; padding: 40px 0 0; margin-top: 50px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sesto-footer-widget-title { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--c-primary); display: inline-block; }
.footer-widget-area ul { list-style: none; padding: 0; margin: 0; }
.footer-widget-area a { color: #cbd5e1; padding: 4px 0; display: inline-block; }
.footer-widget-area a:hover { color: var(--c-primary); }
.footer-categories li a { padding: 6px 0; display: block; border-bottom: 1px dashed rgba(255,255,255,.1); }
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #cbd5e1; display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--c-primary); color: #fff; }
.footer-copyright { padding: 20px 0; text-align: center; font-size: 13px; color: #94a3b8; }
.footer-credit a { color: var(--c-primary); font-weight: 700; }

/* ===== Back to Top ===== */
.back-to-top { position: fixed; bottom: 30px; left: 30px; width: 46px; height: 46px; background: var(--c-accent); color: #fff; border: none; border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--t); z-index: 99; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--c-dark); }

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404-title { font-size: 80px; font-weight: 800; color: var(--c-accent); margin: 10px 0; }
.error-404-text { font-size: 18px; color: var(--c-text-2); margin-bottom: 24px; }

/* ===== Page ===== */
.sesto-page-wrap { max-width: 820px; margin: 30px auto; background: var(--c-bg); padding: 30px; border-radius: var(--r-md); box-shadow: var(--shadow-md); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sesto-home-grid, .sesto-archive-grid { grid-template-columns: 1fr; }
    .sesto-team-matches { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header-tags-row { display: none; }
    .header-main-row { flex-direction: column; gap: 12px; }
    .header-search { max-width: 100%; width: 100%; }
    .sesto-posts-grid-2, .sesto-posts-grid-3 { grid-template-columns: 1fr; }
    .sesto-posts-list.popular-grid { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
    .article-title { font-size: 22px; }
    .sesto-article { padding: 20px; }
    .sesto-comment-form-row { flex-direction: column; }
    .sesto-container { padding: 0 14px; }
}
@media (max-width: 480px) {
    .section-title-text { font-size: 17px; }
    .article-title { font-size: 20px; }
}
/* ===== Comment Like/Dislike ===== */
.comments-sort {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.sort-btn {
    background: var(--c-bg-2);
    color: var(--c-text-2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--t);
}
.sort-btn:hover { background: var(--c-bg); border: 1px solid var(--c-border); }
.sort-btn.active { background: var(--c-accent); color: #fff; }
.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    align-items: center;
}
.comment-like-btn, .comment-dislike-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--c-text-3);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--t);
}
.comment-like-btn:hover { color: #10b981; }
.comment-dislike-btn:hover { color: var(--c-accent); }
.comment-like-btn.active { color: #10b981; }
.comment-dislike-btn.active { color: var(--c-accent); }

/* Internal links */
.sesto-internal-link { color: var(--c-accent); text-decoration: underline; font-weight: 600; }
.sesto-internal-link:hover { color: var(--c-primary-d); }

/* My team highlight - more visible */
.widget-league-table .league-table .my-team {
    background: rgba(230,57,70,.15) !important;
    box-shadow: inset 3px 0 0 var(--c-accent);
}
.widget-league-table .league-table .my-team .team-name {
    color: var(--c-accent) !important;
    font-weight: 800 !important;
}
.widget-league-table .league-table .my-team .pts {
    color: var(--c-accent) !important;
    font-weight: 800 !important;
}
.widget-league-table .league-table .my-team .pos {
    color: var(--c-accent) !important;
    font-weight: 800 !important;
}

/* ===== تبلیغات ===== */
.sesto-ad-container {
    width: 100%;
    height: 200px;
    margin: 24px 0;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--c-bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.sesto-ad-container a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.sesto-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* در سایدبار: عرض کامل سایدبار، ارتفاع ۲۰۰ */
.sesto-ad-widget {
    margin-bottom: 20px;
}
.sesto-ad-widget .sesto-ad-container {
    margin: 0 0 20px 0;
    width: 100%;
}

/* در صفحه تکی: عرض کامل کانتینر */
.single-post .sesto-ad-container {
    margin: 30px 0;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .sesto-ad-container {
        height: 200px;
    }
}
