@import url("container.css");

    :root {
    /* Textos */
    --text-color: #ffffff;
    --text-h2: #d5d5e4;
    --text-p: #e0e0e0;

    /* Fondos principales */
    --body-bg: #101214;
    --app-bg: #20232a;
    --nav-bar-bg: #2c303d;
    --card-bg: #2c303d;

    /* Botones y detalles */
    --btn-bg: #d0d0d0;

    /* Paleta principal */
    --color-lila: #818eaa;
    --color-cian: #5d7c7e;

    /* Extras */
    --border: #3a3f51;
    --border2: #727992;
    --nav-hover-bg: #4d5370;
    --nav-item-bg: #3a3f51;
    --nav-icon: #aaa;
    --nav-icon-active: #ffffff;
    }

    [data-theme="dark"] {
    --text-color: #e0e0e0;
    }

    /* -------- GLOBAL -------- */

    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
    }

    body {
    background: var(--body-bg);
    font-family: "Segoe UI", sans-serif;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    overflow: hidden;
    padding: 0px;
    }

    .headboss {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px;
    background: #2c303d;
    background: var(--app-bg);

    color: white;
    }

    .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2c303d;
    background: var(--app-bg);
    color: white;
    }

    .header-icons {
    display: flex;
    gap: 12px;
    }

    #app {
    background: var(--app-bg);
    width: 100%;
    max-width: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    }

    /* -------- CONTENT -------- */

    .content {
    flex: 1;
    overflow-y: auto;
    margin: 16px 16px 0 16px;
    border-radius: 12px;
    position: relative;
    }

.content-fade {
    position: sticky;
    bottom: 0;
    height: 90px;
    width: 100%;
    background: linear-gradient(
        to bottom,
        rgba(32, 35, 42, 0) 0%,
        #20232a 100%
    );
    pointer-events: none;
}

    /* -------- CARDS -------- */

    .card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    }

    .card h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-h2);
    }

    /* -------- TAGS -------- */

    .tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    }

    .tag {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: var(--color-lila);
    color: #fff;
    }

    .tag.cian {
    background: var(--color-cian);
    }

    .text-love {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-lila);
    text-align: center;
    display: block;
    letter-spacing: 6px;
    }

    /* -------- NAV BAR -------- */

    .nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 28px 0 18px 0;
    border-top: 2px solid var(--border);
    margin-bottom: 26px;
    background: var(--nav-bar-bg);
    border-radius: 22px 22px 0 0;
    flex-shrink: 0;
    z-index: 800;
    width: 88%;
    margin: 18px auto 0px auto;
    margin: 0px auto 0px auto;
    }

    .nav2 {
    display: flex;
    padding: 18px 0;
    background: linear-gradient( to bottom, rgba(32, 35, 42, 0) 0%, #20232a 100% );
    flex-shrink: 0;
    z-index: 800;
    width: 100%;
    margin: 0px auto 0px auto;
    }


    .nav-item {
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--nav-item-bg);
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
    }

    .nav-item .material-icons {
    color: var(--nav-icon);
    }

    .nav-item.active,
    .nav-item:hover {
    background: var(--nav-hover-bg);
    }

    .nav-item.active .material-icons,
    .nav-item:hover .material-icons {
    color: var(--nav-icon-active);
    }

    /* -------- SCROLL -------- */

    .content::-webkit-scrollbar {
    display: none;
    }

    /* ===== PANEL LATERAL ===== */
    .sidebar {
    position: fixed;
    border-right: #24262e 4px solid;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: var(--nav-bar-bg);
    padding: 20px;
    transition: 0.3s ease;
    z-index: 1000;
    }

    .sidebar.active {
    left: 0;
    }

    .sidebar-header {
    display: flex;
    justify-content: flex-end;
    display: none;
    }

    .sidebar-header span {
    font-size: 28px;
    cursor: pointer;
    display: none;
    }

    /* ===== OVERLAY ===== */
    .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 900;
    }

    .overlay.active {
    opacity: 1;
    pointer-events: all;
    }

    /* -------- BUTTONS -------- */

    li {
    list-style: none;
    margin: 10px 0;
    padding: 10px 15px;
    background: #3a3f51;
    color: #e9e9e9;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    border: 3px solid #4e5468;
    }

    .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0 10px 0;
    }

    .sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    padding-top: 2px;
    color: #f0f0f0;
    }

    .sidebar-header .material-icons {
    font-size: 26px;
    cursor: pointer;
    color: var(--btn-bg);
    }

    .section {
    display: none;
    }

    .section.active {
    display: block;
    }

    /* botón activo del footer */
    .nav-item.active span {
    color: var(--text-color);
    transform: scale(1.15);
    }

    .barrier {
    height: 8px;
    background-color: var(--border2);
    margin: 10px 0;
    border-radius: 18px;
    }

    .barrier2 {
    height: 8px;
    background-color: #39404e;
    margin: 10px 0;
    border-radius: 18px;
    display: none;
    }

    .btn {
    background: #34394b;
    color: #8287ce;
    border: none;
    border-radius: 12px;
    padding: 12px 0;
    width: 92%;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    display: block;
    }

    .btn:hover {
    background: #434a61;
    color: #8f83d6;
    scale: 1.02;
    transition: all 0.3s ease;
    }

    #switch-css {
    width: 70%;
    color: #8287ce;
    margin-bottom: -40px;
    display: none;
    }

    dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    }

    dialog {
    background: #20232a;
    color: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    height: 300px;
    margin: auto;
    text-align: center;
    border: 2px solid #5a5f73;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    }

    .btn-cerrar-buzon {
    position: absolute;
    top: 11px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 1.2em;
    cursor: pointer;
    color: aliceblue;
    }

    li.disabled {
    pointer-events: none;
    }

    .text-info {
        padding: 12px;
        background: #3b4050;
        border-radius: 8px;
        border-left: #51576b 12px solid;
        margin-top: 14px;
    }

    .player {
    width: 90%;
    max-width: 400px;
    background: #374755;
    border: 3px solid #51576b;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    }

    .cover {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #303944;
    }

    .cover img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    }

    img {
    pointer-events: none;
    }

    .title {
    color: #e6e6e6;
    font-size: 18px;
    margin-bottom: 10px;
    }

    .controls {
    display: flex;
    justify-content: center;
    }

    .controls button {
    background: #2c353f;
    border: none;
    color: #e6e6e6;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    }

    .controls button:hover {
    background: #333e4b;
    }

    .material-icons {
    font-size: 28px;
    }

    .progress {
    width: 100%;
    height: 5px;
    background: #2a313a;
    border-radius: 5px;
    margin: 15px 0;
    position: relative;
    cursor: pointer;
    }

    .bar {
    height: 100%;
    width: 0%;
    background: #66878b;
    }

    .thumb {
    width: 12px;
    height: 12px;
    background: #619096;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    display: none;
    }

    .time {
    color: #aaa;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    }

    .close-menu {
    visibility: hidden;
    }

    #header-title {
    font-family: passero, sans-serif;
    }

@font-face {
    font-family: 'passero';
    src: url('PasseroOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'passero2';
    src: url('JotiOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.linki {
    display: inline-flex;
    align-items: center;
    font-family: passero, sans-serif;
    font-size: 24px;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(127, 179, 229, 0.1);
    border: 1px solid rgba(127, 179, 229, 0.3);
    border-radius: 6px;
    color: #d4ceaa;
    text-decoration: none;
    transition: all 0.2s ease;
    width: fit-content;
    white-space: nowrap;
}

.subtext {
    font-family: passero2, sans-serif;
    font-size: 14px;
    color: #a0a0a0;
}

.linki:active {
    background: rgba(127, 179, 229, 0.2);
}

.mm {
    color: #5e8d8d;
    display: inline-block;
    transform: rotate(135deg);
}

.linki-content {
    
    flex-direction: column;
    display: flex;
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 22px;
    overflow-y: auto;
}

.linki-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.save-btn {
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--nav-item-bg);
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
    border: none;
    color: var(--nav-icon);
}

.save-btn:hover {
    background: var(--nav-hover-bg);
    color: var(--nav-icon-active);
}

.save-btn.saved {
    color: #c7bb78;
}

@media screen and (max-width: 768px) {
    .linki {
        font-size: 22px;
    }
    .subtext {
        font-size: 12px;
    }
}






    .section2 {
    height: 400px;
    position: relative;
    overflow: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    }

    .container-totoro {
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 100px;
    }

    .storage-txt-none {
    font-size: 28px;
    color: rgba(112, 112, 112, 0.336);
    text-align: center;
    font-family: passero2, sans-serif;
    }

    .totoro-img {
    position: relative;

    width: 200px;
    height: 200px;

    background-image: url('images/totoro2.png');
    opacity: 0.15;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 120px;
    left: 50%;
    transform: translate(-50%, -50%);
    }