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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a2e;
    color: #fff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-bottom: 80px;
}

.home-header, .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    background: transparent;
}

.my-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    background: #f0f088;
}

.my-header .page-title {
    color: #1a1a2e;
}

.back-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn svg {
    width: 24px;
    height: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 12px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.banner-section {
    padding: 0 16px;
    margin-bottom: 20px;
}

.banner-item {
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.banner-indicators {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.banner-indicators span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.banner-indicators span.active {
    width: 24px;
    border-radius: 4px;
    background: #f0f088;
}

.banner-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.banner-stats {
    font-size: 14px;
    color: #f0f088;
    margin-bottom: 4px;
}

.banner-tags {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    padding: 0 16px;
    margin-bottom: 12px;
}

.quick-play-section {
    margin-bottom: 24px;
}

.quick-play-grid {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-play-grid::-webkit-scrollbar {
    display: none;
}

.quick-play-item {
    flex-shrink: 0;
    width: 140px;
    cursor: pointer;
}

.play-cover {
    width: 140px;
    height: 180px;
    border-radius: 12px;
    position: relative;
    margin-bottom: 8px;
}

.play-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f0f088;
    color: #1a1a2e;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon svg {
    width: 20px;
    height: 20px;
    margin-left: 4px;
}

.play-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-stats {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.recommend-section {
    padding: 0 16px;
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-item {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.recommend-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.recommend-cover {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
}

.recommend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.recommend-title {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recommend-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recommend-footer span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.more-btn {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.3);
}

.category-tabs-section {
    padding: 0 16px;
    margin-bottom: 16px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab.active {
    background: #f0f088;
    color: #1a1a2e;
}

.category-tab.more {
    color: #f0f088;
}

.drama-grid-section {
    padding: 0 16px;
}

.drama-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.drama-card {
    width: calc(33.333% - 8px);
    cursor: pointer;
}

.card-cover {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    position: relative;
    margin-bottom: 8px;
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f0f088;
    color: #1a1a2e;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.card-badge.hot {
    background: #e74c3c;
    color: #fff;
}

.card-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.recruit-banner {
    height: 120px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.recruit-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.recruit-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.recruit-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #f0f088;
}

.recruit-content p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.user-profile-section {
    padding: 20px 16px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-bottom: 16px;
}

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

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 14px;
    color: rgba(26, 26, 46, 0.6);
}

.watching-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.watching-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.watching-grid::-webkit-scrollbar {
    display: none;
}

.watching-item {
    flex-shrink: 0;
    width: 120px;
    cursor: pointer;
}

.watching-cover {
    width: 120px;
    height: 160px;
    border-radius: 12px;
    position: relative;
    margin-bottom: 8px;
}

.watching-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f0f088;
    color: #1a1a2e;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.watching-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watching-info {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    cursor: pointer;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.nav-item.active a {
    color: #f0f088;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 11px;
}

.bottom-space {
    height: 20px;
}

.auth-page {
    background: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.auth-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}

.auth-content {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 24px 24px 0 0;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0 16px;
    display: flex;
    align-items: center;
}

.input-wrapper svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 0;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #f0f088;
    border-color: #f0f088;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #1a1a2e;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.forgot-link {
    font-size: 14px;
    color: #f0f088;
    text-align: right;
    text-decoration: none;
}

.auth-btn {
    background: #f0f088;
    color: #1a1a2e;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.auth-btn:hover {
    opacity: 0.9;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn.google {
    background: #fff;
    color: #1a1a2e;
}

.social-btn.google svg {
    width: 20px;
    height: 20px;
}

.social-btn.facebook {
    background: #1877f2;
    color: #fff;
}

.social-btn.facebook svg {
    width: 18px;
    height: 18px;
}

.auth-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.auth-link {
    color: #f0f088;
    text-decoration: none;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.forgot-password-page {
    background: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
}

.forgot-content {
    text-align: center;
}

.forgot-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.forgot-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 32px;
}

.search-page {
    padding: 20px 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0 16px;
    margin-bottom: 24px;
}

.search-box svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 12px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 0;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.play-page {
    padding: 0;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
}

.video-stats {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.episode-selector {
    padding: 16px;
}

.episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.episode-item {
    width: calc(12.5% - 9px);
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.episode-item.active {
    background: #f0f088;
    color: #1a1a2e;
}

.episode-item.locked {
    opacity: 0.4;
}

.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 20px;
    width: 100%;
    max-width: 320px;
    padding: 24px;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.modal-price {
    font-size: 24px;
    color: #f0f088;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.modal-btn {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.modal-btn.primary {
    background: #f0f088;
    color: #1a1a2e;
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.recharge-page {
    padding: 0 16px;
}

.balance-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(240, 240, 136, 0.2);
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(240, 240, 136, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.balance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.balance-value {
    font-size: 36px;
    font-weight: 700;
    color: #f0f088;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.balance-unit {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.package-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.package-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.package-card.selected {
    border-color: #f0f088;
    background: rgba(240, 240, 136, 0.1);
}

.package-gold {
    font-size: 24px;
    font-weight: 700;
    color: #f0f088;
    margin-bottom: 4px;
}

.package-gold span {
    font-size: 14px;
    font-weight: 400;
}

.package-price {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.package-bonus {
    font-size: 12px;
    color: #f0f088;
    margin-top: 4px;
}

.custom-amount-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.custom-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    color: #fff;
    outline: none;
}

.custom-input:focus {
    border-color: #f0f088;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.custom-unit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.payment-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.payment-icon {
    font-size: 24px;
}

.payment-label {
    flex: 1;
    font-size: 14px;
    color: #fff;
}

.payment-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 36px;
}

.recharge-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border-radius: 12px;
    background: #f0f088;
    color: #1a1a2e;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.recharge-btn:hover {
    opacity: 0.9;
}

.recharge-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-box-wrapper {
    flex: 1;
    margin: 0 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 16px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 0;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-submit {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

.search-page {
    padding: 0 16px;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.keyword-highlight {
    color: #f0f088;
    font-weight: 600;
}

.result-count {
    color: rgba(255, 255, 255, 0.5);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.empty-icon svg {
    width: 100%;
    height: 100%;
}

.empty-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.8;
}

.empty-text p {
    margin: 4px 0;
}

@media (max-width: 480px) {
    .banner-item {
        height: 240px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .drama-card {
        width: calc(50% - 6px);
    }
    
    .nav-item {
        padding: 8px 12px;
    }
    
    .auth-content {
        padding: 30px 20px;
    }
}
