/* Variables for easy customization */
:root {
  --primary-color: #ff9800;
  --background-color: #f4f4f9; /* matches your original body bg */
  --text-color: #333;
  --button-bg: #333;
  --button-hover-bg: #444;
  --button-text: #fff;
  --link-color: var(--primary-color);
  --link-hover-color: #e68a00;
  --text-muted: #555;
}

/* Base styling */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--link-hover-color);
    text-decoration: none;
}

/* Filter container: more space for the sidebar */
.filter-container {
    display: flex;
    width: 100%;
}

/* Sidebar */
.filter-sidebar {
    width: 400px;
    padding: 20px;
    background-color: #fff;
    border-right: 1px solid #ddd;
    position: sticky;
    top: 0;
    overflow-y: auto;
    height: 100vh;
}

/* Filter groups */
.filter-sidebar .filter-group {
    margin-bottom: 20px;
}
.filter-sidebar .filter-group h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text-color);
}

/* 2-column and 3-column grids */
.two-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.three-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* Inputs and selects */
.filter-sidebar input[type="number"],
.filter-sidebar input[type="text"],
.filter-sidebar select {
    width: 100%;
    padding: 6px 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}
.filter-sidebar input:focus,
.filter-sidebar select:focus {
    border-color: var(--primary-color);
}

/* Buttons */
.filter-sidebar button {
    padding: 10px 15px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.filter-sidebar button:hover {
    background-color: var(--button-hover-bg);
}

.filter-sidebar a {
    display: inline-block;
    color: var(--text-color);
    background-color: #ddd;
    text-decoration: none;
    border-radius: 5px;
    padding: 10px 15px;
    margin-left: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.filter-sidebar a:hover {
    background-color: #bbb;
    text-decoration: none;
    color: var(--text-color);
}

/* Results section */
.filter-results {
    flex: 1;
    padding: 20px;
}
.filter-results h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-color);
}



/* Positioning for top/bottom info */
.top-left, .top-right {
    position: absolute;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
}
.top-left {
    top: 5px;
    left: 5px;
}
.top-right {
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
}
.bottom-left {
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-size: 13px;
}
.bottom-right {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 13px;
}

/* Play button in center on hover */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.play-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.07);
}

/* Pagination */
.paginator {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.paginator ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 5px;
}
.paginator__item {
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.paginator__item a {
    text-decoration: none;
    color: #fff;
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    text-align: center;
}
.paginator__item:hover {
    background-color: #575757;
}
.paginator__item--active {
    background-color: var(--primary-color);
}
.paginator__item--more {
    background-color: #777;
    cursor: default;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .filter-sidebar {
        width: 300px;
    }
}
@media (max-width: 992px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
    }
    .filter-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
