/*
Theme Name: Football Pro
Theme URI: https://damitvsports.com
Author: DamiTV Sports
Author URI: https://damitvsports.com
Description: A bold, dark-mode-first custom WordPress theme for a live football news blog. Editorial typography, hero slider, category strips, and auto-blogger friendly article styling.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: football-pro
Tags: news, blog, dark, football, sports, custom-menu, featured-images, threaded-comments
*/

/* ============================================================
   DESIGN SYSTEM / VARIABLES
   ============================================================ */
:root {
  --fp-bg-dark: #0a0e1a;
  --fp-bg-secondary: #111827;
  --fp-surface: #1f2937;
  --fp-accent-red: #e8192c;
  --fp-accent-red-dark: #b3121f;
  --fp-accent-amber: #f59e0b;
  --fp-text: #f9fafb;
  --fp-text-secondary: #9ca3af;
  --fp-border: #374151;
  --fp-white: #ffffff;

  --fp-font-head: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --fp-font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --fp-font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fp-h1: 2.5rem;
  --fp-h2: 1.875rem;
  --fp-h3: 1.5rem;
  --fp-h4: 1.25rem;

  --fp-radius: 10px;
  --fp-radius-sm: 6px;
  --fp-transition: 0.25s ease;
  --fp-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --fp-shadow-lift: 0 14px 40px rgba(0, 0, 0, 0.6);
  --fp-maxw: 1240px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fp-bg-dark);
  color: var(--fp-text);
  font-family: var(--fp-font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
img { display: block; }
iframe { border: 0; }
/* Long words / URLs must not push the layout wide */
p, h1, h2, h3, h4, h5, h6, li, a, blockquote, figcaption, td, th { overflow-wrap: break-word; word-wrap: break-word; }
/* Tables scroll inside their own box instead of widening the page */
table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; -webkit-overflow-scrolling: touch; }
a { color: inherit; text-decoration: none; transition: color var(--fp-transition); }
a:hover { color: var(--fp-accent-red); }
h1, h2, h3, h4, h5, h6 { font-family: var(--fp-font-head); font-weight: 700; line-height: 1.15; color: var(--fp-white); margin: 0 0 0.6em; letter-spacing: 0.3px; }
h1 { font-size: var(--fp-h1); }
h2 { font-size: var(--fp-h2); }
h3 { font-size: var(--fp-h3); }
h4 { font-size: var(--fp-h4); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
button { cursor: pointer; font-family: var(--fp-font-ui); }
.fp-container { max-width: var(--fp-maxw); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Reading progress bar */
#fp-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--fp-accent-red); z-index: 9999; transition: width 0.1s linear; }

/* ============================================================
   BADGES / BUTTONS / SHARED
   ============================================================ */
.fp-cat-badge {
  display: inline-block; font-family: var(--fp-font-ui); font-weight: 700;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: #fff; background: var(--fp-accent-red); padding: 4px 12px; border-radius: 999px;
}
.fp-cat-badge.amber { background: var(--fp-accent-amber); color: #1a1200; }
.fp-btn {
  display: inline-block; font-family: var(--fp-font-ui); font-weight: 600; font-size: 0.85rem;
  background: var(--fp-accent-red); color: #fff; padding: 10px 22px; border-radius: var(--fp-radius-sm);
  border: none; transition: background var(--fp-transition), transform var(--fp-transition);
}
.fp-btn:hover { background: var(--fp-accent-red-dark); color: #fff; transform: translateY(-2px); }
.fp-section-head {
  display: flex; align-items: center; justify-content: space-between;
  border-left: 5px solid var(--fp-accent-red); padding-left: 14px; margin: 40px 0 20px;
}
.fp-section-head h2 { margin: 0; font-size: 1.6rem; text-transform: uppercase; }
.fp-section-head .fp-seeall { font-family: var(--fp-font-ui); font-weight: 600; font-size: 0.85rem; color: var(--fp-accent-amber); white-space: nowrap; }
.fp-meta { font-family: var(--fp-font-ui); font-size: 0.8rem; color: var(--fp-text-secondary); }
.fp-readtime::before { content: "\23F1  "; }

/* ============================================================
   TOP BAR
   ============================================================ */
.fp-topbar { background: #05070f; border-bottom: 1px solid var(--fp-border); font-family: var(--fp-font-ui); font-size: 0.78rem; }
.fp-topbar-inner { display: flex; align-items: center; gap: 16px; height: 38px; }
.fp-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.fp-live .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fp-accent-red); animation: fp-flash 1s infinite; }
@keyframes fp-flash { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }
.fp-ticker { flex: 1 1 0%; min-width: 0; overflow: hidden; white-space: nowrap; position: relative; }
.fp-ticker-track { display: inline-block; padding-left: 100%; animation: fp-marquee 32s linear infinite; }
.fp-ticker-track a { color: var(--fp-text-secondary); margin-right: 40px; }
.fp-ticker-track a::before { content: "\26BD"; margin-right: 8px; color: var(--fp-accent-red); }
.fp-ticker:hover .fp-ticker-track { animation-play-state: paused; }
@keyframes fp-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.fp-topbar-right { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.fp-date { color: var(--fp-text-secondary); }
.fp-social { display: inline-flex; gap: 10px; align-items: center; }
.fp-social a { color: var(--fp-text-secondary); display: inline-flex; }
.fp-social a:hover { color: var(--fp-accent-red); }
.fp-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================================
   MAIN HEADER (sticky, blur)
   ============================================================ */
.fp-header { position: sticky; top: 0; z-index: 900; background: rgba(10,14,26,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--fp-border); transition: box-shadow var(--fp-transition), background var(--fp-transition); }
.fp-header.scrolled { box-shadow: var(--fp-shadow); background: rgba(10,14,26,0.95); }
.fp-header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.fp-logo { font-family: var(--fp-font-head); font-weight: 700; font-size: 1.8rem; color: #fff; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.fp-logo .accent { color: var(--fp-accent-red); }
.fp-logo img { max-height: 46px; width: auto; }
.fp-primary-nav { flex: 1; }
.fp-primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; font-family: var(--fp-font-ui); font-weight: 600; font-size: 0.9rem; }
.fp-primary-nav li { position: relative; }
.fp-primary-nav a { display: block; padding: 10px 14px; color: var(--fp-text); text-transform: uppercase; letter-spacing: 0.03em; border-radius: var(--fp-radius-sm); }
.fp-primary-nav a:hover, .fp-primary-nav .current-menu-item > a { color: #fff; background: rgba(232,25,44,0.15); }
.fp-primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--fp-bg-secondary); border: 1px solid var(--fp-border); border-radius: var(--fp-radius-sm); box-shadow: var(--fp-shadow); padding: 6px; display: block; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--fp-transition); z-index: 950; flex-direction: column; gap: 0; }
.fp-primary-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.fp-primary-nav .sub-menu a { text-transform: none; font-size: 0.85rem; }
.fp-search { display: flex; align-items: center; }
.fp-search form { display: flex; align-items: center; background: var(--fp-surface); border: 1px solid var(--fp-border); border-radius: 999px; overflow: hidden; }
.fp-search input[type=search] { background: transparent; border: none; outline: none; color: var(--fp-text); padding: 8px 14px; font-family: var(--fp-font-ui); font-size: 0.85rem; width: 160px; }
.fp-search button { background: var(--fp-accent-red); border: none; color: #fff; padding: 9px 14px; display: flex; }
.fp-search button svg { width: 15px; height: 15px; fill: currentColor; }
.fp-nav-toggle { display: none; background: transparent; border: none; color: #fff; font-size: 1.6rem; padding: 4px 8px; }

/* Secondary nav */
.fp-secondary-nav { background: var(--fp-bg-secondary); border-bottom: 1px solid var(--fp-border); }
.fp-secondary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; font-family: var(--fp-font-ui); font-weight: 600; font-size: 0.8rem; }
.fp-secondary-nav a { display: block; padding: 11px 14px; color: var(--fp-text-secondary); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; border-bottom: 2px solid transparent; }
.fp-secondary-nav a:hover { color: #fff; }
.fp-secondary-nav a.active { color: #fff; border-bottom-color: var(--fp-accent-red); }

/* ============================================================
   CARDS
   ============================================================ */
.fp-card { background: var(--fp-bg-secondary); border: 1px solid var(--fp-border); border-radius: var(--fp-radius); overflow: hidden; transition: transform var(--fp-transition), box-shadow var(--fp-transition); display: flex; flex-direction: column; }
.fp-card:hover { transform: scale(1.02); box-shadow: var(--fp-shadow-lift); }
.fp-card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--fp-surface); }
.fp-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--fp-transition); }
.fp-card:hover .thumb img { transform: scale(1.05); }
.fp-card .thumb .fp-cat-badge { position: absolute; top: 10px; left: 10px; }
.fp-card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fp-card .body h3, .fp-card .body h4 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.fp-card .excerpt { font-size: 0.92rem; color: var(--fp-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* fade-in on scroll */
.fp-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fp-reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   HERO SLIDER (CSS auto-rotate)
   ============================================================ */
.fp-hero { position: relative; margin-top: 24px; border-radius: var(--fp-radius); overflow: hidden; box-shadow: var(--fp-shadow); }
.fp-hero-slides { position: relative; height: clamp(300px, 46vw, 460px); }
.fp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.fp-slide.active { opacity: 1; z-index: 2; }
.fp-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.fp-slide .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,15,0.95) 5%, rgba(5,7,15,0.35) 55%, rgba(5,7,15,0.15) 100%); }
.fp-slide .content { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(16px, 4vw, 34px) clamp(18px, 5vw, 40px); z-index: 3; max-width: 760px; }
.fp-slide .content h2 { font-size: clamp(1.35rem, 5.2vw, 2.4rem); margin: 10px 0; text-transform: uppercase; }
.fp-slide .content h2 a { color: #fff; }
.fp-slide .content .excerpt { color: #e5e7eb; font-size: clamp(0.85rem, 2.6vw, 1rem); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp-slide .content .fp-meta { color: #cbd5e1; margin-bottom: 14px; }
.fp-hero-dots { position: absolute; bottom: 12px; right: 18px; z-index: 5; display: flex; gap: 6px; }
.fp-hero-dots button { width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; padding: 0; transition: background var(--fp-transition); display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.fp-hero-dots button::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; transition: background var(--fp-transition), border-color var(--fp-transition); }
.fp-hero-dots button.active::before { background: var(--fp-accent-red); border-color: var(--fp-accent-red); }

/* ============================================================
   HOME LAYOUT GRID
   ============================================================ */
.fp-home-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 30px; margin-top: 36px; }
/* Grid/flex children must be allowed to shrink below content width (prevents mobile overflow) */
.fp-home-grid > *, .fp-home-main, .fp-single-body > *, .fp-article-main { min-width: 0; }
.fp-list-card, .fp-card, .fp-mini { min-width: 0; }
.fp-list-card .body, .fp-card .body { min-width: 0; }
.fp-list-card { display: grid; grid-template-columns: 40% 1fr; gap: 16px; background: var(--fp-bg-secondary); border: 1px solid var(--fp-border); border-radius: var(--fp-radius); overflow: hidden; margin-bottom: 18px; transition: transform var(--fp-transition), box-shadow var(--fp-transition); }
.fp-list-card:hover { transform: scale(1.02); box-shadow: var(--fp-shadow-lift); }
.fp-list-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--fp-surface); }
.fp-list-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-list-card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.fp-list-card h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.fp-list-card h3 a { color: #fff; }
.fp-list-card .excerpt { color: var(--fp-text-secondary); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp-list-card .fp-meta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sidebar */
.fp-sidebar { display: flex; flex-direction: column; gap: 28px; }
.fp-sidebar.sticky { position: sticky; top: 96px; align-self: start; }
.fp-widget { background: var(--fp-bg-secondary); border: 1px solid var(--fp-border); border-radius: var(--fp-radius); padding: 18px; }
.fp-widget-title { font-family: var(--fp-font-head); text-transform: uppercase; font-size: 1.15rem; color: #fff; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--fp-accent-red); letter-spacing: 0.5px; }
.fp-hot-list { list-style: none; margin: 0; padding: 0; counter-reset: hot; }
.fp-hot-list li { counter-increment: hot; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--fp-border); font-family: var(--fp-font-ui); }
.fp-hot-list li:last-child { border-bottom: none; }
.fp-hot-list li::before { content: counter(hot); font-family: var(--fp-font-head); font-size: 1.4rem; color: var(--fp-accent-red); font-weight: 700; min-width: 22px; }
.fp-hot-list a { font-size: 0.9rem; line-height: 1.3; color: var(--fp-text); font-weight: 600; }
.fp-hot-list a:hover { color: var(--fp-accent-red); }
.fp-mini { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--fp-border); }
.fp-mini:last-child { border-bottom: none; }
.fp-mini .thumb { width: 72px; height: 54px; flex: none; border-radius: var(--fp-radius-sm); overflow: hidden; background: var(--fp-surface); }
.fp-mini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-mini a { font-family: var(--fp-font-ui); font-size: 0.83rem; font-weight: 600; line-height: 1.25; color: var(--fp-text); }
.fp-widget h4.fp-subcat { font-family: var(--fp-font-ui); font-size: 0.8rem; text-transform: uppercase; color: var(--fp-accent-amber); margin: 14px 0 6px; letter-spacing: 0.05em; }
.fp-motw { text-align: center; background: linear-gradient(135deg, var(--fp-surface), var(--fp-bg-secondary)); }
.fp-motw .vs { font-family: var(--fp-font-head); font-size: 2rem; color: var(--fp-accent-amber); margin: 10px 0; }
.fp-motw .teams { font-family: var(--fp-font-ui); font-weight: 700; color: #fff; }

/* Category strips */
.fp-strip-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.fp-strip-row > * { scroll-snap-align: start; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.fp-single { padding: 30px 0 40px; }
.fp-single-header { max-width: 860px; margin: 0 auto 24px; }
.fp-single-header h1 { font-size: var(--fp-h1); text-transform: uppercase; margin: 14px 0 16px; line-height: 1.1; }
.fp-single-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-family: var(--fp-font-ui); font-size: 0.85rem; color: var(--fp-text-secondary); padding: 12px 0; border-top: 1px solid var(--fp-border); border-bottom: 1px solid var(--fp-border); }
.fp-author { display: flex; align-items: center; gap: 8px; }
.fp-author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.fp-share { display: flex; gap: 8px; margin-left: auto; }
.fp-share button, .fp-share a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--fp-surface); border: 1px solid var(--fp-border); color: var(--fp-text-secondary); }
.fp-share button:hover, .fp-share a:hover { background: var(--fp-accent-red); color: #fff; border-color: var(--fp-accent-red); }
.fp-share svg { width: 15px; height: 15px; fill: currentColor; }
.fp-copy-wrap { position: relative; }
.fp-copy-tip { position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: var(--fp-accent-amber); color: #1a1200; font-family: var(--fp-font-ui); font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity var(--fp-transition); white-space: nowrap; }
.fp-copy-tip.show { opacity: 1; }
.fp-featured { margin: 0 0 8px; border-radius: var(--fp-radius); overflow: hidden; }
.fp-featured img { width: 100%; max-height: 520px; object-fit: cover; }
.fp-featured figcaption, .fp-featured .cap { font-family: var(--fp-font-ui); font-size: 0.8rem; color: var(--fp-text-secondary); text-align: center; padding: 8px 0; }

.fp-single-body { display: grid; grid-template-columns: 70% 30%; gap: 34px; align-items: start; }
.fp-page-body { max-width: 860px; margin: 0 auto; }

/* Article content typography + auto-blogger hooks */
.article-content { font-family: var(--fp-font-body); font-size: 18px; line-height: 1.8; color: #e5e7eb; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 { font-size: var(--fp-h2); color: #fff; border-left: 4px solid var(--fp-accent-red); padding-left: 14px; margin: 1.8em 0 0.7em; text-transform: uppercase; scroll-margin-top: 110px; }
.article-content h3 { font-size: var(--fp-h3); color: #fff; margin: 1.5em 0 0.6em; scroll-margin-top: 110px; }
.article-content h4 { font-size: var(--fp-h4); color: var(--fp-accent-amber); }
.article-content p { margin: 0 0 1.15em; }
.article-content a { color: var(--fp-accent-amber); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--fp-accent-red); }
.article-content blockquote { background: var(--fp-surface); border-left: 3px solid var(--fp-accent-red); margin: 1.6em 0; padding: 18px 22px; border-radius: var(--fp-radius-sm); font-style: italic; color: #f3f4f6; }
.article-content ul { list-style: none; padding-left: 0; }
.article-content ul li { position: relative; padding-left: 1.5em; margin-bottom: 0.5em; }
.article-content ul li::before { content: "\203A"; position: absolute; left: 0; color: var(--fp-accent-red); font-weight: 700; font-size: 1.2em; line-height: 1; top: 0.05em; }
.article-content ol { padding-left: 1.4em; }
.article-content ol li { margin-bottom: 0.5em; }
.article-content img { border-radius: var(--fp-radius); margin: 0 auto; }

/* auto-blogger: figure/figcaption */
.article-content figure, .article-content .article-image { margin: 1.8em 0; }
.article-content figure img, .article-image img { width: 100%; border-radius: var(--fp-radius); object-fit: cover; }
.article-content figcaption, .article-image figcaption { font-family: var(--fp-font-ui); font-size: 0.8rem; color: var(--fp-text-secondary); text-align: center; padding: 8px 0 0; }

/* auto-blogger: player ratings (plain-text lines, dark card) */
.article-content .player-ratings { background: var(--fp-bg-secondary); border: 1px solid var(--fp-border); border-left: 4px solid var(--fp-accent-amber); border-radius: var(--fp-radius); padding: 18px 22px; margin: 1.8em 0; font-family: var(--fp-font-ui); font-size: 0.95rem; line-height: 2.1; white-space: pre-line; color: #f3f4f6; }
.article-content .player-ratings strong { color: var(--fp-accent-amber); }

/* auto-blogger: source credit (keep inline styles intact) */
.article-content .source-credit { margin: 1.8em 0 0; }

.fp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.fp-tags a { font-family: var(--fp-font-ui); font-size: 0.78rem; background: var(--fp-surface); border: 1px solid var(--fp-border); color: var(--fp-text-secondary); padding: 5px 12px; border-radius: 999px; }
.fp-tags a:hover { background: var(--fp-accent-red); color: #fff; border-color: var(--fp-accent-red); }

/* TOC sidebar */
.fp-toc { font-family: var(--fp-font-ui); }
.fp-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.fp-toc li { counter-increment: toc; margin: 0; }
.fp-toc li.lvl-3 { padding-left: 16px; }
.fp-toc a { display: block; padding: 6px 0; font-size: 0.85rem; color: var(--fp-text-secondary); border-bottom: 1px solid var(--fp-border); }
.fp-toc a:hover, .fp-toc a.active { color: var(--fp-accent-red); }
.fp-ad { background: var(--fp-surface); border: 1px dashed var(--fp-border); border-radius: var(--fp-radius); min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--fp-text-secondary); font-family: var(--fp-font-ui); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }

.fp-related { margin-top: 44px; }
.fp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Comments */
.fp-comments { margin-top: 44px; background: var(--fp-bg-secondary); border: 1px solid var(--fp-border); border-radius: var(--fp-radius); padding: 24px; }
.fp-comments .comment-list { list-style: none; padding: 0; margin: 0; }
.fp-comments .comment-list ul.children { list-style: none; padding-left: 24px; }
.fp-comments li.comment { border-bottom: 1px solid var(--fp-border); padding: 14px 0; }
.fp-comments .comment-author { font-family: var(--fp-font-ui); font-weight: 700; color: #fff; }
.fp-comments .comment-meta { font-size: 0.75rem; color: var(--fp-text-secondary); font-family: var(--fp-font-ui); }
.fp-comments input[type=text], .fp-comments input[type=email], .fp-comments input[type=url], .fp-comments textarea { width: 100%; background: var(--fp-surface); border: 1px solid var(--fp-border); border-radius: var(--fp-radius-sm); color: var(--fp-text); padding: 10px 12px; font-family: var(--fp-font-ui); margin-bottom: 12px; }
.fp-comments .submit, .fp-comments input[type=submit] { background: var(--fp-accent-red); color: #fff; border: none; padding: 11px 24px; border-radius: var(--fp-radius-sm); font-family: var(--fp-font-ui); font-weight: 600; cursor: pointer; }

/* ============================================================
   ARCHIVE / SEARCH / 404
   ============================================================ */
.fp-archive-hero { position: relative; background: linear-gradient(135deg, var(--fp-bg-secondary), var(--fp-surface)); border-left: 6px solid var(--fp-accent-red); border-radius: var(--fp-radius); padding: 34px 34px; margin: 30px 0 26px; }
.fp-archive-hero h1 { font-size: 2.6rem; text-transform: uppercase; margin: 0 0 6px; }
.fp-archive-hero .count { font-family: var(--fp-font-ui); color: var(--fp-text-secondary); font-size: 0.9rem; }
.fp-archive-hero .desc { color: var(--fp-text-secondary); margin-top: 8px; max-width: 720px; }
.fp-grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.fp-search-highlight { background: rgba(245,158,11,0.28); color: #fff; border-radius: 3px; padding: 0 2px; }

.fp-pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0 50px; font-family: var(--fp-font-ui); }
.fp-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; background: var(--fp-bg-secondary); border: 1px solid var(--fp-border); border-radius: var(--fp-radius-sm); color: var(--fp-text); font-weight: 600; }
.fp-pagination .page-numbers.current, .fp-pagination .page-numbers:hover { background: var(--fp-accent-red); color: #fff; border-color: var(--fp-accent-red); }

.fp-404 { text-align: center; padding: 80px 0; }
.fp-404 .code { font-family: var(--fp-font-head); font-size: 8rem; color: var(--fp-accent-red); line-height: 1; }
.fp-404 h1 { font-size: 3rem; text-transform: uppercase; margin: 6px 0 14px; }
.fp-404 p { color: var(--fp-text-secondary); font-family: var(--fp-font-ui); max-width: 520px; margin: 0 auto 26px; }

/* ============================================================
   FOOTER
   ============================================================ */
.fp-footer { background: var(--fp-bg-dark); border-top: 3px solid var(--fp-accent-red); margin-top: 60px; }
.fp-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 34px; padding: 46px 0 36px; }
.fp-footer h4 { font-family: var(--fp-font-head); text-transform: uppercase; font-size: 1.1rem; color: #fff; margin: 0 0 16px; }
.fp-footer .tagline { color: var(--fp-text-secondary); font-family: var(--fp-font-ui); font-size: 0.9rem; margin: 12px 0 16px; }
.fp-footer ul { list-style: none; padding: 0; margin: 0; font-family: var(--fp-font-ui); }
.fp-footer li { padding: 6px 0; }
.fp-footer a { color: var(--fp-text-secondary); font-size: 0.9rem; }
.fp-footer a:hover { color: var(--fp-accent-red); }
.fp-footer .fp-logo { font-size: 1.5rem; }
.fp-count-badge { display: inline-block; min-width: 22px; text-align: center; background: var(--fp-surface); color: var(--fp-accent-amber); font-family: var(--fp-font-ui); font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.fp-newsletter input { width: 100%; background: var(--fp-surface); border: 1px solid var(--fp-border); border-radius: var(--fp-radius-sm); color: var(--fp-text); padding: 10px 12px; font-family: var(--fp-font-ui); margin-bottom: 10px; }
.fp-newsletter .fp-btn { width: 100%; }
.fp-footer .fp-social svg { width: 18px; height: 18px; }
.fp-footer-bottom { border-top: 1px solid var(--fp-border); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--fp-font-ui); font-size: 0.82rem; color: var(--fp-text-secondary); flex-wrap: wrap; }
.fp-footer-bottom nav a { margin-left: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .fp-home-grid { grid-template-columns: 1fr; }
  .fp-sidebar.sticky { position: static; }
  .fp-single-body { grid-template-columns: 1fr; }
  .fp-grid-3, .fp-grid-cards { grid-template-columns: repeat(2, 1fr); }
  .fp-footer-top { grid-template-columns: repeat(2, 1fr); }
  :root { --fp-h1: 2.1rem; --fp-h2: 1.6rem; }
}
/* ---- Phones & small tablets: collapsible header + single-column layout ---- */
@media (max-width: 782px) {
  .fp-container { padding: 0 16px; }

  /* Header becomes a wrapping flex: logo + toggle on row 1, search full-width row 2, nav full-width collapsible row 3 */
  .fp-header-inner { flex-wrap: wrap; height: auto; min-height: 60px; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
  .fp-logo { font-size: clamp(1.25rem, 5vw, 1.6rem); flex: 1 1 auto; min-width: 0; }
  .fp-logo img { max-height: 38px; }
  .fp-nav-toggle { display: block; order: 2; flex: 0 0 auto; min-width: 44px; min-height: 44px; font-size: 1.7rem; line-height: 1; }

  .fp-search { order: 3; flex: 1 1 100%; }
  .fp-search form { width: 100%; }
  .fp-search input[type=search] { flex: 1 1 auto; width: auto; min-width: 0; font-size: 16px; }
  .fp-search button { min-width: 44px; min-height: 40px; }

  /* Nav in normal flow, full width, collapses via max-height (JS toggles .open) */
  .fp-primary-nav { order: 4; flex: 1 1 100%; max-height: 0; overflow: hidden; transition: max-height var(--fp-transition); }
  .fp-primary-nav.open { max-height: 75vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .fp-primary-nav ul { flex-direction: column; gap: 2px; padding: 6px 0 4px; }
  .fp-primary-nav a { padding: 13px 12px; border-radius: var(--fp-radius-sm); }
  .fp-primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; min-width: 0; background: rgba(255,255,255,0.04); padding: 2px 0 2px 10px; }

  /* Secondary category bar scrolls horizontally, never widens page */
  .fp-secondary-nav ul { -webkit-overflow-scrolling: touch; }
  .fp-secondary-nav a { padding: 12px 12px; }

  /* Top bar ticker stays clipped; hide date to save room */
  .fp-topbar-right .fp-date { display: none; }
  .fp-topbar-inner { gap: 12px; }

  /* Hero */
  .fp-hero { margin-top: 16px; }

  /* Home + single stack to single column */
  .fp-home-grid { grid-template-columns: 1fr; gap: 24px; }
  .fp-sidebar.sticky { position: static; top: auto; }
  .fp-single-body { grid-template-columns: 1fr; gap: 24px; }
  .fp-list-card { grid-template-columns: 1fr; }
  .fp-list-card .thumb { aspect-ratio: 16/9; }
  .fp-grid-3, .fp-grid-cards { grid-template-columns: 1fr; }

  /* Footer collapses to a single column, inputs full width */
  .fp-footer-top { grid-template-columns: 1fr; gap: 26px; }
  .fp-footer-bottom { justify-content: center; text-align: center; }
  .fp-footer-bottom nav a { margin: 0 8px; }
  .fp-newsletter input { font-size: 16px; }

  /* Single post readability + wrapping controls */
  .fp-single { padding: 20px 0 30px; }
  .fp-single-body { margin-top: 8px; }
  .fp-single-meta { gap: 10px 14px; }
  .fp-share { margin-left: 0; }
  .fp-featured img { max-height: 320px; }
  .article-content { font-size: 17px; }
  .article-content .player-ratings { padding: 14px 16px; }
  .fp-comments { padding: 18px; }

  /* Category strips: comfy card width on phones */
  .fp-strip-row { grid-auto-columns: 78%; gap: 14px; }

  /* Comfortable tap targets */
  .fp-share a, .fp-share button { width: 40px; height: 40px; }
  .fp-secondary-nav a, .fp-primary-nav a { min-height: 40px; display: flex; align-items: center; }

  :root { --fp-h1: 1.9rem; --fp-h2: 1.5rem; --fp-h3: 1.3rem; }
}

/* ---- Narrow phones (<=430px): final tuning ---- */
@media (max-width: 430px) {
  .fp-container { padding: 0 14px; }
  .fp-live { font-size: 0.72rem; }
  .fp-archive-hero { padding: 22px 18px; }
  .fp-archive-hero h1 { font-size: 1.8rem; }
  .fp-section-head h2 { font-size: 1.3rem; }
  .fp-slide .content { padding-bottom: 18px; }
  .fp-strip-row { grid-auto-columns: 85%; }
  .fp-404 .code { font-size: 5rem; }
  .fp-404 h1 { font-size: 2rem; }
  .fp-single-header h1 { font-size: 1.7rem; }
  .fp-hot-list li::before { font-size: 1.2rem; }
}
