/* Giao diện điện thoại giống app Phim Rạp. Chỉ áp dụng khi màn hình < 768px (và các trang app-* mọi cỡ). */
:root { --app-bg: #020250; --app-teal: #3cc8d8; --app-mute: #9db0d8; }

/* Trang kiểu app: giới hạn bề rộng trên máy tính */
.app-page { max-width: 760px; margin: 0 auto; padding: 14px 16px 90px; color: #fff; }

@media (max-width: 767.98px) {
    html, body, .main-content { background: var(--app-bg) !important; color: #fff; }
    body { padding-bottom: 76px; }
    .header-default, header.header-sticky { background: var(--app-bg) !important; }
    .bg-light-1, .bg-dark-1, .bg-dark-2 { background: var(--app-bg) !important; }
    footer, .footer { padding-bottom: 76px; }
}

/* ---- Thanh menu dưới ---- */
.app-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; background: var(--app-bg);
    border-top: 1px solid rgba(255,255,255,.08); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.app-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; text-decoration: none; font-size: 12px; line-height: 1.1; }
.app-bottom-nav a i { font-size: 22px; height: 26px; display: flex; align-items: center; }
.app-bottom-nav a.active { color: var(--app-teal); }
@media (min-width: 768px) { .app-bottom-nav { display: none; } }

/* ---- Trang chủ: băng chuyền ---- */
.app-home { padding: 22px 0 90px; overflow: hidden; }
.app-hero { overflow: visible !important; padding: 0 0 4px; }
.app-hero .swiper-slide { position: relative; transition: transform .25s, opacity .25s; transform: scale(.78); opacity: .9; }
.app-hero .swiper-slide-active { transform: scale(1); opacity: 1; }
.app-poster { display: block; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 522 / 760; background: #0b0b7a; }
.app-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-cer { position: absolute; top: 0; left: 14px; min-width: 38px; padding: 6px 6px 14px; text-align: center; font-weight: 600; font-size: 18px; color: #fff;
    background: rgba(60,200,216,.85); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.app-book { position: absolute; left: 50%; top: 45%; transform: translateX(-50%); padding: 10px 34px; border-radius: 40px; background: rgba(60,200,216,.85);
    color: #02024a; font-weight: 700; font-size: 20px; text-decoration: none; white-space: nowrap; opacity: 0; pointer-events: none; }
.app-hero .swiper-slide-active .app-book { opacity: 1; pointer-events: auto; }
.app-info { padding: 22px 20px 0; }
.app-info-title { display: block; font-size: 28px; font-weight: 700; line-height: 1.25; color: #fff; text-decoration: none; margin-bottom: 12px; }
.app-info-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 20px; color: #fff; margin-bottom: 12px; }
.app-info-row { display: flex; align-items: center; gap: 12px; font-size: 20px; color: #fff; margin-bottom: 10px; }
.app-info-row i { width: 28px; text-align: center; font-size: 24px; color: #fff; }
.app-info-row b { color: var(--app-teal); font-weight: 600; }
.app-flag { width: 34px; height: 22px; object-fit: cover; border-radius: 2px; }
.app-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--app-teal); margin: 0 4px; }

/* ---- Ô tìm kiếm tròn ---- */
.app-search { position: relative; display: flex; align-items: center; background: #fff; border-radius: 40px; padding: 4px 6px 4px 16px; margin: 6px 0 14px; flex-wrap: wrap; }
.app-search input[type=search], .app-search input[type=text] { flex: 1; border: 0; outline: 0; background: transparent; font-size: 18px; padding: 10px 6px; color: #222; min-width: 0; }
.app-search button { border: 0; background: transparent; font-size: 20px; color: #111; padding: 8px 10px; }

/* ---- Danh sách phim ---- */
.app-card { display: flex; gap: 14px; background: #fff; border-radius: 22px; overflow: hidden; margin-bottom: 14px; color: #111; text-decoration: none; min-height: 150px; }
.app-card-poster { position: relative; flex: 0 0 34%; max-width: 140px; }
.app-card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 22px 0 0 22px; }
.app-card-poster .app-cer { left: 8px; font-size: 15px; min-width: 32px; }
.app-card-body { padding: 14px 14px 12px 0; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.app-card-body h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: #111; line-height: 1.25; }
.app-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 16px; color: #222; margin-bottom: 8px; }
.app-card-date, .app-card-rev { font-size: 16px; color: #222; }
.app-card-date b, .app-card-rev b { color: #26b6c8; font-weight: 600; }

/* ---- Tin tức ---- */
.app-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.app-tabs a { flex: 1; text-align: center; padding: 12px 6px; border: 2px solid rgba(255,255,255,.3); border-radius: 40px; color: #fff; font-size: 20px; text-decoration: none; }
.app-tabs a.active { background: var(--app-teal); border-color: var(--app-teal); color: #02024a; font-weight: 700; }
.app-news-item { display: flex; gap: 14px; background: #fff; border-radius: 22px; overflow: hidden; margin-bottom: 14px; color: #111; text-decoration: none; }
.app-news-item img { flex: 0 0 38%; max-width: 160px; height: 130px; object-fit: cover; }
.app-news-item > div { padding: 12px 14px 12px 0; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.app-news-item h3 { font-size: 18px; font-weight: 500; line-height: 1.3; margin: 0; color: #111; }
.app-news-item time { align-self: flex-end; color: #e0652a; font-size: 17px; }
.app-article h1 { font-size: 26px; line-height: 1.3; margin: 8px 0 10px; color: #fff; }
.app-article-meta, .app-article-meta a { color: var(--app-mute); font-size: 15px; }
.app-article-cover { width: 100%; border-radius: 18px; margin: 14px 0; }
.app-article-body { font-size: 18px; line-height: 1.65; color: #e8ecff; }
.app-article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.app-article-body a { color: var(--app-teal); }
.app-back { color: var(--app-teal); text-decoration: none; font-size: 17px; }
.app-section-title { font-size: 22px; margin: 26px 0 12px; color: #fff; }
.app-empty { color: var(--app-mute); text-align: center; padding: 30px 0; }
.app-pager { display: flex; justify-content: center; margin-top: 10px; }
.app-pager .pagination .page-link { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

/* ---- Tìm rạp ---- */
.app-selects { display: flex; gap: 10px; width: 100%; margin: 6px 0 0; }
.app-selects select { flex: 1; min-width: 0; border: 0; border-radius: 14px; background: #d9d9d9; padding: 12px 10px; font-size: 17px; color: #111; }
.app-groups { display: flex; gap: 12px; overflow-x: auto; width: 100%; padding: 12px 2px 4px; }
.app-groups a { flex: 0 0 auto; width: 70px; height: 70px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 6px; border: 4px solid transparent; }
.app-groups a.active { border-color: var(--app-teal); }
.app-groups img { max-width: 100%; max-height: 100%; object-fit: contain; }
.app-cinema-item { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.app-cinema-item img { width: 76px; height: 76px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.06); }
.app-cinema-item h3 { color: var(--app-teal); font-size: 22px; margin: 0 0 4px; }
.app-cinema-item p { color: #fff; margin: 0; font-size: 16px; }
.app-cinema-item a { color: var(--app-teal); }

/* Trên máy tính các trang app-* nằm trên nền navy cho đồng bộ */
@media (min-width: 768px) {
    body:has(.app-page) .main-content { background: var(--app-bg); }
}

/* ---- Icon thanh menu (đúng icon app, tô màu theo trạng thái) ---- */
.app-ico { display: block; width: 30px; height: 30px; background-color: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

/* ---- Header kiểu app (điện thoại): tìm kiếm trái, logo giữa, chuông phải ---- */
@media (max-width: 767.98px) {
    .landing-header { width: 100%; }
    .landing-header > .d-flex { display: grid !important; grid-template-columns: 56px 1fr 56px; align-items: center; width: 100%; }
    .landing-header .logo-prime { grid-column: 2; grid-row: 1; justify-self: center; }
    .landing-header .logo-prime img.logo { height: 38px; width: auto; }
    .landing-header .app-hd-search { grid-column: 1; grid-row: 1; justify-self: start; display: flex; padding: 8px; }
    .landing-header > .d-flex > .d-flex { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
    .landing-header > .d-flex > .d-flex a[href*="login"], .landing-header > .d-flex > .d-flex a[href*="/u/profile"],
    .landing-header > .d-flex > .d-flex .navbar-toggler { display: none !important; }
    .landing-header > .d-flex > .d-flex > a.nav-link { padding: 8px !important; margin: 0 !important; }
    .landing-header > .d-flex > .d-flex > a.nav-link svg { width: 30px; height: 30px; }
    .iq-navbar .navbar-inner { padding-left: 12px; padding-right: 12px; }
}

/* ---- Thông báo ---- */
.app-page-title { font-size: 26px; margin: 8px 0 16px; color: #fff; }
.app-notify-item { display: flex; gap: 12px; background: #fff; border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; color: #111; text-decoration: none; }
.app-notify-item.unread { box-shadow: inset 4px 0 0 var(--app-teal); }
.app-notify-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; margin-top: 8px; background: transparent; }
.app-notify-item.unread .app-notify-dot { background: #e0652a; }
.app-notify-item h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; color: #111; }
.app-notify-item p { font-size: 16px; margin: 0 0 6px; color: #333; }
.app-notify-item time { color: #e0652a; font-size: 15px; }
.app-btn { display: inline-block; padding: 10px 28px; border-radius: 40px; background: var(--app-teal); color: #02024a; font-weight: 700; text-decoration: none; }
