/* Global reset */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top, #122a2e 0%, #091014 33%, #061014 100%);
    color: #e8f6e8;
}

a {
    color: inherit;
}

main {
    padding: 0 18px 42px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 36px;
}

.hero-banner {
    position: relative;
    margin: 20px auto 40px;
    padding: 46px 36px 48px;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(25, 77, 45, 0.95), rgba(7, 17, 23, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -90px;
    width: 240px;
    height: 240px;
    background: rgba(95, 204, 112, 0.18);
    border-radius: 50%;
    filter: blur(34px);
}

.hero-banner::after {
    content: '';
    position: absolute;
    left: -120px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(10px);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(95, 204, 112, 0.16);
    border: 1px solid rgba(95, 204, 112, 0.28);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d5f5cf;
}

.hero-title {
    margin: 20px 0 18px;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #f7fff2;
}

.hero-copy {
    margin: 0 0 28px;
    max-width: 760px;
    color: #b4d2af;
    font-size: 1.05rem;
    line-height: 1.75;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #70eb8e, #2fab4b);
    border: none;
    color: #06120b;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 22px 46px rgba(54, 184, 90, 0.24);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.button-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #5dd076, #2b9a3b);
    box-shadow: 0 26px 54px rgba(54, 184, 90, 0.32);
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #edf7e2;
    padding: 14px 16px;
    margin: 8px 0 18px;
    font-size: 1rem;
}

label {
    color: #d4e7c5;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
}

button[type="submit"] {
    width: 100%;
}

.profile-card form {
    display: grid;
    gap: 10px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin: 32px 0 10px;
    flex-wrap: wrap;
}

.section-title h2 {
    margin: 0;
    font-size: 2.1rem;
    color: #eef8e5;
}

.section-title p {
    margin: 0;
    color: #9fbf95;
    font-size: 1rem;
}

.section-head {
    margin: 24px 0 14px;
}

.section-head h3 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    color: #f3f8e2;
}

.section-head p {
    margin: 0;
    color: #a8c7a2;
    font-size: 0.95rem;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 0;
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 460px;
    background: linear-gradient(180deg, rgba(13, 30, 32, 0.96), rgba(5, 13, 16, 0.98));
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 76px rgba(0, 0, 0, 0.42);
}

.movie-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.movie-card h3 {
    margin: 18px 16px 8px;
    font-size: 1.15rem;
    line-height: 1.25;
    color: #f8ffef;
}

.movie-card .tag {
    margin: 0 16px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(95, 204, 112, 0.16);
    color: #d1ffce;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.movie-card .duration {
    margin: 0 16px 18px;
    color: #a7cdaa;
    font-size: 0.94rem;
}

.card-footer {
    padding: 0 16px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.button-play,
.button-subscribe,
.button-primary,
.cta-subscribe,
.button-submit {
    cursor: pointer;
}

.button-play,
.button-subscribe,
.cta-subscribe,
.button-submit {
    width: 100%;
    border-radius: 16px;
    border: none;
    padding: 14px 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.button-play {
    background: linear-gradient(135deg, #6be48f, #349a44);
    color: #07120a;
}

.button-subscribe {
    background: rgba(255, 255, 255, 0.08);
    color: #e7f4dd;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.button-play:hover,
.button-subscribe:hover,
.cta-subscribe:hover,
.button-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.watch-card {
    max-width: 980px;
    margin: 0 auto 32px;
    padding: 26px;
    background: rgba(3, 18, 24, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.player-frame {
    display: grid;
    gap: 20px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(14, 45, 46, 0.96) 0%, rgba(4, 17, 19, 0.96) 100%);
    border: 1px solid rgba(95, 204, 112, 0.14);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.x-player__video,
.watch-player {
    width: 100%;
    min-height: 360px;
    border-radius: 22px;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    object-fit: cover;
}

.x-player__video {
    display: block;
    max-width: 100%;
    outline: none;
}

.player-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 20px 20px;
    justify-content: center;
    background: rgba(2, 8, 12, 0.65);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

.xplayer-shell {
    position: relative;
    background: #000;
    border-radius: 22px;
    overflow: hidden;
}

.sexy-player-card .watch-player {
    min-height: 420px;
    max-height: 520px;
}

.xplayer-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    z-index: 10;
}

.xplayer-play-button {
    pointer-events: auto;
    border: none;
    border-radius: 999px;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.xplayer-controls {
    display: grid;
    gap: 14px;
    padding: 18px 22px 22px;
    background: rgba(4, 18, 24, 0.88);
    border-radius: 20px;
    margin-top: 18px;
}

.xplayer-control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.xplayer-control-button,
.xplayer-speed-button {
    border: none;
    border-radius: 14px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3ffe8;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.xplayer-control-button:hover,
.xplayer-speed-button:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.xplayer-speed-button.active {
    background: rgba(107, 228, 143, 0.22);
    color: #d8ffe0;
}

.xplayer-label {
    color: #d7f3e3;
    font-size: 0.95rem;
    font-weight: 600;
}

.xplayer-source-input {
    flex: 1;
    min-width: 240px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
}

.xplayer-subtitle-box {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.xplayer-subtitle-input {
    width: 100%;
    min-height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

#xplayerBufferStatus {
    color: #7ee787;
    font-weight: 700;
}

.player-control {
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3ffe8;
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-control:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 8, 12, 0.55);
    backdrop-filter: blur(6px);
    color: #ffffff;
    transition: opacity 0.24s ease;
    cursor: pointer;
}

.player-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.overlay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 2.8rem;
    line-height: 1;
}

.overlay-label {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.video-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 70%);
}

.video-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.video-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(107, 228, 143, 0.18);
    color: #e9ffea;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.player-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #c9e3c1;
    font-size: 0.97rem;
}

.player-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(107, 228, 143, 0.16);
    color: #d8ffe0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.player-info {
    color: #a9ca9a;
}

.watch-status {
    margin: 0;
    color: #dae8d2;
    font-size: 0.95rem;
    line-height: 1.6;
}

.page-head {
    margin: 28px auto 22px;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-head h2 {
    margin: 0;
    font-size: 2rem;
    color: #f7ffef;
}

.page-head p {
    margin: 0;
    color: #afc8a4;
    font-size: 1rem;
}

.plan-grid,
.payment-grid {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-card,
.payment-option,
.suggestion-card,
.center-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover,
.payment-option:hover,
.suggestion-card:hover,
.center-card:hover {
    transform: translateY(-4px);
    border-color: rgba(95, 204, 112, 0.3);
}

.plan-card h3,
.payment-option h3 {
    margin: 0 0 10px;
    color: #f8ffef;
}

.plan-card p,
.payment-option p {
    margin: 0;
    color: #b8d7aa;
    line-height: 1.7;
}

.plan-card label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-card input[type="radio"] {
    accent-color: #62d27c;
    width: 18px;
    height: 18px;
}

.payment-option {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option button {
    width: 100%;
    border-radius: 16px;
    border: none;
    padding: 12px 16px;
    font-weight: 700;
    color: #f7fff1;
    background: rgba(95, 204, 112, 0.16);
    cursor: pointer;
    transition: filter 0.2s ease;
}

.payment-option button:hover {
    filter: brightness(1.05);
}

.suggestion-card textarea {
    width: 100%;
    min-height: 130px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #ebf3e8;
    padding: 16px;
    resize: vertical;
    font-size: 1rem;
}

.suggestion-card textarea:focus {
    outline: none;
    border-color: rgba(95, 204, 112, 0.4);
    box-shadow: 0 0 0 4px rgba(95, 204, 112, 0.08);
}

.suggestion-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.suggestion-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.suggestion-item strong {
    color: #f4ffef;
}

.action-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.action-group .button-play,
.action-group .button-subscribe {
    flex: 1 1 140px;
}

.center-card {
    max-width: 620px;
    margin: 26px auto 0;
}

.movie-card .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    gap: 12px;
    background: rgba(4, 12, 15, 0.94);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.overlay p {
    margin: 0;
    color: #d8e7d7;
    font-size: 0.96rem;
    line-height: 1.65;
}

.overlay strong {
    color: #f9fff4;
}

.responsive-img {
    width: 100%;
    display: block;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: rgba(8, 18, 24, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    max-height: 42px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #d9e8d3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links li a:hover {
    color: #ffffff;
}

.hamburger {
    display: none;
    font-size: 1.9rem;
    color: #eefce4;
    cursor: pointer;
}

footer {
    background: #061014;
    color: #9dbca8;
    padding: 34px 22px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-section h3 {
    margin-top: 0;
    color: #f7fff4;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #9dbca8;
    text-decoration: none;
}

.footer-section a:hover {
    color: #d4f3c6;
}

.footer-bottom {
    margin-top: 24px;
    text-align: center;
    color: #7f9b86;
    font-size: 0.9rem;
}

table,
.transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #d8e7d3;
}

table th,
table td,
.transactions-table th,
.transactions-table td {
    padding: 12px 14px;
    text-align: left;
}

table th,
.transactions-table th {
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

table tr:nth-child(even),
.transactions-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

table tr:hover,
.transactions-table tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e8f6e8;
    border-radius: 22px;
    padding: 26px;
    margin: 20px 0;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.profile-card:hover {
    transform: translateY(-3px);
}

.profile-card h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #f7ffef;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.profile-card.premium {
    background: linear-gradient(135deg, rgba(111, 184, 95, 0.14), rgba(52, 105, 53, 0.12));
    border-color: rgba(95, 204, 110, 0.30);
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.status-row h2 {
    margin: 0;
    font-size: 1.8rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(12, 19, 14, 0.88);
    color: #d4f6ce;
    border: 1px solid rgba(120, 210, 118, 0.35);
}

.status-badge.inactive {
    background: rgba(64, 12, 12, 0.88);
    color: #ffd1d1;
    border-color: rgba(225, 105, 105, 0.35);
}

/* xPlayer-style full player CSS */
.xplayer-shell {
    width: 100%;
    max-width: 100%;
    background: #020609;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.player-container__player.xplayer {
    position: relative;
    display: block;
    width: 100%;
    min-height: 420px;
    background: #000;
}

.xplayer-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.xplayer-dots-loader {
    display: inline-flex;
    gap: 10px;
}

.xplayer-dots-loader .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    animation: xp-dot-pulse 0.9s infinite ease-in-out;
}

.xplayer-dots-loader .dot:nth-child(2) {
    animation-delay: 0.15s;
}

.xplayer-dots-loader .dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes xp-dot-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

.xplayer-error {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 22px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffe8e8;
    font-size: 1rem;
    z-index: 6;
}

.xplayer-error.visible {
    display: flex;
}

.xplayer-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 6;
}

.xplayer-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.xplayer-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.xplayer-play-button {
    min-width: 140px;
    border-radius: 999px;
    padding: 18px 30px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.xplayer-play-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

.xplayer-controls {
    display: grid;
    gap: 16px;
    padding: 20px 22px 22px;
    margin-top: 20px;
    background: rgba(2, 9, 16, 0.9);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.xplayer-control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.xplayer-control-button,
.xplayer-speed-button {
    min-width: 100px;
    border-radius: 18px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eef9ed;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.xplayer-control-button:hover,
.xplayer-speed-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
}

.xplayer-speed-button.active {
    background: rgba(106, 210, 143, 0.24);
    border-color: rgba(106, 210, 143, 0.32);
}

.xplayer-source-input,
.xplayer-subtitle-input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #eef9ed;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.xplayer-subtitle-box {
    padding: 18px 14px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.xplayer-subtitle-box label {
    display: block;
    margin-bottom: 8px;
    color: #d7f4e1;
    font-size: 0.95rem;
    font-weight: 600;
}

.xplayer-subtitle-input {
    min-height: 140px;
    resize: vertical;
}

.xplayer-controls .xplayer-label {
    font-size: 0.95rem;
    color: #cce6cb;
    font-weight: 600;
}

.xplayer-shell video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    background: #000;
}

.xplayer-shell .xp-preload-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.xplayer-shell .xp-preload-image[aria-hidden='true'] {
    opacity: 0;
}

.xplayer-shell .xp-progress-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 3;
}

.xplayer-shell .xp-progress-bar .buffer,
.xplayer-shell .xp-progress-bar .filler {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(126, 231, 135, 0.55);
    transform-origin: left center;
}

.xplayer-shell .xp-progress-bar .filler {
    background: rgba(255, 255, 255, 0.9);
}

.xplayer-shell .xp-progress-bar .handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 920px) {
    .xplayer-controls {
        grid-template-columns: 1fr;
    }

    .xplayer-control-row {
        justify-content: stretch;
    }

    .xplayer-control-button,
    .xplayer-speed-button {
        min-width: unset;
        flex: 1 1 auto;
    }
}

@media screen and (max-width: 640px) {
    .container {
        padding: 0 14px;
    }

    .watch-card {
        padding: 18px;
    }

    .xplayer-shell {
        border-radius: 18px;
    }

    .xplayer-controls {
        padding: 16px 18px 18px;
        gap: 14px;
    }

    .xplayer-control-row {
        gap: 8px;
    }

    .xplayer-subtitle-input {
        min-height: 110px;
    }
}

.status-copy,
.subscription-copy {
    margin: 0 0 20px;
    color: #d7e6d2;
    line-height: 1.75;
}

.subscription-tile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(199, 242, 194, 0.18);
    border-radius: 22px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.subscription-tile p {
    margin: 0.4rem 0;
    color: #edf7e2;
}

.progress-container {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 14px 0 8px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.18);
}

.progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7ef08b, #3fa151);
    transition: width 0.6s ease;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #c7e3b3;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 992px) {
    .container,
    .hero-banner,
    .footer-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-banner {
        padding: 36px 22px 36px;
    }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        right: 18px;
        width: 220px;
        flex-direction: column;
        background: rgba(8, 20, 27, 0.98);
        padding: 16px;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 660px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .movie-card {
        min-height: 420px;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    min-width: 220px;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #07210d;
    background: #e6ffe8;
    box-shadow: 0 10px 30px rgba(6,16,10,0.45);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transform-origin: top right;
    animation: toastIn 360ms ease;
}
.toast.success { background: linear-gradient(90deg,#a8f7b3,#5fd07a); color:#04260c; }
.toast.error { background: linear-gradient(90deg,#ffd2d2,#ff8b8b); color:#3b0b0b; }
.toast.info { background: linear-gradient(90deg,#dfefff,#a9caff); color:#02203a; }
.toast small { font-weight:600; opacity:0.9; font-size:0.92rem; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
