/*
Theme Name: Horror Movies
Theme URI: https://24gtv.com/action/
Author: Comedy Movies Dev Team
Version: 1.0
Description: WordPress video player theme with autoplay, playlists, PiP, Cast, and Pinterest layout - Action movie category
*/

/* ============================================================
   CUSTOM FONTS
============================================================ */
@font-face {
    font-family: 'Alfa Slab One';
    src: url('assets/fonts/Alfa_Slab_One/AlfaSlabOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comforter';
    src: url('assets/fonts/Comforter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   MENU STYLES
============================================================ */

/* Default Menu (Desktop) */
#top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu-button {
    color: white;
    font-size: 24px;
    font-family: 'Impact', sans-serif;
    padding: 20px 0px;
    cursor: pointer;
    text-align: center;
    user-select: none;
}

.menu-links {
    display: none;
    padding: 10px;
    text-align: center;
    transform-origin: top center;
    transition: all 0.3s ease;
}

.menu-links a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    font-family: 'Impact', sans-serif;
    padding: 10px 15px;
    display: inline-block;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.menu-links a:hover {
    color: #d86800;
}

/* Open Menu State */
#top-menu.menu-open {
    background-color: rgba(0, 0, 0, 0.9);
}

#top-menu.menu-open .menu-links {
    display: block;
    transform: scaleY(1);
}

#top-menu.menu-open .menu-links a {
    font-size: 1.2em;
}

/* Mobile Menu Overlay */
#menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#menu-overlay.active {
    display: block;
}

/* ============================================================
   BASE BODY STYLES
============================================================ */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    /* FIXED: Removed missing Car.gif - using gradient instead */
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    background-attachment: fixed;
}

/* ============================================================
   SITE HEADER & TITLE ANIMATION
============================================================ */
.site-header {
    text-align: center;
    background: #000;
    padding: 0px 0;
}

#site-title-animation-container {
    position: relative;
    overflow: hidden;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-title {
    font-family: 'Alfa Slab One', cursive;
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 5px 2px #d86800;
    margin: 0;
    position: relative;
    top: -200px;
    animation: dropBounceShake 3s ease-in-out forwards;
}

@keyframes dropBounceShake {
    0% {
        top: -200px;
        transform: rotate(0deg);
    }
    50% {
        top: 0;
        transform: rotate(0deg);
        animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
    }
    65% {
        top: -20px;
        transform: rotate(-3deg);
    }
    80% {
        top: 0;
        transform: rotate(3deg);
    }
    90% {
        top: -5px;
        transform: rotate(-1deg);
    }
    100% {
        top: 0;
        transform: rotate(0deg);
    }
}

.movies {
    font-size: 5rem;
    font-family: 'Comforter', cursive;
    color: white;
    text-shadow: 2px 2px #d86800;
}

.site-top-image-stack img,
.site-bottom-image-stack img {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* ============================================================
   MAIN CONTENT AREA
============================================================ */
#horror-main {
    max-width: none;
    margin: 5px auto;
    padding: 0 5px;
    box-sizing: border-box;
}

/* ============================================================
   NOW PLAYING SECTION
============================================================ */
#horror-player-section {
    background-color: #000000;
    border: 1px solid #d86800;
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

#now-playing {
    font-family: 'Comforter', cursive !important;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    padding: 5px 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

#now-playing-label {
    display: inline-block;
    color: #d86800;
    animation: slideInLeft 1s ease-out forwards;
}

#now-playing-title {
    display: inline-block;
    color: #fff;
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================================
   VIDEO PLAYER
============================================================ */
#horror-player {
    max-width: 100%;
    width: 100%;
    max-height: auto;
    background-color: #000;
    border: 1px solid #333;
    display: block;
    margin: 0 auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Video Playing Animation */
body.video-playing {
    animation: keep-awake 30s infinite;
}

@keyframes keep-awake {
    0% { opacity: 1; }
    50% { opacity: 0.99999; }
    100% { opacity: 1; }
}

/* ============================================================
   VIDEO CONTROLS
============================================================ */
.video-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.video-controls button {
    background-color: #000000;
    color: #d86800;
    border: 1px solid #d86800;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.video-controls button:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

.video-controls button:active {
    transform: translateY(0);
}

/* Cast Button Special Styling */
#cast-btn {
    background-color: #FF5722;
    color: white;
}

#cast-btn:hover {
    background-color: #FF7043;
}

#cast-btn.casting {
    background-color: #4CAF50 !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
    }
}

/* ============================================================
   NOW PLAYING THUMBNAIL
============================================================ */
.now-playing-images {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    width: 100%;
    margin: 0 auto 15px auto;
}

.now-playing-thumbnail-wrapper {
    width: 100%;
    max-height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    border: 2px solid #d86800;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    background-color: #000;
    max-width: 100%;
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.now-playing-thumbnail-wrapper.is-playing {
    animation: glowing-pulse 1.5s infinite alternate;
}

@keyframes glowing-pulse {
    0% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        border-color: #d86800;
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 223, 0, 0.8), 0 0 35px rgba(255, 223, 0, 0.6);
        border-color: #ffffff;
    }
    100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        border-color: #d86800;
    }
}

.now-playing-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.now-playing-images .stacked-img:not(.now-playing-thumbnail) {
    width: 100%;
    height: auto;
    display: block;
    margin: 5px 0;
}

/* ============================================================
   THUMBNAIL GRID (PLAYLIST)
============================================================ */
.thumbnail-grid {
    column-count: 4;
    column-gap: 15px;
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.thumbnail-grid .thumb {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    background: #111;
    border: 2px solid #654321;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    break-inside: avoid;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.thumbnail-grid .thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.thumbnail-grid .thumb:hover {
    transform: scale(1.03);
    border-color: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.thumbnail-grid .thumb .video-title {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9em;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.thumbnail-grid .thumb:hover .video-title {
    transform: translateY(0);
}

.thumbnail-grid .thumb .video-overlay,
.thumbnail-grid .thumb .overlay {
    display: none;
}

/* ============================================================
   PAGINATION CONTROLS
============================================================ */
.pagination-controls {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 15px auto;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pagination-controls button {
    background: #d4af37;
    color: #000;
    border: 1px solid #555;
    padding: 4px 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination-controls button:hover:not([disabled]) {
    background: #ffcc00;
    color: #000;
    border-color: #777;
}

.pagination-controls button[disabled] {
    background: #444;
    color: #bbb;
    cursor: default;
    opacity: 0.7;
}

/* ============================================================
   SEARCH BOX STYLES
============================================================ */
.horror-search-container {
    position: relative;
    width: 90%;
    max-width: 600px; 
    margin: 20px auto;
    z-index: 10; 
}

#horror-video-search {
    width: 100%;
    padding: 15px 50px 15px 25px; 
    font-size: 16px;
    border: 2px solid #d86800;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#horror-video-search::placeholder {
    color: #999;
}

#horror-video-search:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(216, 104, 0, 0.5);
    background: rgba(0, 0, 0, 1);
}

#horror-clear-search {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: #d86800;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#horror-clear-search:hover {
    background: #ffffff;
    color: #d86800;
    transform: translateY(-50%) scale(1.1);
}

#horror-search-results-count {
    text-align: center;
    margin-top: 10px;
    font-size: 1.1em;
    color: #d86800;
    font-weight: bold;
    display: none; 
}

.horror-search-highlight {
    background-color: #d86800;
    color: #000;
    padding: 1px 4px;
    border-radius: 4px;
}

/* ============================================================
   SEARCH DROPDOWN
============================================================ */
#horror-search-dropdown {
    position: absolute; 
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #d86800;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 20;
    max-height: 400px;
    overflow-y: auto;
}

.horror-search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.horror-search-result-item:hover {
    background-color: rgba(216, 104, 0, 0.2);
}

.horror-search-result-item img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.horror-search-result-title {
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   BOTTOM IMAGE STACK
============================================================ */
.site-bottom-image {
    width: 100%;
    margin-top: 0px;
    text-align: center;
}

.site-bottom-image .full-width-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
    margin: 0 auto;
}

.site-bottom-image-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.stacked-image {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
}

/* ============================================================
   ADMIN STYLES
============================================================ */
body.wp-admin.dark-mode .wrap {
    background-color: #1e1e1e;
    color: #ffffff;
}

button.button {
    margin-right: 10px;
}

/* ============================================================
   RESPONSIVE DESIGN - TABLETS
============================================================ */
@media (max-width: 1024px) {
    .thumbnail-grid {
        column-count: 3;
    }
    
    .site-title {
        font-size: 4.5rem;
    }
    
    #site-title-animation-container {
        height: 100px;
    }
    
    #now-playing {
        font-size: 1.15rem;
    }
}

/* ============================================================
   RESPONSIVE DESIGN - MOBILE LANDSCAPE
============================================================ */
@media (max-width: 768px) {
    /* Mobile Menu Slide-In */
    #top-menu {
        /* FIXED: Removed missing background.jpg */
        background-color: rgba(0, 0, 0, 0.95);
        left: -100%;
        top: 0;
        width: 80%;
        height: 100vh;
        transition: left 0.3s ease-in-out;
        display: block;
        overflow-y: auto;
        padding-top: 60px;
    }

    #top-menu.menu-open {
        left: 0;
    }

    .menu-button {
        position: fixed;
        left: 10px;
        top: 10px;
        z-index: 1001;
        color: white;
        text-align: left;
        padding: 15px 20px;
        display: block;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 5px;
        border: 2px solid #d86800;
    }

    .menu-button:hover {
        background-color: rgba(216, 104, 0, 0.3);
    }

    .menu-button span::before {
        content: "☰ ";
        font-size: 1.2em;
    }

    #top-menu.menu-open .menu-button span::before {
        content: "✕ ";
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .menu-links a {
        font-size: 1.8em;
        padding: 15px 10px;
        width: 100%;
        border-bottom: 1px solid rgba(216, 104, 0, 0.3);
    }

    .menu-links a:last-child {
        border-bottom: none;
    }
    
    .thumbnail-grid {
        column-count: 2;
    }
    
    .site-title {
        font-size: 3.5rem;
    }
    
    #site-title-animation-container {
        height: 80px;
    }
    
    #now-playing {
        font-size: 1.1rem;
    }
    
    .video-controls {
        gap: 8px;
    }
    
    .video-controls button {
        padding: 9px 14px;
        font-size: 1rem;
    }
}

/* ============================================================
   RESPONSIVE DESIGN - MOBILE PORTRAIT
============================================================ */
@media (max-width: 480px) {
    .thumbnail-grid {
        column-count: 1;
        padding: 5px;
        column-gap: 10px;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    #site-title-animation-container {
        height: 60px;
    }
    
    #now-playing {
        font-size: 1rem;
        padding: 3px 0;
    }
    
    #now-playing-label,
    #now-playing-title {
        margin: 0 3px;
    }
    
    .video-controls button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    #horror-player-section {
        padding: 10px;
    }
    
    .horror-search-container {
        width: 100%;
        padding: 0 5px;
    }
    
    #horror-video-search {
        padding: 15px 40px 15px 15px; 
    }
    
    #horror-main {
        padding: 0 5px;
    }
}

/* Force video to stay in viewport */
.video-frame {
    position: relative;
    transform: translateZ(0);
}
/* ============================================
   PAGINATION STYLING - Bigger & Centered
   ============================================ */

/* Container */
#pagination,
.video-pagination {
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically */
    gap: 10px;                /* Space between buttons */
    margin: 40px auto;        /* Space above/below, center container */
    padding: 20px;
    width: 100%;
}

/* Pagination Buttons */
#pagination button,
.video-pagination button {
    /* SIZE */
    font-size: 1.5rem;        /* Make text bigger (adjust as needed) */
    min-width: 50px;          /* Minimum button width */
    min-height: 50px;         /* Make buttons taller */
    padding: 12px 20px;       /* Internal spacing */
    
    /* STYLING */
    background: #333;
    color: #fff;
    border: 2px solid #555;
    border-radius: 8px;       /* Rounded corners */
    cursor: pointer;
    font-weight: bold;
    
    /* EFFECTS */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Hover Effect */
#pagination button:hover,
.video-pagination button:hover {
    background: #555;
    border-color: #777;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Active/Current Page */
#pagination button:disabled,
.video-pagination button:disabled {
    background: #d86800;      /* Your theme orange color */
    color: #fff;
    border-color: #d86800;
    cursor: default;
    transform: none;
}

/* Previous/Next Buttons - Make them stand out */
#pagination button:first-child,
#pagination button:last-child {
    font-weight: bold;
    padding: 12px 25px;       /* Slightly wider */
}
/* Smaller on mobile devices */
@media (max-width: 768px) {
    #pagination button {
        font-size: 1.5rem;
        min-width: 50px;
        min-height: 50px;
        padding: 12px 15px;
    }
    
    #pagination {
        gap: 10px;
    }
}
```

---

## 🔍 Troubleshooting:

### **If Nothing Changed:**

1. **Check the right file:** Make sure you edited `style.css` in your **HORROR** theme folder
2. **Clear cache again:** Purge Cloudflare cache one more time
3. **Hard refresh:** Do `Ctrl + Shift + F5` (super hard refresh)
4. **Check browser console:** Press `F12`, look for CSS errors

### **If It Looks Wrong:**

- **Too big?** Lower the `font-size` from `2rem` to `1.5rem`
- **Not centered?** Make sure the code is exactly as I showed
- **Wrong colors?** You can change `background: #333;` to any color you want

---

## 🎯 Visual Guide:

**Your pagination should look like this:**
```
[← Previous]  [1]  [2]  [3]  [4]  [5]  [Next →]
     ↑         ↑    ↑    ↑    ↑    ↑       ↑
  60px wide   Big numbers (2rem)    Centered on page