/*
Theme Name: PulseGrid Pro
Theme URI: https://wptheme.site/
Description: Tema moderno de WordPress, slider interactivo y diseño responsivo. Ideal para sitios de descarga de juegos.
Version: 2.0
Author: Jach
Author URI: https://wptheme.site/
Tags: blog, news, grid-layout, responsive, custom-menu, featured-images, threaded-comments, translation-ready, custom-colors
Text Domain: pulsegrid
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 8.2
*/

/* CSS Variables for Light/Dark Mode */
:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-primary: #333;
    --text-secondary: #666;
    --header-bg: #2c3e50;
    --header-text: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --border-color: #e0e0e0;
    --hover-bg: rgba(255, 255, 255, 0.1);
    --link-color: #3498db;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --header-bg: #1a1a1a;
    --header-text: #e0e0e0;
    --card-bg: #2d2d2d;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --border-color: #404040;
    --hover-bg: rgba(255, 255, 255, 0.05);
    --link-color: #e74c3c;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Link Styles */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

a:focus {
    outline: none;
}

/* Content Links - with underline on hover */
.post-content-centered a,
.single-post-content a,
.sidebar-widget a,
article a,
.widget a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.3s ease;
}

.post-content-centered a:hover,
.single-post-content a:hover,
.sidebar-widget a:hover,
article a:hover,
.widget a:hover {
    text-decoration-color: var(--link-color);
    opacity: 1;
}

/* TMDB Badges Styles */
.post-thumbnail-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.pulsegrid-tmdb-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.tmdb-badges-top {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.tmdb-badges-bottom {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: wrap;
}

.tmdb-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.tmdb-badge-quality {
    background: #e50914;
    color: #ffffff;
}

.tmdb-badge-rating {
    background: rgba(0, 0, 0, 0.85);
    color: #ffd700;
    backdrop-filter: blur(4px);
}

.tmdb-badge-language-unified {
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    font-size: 9px;
}

.tmdb-badge-language-unified .language-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.tmdb-badge-language-unified .language-flag {
    width: 16px;
    height: 11px;
    object-fit: cover;
    border-radius: 1px;
    flex-shrink: 0;
}

.tmdb-badge-language-unified .language-abbr {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Responsive badges */
@media (max-width: 768px) {
    .tmdb-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .tmdb-badges-top {
        gap: 4px;
    }
    
    .tmdb-badges-bottom {
        gap: 0;
    }
    
    .tmdb-badge-language-unified {
        padding: 2px 5px;
        gap: 3px;
        font-size: 8px;
    }
    
    .tmdb-badge-language-unified .language-item {
        gap: 1px;
    }
    
    .tmdb-badge-language-unified .language-flag {
        width: 14px;
        height: 10px;
    }
    
    .tmdb-badge-language-unified .language-abbr {
        font-size: 7px;
    }
}

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 10px 0;
    transition: background-color 0.3s ease;
    border-bottom: 3px solid var(--border-color);
    box-shadow: 0 2px 10px var(--card-shadow);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 0 0 auto;
}

.mobile-menu-checkbox {
    display: none !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-logo a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: white;
}

@media (min-width: 769px) {
    .site-title a {
        color: white;
    }
}

.site-title a:hover {
    color: #3498db;
}

[data-theme="dark"] .site-title a:hover {
    color: #e74c3c;
}

/* Navigation */
.main-navigation {
    background-color: transparent;
    padding: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
    list-style: none !important;
}

.nav-menu ul li {
    list-style: none !important;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 0.95rem;
}

.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #3498db;
}

[data-theme="dark"] .nav-menu li a:hover {
    color: #e74c3c;
}

.nav-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none !important;
}

[data-theme="dark"] .nav-menu ul {
    background-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nav-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu ul li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

[data-theme="dark"] .nav-menu ul li a {
    color: #e0e0e0;
}

.nav-menu ul li a:hover {
    background-color: #3498db;
    color: white;
}

[data-theme="dark"] .nav-menu ul li a:hover {
    background-color: #e74c3c;
    color: white;
}

.nav-menu ul ul {
    top: 0;
    left: 100%;
    margin-left: 0;
    transform: translateX(-10px);
}

[data-theme="dark"] .nav-menu ul ul {
    background-color: #2d2d2d;
}

.nav-menu ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-menu ul li.menu-item-has-children > a::after {
    content: '';
    display: none;
}

.nav-menu > li.menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 8px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .hamburger-line {
        background-color: white;
    }
}

@media (min-width: 769px) {
    .hamburger-line {
        background-color: white;
    }
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Header Actions Container */
.header-actions {
    display: flex;
}

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
    position: relative;
    background: transparent;
    border: none;
    border-radius: 50px;
    width: 40px;
    height: 50px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0;
    margin-right: -5px;
}

.mobile-search-toggle svg {
    width: 22px;
    height: 22px;
    color: white;
}

.mobile-search-toggle:hover {
    transform: scale(1.15);
}

.mobile-search-toggle:active {
    transform: scale(0.95);
}

/* Mobile Search Bar */
.mobile-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    z-index: 9998;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, box-shadow 0.3s ease, top 0s;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.mobile-search-bar.active {
    max-height: 80px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Ajuste cuando el usuario está logueado (admin bar visible) */
.admin-bar .mobile-search-bar {
    top: 46px;
}

@media screen and (min-width: 783px) {
    .admin-bar .mobile-search-bar {
        top: 32px;
    }
}

.mobile-search-form {
    display: flex;
    align-items: center;
    padding: 20px 0;
    gap: 10px;
}

.mobile-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: var(--header-text);
    padding: 10px 0;
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-search-close {
    background: transparent;
    border: none;
    color: var(--header-text);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.mobile-search-close:hover {
    transform: scale(1.1);
}

.mobile-search-close svg {
    width: 24px;
    height: 24px;
}

/* Theme Toggle Button - Modern Design */
.theme-toggle {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.15);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* SVG Icons */
.theme-toggle svg {
    position: absolute;
    width: 24px;
    height: 24px;
    color: white;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Responsive content */
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* All content areas */
    .main-content,
    .main-content-area,
    .content-sidebar-layout,
    .entry-content,
    .post-content,
    .page-content,
    .page-content-body,
    .single-post-content,
    article {
        max-width: 100% !important;
        overflow-x: hidden !important;
        word-wrap: break-word !important;
    }
    
    /* All images */
    .single-post-content img:not(.wp-post-image),
    .entry-content img,
    .post-content img,
    .page-content img,
    .page-content-body img,
    .single-post-content .post-content-centered img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Media elements */
    iframe,
    embed,
    object,
    video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Tables */
    table {
        max-width: 100% !important;
        overflow-x: auto !important;
        display: block !important;
    }
    
    /* Shortcodes and widgets */
    .widget,
    .shortcode,
    [class*="widget"],
    [class*="shortcode"],
    div[id*="widget"],
    div[class*="calendar"],
    div[class*="schedule"] {
        max-width: 100% !important;
        overflow-x: auto !important;
    }
    
    /* Force all divs inside page content to be responsive */
    .page-content-body > *,
    .page-content-body div,
    .entry-content > *,
    .entry-content div {
        max-width: 100% !important;
        overflow-x: auto !important;
    }
    
    /* Prevent any fixed width elements */
    .page-content-body [style*="width"],
    .entry-content [style*="width"] {
        width: auto !important;
        max-width: 100% !important;
    }
}

/* Mobile Styles - Gamezia Dropdown Design */
@media (max-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1002;
        background-color: #2c3e50;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    [data-theme="dark"] .site-header {
        background-color: #1a1a1a;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-content {
        position: relative;
    }
    
    .mobile-menu-checkbox {
        display: none !important;
        position: absolute !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1002 !important;
        cursor: pointer;
    }
    
    .mobile-search-toggle svg,
    .theme-toggle svg {
        color: white;
    }
    
    /* Hamburger animation when checkbox is checked */
    .mobile-menu-checkbox:checked + .mobile-menu-toggle .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-checkbox:checked + .mobile-menu-toggle .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-checkbox:checked + .mobile-menu-toggle .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* CSS-only menu toggle - checkbox controls header-right directly */
    .mobile-menu-checkbox:checked ~ .header-right {
        max-height: 85vh !important;
        opacity: 1 !important;
        overflow-y: auto !important;
    }
    
    .header-left {
        flex: 1;
        text-align: center;
        z-index: 1003;
        position: relative;
    }
    
    .site-logo {
        justify-content: center;
        z-index: 1003;
        position: relative;
    }
    
    .site-logo img {
        max-height: 40px;
    }
    
    .site-title a {
        color: white;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .header-right {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-height: 0 !important;
        background-color: #2c3e50 !important;
        z-index: 1001 !important;
        transition: max-height 0.4s ease, opacity 0.3s ease !important;
        overflow: hidden !important;
        opacity: 0 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding-top: 70px !important;
    }
    
    [data-theme="dark"] .header-right {
        background-color: #1e1e1e !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    }
    
    .header-actions {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1003;
        display: flex;
        gap: 0px;
    }
    
    .mobile-search-toggle {
        display: flex;
    }
    
    .theme-toggle {
        position: relative;
        transform: none;
    }
    
    .theme-toggle:hover {
        transform: scale(1.15);
    }
    
    .theme-toggle:active {
        transform: scale(0.95);
    }
    
    .main-navigation {
        padding: 10px 0 20px 0;
        width: 100%;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
    
    .nav-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    [data-theme="dark"] .nav-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu > li.menu-item-has-children {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .nav-menu > li.menu-item-has-children.active {
        border-bottom: none;
    }
    
    .nav-menu li a {
        padding: 14px 24px;
        font-size: 0.95rem;
        font-weight: 500;
        border-radius: 0;
        border-bottom: none;
        display: block;
        color: #ffffff;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
        text-align: left;
    }
    
    [data-theme="dark"] .nav-menu li a {
        color: #e0e0e0;
    }
    
    .nav-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #3498db;
    }
    
    [data-theme="dark"] .nav-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: #e74c3c;
    }
    
    .nav-menu ul {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background-color: rgba(0, 0, 0, 0.15);
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin: 0;
        padding: 0;
        border: none;
        display: block !important;
        list-style: none !important;
    }
    
    [data-theme="dark"] .nav-menu ul {
        background-color: rgba(255, 255, 255, 0.03);
    }
    
    .nav-menu li.menu-item-has-children.active > ul {
        max-height: 1000px !important;
        padding: 10px 0;
    }
    
    .nav-menu ul ul {
        background-color: rgba(0, 0, 0, 0.2);
        padding-left: 0;
        border: none;
        max-height: 0;
        overflow: hidden;
    }
    
    [data-theme="dark"] .nav-menu ul ul {
        background-color: rgba(255, 255, 255, 0.04);
    }
    
    .nav-menu ul li.menu-item-has-children.active > ul {
        max-height: 1000px !important;
        padding: 10px 0;
    }
    
    .nav-menu ul li {
        border-bottom: none;
        padding-left: 0;
    }
    
    [data-theme="dark"] .nav-menu ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .nav-menu ul li a {
        padding-left: 44px;
        text-align: left;
    }
    
    .nav-menu ul ul li a {
        padding-left: 64px;
        text-align: left;
    }
    
    .nav-menu ul li:last-child {
        border-bottom: none;
    }
    
    .nav-menu > li.menu-item-has-children > ul > li:first-child {
        border-top: none;
    }
    
    .nav-menu li.menu-item-has-children > a::after {
        content: '▶';
        font-size: 1rem;
        float: right;
        transition: transform 0.3s;
        display: inline-block;
    }
    
    .nav-menu ul li.menu-item-has-children > a::after {
        content: '▶';
        font-size: 0.9rem;
        float: right;
        transition: transform 0.3s;
        display: inline-block;
    }
    
    .nav-menu li.menu-item-has-children.active > a::after {
        transform: rotate(90deg);
    }
    
    .nav-menu ul li.menu-item-has-children.active > a::after {
        transform: rotate(90deg);
    }
    
    .nav-menu ul li:last-child {
        border-bottom: none;
    }
}

/* Full Width Backdrop Slider */
.fullwidth-slider {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.fullwidth-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.fullwidth-slides-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.fullwidth-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.fullwidth-slide a {
    display: block;
    height: 100%;
}

.fullwidth-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullwidth-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 50px 30px;
    color: #fff;
}

.fullwidth-slide-content {
    position: relative;
    z-index: 2;
}

.fullwidth-slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    color: white;
}

.fullwidth-slider-dots {
    display: none;
}

.fullwidth-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s ease;
    border-radius: 50%;
}

.fullwidth-slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.fullwidth-prev-btn {
    left: 20px;
}

.fullwidth-next-btn {
    right: 20px;
}

.fullwidth-slider-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .fullwidth-slider {
        height: 250px;
    }
    
    .fullwidth-slide-title {
        font-size: 1.5rem;
    }
    
    .fullwidth-slide-btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
    
    .fullwidth-slide-overlay {
        padding: 20px 15px;
    }
}

/* Slider Styles */
.home-slider {
    background-color: var(--bg-secondary);
    padding: 30px 0;
    margin-top: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.slider-wrapper {
    position: relative;
    padding: 0 20px;
}

.slider-container {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.slider-item {
    flex: 0 0 auto;
    width: calc((100% - (6 * 15px)) / 7);
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px var(--card-shadow);
}

.slider-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.slider-item a {
    text-decoration: none;
    display: block;
}

.slider-image {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-image img {
    width: 100%;
    height: auto;
    min-height: 150px;
    object-fit: cover;
    display: block;
}

.no-image-placeholder {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

:root[data-theme="dark"] .no-image-placeholder {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.slider-title {
    padding: 12px;
    text-align: center;
    background-color: var(--card-bg);
}

.slider-title h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-item:hover .slider-title h4 {
    color: #3498db;
}

[data-theme="dark"] .slider-item:hover .slider-title h4 {
    color: #e74c3c;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.5);
    transform: translateY(-50%) scale(1.1);
}

[data-theme="dark"] .slider-btn:hover {
    background-color: #e74c3c;
    border-color: #e74c3c;
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* Search Section */
.search-section {
    text-align: center;
    margin: 40px 0;
}

.search-form {
    display: inline-block;
    position: relative;
}

.search-input {
    width: 400px;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

[data-theme="dark"] .search-input:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--link-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

[data-theme="dark"] .search-submit {
    background-color: #e74c3c;
}

[data-theme="dark"] .search-submit:hover {
    background-color: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Post Grid - 7 columns (default vertical) */
.posts-grid,
.posts-grid-vertical {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin: 40px 0;
}

/* Post Grid - Horizontal orientation */
.posts-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 40px 0;
}

.post-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.posts-grid-horizontal .post-item {
    gap: 0;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.post-item a {
    display: block;
}

.post-thumbnail {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: contain;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Horizontal orientation - wider aspect ratio */
.posts-grid-horizontal .post-thumbnail {
    height: 140px;
    min-height: auto;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background-color: var(--bg-secondary);
}

.posts-grid-horizontal .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.post-thumbnail img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
    opacity: 0.9;
}

.post-content {
    padding: 10px 5px;
    background-color: var(--card-bg);
    text-align: center;
}

.post-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #3498db;
}

[data-theme="dark"] .post-title a:hover {
    color: #e74c3c;
}

.post-episode-number {
    font-size: 0.7rem;
    color: var(--link-color);
    margin-top: 4px;
    font-weight: 500;
}

/* No image placeholder for posts grid */
.post-item .post-thumbnail .no-image-placeholder {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

:root[data-theme="dark"] .post-item .post-thumbnail .no-image-placeholder {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Category Sections */
.category-section {
    margin: 50px 0;
}

.category-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

[data-theme="dark"] .category-section .section-header {
    border-bottom-color: #e74c3c;
}

.category-section .section-title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.category-section .view-more-link {
    color: #3498db;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid #3498db;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-section .view-more-link:hover {
    background-color: #3498db;
    color: white;
    transform: translateX(5px);
}

[data-theme="dark"] .category-section .view-more-link {
    color: #e74c3c;
    border-color: #e74c3c;
}

[data-theme="dark"] .category-section .view-more-link:hover {
    background-color: #e74c3c;
    color: white;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

[data-theme="dark"] .pagination a:hover {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.pagination .current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    font-weight: bold;
}

[data-theme="dark"] .pagination .current {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

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

.sidebar-widget {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--link-color);
}

/* Sidebar Lists */
.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-widget ul li a:hover {
    color: #3498db;
}

/* Sidebar Search */
.sidebar-widget .search-form {
    display: flex;
    gap: 5px;
}

.sidebar-widget .search-form input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.sidebar-widget .search-form button {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.sidebar-widget .search-form button:hover {
    background-color: #2980b9;
}

[data-theme="dark"] .sidebar-widget .search-form button {
    background-color: #e74c3c;
}

[data-theme="dark"] .sidebar-widget .search-form button:hover {
    background-color: #c0392b;
}

/* Tag Cloud Widget */
.sidebar-widget .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-widget .tagcloud a {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px !important;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.sidebar-widget .tagcloud a:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

[data-theme="dark"] .sidebar-widget .tagcloud a {
    background-color: rgba(231, 76, 60, 0.1);
}

[data-theme="dark"] .sidebar-widget .tagcloud a:hover {
    background-color: #e74c3c;
    color: white;
}

/* PulseGrid Custom Widgets */
.pulsegrid-widget-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--link-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* PulseGrid Search Widget */
.pulsegrid-search-widget {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
    border: 1px solid var(--border-color);
}

.pulsegrid-search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    align-items: stretch;
    background-color: var(--bg-primary);
    border-radius: 4px;
    overflow: visible;
    border: 1px solid var(--border-color);
}

.pulsegrid-search-input {
    flex: 1;
    min-width: 0;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.pulsegrid-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.pulsegrid-search-button {
    background-color: var(--link-color);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 60px;
}

.pulsegrid-search-button:hover {
    opacity: 0.8;
}

.pulsegrid-search-button svg {
    color: white;
}

/* PulseGrid Posts Grid Widget */
.pulsegrid-popular-widget,
.pulsegrid-recent-widget {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
    border: 1px solid var(--border-color);
}

.pulsegrid-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.pulsegrid-post-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pulsegrid-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pulsegrid-post-card a {
    text-decoration: none;
    display: block;
}

.pulsegrid-post-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pulsegrid-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 150px;
    object-fit: cover;
}

/* Fix badges in widget posts */
.pulsegrid-post-thumb .tmdb-badge {
    font-size: 9px;
    padding: 3px 6px;
}

.pulsegrid-post-thumb .tmdb-badge-language-unified {
    padding: 2px 5px;
    gap: 3px;
    font-size: 8px;
}

.pulsegrid-post-thumb .tmdb-badge-language-unified .language-flag {
    width: 14px;
    height: 10px;
    min-width: 14px;
    min-height: 10px;
}

.pulsegrid-post-thumb .tmdb-badge-language-unified .language-abbr {
    font-size: 7px;
}

/* Fix badges in slider */
.slider-image .post-thumbnail-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

.slider-image .tmdb-badge-language-unified .language-flag {
    width: 16px;
    height: 11px;
    min-width: 16px;
    min-height: 11px;
    object-fit: cover;
}

.slider-image .tmdb-badge-language-unified .language-abbr {
    font-size: 8px;
}

.pulsegrid-post-title,
h4.pulsegrid-post-title {
    padding: 5px 10px 5px 10px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    max-height: 3.2em !important;
}

.pulsegrid-post-card:hover .pulsegrid-post-title,
.pulsegrid-post-card:hover h4.pulsegrid-post-title {
    color: var(--link-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pulsegrid-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .pulsegrid-post-title {
        font-size: 0.8rem;
        padding: 8px;
    }
}

/* PulseGrid Tags Widget */
.pulsegrid-tags-widget,
.widget_pulsegrid_tags {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
    border: 1px solid var(--border-color);
}

.pulsegrid-tags-widget .tagcloud a,
.widget_pulsegrid_tags .tagcloud a {
    color: var(--text-primary) !important;
    background-color: var(--bg-primary);
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin: 4px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.pulsegrid-tags-widget .tagcloud a:hover,
.widget_pulsegrid_tags .tagcloud a:hover {
    background-color: var(--link-color);
    color: white !important;
    border-color: var(--link-color);
}

/* PulseGrid Comments Widget */
.pulsegrid-comments-widget {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
    border: 1px solid var(--border-color);
}

.pulsegrid-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pulsegrid-comment-item {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.pulsegrid-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar-wrapper {
    flex-shrink: 0;
}

.comment-avatar-wrapper img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content-wrapper {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.comment-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.comment-post-link {
    font-size: 0.85rem;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.comment-post-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Search Widget */
.search-widget {
    padding: 20px !important;
    margin-bottom: 20px;
}

.sidebar-search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--card-bg);
    transition: border-color 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: #3498db;
}

.sidebar-search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-family: 'Oswald', sans-serif;
    color: var(--text-primary);
    outline: none;
}

.sidebar-search-input::placeholder {
    color: #999;
}

.sidebar-search-button {
    padding: 12px 15px;
    background-color: var(--link-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.sidebar-search-button:hover {
    opacity: 0.8;
}

.sidebar-search-button svg {
    color: white;
}

/* Popular Posts Widget */
.popular-posts-widget {
    padding: 20px !important;
}

.popular-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.popular-post-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px var(--card-shadow);
}

.popular-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.popular-post-card a {
    text-decoration: none;
    display: block;
}

.popular-post-image {
    width: 100%;
    overflow: hidden;
}

.popular-post-image img {
    width: 100%;
    height: auto;
    min-height: 150px;
    object-fit: cover;
    display: block;
}

.popular-post-title {
    padding: 12px;
    text-align: center;
    background-color: var(--card-bg);
}

.popular-post-title h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-card:hover .popular-post-title h4 {
    color: #3498db;
}

[data-theme="dark"] .popular-post-card:hover .popular-post-title h4 {
    color: #e74c3c;
}

/* Responsive for popular posts */
@media (max-width: 1200px) {
    .popular-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .popular-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Layout with Sidebar */
.content-sidebar-layout {
    display: grid !important;
    grid-template-columns: 1fr 300px !important;
    gap: 30px !important;
    margin: 20px 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.content-sidebar-layout > * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Single Post Layout - Centered Design */
.single-post-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
    margin-bottom: 30px;
    text-align: center;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
}

.single-post-content * {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

.single-post-content img:not(.wp-post-image),
.single-post-content iframe,
.single-post-content video,
.single-post-content embed,
.single-post-content object {
    max-width: 100% !important;
    height: auto !important;
}

.single-post-content .post-content-centered img,
.single-post-content .post-content-centered iframe,
.single-post-content .post-content-centered video,
.single-post-content .post-content-centered embed,
.single-post-content .post-content-centered object {
    max-width: 100% !important;
    height: auto !important;
}

.single-post-content table {
    max-width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
}

.post-header-centered {
    margin-bottom: 30px;
}

.post-title-centered {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    font-weight: bold;
}

.post-featured-image-centered {
    margin-bottom: 30px;
    display: inline-block;
    max-width: 300px;
    width: 100%;
}

.post-featured-image-centered img,
.single-post-content .post-featured-image-centered img {
    max-width: 300px !important;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.post-separator {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    height: 2px;
    background: #3498db;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 0;
}

[data-theme="dark"] .post-separator {
    background: #e74c3c;
}

.post-content-centered {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-synopsis {
    background: rgba(52, 152, 219, 0.05);
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-style: italic;
    color: var(--text-primary);
}

[data-theme="dark"] .post-synopsis {
    background: rgba(231, 76, 60, 0.05);
}

.post-content-centered p {
    margin-bottom: 20px;
}

.post-content-centered h1,
.post-content-centered h2,
.post-content-centered h3,
.post-content-centered h4,
.post-content-centered h5,
.post-content-centered h6 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
    font-weight: 600;
}

[data-theme="dark"] .post-content-centered h1,
[data-theme="dark"] .post-content-centered h2,
[data-theme="dark"] .post-content-centered h3,
[data-theme="dark"] .post-content-centered h4,
[data-theme="dark"] .post-content-centered h5,
[data-theme="dark"] .post-content-centered h6 {
    color: #e0e0e0;
}

/* Negrita (Bold) */
.post-content-centered strong,
.post-content-centered b {
    font-weight: 700;
    color: var(--text-primary);
}

/* Cursiva (Italic) */
.post-content-centered em,
.post-content-centered i {
    font-style: italic;
    color: var(--text-primary);
}

/* Subrayado */
.post-content-centered u {
    text-decoration: underline;
    text-decoration-color: var(--link-color);
}

/* Tachado */
.post-content-centered s,
.post-content-centered del {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Citas (Blockquote) */
.post-content-centered blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid #3498db;
    background: rgba(52, 152, 219, 0.05);
    font-style: italic;
    color: var(--text-secondary);
    border-radius: 0 8px 8px 0;
}

[data-theme="dark"] .post-content-centered blockquote {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.post-content-centered blockquote p {
    margin-bottom: 10px;
}

.post-content-centered blockquote p:last-child {
    margin-bottom: 0;
}

.post-content-centered blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: normal;
}

.post-content-centered blockquote cite:before {
    content: "— ";
}

/* Código inline */
.post-content-centered code {
    background: rgba(52, 152, 219, 0.1);
    color: #e74c3c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

[data-theme="dark"] .post-content-centered code {
    background: rgba(231, 76, 60, 0.15);
    color: #3498db;
}

/* Bloque de código */
.post-content-centered pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    line-height: 1.6;
}

[data-theme="dark"] .post-content-centered pre {
    background: #1a1a1a;
    border: 1px solid #404040;
}

.post-content-centered pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.95em;
}

/* Enlaces */
.post-content-centered a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.post-content-centered a:hover {
    border-bottom-color: var(--link-color);
}

/* Imágenes */
.post-content-centered img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .post-content-centered img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.post-content-centered figure {
    margin: 25px 0;
}

.post-content-centered figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
    font-style: italic;
}

/* Tablas */
.post-content-centered table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--card-shadow);
}

.post-content-centered table th {
    background: #3498db;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

[data-theme="dark"] .post-content-centered table th {
    background: #e74c3c;
}

.post-content-centered table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.post-content-centered table tr:last-child td {
    border-bottom: none;
}

.post-content-centered table tr:hover {
    background: rgba(52, 152, 219, 0.05);
}

[data-theme="dark"] .post-content-centered table tr:hover {
    background: rgba(231, 76, 60, 0.05);
}

/* Línea horizontal */
.post-content-centered hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 40px 0;
}

/* Marcador de texto (Highlight) */
.post-content-centered mark {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
}

[data-theme="dark"] .post-content-centered mark {
    background: #664d03;
    color: #ffecb5;
}

/* Estilos para Shortcodes y Plugins - Compatibilidad con modo oscuro */
/* Solo aplicar a elementos con fondo blanco específico */
[data-theme="dark"] .post-content-centered [style*="background: #fff"],
[data-theme="dark"] .post-content-centered [style*="background:#fff"],
[data-theme="dark"] .post-content-centered [style*="background: white"],
[data-theme="dark"] .post-content-centered [style*="background-color: #fff"],
[data-theme="dark"] .post-content-centered [style*="background-color:#fff"],
[data-theme="dark"] .post-content-centered [style*="background-color: white"],
[data-theme="dark"] .post-content-centered [style*="background-color:white"],
[data-theme="dark"] .post-content-centered [style*="background-color: rgb(255, 255, 255)"],
[data-theme="dark"] .post-content-centered [style*="background-color:rgb(255,255,255)"] {
    background-color: var(--card-bg) !important;
}

/* Cambiar color de texto solo en elementos con fondo blanco */
[data-theme="dark"] .post-content-centered [style*="background: #fff"] *,
[data-theme="dark"] .post-content-centered [style*="background:#fff"] *,
[data-theme="dark"] .post-content-centered [style*="background: white"] *,
[data-theme="dark"] .post-content-centered [style*="background-color: #fff"] *,
[data-theme="dark"] .post-content-centered [style*="background-color:#fff"] *,
[data-theme="dark"] .post-content-centered [style*="background-color: white"] *,
[data-theme="dark"] .post-content-centered [style*="background-color:white"] *,
[data-theme="dark"] .post-content-centered [style*="background-color: rgb(255, 255, 255)"] *,
[data-theme="dark"] .post-content-centered [style*="background-color:rgb(255,255,255)"] * {
    color: var(--text-primary) !important;
}

/* Shortcodes específicos conocidos */
[data-theme="dark"] .post-content-centered .su-box,
[data-theme="dark"] .post-content-centered .su-spoiler,
[data-theme="dark"] .post-content-centered .su-note {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .post-content-centered .su-box *,
[data-theme="dark"] .post-content-centered .su-spoiler *,
[data-theme="dark"] .post-content-centered .su-note * {
    color: var(--text-primary) !important;
}

/* Botones */
[data-theme="dark"] .post-content-centered .su-button,
[data-theme="dark"] .post-content-centered button,
[data-theme="dark"] .post-content-centered .button,
[data-theme="dark"] .post-content-centered a.button {
    background-color: var(--link-color) !important;
    color: white !important;
    border-color: var(--link-color) !important;
}

/* Inputs */
[data-theme="dark"] .post-content-centered input:not([type="submit"]):not([type="button"]),
[data-theme="dark"] .post-content-centered textarea,
[data-theme="dark"] .post-content-centered select {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Contención de código/embeds en contenido de posts y páginas */
.post-content-centered,
.featured-content,
.page-content-body {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
}

.post-content-centered *,
.featured-content *,
.page-content-body * {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

.featured-content img,
.featured-content iframe,
.featured-content video,
.featured-content embed,
.featured-content object,
.page-content-body img,
.page-content-body iframe,
.page-content-body video,
.page-content-body embed,
.page-content-body object {
    max-width: 100% !important;
    height: auto !important;
}

.featured-content table,
.page-content-body table {
    max-width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
}

.post-content-centered [style*="width"],
.featured-content [style*="width"],
.page-content-body [style*="width"] {
    width: auto !important;
    max-width: 100% !important;
}

.post-content-centered .widget,
.post-content-centered .shortcode,
.post-content-centered [class*="widget"],
.post-content-centered [class*="shortcode"],
.post-content-centered div[id*="widget"],
.post-content-centered div[class*="calendar"],
.featured-content .widget,
.featured-content .shortcode,
.featured-content [class*="widget"],
.featured-content [class*="shortcode"],
.featured-content div[id*="widget"],
.featured-content div[id*="calendar"],
.page-content-body .widget,
.page-content-body .shortcode,
.page-content-body [class*="widget"],
.page-content-body [class*="shortcode"],
.page-content-body div[id*="widget"],
.page-content-body div[class*="calendar"] {
    max-width: 100% !important;
    overflow-x: auto !important;
}

/* Override grid post styles for single posts */
.single-post-content .post-content {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    background: none !important;
    color: var(--text-primary) !important;
    padding: 0 !important;
}

.single-post-content .post-title {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    background: none !important;
    color: #2c3e50 !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
}

.single-post-content .post-title a {
    color: #2c3e50 !important;
    text-shadow: none !important;
}

/* Ensure main content area doesn't have overlay styles */
.main-content-area .post-content {
    position: static;
    background: none;
    color: var(--text-primary);
    padding: 0;
}

.main-content-area .post-title {
    position: static;
    background: none;
    color: #2c3e50;
    padding: 0;
}

.main-content-area .post-title a {
    color: #2c3e50;
    text-shadow: none;
}

.post-tags {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
}

.post-tags h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
    transition: background-color 0.3s;
}

.tag-item:hover {
    background-color: #2980b9;
}

[data-theme="dark"] .tag-item {
    background-color: #e74c3c;
}

[data-theme="dark"] .tag-item:hover {
    background-color: #c0392b;
}

/* Related Posts */
.related-posts {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
}

.related-posts h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.related-posts-grid .post-item .post-title a {
    color: #333;
}

.related-posts-grid .post-item .post-title a:hover {
    color: #3498db;
}

[data-theme="dark"] .related-posts-grid .post-item .post-title a {
    color: white;
}

[data-theme="dark"] .related-posts-grid .post-item .post-title a:hover {
    color: #e74c3c;
}

/* Comments */
.comments-section {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
    margin: 30px 0;
}

/* Search Results */
.search-results-header {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
}

.search-filters {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #ecf0f1;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #3498db;
    color: white;
}

/* Search Results Grid - 7 columns */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin: 40px 0;
}

/* Search Results Grid - Horizontal orientation */
.search-results-grid.posts-grid-horizontal {
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.search-results-grid.posts-grid-horizontal .post-thumbnail {
    height: 140px;
    min-height: auto;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background-color: var(--bg-secondary);
}

.search-results-grid.posts-grid-horizontal .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .posts-grid,
    .search-results-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .slider-item {
        width: 140px;
    }
    
    .slider-image {
        min-height: 180px;
    }
    
    .slider-image img {
        max-height: 250px;
    }
    
    .post-item {
        min-height: 180px;
    }
    
    .post-thumbnail {
        min-height: 180px;
    }
}

@media (max-width: 900px) {
    .posts-grid,
    .posts-grid-vertical,
    .search-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .posts-grid-horizontal {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-sidebar-layout {
        grid-template-columns: 1fr !important;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .slider-item {
        width: 120px;
    }
    
    .slider-image {
        min-height: 160px;
    }
    
    .slider-image img {
        max-height: 200px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .post-item {
        min-height: 160px;
    }
    
    .post-thumbnail {
        min-height: 160px;
    }
    
    .post-title {
        font-size: 0.8rem;
    }
    
    .post-title-centered {
        font-size: 1.8rem;
    }
    
    .post-featured-image-centered img {
        max-width: 300px !important;
    }
    
    .featured-trailer-btn-desktop {
        display: none !important;
    }
    
    .featured-trailer-btn-mobile {
        position: static !important;
        width: calc(100% - 40px);
        margin: 10px 20px 0 20px;
        display: flex !important;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.8rem;
        top: auto !important;
        right: auto !important;
    }
    
    .featured-poster-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .featured-right-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .single-post-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .content-sidebar-layout {
        gap: 20px !important;
    }

    .content-sidebar-layout > * {
        width: 100% !important;
        max-width: 100% !important;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .tags-page-title {
        font-size: 2rem;
    }
    
    .tags-page-description {
        font-size: 1rem;
    }
    
    .tags-cloud-wrapper {
        padding: 20px;
    }
    
    .tags-cloud-grid {
        gap: 10px;
    }
    
    .tag-item {
        padding: 10px 16px;
    }
    
    .tag-xl {
        font-size: 1.1rem;
        padding: 14px 22px;
    }
    
    .tag-lg {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

@media (max-width: 600px) {
    .posts-grid,
    .posts-grid-vertical,
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .posts-grid-horizontal,
    .search-results-grid.posts-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .posts-grid-horizontal .post-thumbnail,
    .search-results-grid.posts-grid-horizontal .post-thumbnail {
        height: 85px;
        min-height: auto;
        padding: 0;
        margin: 0;
    }
    
    .posts-grid-horizontal .post-thumbnail img,
    .search-results-grid.posts-grid-horizontal .post-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    /* Slider móvil - 2 tarjetas visibles (estilo warezdl-theme) */
    .home-slider {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    .slider-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0;
        padding: 0;
    }
    
    .slider-container {
        flex: 1;
        overflow: hidden;
        padding: 0;
        margin: 0 1rem;
    }
    
    .slider-track {
        display: flex;
        gap: 0.75rem;
        transition: transform 0.4s ease-in-out;
        padding: 0;
        margin: 0;
    }
    
    .slider-item {
        flex: 0 0 calc(50% - 0.375rem);
        min-width: calc(50% - 0.375rem);
        max-width: calc(50% - 0.375rem);
        width: calc(50% - 0.375rem);
        background-color: var(--card-bg);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px var(--card-shadow);
        transition: all 0.3s ease;
    }
    
    .slider-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    .slider-image {
        width: 100%;
        overflow: hidden;
        position: relative;
        background-color: #f8f9fa;
    }
    
    .slider-image img {
        width: 100%;
        height: auto;
        min-height: 200px;
        object-fit: cover;
        display: block;
    }
    
    .slider-title {
        padding: 12px;
        text-align: center;
        background-color: var(--card-bg);
        position: relative;
    }
    
    .slider-title h4 {
        font-size: 0.9rem;
        line-height: 1.4;
        color: var(--text-primary);
        margin: 0;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.95);
        border: 2px solid rgba(0, 0, 0, 0.1);
        color: #2c3e50;
        font-size: 1.5rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
        z-index: 10;
        flex-shrink: 0;
    }
    
    .slider-btn:hover {
        background-color: #3498db;
        border-color: #3498db;
        color: white;
        transform: translateY(-50%) scale(1.15);
    }
    
    .slider-btn:active {
        transform: translateY(-50%) scale(0.95);
    }
    
    .prev-btn {
        left: 0.5rem;
    }
    
    .next-btn {
        right: 0.5rem;
    }
}

/* Comments Styling */
.comments-area {
    margin-top: 40px;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e8e8e8;
    border-radius: 8px;
}

[data-theme="dark"] .comment-list li {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

/* Nested replies styling */
.comment-list li.depth-2,
.comment-list li.depth-3,
.comment-list li.depth-4 {
    background-color: white;
    margin-left: 30px;
    margin-top: 15px;
}

[data-theme="dark"] .comment-list li.depth-2,
[data-theme="dark"] .comment-list li.depth-3,
[data-theme="dark"] .comment-list li.depth-4 {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Nested comment lists */
.comment-list ol.children {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.comment-list ol.children li {
    counter-increment: none;
}

.comment-body {
    display: block;
    background-color: transparent;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.comment-author .fn {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9rem;
    text-decoration: none;
}

[data-theme="dark"] .comment-author .fn {
    color: var(--text-primary);
}

.comment-author .fn:hover {
    color: #3498db;
}

.comment-author .says {
    font-weight: normal;
    color: var(--text-secondary);
    margin-left: 5px;
}

.comment-meta {
    margin-bottom: 10px;
}

.comment-date {
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: normal;
}

.comment-content {
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.comment-reply {
    text-align: right;
}

.comment-reply a {
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 3px;
    display: inline-block;
    font-weight: 500;
    text-transform: uppercase;
}

.comment-reply a:hover {
    background-color: #c0392b;
    text-decoration: none;
}

/* Hide comment numbers */
.comment-list li::before,
.comment-list li .comment-number,
.comment-list li .comment-count {
    display: none !important;
}

.comment-list {
    counter-reset: none;
}

.comment-list li {
    counter-increment: none;
}

/* Comment Form */
.comment-form {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

[data-theme="dark"] .comment-form {
    background-color: var(--bg-secondary);
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

[data-theme="dark"] .comment-form label {
    color: var(--text-primary);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

[data-theme="dark"] .comment-form input,
[data-theme="dark"] .comment-form textarea {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

[data-theme="dark"] .comment-form input:focus,
[data-theme="dark"] .comment-form textarea:focus {
    border-color: #e74c3c;
}

.comment-form .form-submit {
    margin-top: 15px;
}

.comment-form #submit {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.comment-form #submit:hover {
    background-color: #2980b9;
}

[data-theme="dark"] .comment-form #submit {
    background-color: #e74c3c;
}

[data-theme="dark"] .comment-form #submit:hover {
    background-color: #c0392b;
}

/* Mobile: threaded comments without horizontal shrink */
@media (max-width: 768px) {
    .comments-section {
        padding: 16px;
    }

    .comments-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .comment-list li {
        padding: 12px;
        margin-bottom: 12px;
    }

    .comment-list li.depth-2,
    .comment-list li.depth-3,
    .comment-list li.depth-4,
    .comment-list li.depth-5 {
        margin-left: 0;
    }

    .comment-list ol.children {
        margin-top: 12px;
        padding-left: 14px;
        border-left: 2px solid #e74c3c;
    }

    [data-theme="dark"] .comment-list ol.children {
        border-left-color: #e74c3c;
    }

    .comment-body {
        display: grid;
        grid-template-columns: 36px 1fr;
        grid-template-areas:
            "avatar author"
            "avatar meta"
            "content content"
            "reply reply";
        column-gap: 10px;
        row-gap: 4px;
    }

    .comment-author {
        display: contents;
    }

    .comment-author img {
        grid-area: avatar;
        width: 36px;
        height: 36px;
        align-self: start;
    }

    .comment-author .fn {
        grid-area: author;
        line-height: 1.35;
        word-break: break-word;
    }

    .comment-author .says {
        display: none;
    }

    .comment-meta {
        grid-area: meta;
        margin-bottom: 0;
    }

    .comment-date {
        display: block;
        line-height: 1.35;
        white-space: normal;
    }

    .comment-content {
        grid-area: content;
        margin-top: 8px;
    }

    .comment-reply {
        grid-area: reply;
        text-align: left;
        margin-top: 4px;
    }

    .comment-reply a {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .comment-form {
        padding: 16px;
    }
}

/* Page Content */
.page-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
    margin-bottom: 30px;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

.page-content-body {
    line-height: 1.8;
    color: var(--text-primary);
}

.page-content-body h1,
.page-content-body h2,
.page-content-body h3,
.page-content-body h4,
.page-content-body h5,
.page-content-body h6 {
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content-body p {
    margin-bottom: 15px;
}

.page-content-body ul,
.page-content-body ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.page-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Lista con viñetas (Bulleted List) */
.post-content-centered ul,
.page-content-body ul,
.single-post-content ul {
    list-style-type: disc;
    margin: 20px 0;
    padding-left: 40px;
    line-height: 1.8;
}

.post-content-centered ul li,
.page-content-body ul li,
.single-post-content ul li {
    margin-bottom: 10px;
    color: var(--text-primary);
    padding-left: 5px;
}

.post-content-centered ul li::marker,
.page-content-body ul li::marker,
.single-post-content ul li::marker {
    color: #3498db;
    font-size: 1.2em;
}

/* Lista numerada (Numbered List) */
.post-content-centered ol,
.page-content-body ol,
.single-post-content ol {
    list-style-type: decimal;
    margin: 20px 0;
    padding-left: 40px;
    line-height: 1.8;
    counter-reset: item;
}

.post-content-centered ol li,
.page-content-body ol li,
.single-post-content ol li {
    margin-bottom: 10px;
    color: var(--text-primary);
    padding-left: 5px;
}

.post-content-centered ol li::marker,
.page-content-body ol li::marker,
.single-post-content ol li::marker {
    color: #3498db;
    font-weight: bold;
}

/* Listas anidadas */
.post-content-centered ul ul,
.page-content-body ul ul,
.single-post-content ul ul {
    list-style-type: circle;
    margin: 10px 0;
    padding-left: 30px;
}

.post-content-centered ul ul ul,
.page-content-body ul ul ul,
.single-post-content ul ul ul {
    list-style-type: square;
}

.post-content-centered ol ol,
.page-content-body ol ol,
.single-post-content ol ol {
    list-style-type: lower-alpha;
    margin: 10px 0;
    padding-left: 30px;
}

.post-content-centered ol ol ol,
.page-content-body ol ol ol,
.single-post-content ol ol ol {
    list-style-type: lower-roman;
}

/* Post Meta */
.post-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.post-meta span {
    margin-right: 15px;
}

.post-featured-image {
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Featured Template Styles - Matching Reference Image */
.single-post-featured {
    background-color: var(--card-bg);
    border-radius: 0;
    overflow: visible;
    margin-bottom: 0;
}

.featured-hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
}

.featured-hero-overlay {
    position: relative;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.3) 70%, transparent 100%);
    min-height: 400px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
}

.featured-trailer-btn-mobile {
    display: none;
}

.featured-trailer-btn-desktop {
    display: inline-flex;
}

.featured-trailer-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.featured-trailer-btn .i-play {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.featured-trailer-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.featured-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-bottom: 40px;
    gap: 40px;
}

.featured-left-section {
    display: flex;
    gap: 25px;
    align-items: flex-end;
    flex: 1;
}

.featured-poster-container {
    flex-shrink: 0;
}

.featured-poster {
    width: 180px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    margin-bottom: -15px;
}

.featured-info {
    flex: 1;
    color: white;
    margin-bottom: 20px;
}

.featured-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    align-self: flex-end;
    margin-bottom: 5px;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.featured-metadata {
    display: flex;
    gap: 15px;
    align-items: center;
}

.featured-rating-badge {
    background: rgba(0, 0, 0, 0.85);
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.featured-quality-badge {
    background: #e50914;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured-languages-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.languages-label {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    text-align: left;
}

.languages-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.language-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 50px;
}

.lang-flag {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.lang-code {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-synopsis-section {
    background-color: var(--card-bg);
    padding: 20px 40px;
    position: relative;
}

.synopsis-text {
    color: #3a302e;
    font-size: 1rem;
    line-height: 1.7;
}

.synopsis-text p {
    margin: 0;
}

[data-theme="dark"] .synopsis-text {
    color: #e0e0e0;
}

.featured-content {
    padding: 20px 40px 40px 40px;
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.featured-content h2,
.featured-content h3,
.featured-content h4 {
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 15px;
}

.featured-content p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.featured-content ul,
.featured-content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.featured-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive for featured template */
@media (max-width: 768px) {
    .featured-hero {
        min-height: 350px;
    }
    
    .featured-hero-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.9) 100%);
        padding: 20px;
    }
    
    .featured-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .featured-left-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .featured-right-section {
        align-items: center;
        width: 100%;
    }
    
    .featured-poster {
        width: 150px;
    }
    
    .featured-title {
        font-size: 1.8rem;
    }
    
    .featured-metadata {
        justify-content: center;
    }
    
    .featured-synopsis-section,
    .featured-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Related Posts Items */
.related-post-item {
    text-align: center;
    grid-column: span 5;
}

.related-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 10px;
}

.related-post-thumb.no-image {
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 0.8rem;
}

.related-post-title {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #2c3e50;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .related-post-title {
    color: white;
}

.related-post-item a {
    text-decoration: none;
    color: inherit;
}

.related-post-item a:hover .related-post-title {
    color: #3498db;
}

[data-theme="dark"] .related-post-item a:hover .related-post-title {
    color: #e74c3c;
}

/* No Image Placeholder */
.post-thumbnail.no-image {
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Search and Archive Specific */
.post-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin: 30px 0;
}

.no-results h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.search-again {
    margin: 30px 0;
}

.suggested-posts {
    margin-top: 40px;
}

.suggested-posts h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Ad Containers */
.header-ad-container,
.footer-ad-container,
.home-ad-container,
.post-content-ad-container,
.post-comments-ad-container {
    background-color: #f8f9fa;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-ad-container > *,
.footer-ad-container > *,
.home-ad-container > *,
.post-content-ad-container > *,
.post-comments-ad-container > * {
    margin: 0 auto;
}

.home-ad-container {
    margin: 40px 0;
}

.post-content-ad-container {
    margin: 30px auto;
    max-width: 800px;
}

.post-comments-ad-container {
    margin: 40px 0;
}

.sidebar-ad-widget {
    padding: 20px !important;
    text-align: center;
}

.sidebar-ad-widget .widget-title {
    margin-bottom: 15px;
}

[data-theme="dark"] .header-ad-container,
[data-theme="dark"] .footer-ad-container,
[data-theme="dark"] .home-ad-container,
[data-theme="dark"] .post-content-ad-container,
[data-theme="dark"] .post-comments-ad-container {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

[data-theme="dark"] .sidebar-ad-widget {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="dark"] .sidebar-ad-widget .widget-title {
    display: none;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    transition: background-color 0.3s ease;
    border-top: 3px solid var(--border-color);
    box-shadow: 0 -2px 10px var(--card-shadow);
}

[data-theme="dark"] .site-footer {
    background-color: var(--header-bg);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border: 2px solid #3498db;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.6);
}

[data-theme="dark"] .back-to-top {
    background-color: #e74c3c;
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

[data-theme="dark"] .back-to-top:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.6);
}

.back-to-top.show {
    display: flex;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Tags Page Styles */
.tags-page-container {
    padding: 40px 20px;
    min-height: 60vh;
}

.tags-page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
    background-color: var(--header-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
    transition: background-color 0.3s ease;
}

.tags-page-title {
    font-size: 3rem;
    color: var(--header-text);
    margin-bottom: 10px;
    font-weight: 700;
}

.tags-page-description {
    font-size: 1.2rem;
    color: var(--header-text);
    opacity: 0.9;
    font-weight: 300;
}

.tags-cloud-wrapper {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--card-shadow);
    transition: background-color 0.3s ease;
}

.tags-cloud-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.tags-cloud-grid .tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .tags-cloud-grid .tag-item {
    background-color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.tags-cloud-grid .tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tags-cloud-grid .tag-item:hover::before {
    left: 100%;
}

.tags-cloud-grid .tag-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.5);
    background-color: #2980b9;
}

[data-theme="dark"] .tags-cloud-grid .tag-item:hover {
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
    background-color: #c0392b;
}

.tag-item:active {
    transform: translateY(-1px) scale(1.02);
}

.tag-name {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.tag-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tag-xl {
    font-size: 1.3rem;
    padding: 16px 28px;
    background-color: #2c3e50;
}

.tag-xl:hover {
    background-color: #34495e;
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.4);
}

.tag-xl .tag-name {
    font-size: 1.3rem;
}

.tag-xl .tag-count {
    font-size: 1rem;
    padding: 6px 12px;
}

.tag-lg {
    font-size: 1.15rem;
    padding: 14px 24px;
    background-color: #3498db;
}

.tag-lg:hover {
    background-color: #2980b9;
    box-shadow: 0 5px 14px rgba(52, 152, 219, 0.4);
}

.tag-lg .tag-name {
    font-size: 1.15rem;
}

.tag-md {
    background-color: #3498db;
}

.tag-md:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.tag-sm {
    padding: 10px 16px;
    background-color: #34495e;
}

.tag-sm:hover {
    background-color: #2c3e50;
    box-shadow: 0 3px 10px rgba(44, 62, 80, 0.4);
}

.tag-sm .tag-name {
    font-size: 0.9rem;
}

.tag-sm .tag-count {
    font-size: 0.75rem;
    padding: 3px 8px;
}

.no-tags {
    text-align: center;
    font-size: 1.2rem;
    color: #999;
    padding: 40px;
}

@media (max-width: 768px) {
    .tags-page-title {
        font-size: 2rem;
    }
    
    .tags-page-description {
        font-size: 1rem;
    }
    
    .tags-cloud-wrapper {
        padding: 20px;
    }
    
    .tags-cloud-grid {
        gap: 10px;
    }
    
    .tag-item {
        padding: 10px 16px;
    }
    
    .tag-xl {
        font-size: 1.1rem;
        padding: 14px 22px;
    }
    
    .tag-lg {
        font-size: 1rem;
        padding: 12px 20px;
    }
}
