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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0b0f;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 6%;
    background: rgba(11, 11, 15, 0.96);
    border-bottom: 1px solid #202027;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    white-space: nowrap;
}

.navbar nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    min-width: 0;
}

.navbar nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
    white-space: nowrap;
}

.navbar nav a:hover {
    opacity: 0.65;
}


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

.hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 35%,
            #292936 0%,
            #17171f 35%,
            #0b0b0f 72%
        );
}

.hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    max-width: 90vw;
    max-height: 90vw;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    filter: blur(10px);
    pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: 750px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(38px, 7vw, 72px);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 18px;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.hero p {
    color: #b7b7c2;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 25px;
    border-radius: 10px;
    background: #ffffff;
    color: #0b0b0f;
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s ease;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   MOVIES SECTION
========================================================= */

.movies-section {
    width: 100%;
    padding: 70px 6%;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 34px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    overflow-wrap: anywhere;
}

.section-header p {
    color: #9999a5;
    line-height: 1.5;
}


/* =========================================================
   MOVIE SEARCH
========================================================= */

.search-box {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 35px;
    position: relative;
}

.search-input {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 15px 52px 15px 18px;
    border: 1px solid #292933;
    border-radius: 12px;
    outline: none;
    font-size: 16px;
    background: #111117;
    color: #ffffff;
    transition: 0.25s ease;
}

.search-input::placeholder {
    color: #777782;
}

.search-input:focus {
    border-color: #555562;
    background: #15151c;
    box-shadow:
        0 0 0 3px
        rgba(255, 255, 255, 0.04);
}

.search-icon {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
    pointer-events: none;
}

.search-result-info {
    text-align: center;
    margin-top: -15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #9999a5;
    display: none;
}

.no-search-result {
    display: none;
    text-align: center;
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
}

.no-search-result .empty-icon {
    font-size: 45px;
    margin-bottom: 10px;
}


/* =========================================================
   MOVIE GRID
========================================================= */

.movie-grid {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(210px, 1fr));
    gap: 24px;
}


/* =========================================================
   PREMIUM MOVIE CARD
========================================================= */

.movie-card {
    min-width: 0;
    overflow: hidden;
    background: #111117;
    border: 1px solid #202027;
    border-radius: 16px;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: #3a3a47;
    box-shadow:
        0 18px 40px
        rgba(0, 0, 0, 0.32);
}


/* =========================================================
   MOVIE POSTER
========================================================= */

.movie-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    height: auto;
    display: block;
    object-fit: cover;
    background: #1a1a22;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.025);
}


/* =========================================================
   MOVIE INFO
========================================================= */

.movie-info {
    min-width: 0;
    padding: 18px;
    background:
        linear-gradient(
            to bottom,
            #111117,
            #101016
        );
}

.movie-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 50px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.movie-button {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 9px;
    background: #ffffff;
    color: #0b0b0f;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.25s ease;
}

.movie-button:hover {
    transform: translateY(-2px);
    background: #eeeeee;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    border: 1px solid #202027;
    border-radius: 16px;
    background: #111117;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 18px;
}

.empty-state h3 {
    font-size: 22px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.empty-state p {
    color: #888894;
    line-height: 1.5;
}


/* =========================================================
   MOVIE DETAILS
========================================================= */

.movie-details {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 70px 6%;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 45px;
    align-items: center;
}

.movie-details-poster {
    min-width: 0;
}

.movie-details-poster img {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.3);
}

.movie-details-info {
    min-width: 0;
}

.movie-details-info h1 {
    font-size: 42px;
    margin-bottom: 15px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.movie-details-info > p {
    color: #9999a5;
    margin-bottom: 30px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}


/* =========================================================
   WATCH SECTION
========================================================= */

.watch-section {
    margin-top: 25px;
    margin-bottom: 25px;
}

.watch-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.watch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 22px;
    border-radius: 10px;
    background: #ffffff;
    color: #0b0b0f;
    text-decoration: none;
    font-weight: 800;
    transition: 0.25s ease;
}

.watch-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.25);
}


/* =========================================================
   QUALITY
========================================================= */

.quality-section {
    margin-top: 20px;
}

.quality-section h2 {
    font-size: 20px;
    margin-bottom: 18px;
}

.quality-section p {
    color: #9999a5;
    margin-bottom: 18px;
    line-height: 1.5;
}

.quality-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quality-button {
    min-height: 44px;
    padding: 12px 22px;
    background: #ffffff;
    color: #0b0b0f;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

.quality-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.2);
}


/* =========================================================
   DOWNLOAD PAGE
========================================================= */

.download-page {
    width: 100%;
    min-height: calc(100vh - 140px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.download-card {
    width: 100%;
    max-width: 850px;
    min-width: 0;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 35px;
    padding: 30px;
    background: #111117;
    border: 1px solid #202027;
    border-radius: 18px;
}

.download-poster {
    width: 100%;
    border-radius: 12px;
    display: block;
}

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

.download-info h1 {
    font-size: 34px;
    margin-bottom: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.selected-quality {
    color: #9999a5;
    margin-bottom: 25px;
}

.download-box {
    padding: 25px;
    border: 1px solid #202027;
    border-radius: 14px;
    background: #0b0b0f;
}

.download-box p {
    color: #9999a5;
    margin-bottom: 18px;
    line-height: 1.5;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 13px 22px;
    border-radius: 9px;
    background: #ffffff;
    color: #0b0b0f;
    text-decoration: none;
    font-weight: 700;
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    color: #aaaab5;
    text-decoration: none;
}

.back-button:hover {
    color: #ffffff;
}


/* =========================================================
   ADMIN PAGE
========================================================= */

.admin-page {
    width: 100%;
    min-height: calc(100vh - 140px);
    padding: 55px 6%;
}


/* =========================================================
   ADMIN CARD
========================================================= */

.admin-card {
    width: 100%;
    max-width: 650px;
    margin: auto;
    padding: 35px;
    background: #111117;
    border: 1px solid #202027;
    border-radius: 18px;
}

.admin-card h1 {
    font-size: 32px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.admin-subtitle {
    color: #9999a5;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* =========================================================
   ADMIN DASHBOARD
========================================================= */

.admin-dashboard {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}


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

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

.dashboard-header > div:first-child {
    min-width: 0;
}

.dashboard-label {
    color: #888894;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.dashboard-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.dashboard-header .admin-subtitle {
    margin-bottom: 0;
}


/* =========================================================
   LOGOUT BUTTON
========================================================= */

.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 9px;
    border: 1px solid #292933;
    background: #15151c;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s;
}

.logout-button:hover {
    background: #1c1c25;
}


/* =========================================================
   DASHBOARD STATS
========================================================= */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 45px;
}

.stat-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: #111117;
    border: 1px solid #202027;
    border-radius: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #1a1a22;
    font-size: 23px;
    flex-shrink: 0;
}

.stat-label {
    display: block;
    color: #888894;
    font-size: 13px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 20px;
    overflow-wrap: anywhere;
}


/* =========================================================
   DASHBOARD SECTION
========================================================= */

.dashboard-section {
    margin-bottom: 45px;
}

.dashboard-section-header {
    margin-bottom: 20px;
}

.dashboard-section-header h2 {
    font-size: 25px;
    margin-bottom: 7px;
    overflow-wrap: anywhere;
}

.dashboard-section-header p {
    color: #888894;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dashboard-action {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #111117;
    border: 1px solid #202027;
    border-radius: 15px;
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s;
}

.dashboard-action:hover {
    transform: translateY(-3px);
    border-color: #353541;
    background: #15151c;
}

.action-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #1a1a22;
    font-size: 21px;
    flex-shrink: 0;
}

.dashboard-action strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
}

.dashboard-action small {
    display: block;
    color: #888894;
    font-size: 13px;
    line-height: 1.4;
}

.danger-action {
    border-color: #2a2024;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 9px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    min-height: 46px;
    padding: 13px 14px;
    border: 1px solid #292933;
    border-radius: 9px;
    background: #0b0b0f;
    color: #ffffff;
    outline: none;
    font-size: 15px;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    border-color: #555562;
}

.form-group input[type="file"] {
    width: 100%;
    min-height: 46px;
    padding: 11px;
    border: 1px dashed #292933;
    border-radius: 9px;
    background: #0b0b0f;
    color: #aaaab5;
    font-size: 14px;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: #777782;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   ADMIN SUBMIT
========================================================= */

.admin-submit-button {
    width: 100%;
    min-height: 48px;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: #ffffff;
    color: #0b0b0f;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.admin-submit-button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   ADMIN LOGIN
========================================================= */

.admin-login-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.login-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #3a272d;
    border-radius: 9px;
    background: #1b1216;
    color: #e7a9b4;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   MOVIE MANAGEMENT
========================================================= */

.admin-movie-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* =========================================================
   ADMIN MOVIE CARD
========================================================= */

.admin-movie-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: #111117;
    border: 1px solid #202027;
    border-radius: 16px;
    transition: 0.2s;
}

.admin-movie-card:hover {
    border-color: #34343f;
    background: #14141b;
}


/* =========================================================
   ADMIN MOVIE POSTER
========================================================= */

.admin-movie-poster {
    width: 82px;
    height: 112px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #1a1a22;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-no-poster {
    font-size: 30px;
}


/* =========================================================
   ADMIN MOVIE INFO
========================================================= */

.admin-movie-info {
    flex: 1;
    min-width: 0;
}

.admin-movie-info h3 {
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 12px;
    word-break: break-word;
    overflow-wrap: anywhere;
}


/* =========================================================
   QUALITY BADGES
========================================================= */

.movie-quality-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 15px;
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 5px 9px;
    border: 1px solid #292933;
    border-radius: 7px;
    background: #1a1a22;
    color: #bdbdc7;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   MOVIE MANAGEMENT ACTIONS
========================================================= */

.movie-management-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.movie-management-actions form {
    margin: 0;
}


/* =========================================================
   EDIT BUTTON
========================================================= */

.movie-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #0b0b0f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
}

.movie-edit-button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   DELETE BUTTON
========================================================= */

.movie-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #3a272d;
    border-radius: 8px;
    background: #1b1216;
    color: #e7a9b4;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.movie-delete-button:hover {
    background: #24171c;
    transform: translateY(-2px);
}


/* =========================================================
   MOVIE EMPTY STATE
========================================================= */

.admin-movie-empty {
    padding: 55px 25px;
    text-align: center;
    background: #111117;
    border: 1px solid #202027;
    border-radius: 16px;
}

.admin-movie-empty .empty-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.admin-movie-empty h3 {
    font-size: 20px;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.admin-movie-empty p {
    color: #888894;
    line-height: 1.5;
}


/* =========================================================
   EDIT MOVIE POSTER PREVIEW
========================================================= */

.edit-poster-preview {
    width: 180px;
    max-width: 100%;
    margin: 0 auto 30px;
}

.edit-poster-preview img {
    width: 100%;
    display: block;
    border-radius: 12px;
    border: 1px solid #292933;
}


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

footer {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #202027;
    color: #777782;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .navbar {
        padding: 0 4%;
    }

    .movies-section {
        padding-left: 4%;
        padding-right: 4%;
    }

    .movie-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .movie-details {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 30px;
    }

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

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


/* =========================================================
   MOBILE — 800px
========================================================= */

@media (max-width: 800px) {

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

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

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-details {
        grid-template-columns: 1fr;
        max-width: 560px;
        text-align: center;
    }

    .movie-details-poster {
        width: 100%;
        max-width: 260px;
        margin: auto;
    }

    .movie-details-info h1 {
        font-size: 32px;
    }

    .quality-buttons {
        justify-content: center;
    }

    .download-card {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .download-poster {
        width: 100%;
        max-width: 240px;
        margin: auto;
    }

    .download-info {
        text-align: center;
    }

    .download-box {
        text-align: center;
    }

    .admin-movie-card {
        align-items: flex-start;
    }
}


/* =========================================================
   MOBILE — PHONE
========================================================= */

@media (max-width: 600px) {

    .navbar {
        min-height: 62px;
        padding: 0 14px;
        gap: 10px;
    }

    .logo {
        font-size: 19px;
        letter-spacing: 1.5px;
    }

    .navbar nav {
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .navbar nav::-webkit-scrollbar {
        display: none;
    }

    .navbar nav a {
        font-size: 13px;
    }

    .hero {
        min-height: 360px;
        padding: 45px 18px;
    }

    .hero h1 {
        font-size: clamp(34px, 11vw, 42px);
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.55;
    }

    .hero-button {
        width: 100%;
        max-width: 260px;
        padding: 13px 20px;
    }

    .movies-section {
        padding: 45px 12px;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 14px;
    }

    .search-box {
        margin-bottom: 25px;
    }

    .search-input {
        min-height: 48px;
        font-size: 15px;
        padding: 13px 44px 13px 15px;
    }

    .movie-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .movie-card {
        border-radius: 13px;
    }

    .movie-info {
        padding: 11px;
    }

    .movie-info h3 {
        font-size: 14px;
        min-height: 40px;
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .movie-button {
        min-height: 40px;
        padding: 9px 7px;
        font-size: 12px;
        border-radius: 8px;
    }

    .empty-state {
        padding: 50px 16px;
    }

    .movie-details {
        padding: 50px 18px;
    }

    .movie-details-poster {
        max-width: 230px;
    }

    .movie-details-info h1 {
        font-size: 29px;
    }

    .movie-details-info > p {
        font-size: 14px;
    }

    .watch-button,
    .quality-button,
    .download-button {
        width: 100%;
    }

    .quality-buttons {
        flex-direction: column;
    }

    .download-page {
        padding: 40px 14px;
    }

    .download-card {
        padding: 20px;
        border-radius: 15px;
        gap: 25px;
    }

    .download-info h1 {
        font-size: 28px;
    }

    .download-box {
        padding: 20px;
    }

    .admin-page {
        padding: 32px 14px;
    }

    .admin-card {
        padding: 24px 16px;
        border-radius: 15px;
    }

    .admin-card h1 {
        font-size: 28px;
    }

    .dashboard-header h1 {
        font-size: 31px;
    }

    .dashboard-stats {
        gap: 12px;
        margin-bottom: 35px;
    }

    .stat-card {
        padding: 17px;
        gap: 13px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .dashboard-section {
        margin-bottom: 35px;
    }

    .dashboard-section-header h2 {
        font-size: 22px;
    }

    .action-grid {
        gap: 12px;
    }

    .dashboard-action {
        padding: 16px;
    }

    .action-icon {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .admin-movie-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 14px;
    }

    .admin-movie-poster {
        width: 100px;
        height: 136px;
    }

    .admin-movie-info h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .movie-quality-list {
        margin-bottom: 12px;
    }

    .movie-management-actions {
        width: 100%;
        gap: 8px;
    }

    .movie-management-actions form {
        flex: 1;
        min-width: 0;
    }

    .movie-edit-button,
    .movie-delete-button {
        width: 100%;
        min-height: 42px;
        flex: 1;
    }

    .edit-poster-preview {
        width: 150px;
        margin-bottom: 25px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .navbar {
        padding: 0 12px;
    }

    .logo {
        font-size: 18px;
    }

    .navbar nav {
        gap: 8px;
    }

    .navbar nav a {
        font-size: 12px;
    }

    .hero {
        min-height: 340px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 14px;
    }

    .movies-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .movie-grid {
        gap: 10px;
    }

    .movie-info {
        padding: 10px;
    }

    .movie-info h3 {
        font-size: 13px;
        min-height: 38px;
    }

    .movie-button {
        font-size: 11px;
        min-height: 38px;
    }

    .search-input {
        font-size: 14px;
    }

    .admin-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .admin-card {
        padding: 20px 14px;
    }

    .dashboard-action {
        padding: 14px;
    }

    .dashboard-action strong {
        font-size: 15px;
    }

    .dashboard-action small {
        font-size: 12px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .navbar {
        min-height: 58px;
        padding: 0 9px;
    }

    .logo {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .navbar nav {
        gap: 7px;
    }

    .navbar nav a {
        font-size: 11px;
    }

    .hero {
        min-height: 320px;
        padding: 40px 14px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 13px;
    }

    .movie-grid {
        gap: 8px;
    }

    .movie-card {
        border-radius: 11px;
    }

    .movie-info {
        padding: 8px;
    }

    .movie-info h3 {
        font-size: 12px;
        min-height: 35px;
        margin-bottom: 8px;
    }

    .movie-button {
        min-height: 36px;
        font-size: 10px;
        padding: 8px 5px;
    }

    .movie-details {
        padding-left: 14px;
        padding-right: 14px;
    }

    .movie-details-poster {
        max-width: 200px;
    }

    .movie-details-info h1 {
        font-size: 26px;
    }

    .download-page {
        padding-left: 9px;
        padding-right: 9px;
    }

    .download-card {
        padding: 16px;
    }

    .download-info h1 {
        font-size: 25px;
    }

    .download-box {
        padding: 16px;
    }

    .admin-movie-card {
        padding: 11px;
    }

    .admin-movie-poster {
        width: 90px;
        height: 122px;
    }

    .movie-management-actions {
        flex-direction: column;
    }

    .movie-management-actions form,
    .movie-edit-button,
    .movie-delete-button {
        width: 100%;
        flex: none;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) and (pointer: coarse) {

    .movie-card:hover,
    .dashboard-action:hover,
    .hero-button:hover,
    .movie-button:hover,
    .watch-button:hover,
    .quality-button:hover,
    .movie-edit-button:hover,
    .movie-delete-button:hover,
    .admin-submit-button:hover {
        transform: none;
        box-shadow: none;
    }

    .navbar nav a,
    .movie-button,
    .hero-button,
    .watch-button,
    .quality-button,
    .movie-edit-button,
    .movie-delete-button,
    .admin-submit-button,
    .logout-button {
        -webkit-tap-highlight-color: transparent;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
