@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Orbitron:wght@400;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Orbitron', sans-serif; 
    background: linear-gradient(135deg, #0a0a1f, #1a0033); 
    color: #e0f0ff; 
    padding: 12px; 
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 0.6s ease;
}

body.adult-mode {
    background: linear-gradient(135deg, #1a0033 0%, #2a0a1f 30%, #4a0a2a 65%, #9f1239 100%) !important;
}

.header { 
    text-align: center; 
    margin-bottom: 10px; 
    position: relative; 
    padding: 25px 0 15px;
}

h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.8rem; 
    background: linear-gradient(90deg, #a5b4fc, #c4b5fd); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    position: relative;
    z-index: 2;
    display: inline-block;
    text-shadow: 0 0 30px rgba(165,180,252,0.4);
    line-height: 1.15;
}

.stars-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 180%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    font-size: 1.5rem;
    animation: twinkle 1.6s infinite alternate ease-in-out;
    user-select: none;
    text-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
}

.owner-star {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 50;
}

@keyframes twinkle {
    0%   { opacity: 0.3; transform: scale(0.6) rotate(-10deg); }
    50%  { opacity: 1;   transform: scale(1.2) rotate(5deg); }
    100% { opacity: 0.5; transform: scale(0.9) rotate(10deg); }
}

.header h1::before,
.header h1::after {
    content: '✨';
    position: absolute;
    color: #ffeb3b;
    font-size: 2rem;
    opacity: 0.95;
    animation: sparkle 2.2s infinite alternate;
    top: -25px;
    text-shadow: 0 0 15px #ffeb3b;
}
.header h1::before { left: -50px; }
.header h1::after  { right: -50px; }

@keyframes sparkle {
    0%   { opacity: 0.5; transform: scale(0.8) rotate(-15deg); }
    100% { opacity: 1;   transform: scale(1.3) rotate(15deg); }
}

.closed-book, .closed-adult-book {
    width: 100%;
    max-width: 480px;
    height: 60vh;
    min-height: 420px;
    margin: 20px auto;
    position: relative;
    cursor: pointer;
    overflow: visible;
    transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.closed-book::after,
.closed-adult-book::after {
    content: '';
    position: absolute;
    top: 3%;
    bottom: 3%;
    left: -16px;
    width: 20px;
    background: repeating-linear-gradient(to bottom, #f8f1e3 0px, #f8f1e3 1.8px, #e8d5b0 1.8px, #e8d5b0 3.6px);
    border-radius: 4px 0 0 4px;
    box-shadow: inset 4px 0 8px rgba(0,0,0,0.3), -3px 0 12px rgba(0,0,0,0.45);
    z-index: 5;
    pointer-events: none;
}

.book-style-royal .closed-book::after,
.book-style-luxury .closed-book::after,
.book-style-royal .closed-adult-book::after,
.book-style-luxury .closed-adult-book::after {
    background: repeating-linear-gradient(to bottom, #f9e8b8 0px, #f9e8b8 1.8px, #d4af37 1.8px, #d4af37 3.6px);
    box-shadow: inset 4px 0 8px rgba(0,0,0,0.35), 0 0 18px rgba(212,175,55,0.55);
}

.book-style-magazine .closed-book::after,
.book-style-magazine .closed-adult-book::after {
    width: 11px; left: -9px;
    background: repeating-linear-gradient(to bottom, #f5f5f5 0px, #f5f5f5 1.2px, #d1d5db 1.2px, #d1d5db 2.4px);
}

.book-style-album .closed-book::after,
.book-style-album .closed-adult-book::after {
    width: 26px; left: -20px;
    background: repeating-linear-gradient(to bottom, #faf6f0 0px, #faf6f0 2.2px, #e8d9c5 2.2px, #e8d9c5 4.4px);
    border-radius: 6px 0 0 6px;
    box-shadow: inset 5px 0 10px rgba(0,0,0,0.35), -4px 0 16px rgba(0,0,0,0.5);
}

.book-style-leather .closed-book,
.book-style-leather .closed-adult-book {
    background: linear-gradient(145deg, #3c2a1f, #1c140f);
    border: 14px solid #2c2118;
    border-radius: 22px 8px 8px 22px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), inset 0 0 40px rgba(0,0,0,0.45), -12px 0 25px rgba(0,0,0,0.55);
}
.book-style-leather .closed-adult-book { 
    border-color: #ff4081;
    background: linear-gradient(145deg, #2a0a1f, #1a0033, #9f1239) !important;
    box-shadow: 0 30px 60px rgba(159,18,57,0.55), 0 0 40px rgba(255,64,129,0.3);
}

.book-style-modern .closed-book,
.book-style-modern .closed-adult-book {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 9px solid #334155;
    border-radius: 4px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.75);
}
.book-style-modern .closed-adult-book { border-color: #be123c; }

.book-style-vintage .closed-book,
.book-style-vintage .closed-adult-book {
    background: linear-gradient(145deg, #d4a574, #8b5e3c);
    border: 16px solid #5c3a21;
    border-radius: 20px 6px 6px 20px;
    box-shadow: 0 35px 70px rgba(0,0,0,0.85), inset 0 0 50px rgba(139,94,60,0.35);
}
.book-style-vintage .closed-adult-book { border-color: #7f1d1d; }

.book-style-royal .closed-book,
.book-style-royal .closed-adult-book {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 12px solid #d4af37;
    border-radius: 24px 10px 10px 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 40px rgba(212,175,55,0.45), inset 0 0 25px rgba(212,175,55,0.15);
}
.book-style-royal .closed-adult-book { border-color: #ff4081; }

.book-style-scifi .closed-book,
.book-style-scifi .closed-adult-book {
    background: linear-gradient(145deg, #0c0c1e, #1a0033);
    border: 7px solid #00f5ff;
    border-radius: 8px;
    box-shadow: 0 0 25px #00f5ff, 0 0 50px #7c3aed, inset 0 0 35px rgba(0,245,255,0.12);
}
.book-style-scifi .closed-adult-book { border-color: #ff00aa; }

.book-style-magazine .closed-book,
.book-style-magazine .closed-adult-book {
    background: linear-gradient(160deg, #111827, #1f2937);
    border: 5px solid #e5e7eb;
    border-radius: 2px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.18);
}
.book-style-magazine .closed-adult-book { border-color: #f472b6; }
.book-style-magazine .cover-photo,
.book-style-magazine .adult-cover-photo { border-width: 3px; border-radius: 0; }

.book-style-album .closed-book,
.book-style-album .closed-adult-book {
    background: linear-gradient(145deg, #4a3728, #2c1e14);
    border: 18px solid #3d2b1f;
    border-radius: 28px 6px 6px 28px;
    box-shadow: 0 35px 70px rgba(0,0,0,0.95), inset 0 0 60px rgba(0,0,0,0.55), -16px 0 30px rgba(0,0,0,0.65);
}
.book-style-album .closed-adult-book { border-color: #9f1239; }

.book-style-luxury .closed-book,
.book-style-luxury .closed-adult-book {
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    border: 13px solid #c9a227;
    border-radius: 28px 12px 12px 28px;
    box-shadow: 0 32px 65px rgba(0,0,0,0.95), 0 0 45px rgba(201,162,39,0.4), inset 0 0 30px rgba(201,162,39,0.12);
}
.book-style-luxury .closed-adult-book { border-color: #ff4081; }

.book-3d .closed-book,
.book-3d .closed-adult-book {
    transform: perspective(1600px) rotateY(16deg) rotateX(3deg);
}
.book-3d .closed-book:hover,
.book-3d .closed-adult-book:hover {
    transform: perspective(1600px) rotateY(6deg) rotateX(1deg) scale(1.04);
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);
}

.featured-star { 
    position: absolute; 
    top: 6px; 
    left: 50%; 
    transform: translateX(-50%);
    font-family: 'Playfair Display', serif; 
    font-size: 1.55rem; 
    color: #ffd700; 
    text-shadow: 
        0 0 12px #ffd700,
        0 0 24px #ffeb3b,
        0 0 36px #ffc107,
        0 2px 4px #000;
    font-weight: bold; 
    z-index: 35; 
    white-space: nowrap;
    pointer-events: none;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    letter-spacing: 1.5px;
}

.today-stamp {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 40;
    pointer-events: none;
    transform: rotate(-18deg);
    transform-origin: center center;
}

.today-stamp::after {
    content: "TODAY'S";
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    color: #ffffff;
    background: none;
    padding: 0;
    text-shadow: 
        0 0 8px #000,
        0 2px 4px #000,
        1px 1px 0 #000,
        -1px -1px 0 #000,
        0 0 18px rgba(255,215,0,0.7);
    letter-spacing: 1.5px;
    white-space: nowrap;
    display: inline-block;
}

.cover-photo, .adult-cover-photo { 
    position: absolute; 
    top: 58px;
    left: 18%; 
    width: 64%; 
    height: 54%;
    background: #111; 
    border: 7px solid #d4af37; 
    border-radius: 6px; 
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    z-index: 10;
}
.adult-cover-photo { border-color: #ff4081; height: 56%; }

.cover-photo img, .adult-cover-photo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: top center;
    transition: all 0.35s ease;
}

.cover-caption {
    position: absolute; 
    bottom: 58px;
    left: 50%; 
    transform: translateX(-50%); 
    font-family: 'Playfair Display', serif; 
    font-size: 1.55rem; 
    color: #ffd700;
    text-align: center; 
    text-shadow: 0 3px 12px #000; 
    background: rgba(28,20,15,0.94); 
    padding: 9px 22px; 
    border-radius: 14px; 
    z-index: 12; 
    white-space: nowrap;
    max-width: 92%;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    border: 1px solid rgba(255,215,0,0.4);
}
#adult-cover-caption {
    bottom: 58px;
    color: #ff4081;
    font-size: 1.55rem;
}

.book-title { 
    position: absolute; 
    bottom: 12px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-family: 'Playfair Display', serif; 
    font-size: 1.25rem; 
    color: #f0d090; 
    text-align: center; 
    text-shadow: 0 4px 12px #000; 
    background: rgba(28,20,15,0.92); 
    padding: 6px 16px; 
    border-radius: 12px; 
    z-index: 10; 
    white-space: nowrap;
    max-width: 92%;
}

.cover-cycle {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 20;
    background: rgba(0,0,0,0.55); padding: 4px 10px; border-radius: 30px;
}
.cover-cycle button {
    background: #3b82f6; color: white; border: none; width: 28px; height: 28px;
    border-radius: 50%; font-size: 0.95rem; cursor: pointer;
}

.book-container, .adult-container {
    height: 65vh; min-height: 450px; max-width: 1000px; margin: 15px auto;
    position: relative; display: none; border-radius: 18px; transition: all 0.4s ease; perspective: 2000px;
    overflow: visible !important;
    z-index: 1;
}
.book-container { border: 2px solid rgba(165,180,252,0.3); background: rgba(15,23,42,0.6); }
.adult-container { 
    border: 3px solid #ff4081; 
    background: linear-gradient(145deg, rgba(30,10,20,0.92), rgba(80,10,40,0.88)) !important;
}

.adult-container::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 10px;
    background: linear-gradient(to bottom, #ff4081, #9f1239); transform: translateX(-50%);
    z-index: 50; box-shadow: 0 0 20px rgba(255, 64, 129, 0.8);
}

.page { 
    position: absolute; 
    width: 50%; 
    height: 100%; 
    background: #f8f1e3; 
    background-size: cover;
    background-position: center; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.65); 
    overflow: hidden;
    border-radius: 16px 10px 10px 16px; 
    display: flex; 
    flex-direction: column;
    color: #3c2a1f; 
    font-size: 1rem; 
    text-align: center; 
    padding: 16px 10px 16px 10px !important;
    transform-style: preserve-3d;
    z-index: 2;
}
.left-page { left: 0; }
.right-page { right: 0; border-radius: 10px 16px 16px 10px; }

.book-container .page { background-image: linear-gradient(rgba(248,241,227,0.82), rgba(248,241,227,0.82)), var(--main-bg); }
.adult-container .page { background-image: linear-gradient(rgba(248,241,227,0.78), rgba(248,241,227,0.78)), var(--adult-bg); }

.media { 
    width: 100%; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start;
    position: relative; 
    z-index: 2; 
    overflow: visible !important;
}

.media-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1 1 auto;
    max-height: calc(100% - 85px);
    min-height: 0;
}

.media img, 
.media video, 
.media iframe { 
    max-width: 96% !important; 
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 12px !important; 
    object-fit: contain !important;
    object-position: center top !important;
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.45s;
    position: relative;
    z-index: 5;
}

.media img:hover,
.media video:hover,
.media iframe:hover,
.pop-out {
    transform: scale(1.22) translateZ(80px) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.55) !important;
    z-index: 40 !important;
}

.media p,
.media .caption,
.media .media-caption,
.media span.caption,
.media > p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 10px !important;
    margin-bottom: 2px !important;
    font-size: 0.95rem !important;
    font-weight: bold !important;
    color: #3c2a1f !important;
    background: rgba(255,255,255,0.95) !important;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    max-width: 94% !important;
    line-height: 1.3 !important;
    z-index: 50 !important;
    position: relative !important;
    flex-shrink: 0 !important;
    text-align: center !important;
}

.media p + p {
    font-size: 0.82rem !important;
    font-weight: normal !important;
    opacity: 0.8 !important;
    margin-top: 2px !important;
    background: rgba(255,255,255,0.85) !important;
}

.cycle-controls { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    margin: 6px 0 2px 0; 
    flex-shrink: 0;
}
.cycle-btn {
    background: #3b82f6; color: white; border: none; width: 32px; height: 32px;
    border-radius: 50%; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cycle-info { font-size: 0.85rem; color: #555; font-weight: bold; }

.page-watermark {
    position: absolute;
    pointer-events: none;
    z-index: 20;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    white-space: nowrap;
    user-select: none;
}

.nav-btn { 
    position: absolute !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    width: 64px !important; 
    height: 64px !important; 
    background: rgba(165,180,252,0.95) !important; 
    color: #ffffff !important; 
    border: 4px solid #a5b4fc !important; 
    border-radius: 50% !important; 
    font-size: 2.1rem !important; 
    z-index: 99999 !important; 
    cursor: pointer !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
    pointer-events: auto !important;
    user-select: none;
}
.left-nav { left: 8px !important; } 
.right-nav { right: 8px !important; }

.close-book-btn, .close-adult-btn {
    position: absolute; top: 12px; right: 12px; z-index: 100; color: white;
    padding: 8px 14px; border-radius: 9999px; border: none; cursor: pointer; font-weight: bold; font-size: 0.9rem;
}
.close-book-btn { background: #ef4444; }
.close-adult-btn { background: #9f1239; }

.social-bar { text-align: center; margin: 16px 0; padding: 12px; background: rgba(255,255,255,0.05); border-radius: 12px; }

.hidden { display: none !important; }

.adult-tab {
    background: rgba(100, 20, 40, 0.15) !important; 
    color: #996666 !important; 
    padding: 7px 14px; 
    border-radius: 9999px;
    margin: 3px; 
    font-size: 0.82rem; 
    border: 1px solid rgba(150, 50, 50, 0.2) !important;
    box-shadow: none; 
    font-weight: normal; 
    opacity: 0.45 !important;
}

#vip-page, #cancel-page, #subscribe-page, #alisters-page, #pornstars-page {
    display: none;
    max-width: 800px;
    margin: 25px auto;
    background: rgba(15, 10, 30, 0.97) !important;
    border: 3px solid #a5b4fc;
    border-radius: 18px;
    padding: 25px 18px;
    box-shadow: 0 0 40px rgba(165,180,252,0.4);
    text-align: center;
    color: #e0f0ff !important;
}

#alisters-page {
    border: 3px solid #ffd700;
    background: linear-gradient(145deg, #1a0a2e, #0f0520) !important;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.35);
    position: relative;
    overflow: hidden;
}
#alisters-page::before {
    content: '★';
    position: absolute;
    font-size: 8rem;
    color: rgba(255,215,0,0.08);
    top: 10%;
    left: 5%;
    animation: twinkle 3s infinite;
}
#alisters-page::after {
    content: '★';
    position: absolute;
    font-size: 6rem;
    color: rgba(255,215,0,0.08);
    bottom: 15%;
    right: 8%;
    animation: twinkle 2.5s infinite 0.5s;
}
#alisters-page h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    background: linear-gradient(90deg, #ffd700, #fff8dc, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(255,215,0,0.5);
}
.alisters-intro {
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 18px 0 18px;
    color: #f0e6c8;
    font-family: 'Playfair Display', serif;
}
#alisters-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    min-height: 120px;
}
.alister-card {
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05));
    border: 1px solid rgba(255,215,0,0.4);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1.05rem;
    font-weight: bold;
    color: #ffd700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    max-width: 320px;
    text-align: left;
}
.alister-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(255,215,0,0.4);
    background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,215,0,0.1));
}
.alister-bio {
    font-size: 0.88rem;
    font-weight: normal;
    color: #e8d9a0;
    margin-top: 8px;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
}
.alisters-empty {
    opacity: 0.6;
    font-style: italic;
    padding: 30px;
}

#pornstars-page {
    border: 3px solid #ff4081;
    background: linear-gradient(145deg, #2a0a1a, #1a0510, #4a0a2a) !important;
    box-shadow: 0 0 60px rgba(255, 64, 129, 0.45);
    position: relative;
    overflow: hidden;
}
#pornstars-page::before {
    content: '💋';
    position: absolute;
    font-size: 7rem;
    color: rgba(255,64,129,0.08);
    top: 8%;
    left: 4%;
    animation: twinkle 3s infinite;
}
#pornstars-page::after {
    content: '🔥';
    position: absolute;
    font-size: 5.5rem;
    color: rgba(255,64,129,0.08);
    bottom: 12%;
    right: 6%;
    animation: twinkle 2.5s infinite 0.5s;
}
#pornstars-page h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    background: linear-gradient(90deg, #ff4081, #ff80ab, #ff4081);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(255,64,129,0.5);
}
.pornstars-intro {
    font-size: 1.08rem;
    line-height: 1.55;
    margin: 16px 0 18px;
    color: #ffc1d5;
    font-family: 'Playfair Display', serif;
    text-align: left;
}
#pornstars-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    min-height: 120px;
}
.pornstar-card {
    background: linear-gradient(135deg, rgba(255,64,129,0.18), rgba(255,64,129,0.06));
    border: 1px solid rgba(255,64,129,0.45);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1.05rem;
    font-weight: bold;
    color: #ff80ab;
    box-shadow: 0 4px 15px rgba(0,0,0,0.35);
    transition: all 0.3s;
    max-width: 320px;
    text-align: left;
}
.pornstar-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(255,64,129,0.45);
    background: linear-gradient(135deg, rgba(255,64,129,0.28), rgba(255,64,129,0.12));
}
.pornstar-bio {
    font-size: 0.88rem;
    font-weight: normal;
    color: #ffb3c9;
    margin-top: 8px;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
}
.pornstars-empty {
    opacity: 0.6;
    font-style: italic;
    padding: 30px;
    color: #ff80ab;
}

#vip-page h2, #cancel-page h2, #subscribe-page h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    background: linear-gradient(90deg, #c4b5fd, #e0bbff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}
.vip-info, .cancel-info, .subscribe-info {
    background: rgba(0,0,0,0.45) !important;
    padding: 16px; border-radius: 12px; margin: 16px 0;
    font-size: 0.95rem; line-height: 1.5; text-align: left; color: #e0f0ff !important;
}
.vip-info p, .cancel-info p, .subscribe-info p,
.vip-info strong, .cancel-info strong, .subscribe-info strong { color: #e0f0ff !important; }

.email-btn, .cancel-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa); color: white !important;
    padding: 12px 24px; border-radius: 9999px; font-size: 1.05rem;
    text-decoration: none; margin: 14px 0; border: none; cursor: pointer;
}
.cancel-btn { background: linear-gradient(90deg, #ef4444, #f87171); }

label { display: block; margin-top: 12px; font-weight: bold; color: #c4b5fd !important; }
textarea, select, input[type="text"], input[type="email"], input[type="color"], input[type="number"], input[type="password"] {
    width: 100%; padding: 11px; border-radius: 10px;
    border: 1px solid rgba(165,180,252,0.4) !important;
    background: rgba(0,0,0,0.55) !important; color: #ffffff !important;
    font-size: 0.95rem; margin-top: 8px;
}
select option { background: #1e1b4b !important; color: #ffffff !important; }
input::placeholder, textarea::placeholder { color: #a5b4fc !important; opacity: 0.7; }

.share-download-bar {
    text-align: center; margin: 18px 0; padding: 15px;
    background: rgba(255,255,255,0.06); border-radius: 12px; border: 1px solid rgba(165,180,252,0.2);
}
.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 12px; }
.share-btn {
    width: 42px; height: 42px; border-radius: 50%; border: none; color: white;
    font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.download-btn {
    background: linear-gradient(90deg, #10b981, #34d399); color: white;
    padding: 11px 22px; border-radius: 9999px; font-size: 1.05rem; font-weight: bold;
    border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}

.subscribe-now-btn {
    background: linear-gradient(90deg, #10b981, #34d399); color: white;
    padding: 9px 18px; border-radius: 9999px; margin: 4px; font-size: 0.95rem;
    font-weight: bold; border: none; cursor: pointer;
}

#owner-panel {
    display: none; background: rgba(15, 23, 42, 0.97); border: 2px solid #a5b4fc;
    border-radius: 14px; padding: 16px; margin: 16px auto; max-width: 1100px;
    box-shadow: 0 0 25px rgba(165,180,252,0.25); color: #e0f0ff !important;
}
.owner-badge {
    background: linear-gradient(90deg, #f59e0b, #fbbf24); color: #000;
    padding: 5px 14px; border-radius: 9999px; font-weight: bold; font-size: 0.9rem;
    display: inline-block; margin-bottom: 12px;
}

.sub-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.sub-tab-btn {
    padding: 10px 22px; border-radius: 9999px; border: 2px solid rgba(165,180,252,0.4);
    background: rgba(255,255,255,0.08); color: #c4b5fd !important; font-weight: bold; cursor: pointer; transition: all 0.25s;
}
.sub-tab-btn.active {
    background: linear-gradient(90deg, #7c3aed, #a78bfa); color: white !important;
    border-color: transparent; box-shadow: 0 0 20px rgba(124,58,237,0.5);
}

.public-controls-bar {
    text-align: center; margin: 12px 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.public-btn {
    background: #4f46e5; color: white; padding: 9px 18px; border-radius: 9999px;
    font-weight: bold; border: none; cursor: pointer; font-size: 0.95rem;
}
.public-btn.music { background: #7c3aed; }
.public-btn.auto { background: #4f46e5; }
.public-btn.cam { background: #06b6d4; }

.adult-cam-btn {
    position: absolute; top: 12px; left: 12px; z-index: 100;
    background: #06b6d4; color: white; padding: 10px 16px; border-radius: 9999px;
    border: none; cursor: pointer; font-weight: bold; font-size: 0.95rem;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

#live-cam-chat {
    position: absolute;
    bottom: 70px;
    right: 12px;
    width: 300px;
    max-height: 280px;
    background: rgba(20,5,15,0.96);
    border: 2px solid #ff4081;
    border-radius: 14px;
    display: none;
    flex-direction: column;
    z-index: 120;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.65);
}
#chat-presence {
    background: rgba(255,64,129,0.3);
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #ffc1d5;
    text-align: center;
    border-bottom: 1px solid rgba(255,64,129,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    font-size: 0.85rem;
    color: #ffc1d5;
    max-height: 160px;
}
.chat-msg {
    margin: 6px 0;
    padding: 6px 10px;
    border-radius: 10px;
    max-width: 92%;
    line-height: 1.3;
}
.chat-viewer { background: rgba(255,64,129,0.25); margin-right: auto; }
.chat-cam { background: rgba(124,58,237,0.4); margin-left: auto; text-align: right; }
#chat-input-area {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid rgba(255,64,129,0.4);
}
#chat-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ff4081;
    background: #1a0510;
    color: white;
    font-size: 0.85rem;
}
#chat-send {
    background: linear-gradient(90deg,#ff4081,#ec4899);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 14px;
    font-weight: bold;
    cursor: pointer;
}

#comment-input { opacity: 0.7; font-size: 0.88rem !important; }

#tab-bar {
    display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 12px auto; max-width: 720px;
}
.tab-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; }

.style-controls {
    background: rgba(0,0,0,0.55) !important; border: 1px solid rgba(165,180,252,0.35);
    border-radius: 12px; padding: 14px; margin: 14px 0; text-align: center; color: #e0f0ff !important;
}
.style-controls strong { color: #c4b5fd !important; }
.style-controls select, .style-controls input[type="color"], .style-controls input[type="checkbox"] {
    background: #0f172a !important; color: #ffffff !important; border: 1px solid #6366f1 !important;
    width: auto; display: inline-block; margin: 4px 6px; vertical-align: middle;
}
.style-controls select option { background: #1e1b4b !important; color: white !important; }
.style-btn {
    background: #6366f1; color: white !important; padding: 8px 14px; border-radius: 9999px;
    border: none; cursor: pointer; font-weight: bold; margin: 4px;
}

#ai-helper { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
#ai-btn {
    width: 68px; height: 68px; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa); 
    border: 3px solid #c4b5fd;
    box-shadow: 0 6px 25px rgba(124,58,237,0.55); cursor: pointer; 
    transition: transform 0.2s;
    overflow: hidden;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
}
#ai-btn:hover { transform: scale(1.08); }
#ai-face {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #7c3aed;
}
#ai-chat {
    display: none; position: absolute; bottom: 80px; right: 0; width: 340px; max-height: 500px;
    background: rgba(15, 23, 42, 0.98); border: 2px solid #a5b4fc; border-radius: 18px;
    padding: 14px; box-shadow: 0 15px 50px rgba(0,0,0,0.6);
}
#ai-messages { height: 220px; overflow-y: auto; margin-bottom: 12px; font-size: 0.92rem; padding-right: 4px; }
.ai-msg { margin: 8px 0; padding: 9px 13px; border-radius: 14px; max-width: 88%; line-height: 1.35; }
.ai-bot { background: rgba(124,58,237,0.28); margin-right: auto; }
.ai-user { background: rgba(59,130,246,0.3); margin-left: auto; text-align: right; }

.bio-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 6px 11px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 40;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.3);
    display: none;
}
.bio-badge.visible { display: block; }
.bio-badge:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(255,215,0,0.65);
}

#bio-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(12px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#bio-modal.active { display: flex; }

.bio-modal-content {
    background: linear-gradient(160deg, #1a1a2e, #0f0f1a);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 35px 30px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: bioPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bioPop {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.bio-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.8rem;
    cursor: pointer;
}
.bio-modal-content h2 {
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.bio-modal-content p {
    color: #e0f0ff;
    line-height: 1.65;
    font-size: 1.05rem;
}

/* Rating stars UI */
.content-rating-bar {
    margin-top: 12px;
    padding: 10px;
    background: rgba(0,0,0,0.55);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.content-rating-bar span {
    cursor: pointer;
    font-size: 1.4rem;
    transition: color 0.2s;
}
.content-rating-bar span:hover {
    color: #fbbf24 !important;
}

/* Book padlock */
.book-padlock {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 60;
    font-size: 1.8rem;
    cursor: pointer;
    color: #ef4444;
    text-shadow: 0 0 10px currentColor;
}

/* Dual chat & other injected elements inherit body styles */

@media (max-width: 768px) {
    body { padding: 8px; }
    h1 { font-size: 1.75rem !important; }
    .header { padding: 18px 0 10px; }
    .header h1::before, .header h1::after { font-size: 1.35rem; top: -18px; }
    .header h1::before { left: -32px; }
    .header h1::after { right: -32px; }
    .closed-book, .closed-adult-book {
        height: 55vh; min-height: 320px; max-width: 96%; margin: 12px auto; border-width: 8px;
    }
    .featured-star { font-size: 1.25rem; top: 4px; }
    .today-stamp { top: 8px; left: 8px; }
    .today-stamp::after { font-size: 1.15rem; }
    .cover-photo, .adult-cover-photo {
        top: 50px; left: 16%; width: 68%; height: 51%; border-width: 5px;
    }
    .adult-cover-photo { height: 53% !important; }
    .cover-caption { bottom: 52px; font-size: 1.3rem; padding: 8px 16px; }
    #adult-cover-caption { bottom: 52px; }
    .book-title { font-size: 1.05rem; bottom: 10px; padding: 5px 12px; }
    .book-container, .adult-container {
        height: 70vh; min-height: 360px; margin: 10px auto; border-radius: 12px; max-width: 100%;
    }
    .page { 
        width: 100% !important; 
        left: 0 !important; 
        right: auto !important; 
        border-radius: 12px !important; 
        padding: 12px 8px !important;
    }
    .right-page { display: none !important; }
    .adult-container::before { display: none; }
    .media-wrapper {
        max-height: calc(100% - 80px) !important;
    }
    .nav-btn { width: 54px !important; height: 54px !important; font-size: 1.7rem !important; border-width: 3px !important; }
    .left-nav { left: 6px !important; } .right-nav { right: 6px !important; }
    .close-book-btn, .close-adult-btn { top: 8px; right: 8px; padding: 6px 11px; font-size: 0.8rem; }
    #tab-bar button { padding: 8px 12px !important; font-size: 0.82rem !important; margin: 3px !important; }
    #owner-panel { padding: 12px; }
    #owner-panel button { padding: 8px 11px !important; font-size: 0.8rem !important; }
    #url-input { width: 100% !important; max-width: 260px; margin-bottom: 6px; }
    .share-btn { width: 38px; height: 38px; font-size: 1.05rem; }
    .download-btn { padding: 10px 18px; font-size: 0.95rem; }
    #vip-page, #cancel-page, #subscribe-page, #alisters-page, #pornstars-page { padding: 18px 12px; margin: 12px auto; }
    #vip-page h2, #cancel-page h2, #subscribe-page h2, #alisters-page h2, #pornstars-page h2 { font-size: 1.8rem; }
    .sub-tab-btn { padding: 9px 16px; font-size: 0.9rem; }
    #ai-chat { width: 300px; right: -10px; }
    #ai-btn { width: 58px; height: 58px; }
    #live-cam-chat { width: 260px; right: 8px; bottom: 60px; }
    .page-watermark { font-size: 1.3rem; }
}

@media (max-width: 400px) {
    h1 { font-size: 1.5rem !important; }
    .closed-book, .closed-adult-book { min-height: 280px; height: 52vh; }
    .book-container, .adult-container { height: 65vh; min-height: 320px; }
    .media-wrapper {
        max-height: calc(100% - 75px) !important;
    }
    .today-stamp { top: 6px; left: 6px; }
    .today-stamp::after { font-size: 1.05rem; }
    .cover-photo, .adult-cover-photo { height: 48%; top: 44px; }
    .adult-cover-photo { height: 50% !important; }
    .cover-caption { bottom: 48px; font-size: 1.2rem; }
    #adult-cover-caption { bottom: 48px; }
    .featured-star { font-size: 1.1rem; top: 3px; }
}