﻿:root {
    --bg-color: #0d0d0d;
    --card-bg: #1f1f1f;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #ffaa00;
    --header-height: 50px;
    --bottom-height: 60px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-touch-callout: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding-top: calc(var(--header-height) + env(safe-area-inset-top));
    padding-bottom: calc(var(--bottom-height) + env(safe-area-inset-bottom));
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--header-height) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
    z-index: 100;
    border-bottom: 1px solid #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left i, .header-right i {
    font-size: 20px;
    color: #ccc;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: #000;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    line-height: 1.1;
}

.brand-name {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.2px;
    color: #fff;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.brand-name span {
    background: linear-gradient(90deg, #FB8C00, #E91E63 55%, #8E24AA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-tagline {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #E91E63, #FB8C00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

@media (max-width: 360px) {
    .brand-tagline { display: none; }
    .brand-name { font-size: 16px; }
    .brand-logo { width: 32px; height: 32px; }
}

/* legacy class kept for generated locale pages */
.logo {
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    letter-spacing: 0.5px;
}

.notice-bar {
    background-color: #222;
    color: #ffaa00;
    font-size: 12px;
    padding: 8px 10px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #333;
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.2);
}

.notice-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-150%, 0); }
}

.feature-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    justify-content: center;
    align-items: center;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.feature-tag i {
    color: var(--accent-color);
    font-size: 11px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #ff6b6b;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.35);
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.2px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4757;
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.6);
    animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.55); }
    70% { box-shadow: 0 0 0 6px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.promo-banner {
    position: relative;
    margin: 10px 10px 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(120deg, #2a1a00 0%, #1a1208 45%, #241808 100%);
    border: 1px solid rgba(255, 170, 0, 0.35);
    animation: fadeIn 0.45s ease-out;
}

.promo-banner__glow {
    position: absolute;
    inset: -40% auto auto -20%;
    width: 55%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.28), transparent 70%);
    pointer-events: none;
    animation: promoShine 4s ease-in-out infinite;
}

@keyframes promoShine {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(40%); opacity: 1; }
}

.promo-banner__body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    z-index: 1;
}

.promo-banner__badge {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 800;
    color: #000;
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    padding: 4px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.promo-banner__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-banner__text strong {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

.promo-banner__text span {
    font-size: 11px;
    color: #c9a36a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-banner__cta {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #ffaa00;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.promo-banner:active {
    transform: scale(0.985);
}

.category-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 12px 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.cat-tab {
    flex-shrink: 0;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}

.cat-tab i {
    font-size: 11px;
    color: #777;
}

.cat-tab.active {
    color: #111;
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(255, 170, 0, 0.25);
}

.cat-tab.active i {
    color: #111;
}

.cat-tab:active {
    transform: scale(0.96);
}

.container {
    padding: 10px;
    padding-bottom: 20px;
}

.section-title {
    font-size: 15px;
    font-weight: bold;
    margin: 15px 0 10px 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #eee;
}

.section-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #666;
}

.video-skeleton {
    background: linear-gradient(110deg, #1a1a1a 25%, #2a2a2a 37%, #1a1a1a 63%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease infinite;
    border-radius: 6px;
    min-height: 220px;
    aspect-ratio: 2 / 3.35;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 16px;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

.grid-empty i {
    display: block;
    font-size: 28px;
    color: #444;
    margin-bottom: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

@media (max-width: 340px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (min-width: 550px) and (max-width: 767px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transition: transform 0.1s;
    animation: fadeIn 0.5s ease-out;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-card:active {
    transform: scale(0.98);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 2:3 竖屏比例 */
    background-color: #000;
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .thumbnail-wrapper img {
    transform: scale(1.05);
}

.video-overlay-hd {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(45deg, #ffcc00, #ffaa00);
    color: #000;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.video-overlay-vip {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(45deg, #ff4757, #ff6b81);
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.video-overlay-time {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background-color: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 2;
}

.video-info {
    padding: 8px;
}

.video-title {
    font-size: 13px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #ddd;
    margin-bottom: 6px;
}

.video-tags {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.tag {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    background-color: #333;
    color: #888;
}

.tag.hot {
    background-color: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
}

.loading-more {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    margin: 10px 0;
    border-radius: 6px;
    transition: all 0.2s;
    opacity: 0.8;
}

.loading-more:active {
    opacity: 0.5;
    transform: scale(0.98);
}

.player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    z-index: 500;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.player-overlay.active {
    display: flex;
}

.player-header {
    height: calc(50px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
    color: #fff;
    background-color: #1a1a1a;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
}

.player-container {
    width: 100%;
    padding-top: 150%; /* 2:3 竖屏比例 */
    background-color: #000;
    position: relative;
}

.player-video-wrap,
.player-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.player-video-placeholder {
    cursor: pointer;
}

.player-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    z-index: 1;
}

.player-loading--overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.thumb-fallback {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1a1a1a, #333);
    color: var(--accent-color);
    font-size: 28px;
}

.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.45);
    transform: scale(1.05);
}

.player-cover--dim {
    filter: blur(6px) brightness(0.35);
}

.player-loading {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--accent-color);
}

.player-loading i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.player-loading p {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.player-lock-mask {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.player-lock-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 170, 0, 0.2);
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-color);
}

.player-lock-mask p {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 16px;
}

.player-unlock-btn {
    border: none;
    background: linear-gradient(45deg, #ffaa00, #ff7700);
    color: #111;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 22px;
    cursor: pointer;
}

.player-controls-fake {
    padding: 12px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #333;
    margin-bottom: 12px;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.2s;
}

.control-icons {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 18px;
}

.player-details {
    padding: 15px;
    background-color: #1a1a1a;
    margin-bottom: 10px;
}

.player-main-title {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.player-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

.comments-section {
    background-color: #1a1a1a;
    padding: 15px;
    margin-bottom: 10px;
}

.section-header {
    font-size: 14px;
    color: #fff;
    border-left: 3px solid var(--accent-color);
    padding-left: 8px;
    margin-bottom: 15px;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.avatar {
    width: 32px;
    height: 32px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.comment-content {
    flex: 1;
}

.user-name {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.user-text {
    font-size: 13px;
    color: #ddd;
    line-height: 1.4;
}

.recommendations {
    background-color: #1a1a1a;
    padding: 15px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.fake-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 550px) {
    .fake-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (min-width: 900px) {
    .fake-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.fake-item {
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid #2e2e2e;
}

.fake-item:active {
    transform: scale(0.97);
}

.fake-thumb {
    position: relative;
    width: 100%;
    padding-top: 140%;
    background: #000;
    overflow: hidden;
}

.fake-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fake-item:hover .fake-thumb img {
    transform: scale(1.06);
}

.fake-hd {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    background: linear-gradient(45deg, #ffcc00, #ffaa00);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
}

.fake-time {
    position: absolute;
    bottom: 6px;
    right: 6px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
}

.fake-play {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.2s;
}

.fake-play i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 170, 0, 0.9);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding-left: 2px;
}

.fake-item:hover .fake-play {
    opacity: 1;
}

.fake-meta {
    padding: 8px;
}

.fake-title {
    font-size: 12px;
    line-height: 1.35;
    color: #ddd;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
}

.fake-views {
    font-size: 10px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fake-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-size: 13px;
    padding: 20px 0;
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--bottom-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(180deg, rgba(28, 22, 12, 0.98), rgba(16, 16, 16, 0.98));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
    border-top: 1px solid rgba(255, 170, 0, 0.25);
    z-index: 90;
    box-shadow: 0 -5px 18px rgba(0,0,0,0.55);
    animation: slideUp 0.5s ease-out;
}

.footer-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffaa00, #ff7700);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 170, 0, 0.35);
}

.footer-text {
    flex: 1;
    min-width: 0;
}

.footer-title {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.footer-sub {
    color: var(--accent-color);
    font-size: 12px;
    animation: textPulse 1.5s infinite alternate;
}

@keyframes textPulse {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.footer-btn {
    position: relative;
    background: linear-gradient(45deg, #ffaa00, #ff7700);
    color: #000;
    border: none;
    padding: 9px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
    animation: btnPulse 1.5s infinite;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-btn__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111;
    opacity: 0.55;
}

@keyframes btnPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 170, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 170, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 170, 0, 0); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #252525;
    width: 85%;
    max-width: 320px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    border: 1px solid #444;
    transform: scale(0.9);
    -webkit-transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    -webkit-transform: scale(1);
}

.modal-header {
    padding: 15px;
    background: linear-gradient(to right, #2c2c2c, #222);
    border-bottom: 1px solid #333;
    position: relative;
}

.modal-header h3 {
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 30px 25px;
}

.vip-badge {
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    color: #000;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.modal-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: bold;
}

.sub-text {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.action-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.action-btn:active {
    transform: scale(0.96);
}

.download-btn {
    background: linear-gradient(45deg, #ffaa00, #ff5500);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 85, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.share-btn {
    background-color: #333;
    color: white;
    border: 1px solid #444;
}

.safe-tip {
    font-size: 11px;
    color: #55b759;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.9;
}

.toast {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 2000;
    text-align: center;
    width: auto;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #444;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Browser deep-link download sheet */
body.dl-open {
    overflow: hidden;
}

.dl-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: flex-end;
    justify-content: center;
}

.dl-sheet.show {
    display: flex;
}

.dl-sheet__mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dl-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, #252525 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
    animation: dlSheetUp 0.28s ease;
}

@keyframes dlSheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.dl-sheet__handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 auto 14px;
}

.dl-sheet__title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 4px;
}

.dl-sheet__desc {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.5;
}

a.dl-opt {
    text-decoration: none;
    color: inherit;
}

.dl-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #333;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-align: left;
    transition: transform 0.12s, background 0.12s;
    -webkit-tap-highlight-color: transparent;
}

.dl-opt:active {
    transform: scale(0.98);
    background: rgba(255, 170, 0, 0.1);
}

.dl-opt__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-opt__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.dl-opt__icon.sys {
    background: #e8f1ff;
}

.dl-opt__icon.edge {
    background: #e8f1ff;
    color: #0078d4;
    font-size: 22px;
}

.dl-opt__icon.samsung {
    background: transparent;
    border-color: transparent;
}

.dl-opt__icon.samsung img {
    width: 40px;
    height: 40px;
}

.dl-opt__text {
    flex: 1;
    min-width: 0;
}

.dl-opt__name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.dl-opt__hint {
    font-size: 11px;
    color: #888;
    margin-top: 1px;
}

.dl-opt__arrow {
    color: rgba(255, 255, 255, 0.25);
    font-size: 18px;
}

.dl-sheet__close {
    width: 100%;
    margin-top: 6px;
    background: none;
    border: 1px solid #333;
    color: #999;
    font-size: 13px;
    font-weight: 600;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
}

/* SaleSmartly chat widget - move up above sticky footer */
[id*="salesmartly"],
[class*="salesmartly"],
[class*="ss-chat"],
iframe[src*="salesmartly"] {
    bottom: 90px !important;
}