/*
Theme Name: SpaceMov
Theme URI: https://spacemov.co
Description: A fast, SEO-optimized dark theme for SpaceMov - your guide to free movies online, streaming alternatives, and movie information.
Author: SpaceMov
Author URI: https://spacemov.co
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spacemov
Tags: dark, movies, entertainment, seo, custom-menu, custom-logo, featured-images
*/

/* ==========================================================================
   CSS RESET
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0a0f;
    color: #e5e5e5;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #e50914;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #ff3341;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.625rem; }
h5 { font-size: 1rem; margin-bottom: 0.5rem; }
h6 { font-size: 0.875rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1.25rem;
}

blockquote {
    border-left: 4px solid #e50914;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #151520;
    border-radius: 0 8px 8px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

table th,
table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #2a2a35;
}

table th {
    background: #151520;
    color: #ffffff;
    font-weight: 600;
}

table tr:hover td {
    background: #1a1a28;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.container--narrow {
    max-width: 800px;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

.content-area--full {
    grid-template-columns: 1fr;
}

.site-main {
    min-width: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background: #0f0f18;
    border-bottom: 1px solid #1a1a28;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    gap: 2rem;
}

.site-branding {
    flex-shrink: 0;
}

.site-branding a {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-branding .brand-accent {
    color: #e50914;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-navigation a {
    color: #b0b0b0;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #ffffff;
    background: #1a1a28;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    background: #151520;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.main-navigation li {
    position: relative;
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.header-search {
    flex-shrink: 0;
}

.header-search form {
    display: flex;
    align-items: center;
}

.header-search input[type="search"] {
    background: #151520;
    border: 1px solid #2a2a35;
    color: #e5e5e5;
    padding: 0.5rem 1rem;
    border-radius: 6px 0 0 6px;
    font-size: 0.875rem;
    width: 200px;
    outline: none;
    transition: border-color 0.2s ease;
}

.header-search input[type="search"]:focus {
    border-color: #e50914;
}

.header-search button {
    background: #e50914;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.header-search button:hover {
    background: #ff3341;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e5e5e5;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, #0f0f18 0%, #1a0a0f 50%, #0f0f18 100%);
    padding: 4rem 0;
    border-bottom: 1px solid #1a1a28;
}

.hero h1 {
    font-size: 2.75rem;
    max-width: 700px;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.125rem;
    color: #b0b0b0;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-search {
    max-width: 500px;
}

.hero-search form {
    display: flex;
}

.hero-search input[type="search"] {
    flex: 1;
    background: #151520;
    border: 2px solid #2a2a35;
    color: #e5e5e5;
    padding: 0.875rem 1.25rem;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
}

.hero-search input[type="search"]:focus {
    border-color: #e50914;
}

.hero-search button {
    background: #e50914;
    color: #ffffff;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-search button:hover {
    background: #ff3341;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.8125rem;
    color: #808080;
}

.breadcrumbs a {
    color: #b0b0b0;
}

.breadcrumbs a:hover {
    color: #e50914;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #555;
}

.breadcrumbs .current {
    color: #e5e5e5;
}

/* ==========================================================================
   CARDS - MOVIE / POST
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card-grid--movies {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.card {
    background: #151520;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1e1e2e;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #e50914;
}

.card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: #1a1a28;
}

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

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

.card-thumbnail--landscape {
    aspect-ratio: 16/9;
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #e50914;
    color: #ffffff;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-rating {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: #f5c518;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.card-title a {
    color: #ffffff;
}

.card-title a:hover {
    color: #e50914;
}

.card-meta {
    font-size: 0.8125rem;
    color: #808080;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card-excerpt {
    font-size: 0.875rem;
    color: #b0b0b0;
    margin-top: 0.625rem;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.625rem;
}

.card-tags a {
    background: #1a1a28;
    color: #b0b0b0;
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.card-tags a:hover {
    background: #e50914;
    color: #ffffff;
}

/* ==========================================================================
   POST / ARTICLE - SINGLE
   ========================================================================== */

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1e1e2e;
}

.article-header h1 {
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #808080;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.article-meta a {
    color: #b0b0b0;
}

.article-meta a:hover {
    color: #e50914;
}

.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1e1e2e;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content ul,
.article-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #d0d0d0;
}

.article-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content .wp-block-image {
    margin: 2rem 0;
}

.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    border-radius: 10px;
}

.article-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1e1e2e;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.article-tags a {
    background: #1a1a28;
    color: #b0b0b0;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.article-tags a:hover {
    background: #e50914;
    color: #ffffff;
}

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1e1e2e;
}

.section-header h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.section-header a {
    color: #b0b0b0;
    font-size: 0.875rem;
    font-weight: 500;
}

.section-header a:hover {
    color: #e50914;
}

.section-title-bar {
    border-left: 4px solid #e50914;
    padding-left: 0.75rem;
}

/* ==========================================================================
   INFO BOXES / CALLOUTS
   ========================================================================== */

.info-box {
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.info-box--warning {
    background: #2a1f0f;
    border: 1px solid #5a3f0f;
}

.info-box--success {
    background: #0f2a1a;
    border: 1px solid #0f5a2f;
}

.info-box--info {
    background: #0f1a2a;
    border: 1px solid #0f3a5a;
}

.info-box--danger {
    background: #2a0f0f;
    border: 1px solid #5a0f0f;
}

.info-box-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

/* ==========================================================================
   ALTERNATIVES LIST
   ========================================================================== */

.alt-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.alt-item {
    background: #151520;
    border: 1px solid #1e1e2e;
    border-radius: 10px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    transition: border-color 0.2s ease;
}

.alt-item:hover {
    border-color: #e50914;
}

.alt-item-rank {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e50914, #b0070f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
}

.alt-item-content h3 {
    margin-bottom: 0.375rem;
}

.alt-item-content p {
    color: #b0b0b0;
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.alt-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.alt-item-features span {
    background: #1a1a28;
    color: #b0b0b0;
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.alt-item-cta {
    flex-shrink: 0;
}

.btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
}

.btn--primary {
    background: #e50914;
    color: #ffffff;
}

.btn--primary:hover {
    background: #ff3341;
    color: #ffffff;
}

.btn--secondary {
    background: #1a1a28;
    color: #e5e5e5;
    border: 1px solid #2a2a35;
}

.btn--secondary:hover {
    background: #2a2a35;
    color: #ffffff;
}

.btn--small {
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
}

/* ==========================================================================
   FAQ / ACCORDION
   ========================================================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #151520;
    border: 1px solid #1e1e2e;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #1a1a28;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: #e50914;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: #b0b0b0;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: #151520;
    border: 1px solid #1e1e2e;
    border-radius: 10px;
    padding: 1.25rem;
}

.widget-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #e50914;
    color: #ffffff;
}

.widget ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.widget ul li a {
    color: #b0b0b0;
    font-size: 0.9375rem;
    padding: 0.375rem 0;
    display: flex;
    justify-content: space-between;
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: #e50914;
}

.widget ul li a .count {
    color: #555;
    font-size: 0.8125rem;
}

/* Trending widget */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trending-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.trending-number {
    font-size: 1.375rem;
    font-weight: 800;
    color: #e50914;
    line-height: 1;
    min-width: 1.5rem;
}

.trending-item-content {
    min-width: 0;
}

.trending-item-content a {
    color: #e5e5e5;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
}

.trending-item-content a:hover {
    color: #e50914;
}

.trending-item-meta {
    font-size: 0.75rem;
    color: #808080;
    margin-top: 0.125rem;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a {
    background: #151520;
    border: 1px solid #1e1e2e;
    color: #b0b0b0;
}

.pagination a:hover {
    background: #1a1a28;
    color: #ffffff;
    border-color: #e50914;
}

.pagination .current {
    background: #e50914;
    color: #ffffff;
    border: 1px solid #e50914;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #0a0a0f;
    border-top: 1px solid #1a1a28;
    margin-top: auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding: 3rem 0;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col ul li a {
    color: #808080;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #e50914;
}

.footer-col p {
    color: #808080;
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid #1a1a28;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: #808080;
}

.footer-bottom a:hover {
    color: #e50914;
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */

.search-results-header {
    padding: 2rem 0 0;
}

.search-results-header h1 {
    font-size: 1.75rem;
}

.search-results-header p {
    color: #808080;
}

.search-result-item {
    background: #151520;
    border: 1px solid #1e1e2e;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s ease;
}

.search-result-item:hover {
    border-color: #e50914;
}

.search-result-item h2 {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
}

.search-result-item h2 a {
    color: #ffffff;
}

.search-result-item h2 a:hover {
    color: #e50914;
}

.search-result-meta {
    color: #808080;
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
}

.search-result-excerpt {
    color: #b0b0b0;
    font-size: 0.9375rem;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 5rem 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: #e50914;
    margin-bottom: 0.5rem;
}

.error-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-404 p {
    color: #808080;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.error-404 .search-form {
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   TOC - TABLE OF CONTENTS
   ========================================================================== */

.toc {
    background: #151520;
    border: 1px solid #1e1e2e;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
}

.toc-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.toc ol {
    list-style: decimal;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.toc ol li a {
    color: #b0b0b0;
    font-size: 0.9375rem;
}

.toc ol li a:hover {
    color: #e50914;
}

.toc ol ol {
    margin-top: 0.375rem;
    padding-left: 1.25rem;
    gap: 0.25rem;
}

.toc ol ol li a {
    font-size: 0.875rem;
}

/* ==========================================================================
   RELATED POSTS / INTERNAL LINKING
   ========================================================================== */

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1e1e2e;
}

.related-posts h2 {
    margin-bottom: 1.25rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ==========================================================================
   CLUSTER NAVIGATION
   ========================================================================== */

.cluster-nav {
    background: #151520;
    border: 1px solid #1e1e2e;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.cluster-nav-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.cluster-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cluster-nav ul li a {
    background: #1a1a28;
    color: #b0b0b0;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    display: inline-block;
    transition: all 0.2s ease;
}

.cluster-nav ul li a:hover {
    background: #e50914;
    color: #ffffff;
}

/* ==========================================================================
   AUTHOR BOX
   ========================================================================== */

.author-box {
    background: #151520;
    border: 1px solid #1e1e2e;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    margin: 2rem 0;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.author-info h4 {
    margin-bottom: 0.375rem;
}

.author-info p {
    color: #b0b0b0;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ==========================================================================
   POST NAVIGATION (PREV/NEXT)
   ========================================================================== */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.post-navigation a {
    background: #151520;
    border: 1px solid #1e1e2e;
    border-radius: 8px;
    padding: 1.25rem;
    transition: border-color 0.2s ease;
    display: block;
}

.post-navigation a:hover {
    border-color: #e50914;
}

.post-navigation .nav-label {
    font-size: 0.75rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
    display: block;
}

.post-navigation .nav-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
}

.post-navigation .nav-next {
    text-align: right;
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */

.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    min-width: 600px;
}

.comparison-table th {
    background: #e50914;
    color: #ffffff;
    font-weight: 600;
}

.comparison-table td {
    background: #151520;
}

.check-yes {
    color: #22c55e;
    font-weight: 700;
}

.check-no {
    color: #ef4444;
    font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .alt-item {
        grid-template-columns: 60px 1fr;
    }

    .alt-item-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }

    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        order: 1;
    }

    .site-branding {
        order: 0;
    }

    .header-search {
        order: 2;
        width: 100%;
    }

    .header-search input[type="search"] {
        width: 100%;
    }

    .main-navigation {
        display: none;
        order: 3;
        width: 100%;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }

    .main-navigation li:hover > .sub-menu {
        display: flex;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .card-grid--movies {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .error-404 h1 {
        font-size: 4rem;
    }

    .comparison-table {
        margin: 1.5rem -1.25rem;
        padding: 0 1.25rem;
    }
}

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

    .card-grid--movies {
        grid-template-columns: repeat(2, 1fr);
    }

    .alt-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .alt-item-rank {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-muted { color: #808080; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ==========================================================================
   WORDPRESS CORE CLASSES
   ========================================================================== */

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 1.5rem auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: #808080;
    text-align: center;
    padding: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.gallery-item {
    margin: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sticky .card {
    border-color: #e50914;
}

.bypostauthor {
    border-left: 3px solid #e50914;
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    .site-header,
    .site-footer,
    .site-sidebar,
    .related-posts,
    .post-navigation,
    .hero-search,
    .header-search {
        display: none;
    }

    .content-area {
        grid-template-columns: 1fr;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000000;
    }
}
