﻿:root {
  --red: #cc0000;
  --red-dark: #990000;
  --red-light: #e63333;
  --black: #0d0d0d;
  --gray-900: #1a1a1a;
  --gray-800: #2a2a2a;
  --gray-700: #3a3a3a;
  --gray-500: #6b6b6b;
  --gray-300: #c4c4c4;
  --gray-100: #f4f4f4;
  --white: #fff;
  --font-main: 'Inter', sans-serif;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, .15);
  --transition: .25s ease
}

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

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

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition)
}

a:hover {
  color: var(--red)
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

ul {
  list-style: none
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px
}

/* Breaking news */
.breaking-bar {
  background: var(--red);
  color: var(--white);
  padding: 8px 0;
  font-size: .8rem;
  overflow: hidden
}

.breaking-bar .inner {
  display: flex;
  align-items: center;
  gap: 16px
}

.breaking-label {
  background: var(--black);
  color: var(--white);
  padding: 2px 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  border-radius: 2px
}

.breaking-ticker {
  overflow: hidden;
  white-space: nowrap
}

.breaking-ticker-inner {
  display: inline-flex;
  gap: 40px;
  animation: ticker 30s linear infinite
}

@keyframes ticker {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* Header */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px
}

.site-logo img {
  height: 48px;
  width: auto
}

.site-logo-text {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px
}

.site-logo-text span {
  color: var(--red)
}

nav.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center
}

nav.main-nav ul li a {
  color: var(--gray-300);
  font-size: .875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all var(--transition)
}

nav.main-nav ul li a:hover,
nav.main-nav ul li a.active {
  color: var(--white);
  background: var(--red)
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.btn-search {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-300);
  padding: 8px;
  border-radius: var(--radius);
  transition: color var(--transition)
}

.btn-search:hover {
  color: var(--red)
}

.btn-search svg {
  width: 20px;
  height: 20px
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all
}

.search-box {
  width: 100%;
  max-width: 640px;
  padding: 0 16px
}

.search-box form {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden
}

.search-box input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 1.1rem;
  outline: none;
  font-family: var(--font-main)
}

.search-box button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition)
}

.search-box button:hover {
  background: var(--red-dark)
}

.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition)
}

/* Hero grid */
.hero-section {
  padding: 32px 0 24px
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px
}

.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black)
}

.hero-main .card-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  opacity: .85;
  transition: opacity .4s
}

.hero-main:hover .card-img {
  opacity: 1
}

.hero-main .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, transparent 100%)
}

.hero-main .cat-badge {
  margin-bottom: 8px
}

.hero-main .card-title {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px
}

.hero-main .card-lead {
  color: var(--gray-300);
  font-size: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.hero-side .card,
.hero-bottom .card {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--black)
}

.hero-side .card-img,
.hero-bottom .card-img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  opacity: .85;
  transition: opacity .4s
}

.hero-side .card:hover .card-img,
.hero-bottom .card:hover .card-img {
  opacity: 1
}

.hero-side .card-body,
.hero-bottom .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, transparent 100%)
}

.hero-side .card-title,
.hero-bottom .card-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3
}

.hero-grid-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hero-bottom {
  display: inline-flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 16px;
}

/* Category badge */
.cat-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 2px
}

/* Category section */
.category-section {
  padding: 32px 0
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--red);
  padding-bottom: 12px
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px
}

.section-link {
  margin-left: auto;
  font-size: .8rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px
}

.section-link:hover {
  text-decoration: underline
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px
}

.cards-grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.card-news {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s
}

.card-news:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15)
}

.card-news .img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--gray-100)
}

.card-news .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s
}

.card-news:hover .img-wrap img {
  transform: scale(1.05)
}

.card-news .card-body {
  padding: 14px
}

.card-news .card-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.card-news .card-meta {
  font-size: .75rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px
}

/* Horizontal card */
.card-h {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100)
}

.card-h:last-child {
  border-bottom: none
}

.card-h .img-wrap {
  flex-shrink: 0;
  width: 96px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100)
}

.card-h .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.card-h .card-body {
  flex: 1;
  min-width: 0
}

.card-h .card-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.card-h .card-meta {
  font-size: .72rem;
  color: var(--gray-500);
  margin-top: 6px
}

/* Sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 32px 0
}

.sidebar-widget {
  margin-bottom: 28px
}

.widget-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-left: 4px solid var(--red);
  padding-left: 10px;
  margin-bottom: 14px
}

/* Popular list */
.popular-list li {
  counter-increment: popular;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.popular-list li::before {
  content: counter(popular);
  counter-reset: none;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--red);
  min-width: 24px;
  line-height: 1
}

.popular-list {
  counter-reset: popular
}

.popular-list a {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

/* Videos section */
.videos-section {
  background: var(--gray-900);
  padding: 40px 0;
  margin: 32px 0
}

.videos-section .section-title {
  color: var(--white)
}

.videos-section .section-header {
  border-bottom-color: var(--red)
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.video-card {
  background: var(--gray-800);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s
}

.video-card:hover {
  transform: translateY(-4px)
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .4);
  transition: background .25s
}

.play-btn::after {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid rgba(255, 255, 255, .8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 60%;
  background-position: 55% center;
  background-repeat: no-repeat;
  transition: transform .25s
}

.video-card:hover .play-btn {
  background: rgba(0, 0, 0, .2)
}

.video-card:hover .play-btn::after {
  transform: scale(1.1)
}

.video-info {
  padding: 12px
}

.video-title {
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.video-duration {
  font-size: .75rem;
  color: var(--gray-300);
  margin-top: 4px
}

/* Ad blocks */
.ad-block {
  text-align: center;
  padding: 12px;
  background: var(--gray-100);
  border-radius: var(--radius);
  margin: 24px 0
}

.ad-block img {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 2px
}

.ad-label {
  font-size: .65rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px
}

/* Article page */
.article-header {
  padding: 32px 0 24px
}

.article-cat-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap
}

.article-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 12px
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--gray-700);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.5
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 24px;
  flex-wrap: wrap
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-300)
}

.author-name {
  font-size: .88rem;
  font-weight: 700
}

.article-date,
.article-readtime,
.article-views {
  font-size: .8rem;
  color: var(--gray-500)
}

.social-share {
  display: flex;
  gap: 8px;
  margin-left: auto
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: opacity .2s
}

.share-btn:hover {
  opacity: .85;
  color: var(--white)
}

.share-fb {
  background: #1877f2
}

.share-tw {
  background: #000
}

.share-wa {
  background: #25d366
}

/* Featured image */
.featured-img-wrap {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden
}

.featured-img-wrap img {
  width: 100%;
  max-height: 520px;
  object-fit: cover
}

.img-caption {
  font-size: .78rem;
  color: var(--gray-500);
  padding: 8px 0;
  text-align: center;
  font-style: italic
}

.img-credit {
  font-size: .72rem;
  color: var(--gray-500);
  text-align: right
}

/* Article content */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-900)
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--black)
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 22px 0 10px
}

.article-content p {
  margin-bottom: 18px
}

.article-content a {
  color: var(--red);
  text-decoration: underline
}

.article-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--gray-100);
  font-style: italic;
  font-size: 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 18px
}

.article-content li {
  margin-bottom: 6px
}

.article-content img {
  border-radius: var(--radius);
  margin: 20px 0
}

.article-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius);
  margin: 20px 0
}

.article-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gray-700);
  border-left: 4px solid var(--red);
  padding-left: 16px;
  margin-bottom: 24px;
  line-height: 1.7;
  font-style: italic
}

/* Tags */
.article-tags {
  margin: 28px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.tag-link {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  transition: all .2s
}

.tag-link:hover {
  background: var(--red);
  color: var(--white)
}

/* Related articles */
.related-section {
  padding: 32px 0;
  border-top: 3px solid var(--red);
  margin-top: 32px
}

/* Category listing */
.category-hero {
  background: var(--gray-900);
  padding: 40px 0 32px;
  margin-bottom: 32px;
  border-bottom: 4px solid var(--red)
}

.category-hero h1 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 900
}

.category-hero p {
  color: var(--gray-300);
  margin-top: 6px
}

/* Search results */
.search-results-header {
  padding: 28px 0 16px;
  border-bottom: 2px solid var(--gray-100)
}

.search-results-header h1 {
  font-size: 1.6rem;
  font-weight: 800
}

.search-count {
  color: var(--gray-500);
  font-size: .9rem;
  margin-top: 4px
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  padding: 32px 0
}

.pagination ul {
  display: flex;
  gap: 6px
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--gray-100);
  font-size: .875rem;
  font-weight: 600;
  transition: all .2s;
  color: var(--gray-900)
}

.pagination a:hover,
.pagination a.active {
  background: var(--red);
  color: var(--white)
}

/* Newsletter */
.newsletter-widget {
  background: linear-gradient(135deg, var(--black), var(--gray-800));
  padding: 24px;
  border-radius: var(--radius);
  border-top: 3px solid var(--red)
}

.newsletter-widget h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px
}

.newsletter-widget p {
  color: var(--gray-300);
  font-size: .82rem;
  margin-bottom: 14px
}

.newsletter-form input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 8px;
  font-family: var(--font-main)
}

.newsletter-form button {
  width: 100%;
  padding: 10px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background .2s
}

.newsletter-form button:hover {
  background: var(--red-dark)
}

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 48px 0 0;
  margin-top: 40px
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-700)
}

.footer-brand .logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white)
}

.footer-brand .logo-text span {
  color: var(--red)
}

.footer-brand p {
  font-size: .85rem;
  margin-top: 10px;
  line-height: 1.7
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background .2s
}

.footer-social a:hover {
  background: var(--red);
  color: var(--white)
}

.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px
}

.footer-col ul li {
  margin-bottom: 8px
}

.footer-col ul li a {
  font-size: .85rem;
  color: var(--gray-300);
  transition: color .2s
}

.footer-col ul li a:hover {
  color: var(--red)
}

.footer-bottom {
  text-align: center;
  padding: 16px 0;
  font-size: .8rem;
  color: var(--gray-500)
}

/* Lazy image */
.lazy {
  opacity: 0;
  transition: opacity .5s
}

.lazy.loaded {
  opacity: 1
}

/* Flash messages */
.flash-messages {
  padding: 8px 0
}

.flash {
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: .875rem;
  font-weight: 600
}

.flash-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745
}

.flash-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545
}

.flash-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8
}

/* Responsive */
@media(max-width:1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:768px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    border-top: 1px solid var(--gray-700);
    padding: 12px 0
  }

  nav.main-nav.open {
    display: block
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 0
  }

  nav.main-nav ul li a {
    display: block;
    padding: 12px 20px;
    border-radius: 0
  }

  .hamburger {
    display: flex
  }

  .hero-grid {
    grid-template-columns: 1fr
  }

  .hero-main .card-img {
    height: 280px
  }

  .hero-side {
    flex-direction: row
  }

  .hero-side .card-img {
    height: 160px
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .content-with-sidebar {
    grid-template-columns: 1fr
  }

  .article-title {
    font-size: 1.5rem
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .social-share {
    margin-left: 0;
    width: 100%
  }
}

@media(max-width:480px) {
  .cards-grid {
    grid-template-columns: 1fr
  }

  .videos-grid {
    grid-template-columns: 1fr
  }

  .hero-side {
    flex-direction: column
  }

  .footer-grid {
    grid-template-columns: 1fr
  }
}