/* Reset & General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

:root {
    --bg-color: #141414;
    /* Netflix dark */
    --accent-color: #D4AF37;
    /* Gold */
    --accent-hover: #F1C40F;
    /* Brighter gold */
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --card-bg: #1F1F1F;
    --navbar-bg: rgba(20, 20, 20, 0.95);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    padding: 1rem 2rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-left: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
}

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

/* Dropdown */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown>a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr;
    max-height: 400px;
    overflow-y: auto;
}

/* Scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.dropdown-menu.multi-column {
    grid-template-columns: 1fr 1fr;
    min-width: 400px;
}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-bar {
    margin-right: auto;
    margin-left: 2rem;
}

.search-bar form {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-bar form:focus-within {
    border-color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    padding: 0.2rem;
    font-size: 0.95rem;
    width: 220px;
    transition: width 0.4s ease;
}

.search-bar input::placeholder {
    color: #777;
    transition: color 0.3s;
}

.search-bar input:focus {
    width: 280px;
}

.search-bar input:focus::placeholder {
    color: transparent;
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover,
.search-bar form:focus-within button {
    color: var(--accent-color);
    transform: scale(1.1);
}

.nav-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn {
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.register-btn {
    background-color: var(--accent-color);
    color: #000;
    font-weight: 700;
}

.register-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu span {
    color: var(--accent-color);
    font-weight: 500;
}

.logout-btn {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.logout-btn:hover {
    color: #e74c3c;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    /* offset for navbar */
    min-height: calc(100vh - 150px);
    padding-bottom: 3rem;
}

/* Footer */
.footer {
    background-color: #0c0c0c;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 2px solid var(--accent-color);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Auth Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    /* 80px navbar offset */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/bg-auth.jpg') center/cover;
}

.auth-form-wrapper {
    background-color: rgba(0, 0, 0, 0.85);
    padding: 3rem;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    border-top: 3px solid var(--accent-color);
}

.auth-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border-radius: 4px;
    border: none;
    background-color: #333;
    color: white;
    font-size: 1rem;
    outline: none;
}

.form-group input:focus {
    background-color: #444;
    border: 1px solid var(--accent-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--accent-hover);
}

.auth-switch {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
}

.auth-switch a {
    color: var(--text-primary);
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Utility */
.error-msg {
    background-color: #e74c3c;
    color: white;
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.success-msg {
    background-color: #2ecc71;
    color: white;
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Movie Grids & Cards */
.section-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

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

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    background: linear-gradient(90deg, #1f1f1f 25%, #2a2a2a 50%, #1f1f1f 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.movie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-overlay {
    transform: translateY(0);
}

.movie-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    font-size: 0.8rem;
    color: var(--accent-color);
    display: flex;
    justify-content: space-between;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.movie-card:hover .play-btn-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--card-bg);
    border-radius: 4px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background-color: var(--accent-color);
    color: #000;
}

/* Watch Page */
.watch-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.player-wrapper {
    width: 100%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

/* Player Loader Styles */
.player-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    /* Needs to be above the iframe while loading */
    color: var(--accent-color);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(212, 175, 55, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.movie-info-section {
    margin-top: 1.5rem;
}

.watch-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.action-bar {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.action-btn {
    background: transparent;
    border: 1px solid #555;
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.action-btn.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.synopsis {
    color: var(--text-secondary);
    line-height: 1.8;
}

.movie-categories {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.category-tag {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.category-tag:hover {
    background-color: var(--accent-color);
    color: #000;
}

/* Sidebar Episodes / Related */
.sidebar-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 0.8rem;
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

/* minimal custom scrollbar */
.episode-list::-webkit-scrollbar {
    width: 6px;
}

.episode-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.ep-btn {
    display: block;
    padding: 0.8rem 1rem;
    background: #2a2a2a;
    border-radius: 4px;
    transition: background 0.2s;
}

.ep-btn:hover,
.ep-btn.active {
    background: var(--accent-color);
    color: #000;
}

/* Comments */
.comments-section {
    margin-top: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.comments-section h3 {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    font-size: 1.5rem;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.2rem;
    border-radius: 8px;
    min-height: 120px;
    resize: vertical;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.comment-form textarea:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.comment-item {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.comment-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #333, #111);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.comment-content h4 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 0.5rem;
}

.comment-text {
    color: #ddd;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .watch-container {
        grid-template-columns: 1fr;
    }
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-controls {
    display: none;
}

.mobile-search-bar {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 1.2rem;
    }

    .mobile-search-toggle {
        color: var(--text-primary);
        font-size: 1.3rem;
        transition: color 0.3s;
        display: flex;
        align-items: center;
    }

    .mobile-search-toggle:hover {
        color: var(--accent-color);
    }

    .nav-content {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--navbar-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        padding-top: 2rem;
        gap: 2rem;
        margin-left: 0;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-content.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
    }

    .nav-right {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .search-bar {
        margin: 0;
        width: 100%;
        padding: 0 1rem;
    }

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

    .search-bar input {
        width: 100%;
    }

    .search-bar input:focus {
        width: 100%;
    }

    .dropdown {
        flex-direction: column;
        width: 100%;
    }

    .dropdown>a {
        justify-content: center;
        padding: 0.5rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        /* initially hidden in mobile */
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        display: grid;
        max-height: 500px;
        margin-top: 1rem;
    }

    .dropdown-menu.multi-column {
        min-width: auto;
    }

    .dropdown-menu a {
        text-align: center;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .view-all {
        align-self: flex-start;
    }

    .watch-title {
        font-size: 1.5rem;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .action-btn {
        justify-content: center;
    }

    /* Mobile Search Bar Dropdown */
    .mobile-search-bar {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--navbar-bg);
        padding: 1rem 2rem;
        border-bottom: 2px solid var(--accent-color);
        z-index: 998;
    }

    .mobile-search-bar.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .mobile-search-bar form {
        display: flex;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.8);
        border-radius: 50px;
        padding: 0.4rem 1.2rem;
        border: 1px solid rgba(212, 175, 55, 0.3);
        width: 100%;
    }

    .mobile-search-bar input {
        background: transparent;
        border: none;
        color: var(--text-primary);
        outline: none;
        padding: 0.2rem;
        font-size: 1rem;
        width: 100%;
    }

    .mobile-search-bar button {
        background: transparent;
        border: none;
        color: var(--accent-color);
        font-size: 1.2rem;
        cursor: pointer;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Movie Slider */
.movie-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.movie-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem 0; /* for hover effects */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.movie-slider::-webkit-scrollbar {
    display: none;
}

.movie-slider .movie-card {
    flex: 0 0 calc((100% - (5 * 1.5rem)) / 6); /* Show 6 items */
    min-width: 150px;
}

@media (max-width: 1200px) {
    .movie-slider .movie-card {
        flex: 0 0 calc((100% - (4 * 1.5rem)) / 5); /* Show 5 items */
    }
}
@media (max-width: 992px) {
    .movie-slider .movie-card {
        flex: 0 0 calc((100% - (3 * 1.5rem)) / 4); /* Show 4 items */
    }
}
@media (max-width: 768px) {
    .movie-slider .movie-card {
        flex: 0 0 calc((100% - (2 * 1.5rem)) / 3); /* Show 3 items */
    }
}
@media (max-width: 576px) {
    .movie-slider .movie-card {
        flex: 0 0 calc((100% - (1 * 1.5rem)) / 2); /* Show 2 items */
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    opacity: 0;
}
.movie-slider-wrapper:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.slider-btn.prev {
    left: -20px;
}
.slider-btn.next {
    right: -20px;
}

@media (max-width: 768px) {
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        opacity: 1; /* Always show on mobile */
    }
    .slider-btn.prev {
        left: -10px;
    }
    .slider-btn.next {
        right: -10px;
    }
}

/* Floating Ads */
.float-ad {
    position: fixed;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.float-ad-left {
    bottom: 20px;
    left: 20px;
}

.float-ad-right {
    bottom: 20px;
    right: 20px;
}

.float-ad-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 728px;
    align-items: center;
}

.float-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.close-float-ad {
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 5px;
    font-size: 14px;
    transition: background 0.3s;
}

.close-float-ad:hover {
    background: #e74c3c;
}

@media (max-width: 1024px) {
    .float-ad-left, .float-ad-right {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .float-ad-left, .float-ad-right {
        max-width: 150px;
        bottom: 90px;
    }
    .float-ad-left {
        left: 0px;
    }
    .float-ad-right {
        right: 0px;
    }
}
