/* Базовые стили */
body {
    margin: 0; padding: 0; background-color: #000000; color: #ffffff;
    font-family: 'Roboto Mono', monospace; min-height: 100vh; overflow-x: hidden;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
body::-webkit-scrollbar { display: none; }

.hidden { display: none !important; }
.fade-out { opacity: 0 !important; pointer-events: none; }
.fade-in { opacity: 1 !important; pointer-events: auto; }

/* =========================================
    ГЛАВНЫЙ САЙТ (ВИТРИНА)
    ========================================= */
#main-website {
    position: relative;
    width: 100%;
    transition: opacity 0.5s ease;
}

/* ШАПКА ВИТРИНЫ */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; box-sizing: border-box; z-index: 100;
    background: linear-gradient(to bottom, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0) 100%);
    opacity: 0; transform: translateY(-20px); transition: all 0.8s ease;
    pointer-events: none;
}
.site-header.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.site-header-logo { width: 40px; cursor: pointer;}

.header-controls { display: flex; align-items: center; gap: 20px; }
.menu-btn { cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.menu-btn span { display: block; width: 20px; height: 2px; background-color: #fff; }

.wallet-nav-btn {
    background: transparent; border: 1px solid #333; border-radius: 50%;
    width: 40px; height: 40px; display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: background 0.3s, border 0.3s; color: #fff;
}
.wallet-nav-btn:hover { background: #111; border-color: #555; }
.wallet-nav-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ИНТРО ПОСЛЕДОВАТЕЛЬНОСТЬ (СБОРНЫЙ ЛОГОТИП) */
#intro-sequence {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 50; background-color: #000000; transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
}

.intro-logo-wrapper {
    display: flex; flex-direction: column; align-items: center;
    transform: translateY(30px); 
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
    width: 160px; 
}

.intro-logo-wrapper.step-1 { transform: translateY(-10px); }
.intro-logo-wrapper.step-2 { transform: translateY(-40vh); opacity: 0; pointer-events: none; }

.intro-logo-img { width: 100%; display: block; opacity: 0; transition: opacity 1s ease; }
.intro-logo-img.visible { opacity: 1; }

.intro-descriptor {
    width: 100%; display: block; margin-top: 15px; 
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.intro-logo-wrapper.step-1 .intro-descriptor { opacity: 1; transform: translateY(0); }

/* КНОПКА ENTER MONOKI (HTML/CSS) */
.btn-enter-main {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -20px);
    width: 40vw; /* Строго 40% от ширины любого экрана */
    min-width: 200px; /* ...но НИКОГДА не меньше 200px, чтобы текст всегда влезал */
    padding: 18px 20px; /* Фиксированная высота (меняться не будет) */
    background-color: #0033ff; color: #ffffff; border: none;
    font-family: 'FS Pixel Sans Unicode Regular', 'Press Start 2P', monospace; /* Твой шрифт */
    font-size: 12px;
    cursor: pointer; border-radius: 0; text-transform: uppercase;
    opacity: 0; pointer-events: none; transition: all 0.8s ease;
    box-sizing: border-box; text-align: center;
    white-space: nowrap; /* Чтобы текст не прыгал на вторую строку */
}
.btn-enter-main.visible { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.btn-enter-main:hover { background-color: #0044ff; box-shadow: 0 0 20px rgba(0, 51, 255, 0.4); }
/* ОСТАЛЬНОЙ САЙТ */
#site-content {
    padding-top: 100vh;
    opacity: 0; pointer-events: none; transition: opacity 1s ease;
}
#site-content.visible { opacity: 1; pointer-events: auto; }

/* Блок 1: Главный дроп (Phygital) */
.drop-section {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 80px 20px;
}
.drop-media-container { width: 100%; max-width: 400px; margin-bottom: 20px; border-radius: 12px; background-color: #111; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.drop-video { width: 100%; height: auto; display: block; object-fit: cover; }

.drop-n { font-family: 'Press Start 2P', monospace; font-size: 9px; color: #aa8800; margin-bottom: 10px; }
.drop-title { font-family: sans-serif; font-size: 24px; font-weight: bold; margin: 0 0 10px 0; color: #fff; }
.drop-contract { font-family: 'Roboto Mono', monospace; font-size: 12px; color: #888; margin-bottom: 20px; }

.contract-link-inline { color: #888; text-decoration: underline; transition: color 0.3s; }
.contract-link-inline:hover { color: #ccc; }

.drop-timer { font-family: 'Press Start 2P', monospace; font-size: 11px; color: #0033ff; margin-bottom: 30px; line-height: 1.5; }

.btn-buy {
    background-color: #0033ff; color: #ffffff; border: none; padding: 18px 60px; text-transform: uppercase;
    font-family: 'Press Start 2P', monospace; font-size: 12px; cursor: pointer; transition: background-color 0.3s;
}

/* Лента картинок (Marquee) */
.image-marquee-container { width: 100%; overflow: hidden; padding: 40px 0 60px 0; display: flex; } /* Уменьшили нижний отступ */
.image-marquee { display: flex; animation: scroll-left 120s linear infinite; }
.image-marquee img { width: 100px; height: 100px; object-fit: cover; border-radius: 0px;}

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
    НОВЫЙ БЛОК ФИЛОСОФИИ (ГОРИЗОНТАЛЬНЫЕ ПОЛОСЫ)
    ========================================= */
.new-philosophy-section {
    display: flex; flex-direction: column; 
    justify-content: space-between;
    align-items: center;
    height: calc(100vh - 50px - 18px);
    position: relative; background-color: #000000; overflow: hidden;
}

.horizontal-tape {
    width: 100%; height: 18px; position: absolute; left: 0; overflow: hidden;
    transition: top 1.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease;
    opacity: 0; z-index: 5;
}

.top-tape { display: none; }
.bottom-tape { position: relative; width: 100%; }

/* Опускаем ленту в самый низ */
#site-content.visible .bottom-tape { opacity: 1; }

.tape-bg {
    position: absolute; top: 0; left: 0; width: 200%; height: 100%;
    background-image: url('https://i.postimg.cc/nVdYQf4Q/photo-2026-03-18-08-00-16.jpg');
    background-size: auto 100%; background-repeat: repeat-x;
    image-rendering: crisp-edges;
    animation: scroll-bg 60s linear infinite; 
}
.tape-bg.reverse { animation-direction: reverse; }

@keyframes scroll-bg {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.philosophy-core-text {
    font-family: 'Roboto Mono', monospace; font-size: 12px; color: #888; text-align: center; line-height: 1.6;
    max-width: 600px; padding: 0 20px;
    opacity: 0; transform: scale(0.9);
    transition: all 1.5s ease 0.8s; 
    z-index: 2;
}
#site-content.visible .philosophy-core-text { opacity: 1; transform: scale(1); }

/* Скрываем лишние переносы строк на ПК и делаем текстовый блок шире */
@media (min-width: 768px) {
    .mobile-br { display: none; }
    .philosophy-core-text { max-width: 800px; }
}

.see-more-link {
    position: absolute; bottom: 30px;
    display: inline-block; color: #0033ff; font-family: 'Press Start 2P', monospace;
    font-size: 10px; cursor: pointer; text-decoration: underline;
    opacity: 0; transition: opacity 1s ease 1.5s; z-index: 10;
}
#site-content.visible .see-more-link { opacity: 1; }



/* --- Manifesto Section --- */
.manifesto-section {
    display: flex; flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 50px - 18px);
    position: relative; background-color: #000000; overflow: hidden;
}

/* Видео абсолютно внизу — не влияет на центрирование текста */
.manifesto-bottom-video {
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: auto;
    display: block; object-fit: cover;
}

.manifesto-text {
    font-family: 'Roboto Mono', monospace; font-size: 12px; color: #888;
    text-align: center; max-width: 600px; padding: 0 20px;
    margin-top: -1em;
    opacity: 0; transform: translateY(24px);
    transition: opacity 1.5s ease 0.2s, transform 1.5s ease 0.2s;
    z-index: 2;
}
.manifesto-text p {
    line-height: 1.2;
    margin: 0 0 1.5em 0;
}
.manifesto-text p:last-child { margin-bottom: 0; }
.manifesto-text.in-view { opacity: 1; transform: translateY(0); }

.manifesto-mobile { display: block; }
.manifesto-desktop { display: none; }

@media (min-width: 768px) {
    .manifesto-mobile { display: none; }
    .manifesto-desktop { display: block; }
}
@media (min-width: 768px) {
    .manifesto-text { max-width: 860px; font-size: 13px; }
}

/* Блок Donate */
.donate-section {
    position: relative; padding: 100px 20px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
.donate-bg-tapes { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%); z-index: -1; opacity: 0.3; }

.angled-tape-container {
    width: 100%; overflow: hidden; height: 18px; position: relative;
    transform: rotate(15deg) scale(1.05); margin: -40px 0;
}
.angled-tape-container.reverse { transform: rotate(-15deg) scale(1.05); }

.donate-text { font-size: 11px; color: #888; max-width: 400px; margin: 0 auto 40px auto; line-height: 1.8; }
.social-icons-main { display: flex; gap: 20px; justify-content: center; margin-bottom: 60px; }
.social-icons-main svg { width: 24px; height: 24px; fill: #fff; opacity: 0.6; transition: opacity 0.3s; cursor: pointer;}
.social-icons-main svg:hover { opacity: 1; }

.btn-donate {
    width: 100%; max-width: 400px; background-color: #0033ff; color: #ffffff; border: none;
    padding: 24px; font-family: 'Press Start 2P', monospace; font-size: 14px; cursor: pointer;
    text-transform: uppercase;
}
.footer-text { font-size: 9px; color: #555; margin-top: 40px; font-family: sans-serif; }


/* =========================================
    WEB3 ПРИЛОЖЕНИЕ (ДАШБОРД / ДЕТАЛИ)
    ========================================= */
#app-container {
    position: relative; width: 100%; min-height: 100vh;
    transition: opacity 0.5s ease;
}

#screen-landing {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 100vh; text-align: center;
    transition: opacity 0.5s ease;
}
.container-landing { width: 90%; max-width: 400px; display: flex; flex-direction: column; align-items: center; }
.info-message { font-size: 11px; color: #888888; line-height: 1.6; margin-bottom: 30px; opacity: 0; transform: translateY(-10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.info-message.show { opacity: 1; transform: translateY(0); }
.logo-landing { display: block; margin: 0 auto 50px auto; width: 140px; cursor: pointer; }
.btn-connect { background-color: #0033ff; color: #ffffff; border: none; padding: 18px 20px; font-family: 'Press Start 2P', monospace; font-size: 12px; cursor: pointer; width: 100%; margin-bottom: 40px; transition: background-color 0.3s ease; }
.btn-connect:hover { background-color: #0044ff; }

#screen-dashboard {
    display: none; opacity: 0; flex-direction: column; padding: 20px;
    max-width: 1000px; margin: 0 auto; transition: opacity 0.5s ease;
}
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-top: 10px; width: 100%; }

.logo-dashboard { width: 40px; cursor: pointer; transition: opacity 0.2s ease; flex-shrink: 0; }
.logo-dashboard:hover { opacity: 0.8; }

.wallet-pill { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #3366ff; cursor: pointer; transition: color 0.3s ease; min-width: 0; flex-shrink: 1; }
.wallet-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.wallet-pill svg { flex-shrink: 0; }

.search-container { position: relative; margin-bottom: 30px; max-width: 400px; }
.search-input { width: 100%; box-sizing: border-box; background-color: transparent; border: 1px solid #333; color: #fff; padding: 12px 12px 12px 40px; font-family: 'Roboto Mono', monospace; font-size: 14px; border-radius: 4px; outline: none; }
.search-input:focus { border-color: #555; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; opacity: 0.7; }

.nft-table { width: 100%; position: relative; }
.table-header { display: grid; grid-template-columns: 50px 2fr 0.8fr 1.5fr; gap: 10px; color: #666; font-size: 12px; text-transform: uppercase; padding-bottom: 15px; border-bottom: 1px solid #222; margin-bottom: 15px; }
.sortable { display: flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; transition: color 0.2s ease; }
.sortable:hover { color: #aaa; }
.sort-arrow { display: inline-block; font-size: 10px; color: #444; transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease; }
.sort-arrow.active { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); }
.sort-arrow.desc { transform: rotate(180deg); }

.nft-row { display: grid; grid-template-columns: 50px 2fr 0.8fr 1.5fr; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #1a1a1a; transition: background-color 0.2s ease; }
.nft-row:hover { background-color: #111; }
.desktop-only { display: none; }

@media (min-width: 1024px) {
    .table-header { grid-template-columns: 60px 2fr 0.8fr 1.2fr 1.8fr 1.2fr 1.5fr; }
    .nft-row { grid-template-columns: 60px 2fr 0.8fr 1.2fr 1.8fr 1.2fr 1.5fr; }
    .table-header .desktop-only { display: flex; } 
    .nft-row .desktop-only { display: flex; align-items: center; font-size: 13px; color: #888; }
}

.col-img img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; background-color: #222; }
.col-name .name { font-weight: bold; font-size: 14px; margin-bottom: 4px; font-family: sans-serif; }
.col-name .collection { font-size: 11px; color: #555; }
.col-n { font-size: 13px; color: #888; }
.col-status { display: flex; flex-direction: column; align-items: flex-start; }
.col-owner { font-size: 12px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ОБЩИЕ СТИЛИ ДЛЯ ПЛАШЕК СТАТУСА (используются и на витрине) */
.status-pill { padding: 4px 10px; border-radius: 6px; font-size: 12px; margin-bottom: 4px; display: inline-block;}
.status-locked { background-color: #222; color: #777; }
.status-creating { background-color: #001a4d; color: #3366ff; }
.status-athome { background-color: #332200; color: #ffaa00; }
.status-unlocked { background-color: #003311; color: #00cc44; }
.status-subtext { font-size: 10px; color: #555; }

.clickable-cell { cursor: pointer; transition: opacity 0.2s ease; }
.clickable-cell:hover { opacity: 0.7; }

/* --- ЭКРАН 3 и ЭКРАН 4: ДЕТАЛИ NFT --- */
#screen-locked-details {
    display: none; opacity: 0; flex-direction: column; padding: 20px;
    max-width: 1000px; margin: 0 auto; transition: opacity 0.5s ease; min-height: 100vh;
}

#screen-locked-details .header { margin-bottom: 10px; }
.detail-model-name { font-family: 'Roboto Mono', monospace; font-size: 13px; color: #aaaaaa; text-align: center; flex-grow: 1; flex-shrink: 0; margin: 0 10px; line-height: 1.3; }

#public-detail-model { text-align: left; }

.details-content { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; flex-grow: 1; margin-top: 0px; max-width: 400px; margin-left: auto; margin-right: auto; width: 100%; }

.media-container { position: relative; width: 100%; margin-bottom: 8px; border-radius: 12px; background-color: #111; box-shadow: 0 4px 20px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
.details-img, .details-video { width: 100%; height: auto; max-height: 75vh; display: block; object-fit: contain; border-radius: 12px; }

.video-loader { position: absolute; display: flex; gap: 8px; z-index: 10; }
.video-loader .dot { width: 12px; height: 12px; background-color: #0033ff; border-radius: 50%; opacity: 0.3; animation: dotBlink 1.4s infinite both; }
.video-loader .dot:nth-child(1) { animation-delay: 0s; }
.video-loader .dot:nth-child(2) { animation-delay: 0.2s; }
.video-loader .dot:nth-child(3) { animation-delay: 0.4s; }

.pause-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: rgba(0, 0, 0, 0.6); border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 15; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
.pause-icon.show { opacity: 1; }
.pause-icon svg { width: 24px; height: 24px; fill: #fff; }

/* НОВЫЕ КНОПКИ УПРАВЛЕНИЯ ПОВЕРХ ВИДЕО */
.video-overlay-btn {
    position: absolute; bottom: 12px; background: rgba(0, 0, 0, 0.6); border: none; color: #fff;
    border-radius: 50%; width: 36px; height: 36px; display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 15; transition: background 0.3s, transform 0.2s; -webkit-tap-highlight-color: transparent;
}
.video-overlay-btn:hover { background: rgba(0, 0, 0, 0.9); transform: scale(1.1); }
.video-overlay-btn svg { width: 18px; height: 18px; fill: currentColor; }
.overlay-left { left: 55px; }
.overlay-right { right: 55px; }

/* КОНТЕЙНЕР ДЛЯ НОМЕРА N ПОД ВИДЕО */
.external-video-controls { display: flex; justify-content: center; align-items: center; width: 100%; margin-bottom: 25px; padding: 0 4px; box-sizing: border-box; }
.details-edition-panel { font-family: 'Press Start 2P', monospace; font-size: 8px; color: #aa8800; text-transform: uppercase; margin: 0; text-align: center; }

video::-webkit-media-controls-wireless-playback-picker-button { border-radius: 12px !important; background-color: rgba(0, 0, 0, 0.5) !important; }
video::-webkit-media-controls-picture-in-picture-button { border-radius: 12px !important; background-color: rgba(0, 0, 0, 0.5) !important; }
video::-webkit-media-controls-overlay-cast-button { border-radius: 12px !important; background-color: rgba(0, 0, 0, 0.5) !important; }
video::-internal-media-controls-overlay-cast-button { border-radius: 12px !important; background-color: rgba(0, 0, 0, 0.5) !important; }

.details-title { font-family: sans-serif; font-size: 24px; font-weight: bold; text-align: center; margin: 0 0 30px 0; color: #fff; }
.details-timer { color: #0033ff; font-family: 'Press Start 2P', monospace; font-size: 11px; margin-bottom: 40px; text-align: center; line-height: 1.5; }

.btn-physical { width: 100%; box-sizing: border-box; padding: 18px 20px; font-family: 'Press Start 2P', monospace; font-size: 12px; margin-bottom: 30px; text-align: center; border-radius: 2px; transition: background-color 0.3s ease; }
.btn-disabled { background-color: transparent; border: 1px solid #333; color: #666; cursor: not-allowed; }
.btn-active { background-color: #0033ff; border: none; color: #ffffff; cursor: pointer; }
.btn-active:hover { background-color: #0044ff; }

.details-description { font-family: sans-serif; font-size: 12px; color: #aaa; line-height: 1.6; text-align: left; width: 100%; margin-bottom: 30px; word-wrap: break-word; }
.details-description a { color: #3366ff; text-decoration: none; font-weight: bold; }
.details-description a:hover { text-decoration: underline; }

.details-footer { display: flex; align-items: center; gap: 15px; border-top: 1px solid #1a1a1a; padding-top: 20px; width: 100%; justify-content: flex-start; }
.details-footer span { color: #555; font-size: 11px; font-family: 'Roboto Mono', monospace; margin-right: auto; }

.social-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; -webkit-tap-highlight-color: transparent !important; outline: none; text-decoration: none; transition: background-color 0.2s ease; }
.social-link:hover, .social-link:active { background-color: rgba(255, 255, 255, 0.05); }
.social-img { width: 20px; height: 20px; opacity: 0.6; transition: opacity 0.2s ease, transform 0.2s ease; object-fit: contain; -webkit-tap-highlight-color: transparent !important; outline: none; }
.social-link:hover .social-img, .social-link:active .social-img { opacity: 1; transform: scale(1.1); }

.empty-state-container { position: relative; min-height: 250px; width: 100%; }
.empty-state { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: 'Roboto Mono', monospace; font-size: 14px; color: #555555; background-color: rgba(13, 13, 13, 0.5); z-index: 10; border-radius: 8px; }
.loading-text { display: flex; align-items: center; gap: 10px; }
.spinner { width: 16px; height: 16px; border: 2px solid #333; border-top-color: #3366ff; border-radius: 50%; animation: spin 1s linear infinite; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; font-size: 12px; color: #777; }
.pagination-controls { display: flex; gap: 10px; }
.pagination-controls span.active { color: #fff; }

.blue-text { color: #3366ff !important; }
.white-text { color: #ffffff !important; }
