:root {
    min-height: 100%;
    min-height: 100dvh;
    scroll-behavior: smooth;
}

body {
    background-image: linear-gradient(#11111b, #000);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: #cad3f5;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    margin-bottom: 7.5vw;
    overflow-x: hidden;
}

.content-wrap {
    position: relative;
    z-index: 3;
}

#main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8rem 1.5rem 5rem;
}

#features,
.content-section {
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: 2rem 1.5rem 5.5rem;
}

.people-section {
    width: min(50%, 36rem);
    margin: 0 auto;
    padding: 2.0rem 1.5rem 1.5rem;
}

.home-grid,
.feature-grid,
.faq-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: 1.5rem;
}

.thanks-list,
.people-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
    gap: 1.5rem;
}


.info-panel,
.about-panel,
.thanks-panel {
    background-color: rgba(138, 173, 244, 0.08);
    -webkit-backdrop-filter: blur(10.0px);
    backdrop-filter: blur(10.0px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 7.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.info-panel:hover,
.about-panel:hover,
.thanks-panel:hover {
    border-color: rgba(138, 173, 244, 0.3);
    transform: translateY(-2px);
}

.info-panel p {
    margin: 0;
    color: #a5adce;
}

.info-panel a {
    color: #c6a0f6;
    text-decoration: none;
}

.info-panel a:hover {
    text-decoration: underline;
}

.feature-meta {
    margin-top: 1.4rem;
    display: flex;
    justify-content: flex-end;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.0rem;
    padding: 0.25rem 1.0rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-tag.available { color: #9de9b4; background: rgb(157, 233, 180, 0.12); }
.status-tag.beta { color: #8aadf4; background: rgba(138, 173, 244, 0.12); }
.status-tag.wip { color: #f5a97f; background: rgba(245, 169, 127, 0.12); }

.title {
    font-size: clamp(2.5rem, 10vw, 5.75rem);
    line-height: 0.95;
    margin-bottom: 0.5rem;
}

.thanks-panel h2,
.info-panel h2,
.about-panel h2,
#title-big,
.mauve-txt {
    margin-top: 0;
    background: -webkit-linear-gradient(180deg, #c6a0f6, #8aadf4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#title,
#macros-title,
#download-title {
    background: -webkit-linear-gradient(180deg, #ffffff, #8aadf4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-txt {
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    line-height: 1.45;
    max-width: 60rem;
    margin: 1rem auto 0;
    color: #939ab7; 
}

.blue-txt { color: #8aadf4; }
.lavender-txt { color: #b7bdf8; }

.logo {
    width: 150px;
    margin-top: 0;
    box-shadow: 0 0 60px rgba(138, 173, 244, 0.3);
    border-radius: 25%;
}

.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.macro-download-btn {
    margin-left: 15vw;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1; 
    color: #e2e8f0;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
}

.search-container {
    max-width: 760px;
    margin: 0 auto 3rem auto;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

#macro-search {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#macro-search::placeholder {
    color: #64748b;
}

#macro-search:focus {
    border-color: #c6a0f6;
    box-shadow: 0 0 15px rgba(198, 160, 246, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

#macro-sort {
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.25rem;
}

#macro-sort:focus {
    border-color: #c6a0f6;
    box-shadow: 0 0 15px rgba(198, 160, 246, 0.2);
    background-color: rgba(30, 41, 59, 0.8);
}

#macro-sort option {
    background: #0f172a;
    color: #f8fafc;
}

.macro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
}

.macro-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
}

.macro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(198, 160, 246, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}

.version-badge {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-data p {
    margin: 0 0 0.4rem 0;
    font-size: 0.95rem;
    color: #94a3b8;
    display: flex;
    gap: 0.5rem;
}

.meta-data span {
    color: #f1f5f9;
    font-weight: 500;
}

.description {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-style: italic;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0;
}

.card-footer {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.icon-sm {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.upvote { color: #8aadf4; }
.downvote { color: #ed8796; }

.download-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.link {
    color: #8ab4f8;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.link:hover {
    color: #aecbfa;
    text-decoration: underline;
}


.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.profile-header h2 {
    margin-top: 0;
    margin-bottom: 0;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(138, 173, 244, 0.3);
}


.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.countdown-heading {
    font-size: 1.2rem;
    color: #a5adce;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-timer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    min-width: 80px;
    border: 1px solid rgba(198, 160, 246, 0.2);
}

.time-value {
    font-size: 2.5rem;
    font-weight: bold;
    background: -webkit-linear-gradient(180deg, #c6a0f6, #8aadf4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.time-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-msg {
    font-size: 2rem;
    font-weight: bold;
    color: #a6da95;
    text-shadow: 0 0 10px rgba(166, 218, 149, 0.5);
}

.divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.download-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.discord-text {
    font-size: 0.9rem;
    color: #a5adce;
    max-width: 80%;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.center-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 6rem;
    gap: 0.75rem;
}
.profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.big-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(198,160,246,0.4);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #f8fafc;
}

.muted {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.role-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}
.role-badge.developer          { background: rgba(100,141,255,0.18); color: #648dff; border: 1px solid #648dff; }
.role-badge.database_moderator { background: rgba(255,140,0,0.18);  color: #ff8c00; border: 1px solid #ff8c00; }
.role-badge.beta               { background: rgba(255,200,0,0.18);  color: #ffc800; border: 1px solid #ffc800; }
.role-badge.vip                { background: rgba(226,61,110,0.18); color: #e23d6e; border: 1px solid #e23d6e; }
.role-badge.booster            { background: rgba(244,127,255,0.18);color: #f47fff; border: 1px solid #f47fff; }
.role-badge.supporter          { background: rgba(138,173,244,0.18);color: #8aadf4; border: 1px solid #8aadf4; }
.role-badge.user               { background: rgba(255,255,255,0.07);color: #94a3b8; border: 1px solid rgba(255,255,255,0.1); }

.section-title {
    font-size: 1.15rem;
    color: #c6a0f6;
    margin: 0 0 1rem 0;
}

.voted-section {
    margin-top: 1rem;
}

.voted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
}



.accent-link { color: #c6a0f6; text-decoration: none; }
.accent-link:hover { text-decoration: underline; }
#auth-bar {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 2.25rem;
}

.discord-login-btn {
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.discord-login-btn:hover { background: #4752c4; }


#user-info {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.3rem 0.85rem 0.3rem 0.5rem;
    border-radius: 999px;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

#user-name {
    font-size: 0.875rem;
    color: #e0d4ff;
    font-weight: 500;
}

.logout-btn {
    margin-left: auto;
    background: rgba(255,255,255,0.1);
    color: #aaa;
    border: none;
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    flex-shrink: 0;
}
.logout-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }

.card-actions {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.vote-row {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    color: #888;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.vote-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.14);
    color: #fff;
}
.vote-btn:disabled {
    opacity: 0.4;
    cursor: default;
}
.vote-btn.voted-up {
    background: rgba(74, 222, 128, 0.18);
    border-color: #4ade80;
    color: #4ade80;
}
.vote-btn.voted-down {
    background: rgba(248, 113, 113, 0.18);
    border-color: #f87171;
    color: #f87171;
}

.download-wrapper {
    flex: 1;
    min-width: 0;
}

/* Mirrors ColoredBtn.astro for JS-refreshed cards */
.colored-btn-link-js {
    display: block;
    width: 100%;
    text-decoration: none;
}

.colored-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-image: linear-gradient(#c6a0f6, #8353b5);
    transition: filter 0.2s ease;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    width: 100%;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 1px 1px 5px #000;
    cursor: pointer;
    font-family: inherit;
}

.colored-btn-inner:hover {
    filter: brightness(1.25);
}

#pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 2.5rem auto 1rem auto;
}

.page-btn {
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #c6a0f6;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(198, 160, 246, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.page-btn:hover:not(:disabled) {
    background: rgba(198, 160, 246, 0.15);
    border-color: #c6a0f6;
    box-shadow: 0 0 14px rgba(198, 160, 246, 0.25);
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#page-info {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

#page-jump {
    width: 2.2em;
    min-width: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(198, 160, 246, 0.5);
    border-radius: 0;
    color: #c6a0f6;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    outline: none;
    padding: 0;
    display: inline;
    -moz-appearance: textfield;
    appearance: textfield;
}

#page-jump::-webkit-outer-spin-button,
#page-jump::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

#page-jump:focus {
    border-bottom-color: #c6a0f6;
    box-shadow: 0 2px 8px rgba(198, 160, 246, 0.2);
}








.cv-center-card {
    text-align: center;
    max-width: 520px;
}

.cv-spinner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.cv-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(198, 160, 246, 0.15);
    border-top-color: rgba(198, 160, 246, 0.7);
    border-radius: 50%;
    animation: cv-spin 0.8s linear infinite;
}
@keyframes cv-spin { to { transform: rotate(360deg); } }

#drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    min-height: 150px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    padding: 1.75rem 1.5rem;
    gap: 0.4rem;
}
#drop-zone:hover,
#drop-zone.drag-over {
    background: rgba(198, 160, 246, 0.06);
    border-color: rgba(198, 160, 246, 0.45);
}
.drop-arrow {
    font-size: 2rem;
    color: rgba(198, 160, 246, 0.5);
    line-height: 1;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}
#drop-zone:hover .drop-arrow,
#drop-zone.drag-over .drop-arrow {
    color: rgba(198, 160, 246, 0.85);
}
#drop-filename {
    color: #cad3f5;
    font-size: 1.05rem;
    font-weight: 600;
}
#drop-filesize {
    color: #6e738d;
    font-size: 0.82rem;
}

.cv-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}
.cv-back-btn {
    background: rgba(198, 160, 246, 0.08);
    color: #a5adce;
    border: 1px solid rgba(198, 160, 246, 0.18);
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.cv-back-btn:hover {
    background: rgba(198, 160, 246, 0.15);
    color: #c6a0f6;
    border-color: rgba(198, 160, 246, 0.35);
}
.cv-replay-title {
    text-align: center;
    color: #cad3f5;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    flex: 1;
}
.cv-format-badge {
    background: rgba(198, 160, 246, 0.14);
    color: #c6a0f6;
    border: 1px solid rgba(198, 160, 246, 0.25);
    border-radius: 6px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.cv-format-badge.badge-ast {
    background: rgba(138, 173, 244, 0.14);
    color: #8aadf4;
    border-color: rgba(138, 173, 244, 0.25);
}

.cv-replay-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

#click-table-wrap {
    flex: 1;
    min-width: 0;
    height: 440px;
    overflow-y: scroll;
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(198, 160, 246, 0.25) transparent;
}
#click-table-wrap::-webkit-scrollbar { width: 5px; }
#click-table-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
#click-table-wrap::-webkit-scrollbar-track { background: transparent; }

#click-table {
    width: 100%;
    border-collapse: collapse;
    display: flex;
    flex-direction: column;
    table-layout: fixed;
}
#click-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(22, 30, 46, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    display: block;
}
#click-table thead tr {
    display: flex;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.7rem 0.5rem;
    box-sizing: border-box;
}
#click-table th {
    color: #a5adce;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.col-frame { width: 30%; }
.col-p { width: 35%; }

#click-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.click-row {
    display: flex;
    width: 100%;
    align-items: center;
    min-height: 3.5rem;
    height: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cad3f5;
    position: relative;
    user-select: none;
}
.click-row:hover { background: rgba(255, 255, 255, 0.03); }

.click-row td {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.click-row .col-frame { width: 30%; }
.click-row .col-p { width: 35%; }

.frame-input {
    width: 80%;
    text-align: center;
    background: transparent;
    color: #cad3f5;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}
.frame-input:focus {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(198, 160, 246, 0.25);
}

.click-btn {
    padding: 0.2rem 0.7rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 600;
    transition: opacity 0.15s, filter 0.15s;
    letter-spacing: 0.2px;
}
.click-btn:hover { filter: brightness(1.3); }
.click-btn.type-click   { background: rgba(198, 160, 246, 0.18); color: #c6a0f6; border: 1px solid rgba(198,160,246,0.3); }
.click-btn.type-release { background: rgba(138, 173, 244, 0.18); color: #8aadf4; border: 1px solid rgba(138,173,244,0.3); }
.click-btn.type-skip    { background: rgba(255, 255, 255, 0.04); color: #494d64; border: 1px solid rgba(255,255,255,0.06); }

.row-delete-btn {
    position: absolute;
    left: -1.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: rgba(190, 50, 50, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}
.click-row:hover .row-delete-btn { opacity: 1; }

.cv-controls {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.5rem 1rem;
}
.cv-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cv-section:last-child { border-bottom: none; }
.cv-section-export { margin-top: auto; padding-top: 0.75rem; }
.cv-section-label {
    color: #6e738d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin: 0 0 0.15rem;
}

.cv-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.cv-meta-row { display: flex; gap: 0.5rem; align-items: center; padding: 0.1rem 0; }
.cv-meta-label { color: #6e738d; min-width: 52px; font-size: 0.85rem; }
.cv-meta-value { color: #cad3f5; font-weight: 700; font-size: 0.9rem; }
.cv-meta-input {
    background: rgba(0, 0, 0, 0.25);
    color: #cad3f5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    width: 90px;
}
.cv-meta-input:focus { outline: none; border-color: rgba(198, 160, 246, 0.35); }

.cv-btn-group { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.cv-btn {
    padding: 0.42rem 0.9rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 600;
    transition: filter 0.15s, opacity 0.15s;
    white-space: nowrap;
}
.cv-btn:hover { filter: brightness(1.18); }
.cv-btn:active { opacity: 0.85; }
.cv-btn-primary { background: rgba(255, 255, 255, 0.07); color: #cad3f5; border: 1px solid rgba(255,255,255,0.1); }
.cv-btn-red     { background: rgba(237, 135, 150, 0.12); color: #ed8796; border: 1px solid rgba(237,135,150,0.22); }
.cv-btn-amber,
.cv-btn-blue    { background: rgba(138, 173, 244, 0.12); color: #8aadf4; border: 1px solid rgba(138,173,244,0.22); }
.cv-btn-green   { background: rgba(166, 218, 149, 0.12); color: #a6da95; border: 1px solid rgba(166,218,149,0.22); }
.cv-btn-save    { background: linear-gradient(180deg, #c6a0f6, #7b4fc2); color: white; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.5); border: none; }

.cv-select {
    background: rgba(15, 20, 35, 0.7);
    color: #cad3f5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.42rem 0.65rem;
    font-family: inherit;
    font-size: 0.83rem;
    cursor: pointer;
}
.cv-select:focus { outline: none; border-color: rgba(198, 160, 246, 0.45); }

#cv-settings-wrap {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}
#cv-settings-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(22, 30, 46, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a5adce;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, color 0.2s;
}
#cv-settings-btn:hover { background: rgba(40, 54, 80, 0.97); color: #cad3f5; }

#cv-settings-panel {
    background: rgba(18, 24, 38, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.cv-settings-title { color: #cad3f5; margin: 0 0 0.4rem; font-size: 1rem; font-weight: 700; }
.cv-settings-group {
    color: #6e738d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0.35rem 0 0;
}
.cv-settings-warn { color: #6e738d; font-size: 0.73rem; margin: 0.05rem 0; line-height: 1.4; }
.cv-settings-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a5adce;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0.1rem 0;
    transition: color 0.15s;
}
.cv-settings-item:hover { color: #cad3f5; }
.cv-settings-item input[type="checkbox"] {
    accent-color: #c6a0f6;
    width: 0.9rem;
    height: 0.9rem;
    cursor: pointer;
}

#cv-toasts {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}
.cv-toast {
    background: rgba(30, 41, 59, 0.97);
    color: #cad3f5;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    font-family: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    animation: cv-toast-in 0.2s ease, cv-toast-out 0.3s ease 1.7s forwards;
    pointer-events: none;
}
.cv-toast.toast-ok  { border-color: rgba(166, 218, 149, 0.3); color: #a6da95; }
.cv-toast.toast-err { border-color: rgba(237, 135, 150, 0.3); color: #ed8796; }
@keyframes cv-toast-in  { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
@keyframes cv-toast-out { from { opacity:1; } to { opacity:0; } }

.cv-code {
    background: rgba(0, 0, 0, 0.35);
    color: #c6a0f6;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
}

@media (max-width: 820px) {
    .cv-replay-layout { flex-direction: column; }
    .cv-controls { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 1rem; }
    .cv-section { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.06); padding: 0 0.75rem 0 0; }
    .cv-section:last-child { border-right: none; }
    .cv-section-export { margin-top: 0; }
}