* { box-sizing: border-box; }

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: #0f1115;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.browse-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(15, 17, 21, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #2d3442;
}

.browse-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.browse-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    flex: 0 0 auto;
}

.browse-header-search {
    flex: 1 1 280px;
    min-width: 0;
    max-width: 520px;
}

.browse-header-search input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #333;
    border-radius: 999px;
    background: #1a1d24;
    color: #fff;
    font-size: 14px;
}

.browse-header-search input:focus {
    outline: none;
    border-color: #e50914;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.15);
}

.browse-header-search input::-webkit-search-cancel-button {
    cursor: pointer;
}

.btn-outline, .btn-primary, .btn-secondary, .link-btn {
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 9px 14px;
}

.btn-primary {
    background: #e50914;
    color: #fff;
    padding: 11px 16px;
}

.btn-messenger {
    background: #1877f2;
    color: #fff;
    padding: 11px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.btn-secondary {
    background: #303746;
    color: #fff;
    padding: 11px 16px;
}

.link-btn {
    background: transparent;
    color: #9ecfff;
    padding: 4px 8px;
}

.lang-dropdown {
  position: relative;
  flex: 0 0 auto;
  margin-right: 0.5rem;
}

.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.42rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lang-dropdown-toggle:hover,
.lang-dropdown.is-open .lang-dropdown-toggle {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(30, 41, 59, 0.9);
}

.lang-dropdown-caret {
  font-size: 0.62rem;
  opacity: 0.75;
  transform: translateY(1px);
}

.lang-dropdown.is-open .lang-dropdown-caret {
  transform: translateY(1px) rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 10rem;
  padding: 0.3rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0b1220;
  box-shadow: 0 0.85rem 1.75rem rgba(2, 6, 23, 0.55);
  z-index: 40;
}

.lang-dropdown-item,
.account-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  border-radius: 0.45rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-dropdown-item:hover,
.account-lang-item:hover {
  background: rgba(51, 65, 85, 0.55);
}

.lang-dropdown-item.is-active,
.account-lang-item.is-active {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  font-weight: 700;
}

.account-menu-item#btnMenuLanguage {
  cursor: pointer;
}

.account-menu-lang {
  margin-left: auto;
  margin-right: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #93c5fd;
  opacity: 0.95;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-lang-menu {
  margin: -0.15rem 0.75rem 0.65rem;
  padding: 0.3rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.65);
}

.member-chip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #cfd7e6;
    flex: 0 1 auto;
    margin-left: auto;
    max-width: min(100%, 560px);
    justify-content: flex-end;
}

.member-chip-quota {
    color: #f6c453;
    font-weight: 700;
    white-space: nowrap;
}

.member-chip .chip-action-btn {
    flex: 0 0 auto;
    margin-left: 0;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.member-chip .chip-action-btn:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.04);
}

/* Legacy link classes (if cached HTML) → same as Đăng nhập outline */
.member-chip .renew-link-btn,
.member-chip .logout-link-btn {
    background: transparent;
    border: 1px solid #444;
    color: #fff !important;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
}

.renew-fab-wrap {
    position: fixed;
    z-index: 99980;
    right: 16px;
    bottom: calc(212px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.renew-fab-wrap[hidden] {
    display: none !important;
}

.renew-fab-days {
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #f6c453;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.renew-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1208;
    background: linear-gradient(135deg, #f6c453 0%, #e8a317 100%);
    box-shadow: 0 8px 22px rgba(232, 163, 23, 0.42);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
    padding: 0;
}

.renew-fab:active {
    transform: scale(0.94);
}

.renew-fab-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-align: center;
    max-width: 40px;
    pointer-events: none;
}

.faq-fab {
    position: fixed;
    z-index: 99980;
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eef1f6;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #3d4454 0%, #2a3140 100%);
    box-shadow: 0 8px 22px rgba(15, 17, 21, 0.45);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
    padding: 0;
}

.faq-fab:active {
    transform: scale(0.94);
}

@media (min-width: 721px) {
    body .mmx-chat-root {
        bottom: 80px;
    }
}

@media (max-width: 720px) {
    .faq-fab {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    body .mmx-chat-root {
        bottom: calc(148px + env(safe-area-inset-bottom, 0px));
    }
}

#btnOpenMember {
    flex: 0 0 auto;
    margin-left: auto;
}

.browse-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 16px 48px;
}

.browse-featured {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
}

.browse-featured > .browse-section:first-child {
    margin-top: 0;
}

.browse-all-section {
    margin-top: 0;
}

.browse-all-section .section-title {
    margin-bottom: 16px;
    font-size: 1.15rem;
    font-weight: 800;
}

.browse-section {
    margin-top: 28px;
}

.browse-section h2,
.section-title {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.catalog-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #c5ced8;
    font-size: 14px;
    margin: 16px 0;
}

.catalog-loading::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.18);
    border-top-color: #e50914;
    animation: catalogSpin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes catalogSpin {
    to { transform: rotate(360deg); }
}

.browse-rows {
    display: contents;
}

.browse-row {
    position: relative;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.row-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.row-more-btn {
    border: 1px solid #4a5568;
    background: rgba(255, 255, 255, 0.04);
    color: #d7dee8;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.row-more-btn:hover {
    border-color: #9aa7bd;
    color: #fff;
}

.row-shell {
    position: relative;
}

.row-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 4px 40px 8px;
    -webkit-overflow-scrolling: touch;
}

.row-track::-webkit-scrollbar {
    display: none;
}

.row-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(20, 24, 32, 0.88);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-nav:hover:not(:disabled) {
    background: rgba(35, 40, 52, 0.95);
}

.row-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.row-nav-prev { left: 0; }
.row-nav-next { right: 0; }

.movie-card {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.movie-card-row {
    width: 140px;
}

.movie-card-ranked {
    width: 140px;
    position: relative;
}

.movie-card-ranked .movie-rank {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 3;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: #f5d76e;
    background: rgba(0, 0, 0, 0.62);
    -webkit-background-clip: border-box;
    background-clip: border-box;
    text-shadow: none;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(245, 215, 110, 0.35);
    pointer-events: none;
}

.movie-rank {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.movie-poster {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #202532;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.movie-card:hover .movie-poster {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.movie-card-row .movie-poster {
    width: 140px;
}

.movie-card-ranked .movie-poster {
    width: 140px;
}

.movie-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    background: #151922;
}

.poster-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(145deg, #2a3140 0%, #1a2030 100%);
    font-size: 42px;
}

.poster-placeholder.is-shop {
    background: linear-gradient(145deg, #3d2e14 0%, #241a0d 100%);
    font-size: 36px;
}

.shop-card .movie-poster {
    aspect-ratio: 2 / 3;
}

.movie-tag-list {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 16px);
}

.movie-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    background: rgba(15, 17, 21, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.movie-tag-hot {
    background: rgba(229, 9, 20, 0.92);
    border-color: rgba(255, 120, 120, 0.45);
}

.movie-tag-new {
    background: rgba(22, 163, 74, 0.92);
    border-color: rgba(134, 239, 172, 0.45);
}

.movie-tag-free {
    background: rgba(202, 138, 4, 0.92);
    border-color: rgba(253, 224, 71, 0.45);
}

.movie-tag-chuafull {
    background: rgba(234, 88, 12, 0.92);
    border-color: rgba(253, 186, 116, 0.45);
}

.movie-tag-yeucau {
    background: rgba(217, 119, 6, 0.94);
    border-color: rgba(253, 230, 138, 0.5);
}

.movie-tag-favorite {
    background: rgba(245, 245, 245, 0.96);
    border-color: rgba(255, 255, 255, 0.55);
    color: #1a1d24;
}

.movie-tag-vip {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a2f14 55%, #1a1a1a 100%);
    border-color: rgba(246, 196, 83, 0.65);
    color: #f6c453;
}

.movie-title {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-ranked .movie-title {
    margin-top: 8px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.movie-grid .movie-card {
    width: auto;
    background: #202532;
    border-radius: 12px;
    overflow: hidden;
}

.movie-grid .movie-card .movie-poster {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.movie-grid .movie-card .movie-title {
    padding: 10px;
}

.continue-card {
    border: 1px solid #343b4b;
    border-radius: 12px;
    background: #202532;
    padding: 14px;
    cursor: pointer;
}

.continue-card:hover {
    border-color: #e50914;
}

.continue-card strong {
    display: block;
    margin-bottom: 4px;
}

.continue-card span {
    color: #aeb8c8;
    font-size: 13px;
}

.empty-note, .error-note {
    color: #8f9bad;
    font-size: 14px;
}

.error-note {
    color: #ffb4b4;
}

.catalog-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.catalog-pager button {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #343b4b;
    border-radius: 10px;
    background: #1a1d24;
    color: #e8e8e8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.catalog-pager button:hover:not(:disabled) {
    border-color: #64748b;
    color: #fff;
}

.catalog-pager button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pager-summary-inline {
    color: #8f9bad;
    font-size: 13px;
    padding: 0 8px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    padding: 16px;
}

.modal[hidden] {
    display: none !important;
}

.modal-card {
    width: 100%;
    max-width: 400px;
    background: #1c1f29;
    border: 1px solid #333b4d;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

.modal-card-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-card-form .modal-note {
    margin-bottom: 4px;
}

.modal-input,
.modal-card-form input[type="email"],
.modal-card-form input[type="text"],
.modal-card-form input[type="password"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #1a1d24;
    color: #fff;
    font-size: 15px;
    margin: 0;
}

.modal-btn-block {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.modal-card-wide {
    max-width: 960px;
    max-height: 88vh;
    overflow: auto;
}

.modal-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-card h3 {
    margin: 0;
}

.modal-grid {
    margin-bottom: 12px;
}

.modal-note {
    margin: 0 0 14px;
    color: #aab4c4;
    font-size: 14px;
}

.modal-extra-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 13px;
}

.modal-extra-links a {
    color: #8eb6ff;
    text-decoration: none;
}

.google-signin-slot {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    box-sizing: border-box;
}

.google-signin-slot[hidden] {
    display: none !important;
}

.btn-google-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    background: #fff;
    color: #3c4043;
    padding: 11px 16px;
    border: 1px solid #dadce0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    pointer-events: none;
    user-select: none;
}

.btn-google-login .btn-google-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.btn-google-login .btn-google-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.btn-google-login:hover {
    background: #f8f9fa;
}

/* Real GIS hit-target on top; visual is .btn-google-login underneath */
.google-signin-gis {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.02;
    overflow: hidden;
    border-radius: 10px;
}

.google-signin-gis > div,
.google-signin-gis iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
}

.modal-google-host {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.account-recovery-row {
    cursor: default;
}

.account-recovery-status {
    display: block;
    margin-top: 4px;
    color: #9aa3b5;
    font-size: 12px;
}

#memberCodeInput {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #1a1d24;
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.modal-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.modal-actions-stack {
    flex-direction: column;
}

.modal-actions button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 44px;
    align-self: auto;
}

.modal-actions-stack button {
    flex: 0 0 auto;
    width: 100%;
}

.faq-modal {
    z-index: 100000;
    align-items: center;
    padding: 16px;
}

.faq-modal-card {
    max-width: 560px;
    width: 100%;
    max-height: min(82vh, 720px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.faq-modal-header {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #2a3140;
}

.faq-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.faq-modal-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 12px 14px;
    -webkit-overflow-scrolling: touch;
}

.faq-modal-footer {
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 14px;
    border-top: 1px solid #2a3140;
}

.faq-intro {
    margin: 0 0 10px;
    color: #c4cad6;
    font-size: 12px;
    line-height: 1.45;
}

.faq-tag-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #333b4d;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.faq-tag-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 52px 48px;
    gap: 6px;
    align-items: center;
    padding: 7px 8px;
    background: #161922;
    border-bottom: 1px solid #2a3140;
}

.faq-tag-row:last-child {
    border-bottom: none;
}

.faq-tag-head {
    background: #12151d;
    color: #8f9bad;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.faq-tag-row > span:nth-child(2) {
    color: #d5dae6;
    font-size: 11px;
    line-height: 1.35;
}

.faq-tag-row .movie-tag {
    font-size: 9px;
    padding: 1px 5px;
    max-width: 100%;
}

.faq-extra,
.faq-total {
    text-align: right;
    font-size: 12px;
    font-weight: 800;
    color: #f6c453;
}

.faq-extra.is-skip,
.faq-total.is-skip {
    color: #86efac;
    font-size: 10px;
}

.faq-tag-empty {
    grid-template-columns: 1fr;
    color: #8f9bad;
    font-size: 12px;
    text-align: center;
}

.faq-notes {
    margin: 0;
    padding-left: 16px;
    color: #9aa2b1;
    font-size: 11px;
    line-height: 1.45;
}

.faq-notes li + li {
    margin-top: 4px;
}

.faq-desc-empty {
    color: #6b7280;
}

@media (max-width: 720px) {
    .faq-modal {
        padding: 0;
        align-items: stretch;
        background: #1c1f29;
    }

    .faq-modal-card {
        max-width: none;
        max-height: none;
        height: 100%;
        width: 100%;
        border-radius: 0;
        border: none;
        background: #1c1f29;
    }

    .faq-modal-header {
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
    }

    .faq-modal-footer {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .faq-tag-row {
        grid-template-columns: 70px minmax(0, 1fr) 48px 44px;
        gap: 5px;
        padding: 6px 7px;
    }
}

@media (max-width: 400px) {
    .faq-tag-row {
        grid-template-columns: 64px minmax(0, 1fr) 44px 40px;
        padding: 6px;
    }
}

@media (max-width: 720px) {
    .desktop-only {
        display: none !important;
    }

    body {
        padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
        background: #09090b;
    }

    .browse-header {
        display: none !important;
    }

    .genre-chips {
        display: none !important;
    }

    .genre-chips-inner {
        padding: 8px 10px 10px;
    }

    .browse-main {
        padding: 12px 10px 24px;
        max-width: none;
    }

    .browse-featured {
        gap: 18px;
        margin-bottom: 18px;
    }

    .browse-section h2,
    .section-title {
        font-size: 1rem;
    }

    .row-track {
        padding-left: 0;
        padding-right: 0;
    }

    .row-nav {
        display: none;
    }

    .movie-card-row,
    .movie-card-ranked {
        width: calc((100vw - 40px) / 3.2);
        max-width: 132px;
    }

    .movie-card-ranked {
        padding-left: 0;
        display: block;
    }

    .movie-card-ranked .movie-poster,
    .movie-card-row .movie-poster {
        width: 100%;
    }

    .movie-card-ranked .movie-rank {
        left: 6px;
        bottom: 6px;
        font-size: 1.45rem;
        line-height: 1;
        color: #f5d76e;
        background: rgba(0, 0, 0, 0.62);
        -webkit-background-clip: border-box;
        background-clip: border-box;
        text-shadow: none;
        padding: 3px 8px;
        border-radius: 8px;
        border: 1px solid rgba(245, 215, 110, 0.35);
    }

    .movie-card-ranked .movie-title {
        display: -webkit-box;
        position: static;
        width: auto;
        margin-top: 8px;
        padding: 0 2px;
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 12px;
        line-height: 1.35;
        color: #f4f4f5;
        -webkit-line-clamp: 2;
        max-height: none;
        overflow: hidden;
        white-space: normal;
        text-overflow: unset;
    }

    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .movie-grid .movie-card {
        background: transparent;
        border-radius: 0;
    }

    .movie-grid .movie-card .movie-title {
        padding: 8px 2px 0;
        font-size: 12px;
        line-height: 1.35;
        color: #f4f4f5;
    }

    .movie-grid .movie-card .movie-poster {
        border-radius: 10px;
    }

    .browse-all-section .section-title {
        margin-bottom: 12px;
    }

    #continueSection,
    .browse-row[data-section="newWeek"] {
        display: none;
    }
}

@media (min-width: 721px) {
    .mobile-only {
        display: none !important;
    }

    .browse-main {
        padding-top: 8px;
    }

    #continueSection h2 {
        margin-bottom: 10px;
    }
}

/* Platform tabs (desktop) */
.platform-tabs {
    position: sticky;
    top: 57px;
    z-index: 19;
    background: rgba(9, 9, 11, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-tabs-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 8px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.platform-tabs-inner::-webkit-scrollbar {
    display: none;
}

.platform-tab {
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 9px 18px;
    background: #18181b;
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.platform-tab:hover {
    background: #27272a;
    color: #fafafa;
}

.platform-tab.is-active {
    background: #e50914;
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.28);
}

.genre-chips {
    position: sticky;
    top: 57px;
    z-index: 18;
    background: rgba(9, 9, 11, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 721px) {
    .platform-tabs ~ .genre-chips {
        top: 105px;
    }
}

.genre-chips-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 16px 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.genre-chips-inner::-webkit-scrollbar {
    display: none;
}

.genre-chip {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 7px 14px;
    background: #18181b;
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.genre-chip:hover {
    background: #27272a;
    color: #fafafa;
}

.genre-chip.is-active {
    background: #27272a;
    border-color: #e50914;
    color: #fff;
}

.mobile-platform-badge {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px 12px;
    background: color-mix(in srgb, var(--platform-color, #e50914) 18%, #18181b);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mobile-platform-badge img {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: cover;
    display: block;
}

/* Mobile cards */
.mobile-card-meta {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.movie-tag-trending {
    background: rgba(229, 9, 20, 0.92);
    border-color: rgba(255, 120, 120, 0.45);
}

.movie-tag-dub {
    background: rgba(234, 88, 12, 0.92);
    border-color: rgba(253, 186, 116, 0.45);
}

/* Mobile bottom nav */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    min-height: 58px;
    padding: 0 8px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(12, 12, 14, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    overflow: visible;
}

.mobile-nav-item {
    border: none;
    background: transparent;
    color: #71717a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 2px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    min-height: 44px;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    flex: 0 0 auto;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.mobile-nav-item.is-active {
    color: #ff4d57;
}

.mobile-nav-item.is-active .mobile-nav-icon {
    background: rgba(229, 9, 20, 0.14);
}

.mobile-nav-fab {
    align-self: start;
    justify-self: center;
    transform: translateY(-26px);
    gap: 0;
    min-height: 0;
    padding: 0;
}

.mobile-nav-fab-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e50914;
    color: #fff;
    box-shadow: 0 8px 22px rgba(229, 9, 20, 0.38);
    flex: 0 0 auto;
}

.mobile-nav-fab-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Platform modal */
.platform-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 16px calc(88px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
}

.platform-modal[hidden] {
    display: none !important;
}

.platform-modal-card {
    width: min(100%, 380px);
    max-height: min(68vh, 480px);
    overflow: auto;
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 18px 14px 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.platform-modal-title {
    margin: 0 0 16px;
    text-align: center;
    color: #71717a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.platform-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.platform-option {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 14px;
    background: #18181b;
    color: #fff;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.platform-option:hover {
    background: #202024;
}

.platform-option.is-active {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.45);
}

.platform-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    flex: 0 0 auto;
    overflow: hidden;
    background: transparent;
}

.platform-option-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.platform-option-icon-fallback {
    background: #27272a;
}

.platform-option-body strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.platform-modal-close {
    margin-top: 12px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #e50914;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(229, 9, 20, 0.38);
}

/* Mobile browse header */
.mobile-browse-header {
    position: sticky;
    top: 0;
    z-index: 18;
    padding: 10px 14px 12px;
    background: rgba(9, 9, 11, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-genre-btn {
    flex: 0 0 auto;
    max-width: 42%;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #333;
    border-radius: 999px;
    padding: 11px 12px;
    background: #1a1d24;
    color: #f4f4f5;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.mobile-genre-btn.is-active {
    border-color: #e50914;
    background: rgba(229, 9, 20, 0.12);
    color: #fff;
}

.mobile-genre-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 7.5em;
}

.mobile-genre-btn-caret {
    color: #a1a1aa;
    font-size: 11px;
}

.mobile-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.mobile-search-wrap input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #333;
    border-radius: 999px;
    background: #1a1d24;
    color: #fff;
    font-size: 14px;
}

.mobile-search-wrap input:focus {
    outline: none;
    border-color: #e50914;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.15);
}

.genre-modal-card {
    width: min(100%, 420px);
}

.genre-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.genre-option {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 14px;
    background: #18181b;
    color: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.genre-option:hover {
    background: #202024;
}

.genre-option.is-active {
    background: rgba(229, 9, 20, 0.12);
    border-color: rgba(229, 9, 20, 0.45);
}

/* History */
.mobile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.history-item {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.history-item-thumb {
    width: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #202532;
}

.history-item-thumb img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.history-item-body h3 {
    margin: 0 0 8px;
    padding-right: 24px;
    font-size: 15px;
    line-height: 1.35;
}

.history-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.history-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.history-tag-platform {
    background: #2a2f3a;
    color: #d7dee8;
}

.history-tag-episode {
    background: rgba(229, 9, 20, 0.18);
    color: #ff8a90;
}

.history-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.history-progress-bar {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.history-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff4d57, #e50914);
}

.history-progress-text {
    color: #8f9bad;
    font-size: 11px;
    font-weight: 700;
}

.history-time {
    color: #8f9bad;
    font-size: 12px;
    margin-bottom: 10px;
}

.history-continue-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(229, 9, 20, 0.18);
    color: #ff8a90;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.history-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: #8f9bad;
    font-size: 18px;
    cursor: pointer;
}

/* Account */
.account-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.account-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d57 0%, #9333ea 100%);
    position: relative;
}

.account-avatar::after {
    content: "▶";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.account-info {
    flex: 1;
    min-width: 0;
}

.account-info strong {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
}

.account-info span {
    color: #8f9bad;
    font-size: 13px;
}

.account-login-btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.vip-card {
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #f5e6c8 0%, #d4b98a 100%);
    color: #4a3417;
}

.vip-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vip-card-head strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.vip-card-head span {
    font-size: 12px;
}

.vip-expire-hint {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.82;
}

.vip-activate-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: #4a3417;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.vip-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.vip-features div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
}

.vip-features div > span:first-child {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 52, 23, 0.12);
    font-size: 11px;
}

.vip-features div > span:last-child {
    min-width: 0;
    width: auto;
    height: auto;
    display: block;
    background: transparent;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
}

.checkin-card[hidden] {
    display: none !important;
}

.checkin-card {
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.checkin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.checkin-card-head strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.checkin-streak-text {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

.checkin-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.checkin-day-pill {
    flex: 0 1 calc(25% - 6px);
    min-width: 64px;
    max-width: calc(50% - 4px);
    border-radius: 12px;
    padding: 8px 6px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.checkin-day-pill strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
}

.checkin-day-pill span {
    display: block;
    font-size: 10px;
    color: #94a3b8;
}

.checkin-day-pill.is-done {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.checkin-day-pill.is-done span {
    color: #86efac;
}

.checkin-day-pill.is-today {
    background: rgba(250, 204, 21, 0.18);
    border-color: rgba(250, 204, 21, 0.45);
    color: #fef08a;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.2);
}

.checkin-day-pill.is-today span {
    color: #fde047;
}

.checkin-day-pill.is-empty span {
    color: #64748b;
    font-size: 10px;
}

.checkin-reward-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: #cbd5e1;
}

.checkin-login-hint {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
}

.checkin-unavailable-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: #b54708;
}

.checkin-claim-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.checkin-claim-btn:disabled {
    opacity: 0.55;
    cursor: default;
    background: #334155;
    color: #94a3b8;
}

.account-menu {
    border-radius: 16px;
    overflow: hidden;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-menu-item {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.account-menu-item[hidden] {
    display: none !important;
}

.account-menu-icon {
    width: 22px;
    text-align: center;
    opacity: 0.9;
}

.account-menu-chevron {
    margin-left: auto;
    color: #8f9bad;
}

.account-version {
    margin: 18px 0 0;
    text-align: center;
    color: #667085;
    font-size: 12px;
}

.mobile-panel[hidden] {
    display: none !important;
}

@media (min-width: 721px) {
    .mobile-panel[data-mobile-panel="history"],
    .mobile-panel[data-mobile-panel="account"] {
        display: none !important;
    }
}
