:root {
    --bg: #0d1117;
    --bg2: #161b22;
    --bg3: #1c2128;
    --bg4: #21262d;
    --text: #e6edf3;
    --text2: #8b949e;
    --text3: #6e7681;
    --red: #e63946;
    --red2: #b5000c;
    --red-hover: #ff4757;
    --border: rgba(255, 255, 255, 0.08);
    --border2: rgba(255, 255, 255, 0.12);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.4);
    --transition: all 0.2s ease;
    --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    --container-max: 1400px;
    --content-max: 900px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
}

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

/* ============================================
   Layout
   ============================================ */
.wrap {
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg);
}

@media (min-width: 768px) {
    .wrap {
        max-width: 90%;
    }
}

@media (min-width: 1200px) {
    .wrap {
        max-width: 1200px;
    }
}

/* ============================================
   Topbar
   ============================================ */
.topbar {
    background: var(--bg);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(13, 17, 23, 0.95);
}

.logo {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .logo {
        font-size: 22px;
    }
}

.logo em {
    color: var(--red);
    font-style: normal;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 30px;
    padding: 7px 16px;
    gap: 8px;
    transition: var(--transition);
}

.search-box:focus-within {
    background: var(--bg3);
    border: 1px solid var(--red);
    padding: 6px 15px;
}

.search-box input {
    background: none;
    border: none;
    color: #fff;
    font-size: 13px;
    width: 130px;
    outline: none;
}

@media (min-width: 768px) {
    .search-box input {
        width: 200px;
        font-size: 14px;
    }
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.back {
    color: var(--text2);
    font-size: 22px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.back:hover {
    color: var(--red);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    background: var(--bg2);
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    padding: 0 12px;
}

.nav::-webkit-scrollbar {
    height: 3px;
}

.nav::-webkit-scrollbar-track {
    background: var(--bg);
}

.nav::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 3px;
}

.nav a {
    color: var(--text2);
    font-size: 13px;
    padding: 12px 18px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

@media (min-width: 768px) {
    .nav a {
        font-size: 14px;
        padding: 14px 22px;
    }
}

.nav a.on,
.nav a:hover {
    color: #fff;
    border-bottom-color: var(--red);
}

/* ============================================
   Ticker
   ============================================ */
.ticker-wrap {
    background: var(--red);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-lbl {
    background: var(--red2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 14px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.ticker-scroll {
    overflow: hidden;
    flex: 1;
}

.ticker-inner {
    display: flex;
    white-space: nowrap;
    animation: tick 35s linear infinite;
}

.ticker-inner span {
    color: #fff;
    font-size: 13px;
    padding: 8px 30px 8px 0;
    font-weight: 500;
}

@keyframes tick {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   MODERN SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 16px 0;
    background: var(--bg2);
    box-shadow: var(--shadow);
}

.hero-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.slide-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg);
}

@media (min-width: 640px) {
    .slide-image { height: 380px; }
}
@media (min-width: 1024px) {
    .slide-image { height: 480px; }
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-slide:hover .slide-image img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        transparent 100%);
    padding: 30px 20px 20px;
}

@media (min-width: 640px) {
    .slide-overlay { padding: 50px 30px 30px; }
}

.slide-category {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.slide-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 640px) {
    .slide-title { font-size: 24px; margin-bottom: 12px; }
}
@media (min-width: 1024px) {
    .slide-title { font-size: 32px; max-width: 80%; }
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.slider-nav-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
    z-index: 20;
}

.slider-btn-nav {
    pointer-events: all;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn-nav:hover {
    background: var(--red);
    transform: scale(1.1);
}

.slider-btn-nav i {
    font-size: 24px;
}

.slider-dots-container {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--red);
    width: 28px;
    border-radius: 5px;
}

.slide-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: #fff;
    z-index: 20;
    font-weight: 500;
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--red);
    width: 0%;
    z-index: 25;
}

@media (max-width: 480px) {
    .slider-btn-nav { width: 36px; height: 36px; }
    .slider-btn-nav i { font-size: 18px; }
    .slide-title { font-size: 16px; }
    .slide-meta { font-size: 10px; gap: 12px; }
}

/* ============================================
   Section Styles
   ============================================ */
.sec {
    padding: 20px 0;
}

.sec-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.sec-hd h2 {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .sec-hd h2 { font-size: 20px; }
}

.sec-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.sec-more {
    font-size: 12px;
    color: var(--red);
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
}

.sec-more:hover {
    text-decoration: underline;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    height: 140px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.12);
    font-size: 32px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-body {
    padding: 14px;
}

.card-cat {
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 8px 0 10px;
}

@media (min-width: 768px) {
    .card-title { font-size: 14px; }
}

.card-ft {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text3);
}

/* Stats */
.stat-strip {
    background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--red);
}

@media (min-width: 768px) {
    .stat-num { font-size: 32px; }
}

.stat-lbl {
    font-size: 11px;
    color: var(--text3);
    margin-top: 4px;
}

/* List Section */
.list-sec {
    background: var(--bg2);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--bg3);
}

.list-num {
    font-size: 22px;
    font-weight: 800;
    color: rgba(230, 57, 70, 0.35);
    width: 32px;
    flex-shrink: 0;
    line-height: 1.2;
}

.list-cat {
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

.list-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.list-meta {
    font-size: 11px;
    color: var(--text3);
    margin-top: 6px;
    display: flex;
    gap: 12px;
}

/* List wrap for category and search */
.list-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.list-thumb {
    width: 80px;
    height: 56px;
    border-radius: 5px;
    background: var(--bg);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
    font-size: 22px;
}

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

/* Category Header */
.cat-hd {
    padding: 16px 12px 12px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--red);
    display: inline-block;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .cat-hd {
        font-size: 24px;
        padding: 20px 0 12px;
    }
}

.pg-hd {
    padding: 14px 12px 10px;
    font-size: 16px;
    font-weight: 700;
}

/* Pagination */
.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0;
}

.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: var(--bg2);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pager a.on,
.pager a:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* ============================================
   Article Page (News)
   ============================================ */
.art-hero {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .art-hero { max-height: 500px; }
}

.art-hero-placeholder {
    height: 200px;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.08);
    font-size: 60px;
}

.art-body {
    padding: 20px;
    max-width: var(--content-max);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .art-body { padding: 30px; }
}

.art-cat {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.art-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .art-title { font-size: 32px; }
}
@media (min-width: 1200px) {
    .art-title { font-size: 38px; }
}

.art-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.art-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .art-content { font-size: 16px; }
}

.art-content p {
    margin-bottom: 18px;
}

.art-content h2, .art-content h3 {
    margin: 28px 0 14px;
    font-weight: 700;
}

.art-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* ============================================
   RESPONSIVE VIDEO CONTAINER (YENİ ƏLAVƏ)
   ============================================ */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 12px;
    background: #000;
}

.video-container iframe,
.video-container video,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 12px;
}

.video-container.tiktok iframe {
    max-width: 100%;
}

.embed-link {
    margin: 20px 0;
    text-align: center;
}

.embed-link a {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.embed-link a:hover {
    background: var(--red-hover);
    transform: scale(1.02);
}

/* Köhnə video-wrap class-ı da dəstəklənsin */
.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 12px;
    background: #000;
}

.video-wrap iframe,
.video-wrap object,
.video-wrap embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* ============================================
   RESPONSIVE IMAGES (Şəkillər üçün)
   ============================================ */
.art-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.share-row {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--bg3);
    color: var(--red);
    border-color: var(--red);
}

/* Related News */
.rel-hd {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 16px;
}

@media (min-width: 768px) {
    .rel-hd { font-size: 20px; }
}

.rel-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .rel-list { grid-template-columns: repeat(2, 1fr); }
}

.rel-item {
    background: var(--bg2);
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.rel-item:hover {
    background: var(--bg3);
    transform: translateX(4px);
}

.rel-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    background: var(--bg);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
    font-size: 24px;
}

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

.rel-cat {
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 4px;
}

.rel-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.rel-time {
    font-size: 11px;
    color: var(--text3);
    margin-top: 6px;
}

/* Search Page */
.search-form {
    padding: 16px;
    display: flex;
    gap: 12px;
}

.search-form input {
    flex: 1;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 30px;
    outline: none;
}

.search-form input:focus {
    border-color: var(--red);
}

.search-form button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.res-hd {
    padding: 0 16px 16px;
    font-size: 13px;
    color: var(--text3);
}

/* Bottom Navigation */
.ftab {
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

@media (min-width: 768px) {
    .ftab { display: none; }
}

.ftab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px 12px;
    color: var(--text3);
    font-size: 10px;
    cursor: pointer;
    border-top: 2px solid transparent;
}

.ftab-item.on,
.ftab-item.active {
    color: var(--red);
    border-top-color: var(--red);
}

.ftab-item i {
    font-size: 22px;
}

/* Footer */
.foot {
    background: var(--bg);
    padding: 24px 20px 30px;
    border-top: 1px solid var(--border);
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .foot { margin-bottom: 0; }
}

.foot-logo {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.foot-logo em {
    color: var(--red);
    font-style: normal;
}

.foot-desc {
    color: var(--text3);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 400px;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.foot-links a {
    color: var(--text3);
    font-size: 12px;
}

.foot-links a:hover {
    color: var(--red);
}

.foot-copy {
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--text3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

/* Utility */
.text-center { text-align: center; }
.p-3 { padding: 16px; }
.mt-3 { margin-top: 16px; }
.mb-3 { margin-bottom: 16px; }

/* ============================================
   MOBİL DÜZƏLİŞLƏR (Şəkil və video üçün)
   ============================================ */
@media (max-width: 640px) {
    .art-hero {
        max-height: 250px;
    }
    
    .card-img {
        height: 110px;
    }
    
    .slide-image {
        height: 200px;
    }
    
    .rel-thumb {
        width: 65px;
        height: 50px;
    }
    
    .list-thumb {
        width: 65px;
        height: 48px;
    }
    
    .video-container {
        margin: 12px 0;
        border-radius: 8px;
    }
}