/*
Theme Name: HDMovie2
Theme URI: https://hdmovie2.developer
Author: HDMovie2 Developer
Author URI: https://hdmovie2.developer
Description: A dark, modern movie and blog theme inspired by HDMovie2. Features responsive grid layouts, movie card displays, sidebar widgets, and full WordPress integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hdmovie2
Tags: dark, movies, blog, entertainment, responsive, custom-menu, featured-images, theme-options
*/

/* ===================== CSS RESET & BASE ===================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #222244;
    --bg-header: #0f0f23;
    --bg-sidebar: #1e1e3a;
    --bg-footer: #12122a;
    --bg-input: #2a2a4a;
    --bg-badge-featured: #28a745;
    --bg-badge-hindi: #dc3545;
    --bg-badge-new: #ffc107;
    --bg-badge-webseries: #6f42c1;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-heading: #ffffff;
    --text-muted: #888899;
    --accent-red: #e50914;
    --accent-red-hover: #ff1a25;
    --accent-yellow: #f5c518;
    --border-color: #2a2a4a;
    --border-light: #333355;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.5);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --transition: all 0.3s ease;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --container-max: 1380px;
    --header-height: 60px;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 600;
    line-height: 1.3;
}

input, button, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===================== UTILITY ===================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

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

/* ===================== HEADER ===================== */
.site-header {
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

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

.site-logo a {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.site-logo .logo-hd {
    color: var(--accent-red);
    background: var(--accent-red);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 1px;
}

.site-logo .logo-movie {
    color: #fff;
}

.site-logo .logo-2 {
    color: var(--accent-red);
}

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

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 8px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #fff;
    background: rgba(229, 9, 20, 0.15);
}

/* Sub-menus */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 200px;
    padding: 8px 0;
    box-shadow: var(--shadow-hover);
    z-index: 100;
    flex-direction: column;
}

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

.main-navigation .sub-menu a {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 0;
}

/* Header Search */
.header-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.header-search-form input[type="search"] {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px 14px;
    width: 200px;
    outline: none;
    font-size: 13px;
}

.header-search-form input[type="search"]::placeholder {
    color: var(--text-muted);
}

.header-search-form button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.header-search-form button:hover {
    color: var(--accent-red);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ===================== SEARCH BAR (Below Header) ===================== */
.content-search-bar {
    background: var(--bg-secondary);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.content-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 100%;
}

.content-search-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 12px 18px;
    font-size: 15px;
    outline: none;
}

.content-search-form input[type="search"]::placeholder {
    color: var(--text-muted);
}

.content-search-form button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 18px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.content-search-form button:hover {
    color: var(--accent-red);
}

/* ===================== MAIN LAYOUT ===================== */
.site-main-wrapper {
    display: flex;
    gap: 25px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px 15px;
}

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

.sidebar-area {
    width: 320px;
    flex-shrink: 0;
}

/* ===================== SECTION HEADERS ===================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--accent-red);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.see-all-link {
    background: var(--accent-red);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.see-all-link:hover {
    background: var(--accent-red-hover);
    color: #fff;
}

/* ===================== MOVIE CARD GRID ===================== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.movie-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-card);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.movie-card-thumb {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-input);
}

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

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

.movie-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    color: #fff;
    z-index: 2;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: var(--bg-badge-featured);
}

.badge-hindi-dubbed {
    background: var(--bg-badge-hindi);
}

.badge-new-episode {
    background: var(--bg-badge-new);
    color: #000;
}

.badge-webseries {
    background: var(--bg-badge-webseries);
}

.badge-new-season {
    background: var(--bg-badge-new);
    color: #000;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    font-size: 9px;
    padding: 3px 12px;
    white-space: nowrap;
}

.movie-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 10px 10px;
    opacity: 0;
    transition: var(--transition);
}

.movie-card:hover .movie-card-overlay {
    opacity: 1;
}

.movie-card-info {
    padding: 10px 8px;
}

.movie-card-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    line-height: 1.3;
}

.movie-card-title a {
    color: inherit;
}

.movie-card-title a:hover {
    color: var(--accent-red);
}

.movie-card-year {
    font-size: 12px;
    color: var(--text-muted);
}

.movie-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--accent-yellow);
    margin-right: 8px;
}

.movie-card-rating svg {
    width: 12px;
    height: 12px;
    fill: var(--accent-yellow);
}

/* ===================== LATEST MOVIES GRID ===================== */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

/* ===================== PAGINATION ===================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination-wrapper a:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.pagination-wrapper .current,
.pagination-wrapper span.current {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

/* ===================== SIDEBAR ===================== */
.sidebar-area .widget {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    padding: 15px 18px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title .toggle-icon {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    transition: var(--transition);
}

.widget-content {
    padding: 12px 0;
}

/* Genre Widget */
.genre-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    transition: var(--transition);
}

.genre-list li:hover {
    background: rgba(229, 9, 20, 0.1);
}

.genre-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.genre-list li a::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.genre-list .genre-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Year Widget */
.year-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 18px;
}

.year-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.year-grid a:hover,
.year-grid a.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

/* Popular Movies Widget */
.popular-list {
    padding: 0;
}

.popular-item {
    display: flex;
    gap: 12px;
    padding: 10px 18px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

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

.popular-item:hover {
    background: rgba(229, 9, 20, 0.08);
}

.popular-item-thumb {
    width: 55px;
    height: 75px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-input);
}

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

.popular-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.popular-item-title a {
    color: inherit;
}

.popular-item-title a:hover {
    color: var(--accent-red);
}

.popular-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.popular-item-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(245, 197, 24, 0.15);
    padding: 2px 8px;
    border-radius: 3px;
    color: var(--accent-yellow);
    font-size: 11px;
    font-weight: 600;
}

.popular-item-rating svg {
    width: 10px;
    height: 10px;
    fill: var(--accent-yellow);
}

/* ===================== SINGLE POST ===================== */
.single-post-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.single-featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-input);
}

.single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-content {
    padding: 25px 30px;
}

.single-post-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.single-post-meta a {
    color: var(--accent-red);
}

.single-post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.single-post-meta svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--accent-red);
}

.breadcrumbs .separator {
    color: var(--text-muted);
}

/* Post Content */
.entry-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}

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

.entry-content h2 {
    font-size: 22px;
    margin: 25px 0 12px;
}

.entry-content h3 {
    font-size: 19px;
    margin: 22px 0 10px;
}

.entry-content h4 {
    font-size: 17px;
    margin: 18px 0 8px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 18px 25px;
    list-style: disc;
}

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

.entry-content li {
    margin-bottom: 6px;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent-red);
    padding: 15px 20px;
    margin: 20px 0;
    background: rgba(229, 9, 20, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 15px 0;
}

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

.entry-content a:hover {
    color: var(--accent-red-hover);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.entry-content th,
.entry-content td {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.entry-content th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.entry-content pre,
.entry-content code {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 13px;
}

.entry-content pre {
    padding: 15px;
    overflow-x: auto;
    margin: 18px 0;
}

.entry-content code {
    padding: 2px 6px;
}

/* Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 25px;
}

.post-tags .tag-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-heading);
}

.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.post-tags a:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.share-buttons .share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin-right: 5px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.pinterest { background: #e60023; }

/* Author Box */
.author-box {
    display: flex;
    gap: 18px;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 25px 0;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-input);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.author-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin: 30px 0;
}

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

/* ===================== COMMENTS ===================== */
.comments-area {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px 30px;
    margin-top: 25px;
}

.comments-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.comment-list {
    margin-bottom: 25px;
}

.comment {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-body {
    display: flex;
    gap: 14px;
}

.comment-author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-input);
}

.comment-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.comment-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 2px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comment-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-reply-link {
    font-size: 12px;
    color: var(--accent-red);
    font-weight: 500;
    margin-top: 6px;
    display: inline-block;
}

/* Comment Form */
.comment-respond {
    margin-top: 20px;
}

.comment-reply-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    margin-bottom: 15px;
    outline: none;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-red);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .submit {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.comment-form .submit:hover {
    background: var(--accent-red-hover);
}

/* ===================== FOOTER ===================== */
.site-footer-content {
    background: var(--bg-secondary);
    padding: 35px 0;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
}

.footer-content-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content-inner h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-content-inner p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-content-inner strong {
    color: var(--text-heading);
}

.footer-content-inner em {
    color: var(--text-secondary);
}

.footer-features {
    margin: 15px 0;
}

.footer-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-features .check-icon {
    color: var(--bg-badge-featured);
    font-size: 16px;
}

.site-footer-bottom {
    background: var(--bg-footer);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-copyright a {
    color: var(--accent-red);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
}

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

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

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--bg-input);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 14px;
}

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

/* ===================== BACK TO TOP ===================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-red-hover);
    transform: translateY(-3px);
}

/* ===================== SEARCH RESULTS / ARCHIVE ===================== */
.archive-header {
    padding: 25px 0 20px;
}

.archive-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 28px;
    background: var(--accent-red);
    border-radius: 2px;
}

.archive-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.search-results-info {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.no-results .search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* ===================== PAGE TEMPLATE ===================== */
.page-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* ===================== 404 ===================== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 80px;
    color: var(--accent-red);
    margin-bottom: 10px;
}

.error-404 h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.error-404 p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.error-404 .btn-home {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-red);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.error-404 .btn-home:hover {
    background: var(--accent-red-hover);
    color: #fff;
}

/* ===================== WIDGETS GENERAL ===================== */
.widget ul li {
    padding: 6px 18px;
}

.widget ul li a {
    font-size: 14px;
    color: var(--text-primary);
}

.widget ul li a:hover {
    color: var(--accent-red);
}

/* ===================== AD SLOTS ===================== */
.ad-slot {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* ===================== LOADING ===================== */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ===================== MOBILE DRAWER ===================== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-header);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.mobile-drawer.active {
    left: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.mobile-drawer .mobile-nav ul {
    display: flex;
    flex-direction: column;
}

.mobile-drawer .mobile-nav a {
    display: block;
    padding: 12px 18px;
    color: var(--text-primary);
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.mobile-drawer .mobile-nav a:hover {
    background: rgba(229, 9, 20, 0.1);
    color: var(--accent-red);
}

.mobile-drawer .mobile-search {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer .mobile-search form {
    display: flex;
}

.mobile-drawer .mobile-search input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    outline: none;
    font-size: 14px;
}

.mobile-drawer .mobile-search button {
    background: var(--accent-red);
    border: none;
    color: #fff;
    padding: 10px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
    .movies-grid,
    .latest-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sidebar-area {
        width: 280px;
    }

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

@media (max-width: 992px) {
    .site-main-wrapper {
        flex-direction: column;
    }

    .sidebar-area {
        width: 100%;
    }

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

    .main-navigation {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-overlay,
    .mobile-drawer {
        display: block;
    }

    .header-search-form input[type="search"] {
        width: 150px;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 55px;
    }

    .movies-grid,
    .latest-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

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

    .site-logo a {
        font-size: 22px;
    }

    .header-search {
        display: none;
    }

    .single-post-content {
        padding: 18px 20px;
    }

    .single-post-title {
        font-size: 22px;
    }

    .comments-area {
        padding: 18px 20px;
    }

    .page-wrapper {
        padding: 20px;
    }

    .section-title {
        font-size: 17px;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 576px) {
    .movies-grid,
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .movie-card-info {
        padding: 6px;
    }

    .movie-card-title {
        font-size: 12px;
    }

    .movie-card-year {
        font-size: 11px;
    }

    .single-post-title {
        font-size: 19px;
    }

    .single-post-meta {
        font-size: 12px;
        gap: 10px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .error-404 h1 {
        font-size: 60px;
    }

    .content-search-form input[type="search"] {
        padding: 10px 14px;
        font-size: 14px;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .movies-grid,
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-logo a {
        font-size: 20px;
    }
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.4s ease forwards;
}

/* ===================== PRINT ===================== */
@media print {
    .site-header,
    .sidebar-area,
    .site-footer-content,
    .site-footer-bottom,
    .back-to-top,
    .share-buttons,
    .related-posts,
    .comments-area,
    .pagination-wrapper {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .content-area {
        width: 100%;
    }

    a {
        color: #000;
    }
}
