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

body {
    font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;
    background: #2a1f1a;
    color: #d4c5b8;
    transition: background-color 0.3s ease, color 0.2s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.light-mode {
    background: #f5f0ed;
    color: #3a2a24;
}

body.light-mode .header-bar {
    background: rgba(237, 231, 227, 0.95);
    border-bottom: 1px solid rgba(58, 42, 36, 0.08);
}

body.light-mode .logo span {
    color: #3a2a24;
}

body.light-mode .header-btn {
    background: rgba(58, 42, 36, 0.06);
    border-color: rgba(58, 42, 36, 0.08);
    color: #3a2a24;
}

body.light-mode .header-btn:hover {
    background: rgba(58, 42, 36, 0.10);
}

body.light-mode .popup-menu {
    background: rgba(237, 231, 227, 0.98);
    border-color: rgba(58, 42, 36, 0.08);
}

body.light-mode .popup-item {
    color: #3a2a24;
    border-bottom-color: rgba(58, 42, 36, 0.05);
}

body.light-mode .popup-item:hover {
    background: rgba(58, 42, 36, 0.05);
}

body.light-mode .subhead {
    color: #3a2a24;
}

body.light-mode .combined-card {
    background: #d9ccc3;
    box-shadow: 0 2px 12px rgba(58, 42, 36, 0.10);
}

body.light-mode .combined-text {
    color: #2a1f1a;
}

body.light-mode .combined-username .material-symbols-outlined {
    color: #b07a6a;
}

body.light-mode .disclaimer-card {
    background: #ede7e3;
    border-left-color: #c5b5aa;
    border-color: rgba(58, 42, 36, 0.06);
}

body.light-mode .disclaimer-title {
    color: #3a2a24;
}

body.light-mode .read-more-btn {
    color: #3a2a24;
}

body.light-mode .read-more-btn:hover {
    background: rgba(58, 42, 36, 0.05);
}

body.light-mode .disclaimer-text {
    color: #3a2a24;
}

body.light-mode .search-box {
    background: #ede7e3;
    border-color: rgba(58, 42, 36, 0.06);
}

body.light-mode .search-box input {
    color: #3a2a24;
}

body.light-mode .search-box input::placeholder {
    color: rgba(58, 42, 36, 0.30);
}

body.light-mode .search-box .material-symbols-outlined {
    color: #3a2a24;
}

body.light-mode .sort-btn,
body.light-mode .sort-menu {
    background: #ede7e3;
    border-color: rgba(58, 42, 36, 0.06);
    color: #3a2a24;
}

body.light-mode .sort-option {
    color: #3a2a24;
}

body.light-mode .sort-option:hover,
body.light-mode .sort-option.active {
    background: rgba(197, 181, 170, 0.15);
}

body.light-mode .download-item {
    background: #ede7e3;
    border-color: rgba(58, 42, 36, 0.06);
    box-shadow: 0 2px 8px rgba(58, 42, 36, 0.06);
}

body.light-mode .download-item:hover {
    border-color: #c5b5aa;
    background: #e8dfd9;
    box-shadow: 0 4px 16px rgba(58, 42, 36, 0.10);
}

body.light-mode .item-title {
    color: #3a2a24;
}

body.light-mode .item-subtitle {
    color: rgba(58, 42, 36, 0.45);
}

body.light-mode .meta-badge {
    background: rgba(197, 181, 170, 0.20);
    color: #3a2a24;
    border-color: rgba(58, 42, 36, 0.06);
}

body.light-mode .meta-badge-new {
    background: rgba(197, 181, 170, 0.12);
    color: #3a2a24;
    border-color: rgba(58, 42, 36, 0.04);
}

body.light-mode .item-icon {
    background: rgba(197, 181, 170, 0.15);
    border-color: rgba(58, 42, 36, 0.06);
}

body.light-mode .item-icon .material-symbols-outlined {
    color: #3a2a24;
}

body.light-mode .arrow-icon {
    color: #3a2a24;
}

body.light-mode .page-btn {
    background: #ede7e3;
    border-color: rgba(58, 42, 36, 0.06);
    color: #3a2a24;
}

body.light-mode .page-btn:hover:not(.disabled) {
    background: rgba(197, 181, 170, 0.15);
    border-color: #c5b5aa;
}

body.light-mode .page-number {
    background: #ede7e3;
    color: #3a2a24;
    border-color: rgba(58, 42, 36, 0.06);
}

body.light-mode .pagination-info {
    color: rgba(58, 42, 36, 0.35);
}

body.light-mode .tab-switch {
    background: rgba(237, 231, 227, 0.95);
    border-color: rgba(58, 42, 36, 0.06);
}

body.light-mode .tab-btn {
    color: rgba(58, 42, 36, 0.35);
}

body.light-mode .tab-btn.active {
    background: rgba(197, 181, 170, 0.15);
    color: #3a2a24;
    border-color: #c5b5aa;
}

body.light-mode .footer {
    color: rgba(58, 42, 36, 0.25);
    border-top-color: rgba(58, 42, 36, 0.05);
    background: #f5f0ed;
}

body.light-mode .coming-soon-glass {
    background: #ede7e3;
    border-color: rgba(58, 42, 36, 0.05);
}

body.light-mode .coming-soon-glass h3 {
    color: #3a2a24;
}

body.light-mode .coming-soon-glass p {
    color: rgba(58, 42, 36, 0.35);
}

body.light-mode .coming-soon-glass .material-symbols-outlined {
    color: #3a2a24;
}

body.light-mode .combined-divider {
    background: rgba(58, 42, 36, 0.08);
}

body.light-mode .support-icon {
    background: rgba(58, 42, 36, 0.06);
}

body.light-mode .support-icon .material-symbols-outlined {
    color: #2a1f1a;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.header-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    margin: 0;
    background: rgba(42, 31, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 197, 184, 0.06);
    animation: fadeUp 0.5s ease-out;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #d4c5b8;
    transition: all 0.2s ease;
    cursor: pointer;
    letter-spacing: -0.3px;
}

.logo span {
    color: #d4c5b8;
}

.logo:hover {
    transform: scale(1.02);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-btn {
    background: rgba(212, 197, 184, 0.06);
    border: 1px solid rgba(212, 197, 184, 0.08);
    border-radius: 10px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #d4c5b8;
    font-size: 15px;
    transition: all 0.15s ease;
}

.header-btn:hover {
    background: rgba(212, 197, 184, 0.10);
    transform: scale(1.02);
}

.header-btn:active {
    transform: scale(0.96);
}

.theme-btn .material-symbols-outlined {
    font-size: 22px;
}

.popup-wrapper {
    position: relative;
}

.popup-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(42, 31, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    border: 1px solid rgba(212, 197, 184, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 200;
}

.popup-wrapper.active .popup-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #d4c5b8;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid rgba(212, 197, 184, 0.03);
}

.popup-item:last-child {
    border-bottom: none;
}

.popup-item:hover {
    background: rgba(212, 197, 184, 0.06);
    transform: translateX(4px);
}

.main-content {
    flex: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 16px 80px;
    width: 100%;
}

.hero {
    margin-bottom: 20px;
    text-align: center;
    animation: fadeUp 0.6s ease-out;
}

.hero-text {
    display: inline-block;
    padding: 6px 16px;
    transition: all 0.3s ease;
}

.hero-text:hover {
    transform: scale(1.02);
}

.subhead {
    font-size: 15px;
    font-weight: 400;
    color: #d4c5b8;
    opacity: 0.85;
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
}

.combined-card {
    background: #2a1f1a;
    border: 1px solid rgba(212, 197, 184, 0.08);
    border-radius: 32px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.combined-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.20);
}

.combined-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.combined-item:active {
    transform: scale(0.98);
}

.combined-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tiktok-avatar {
    width: 40px;
    height: 40px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid rgba(42, 31, 26, 0.10);
    transition: transform 0.15s ease;
}

.combined-item:hover .tiktok-avatar {
    transform: scale(1.05);
}

.support-icon {
    width: 40px;
    height: 40px;
    background: rgba(165,0,0,0.06);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    border: 1px solid rgba(42, 31, 26, 0.06);
}

.combined-item:hover .support-icon {
    transform: scale(1.05);
}

.support-icon .material-symbols-outlined {
    font-size: 22px;
    color: #d4c5b8;
}

.combined-text {
    color: #d4c5b8;
}

.combined-username {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.2px;
}

.combined-username .material-symbols-outlined {
    font-size: 14px;
    color: #b15c42;
}

.combined-label {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
}

.combined-icon .material-symbols-outlined {
    color: #ff3a04;
    font-size: 24px;
    opacity: 0.6;
    transition: transform 0.15s ease;
}

.combined-item:hover .combined-icon .material-symbols-outlined {
    transform: translateX(4px);
    opacity: 1;
}

.combined-divider {
    height: 1px;
    background: rgba(42, 31, 26, 0.08);
    margin: 0 16px;
}

.disclaimer-card {
    background: #2a1f1a;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-left: 3px solid #c5b5aa;
    border-top: 1px solid rgba(212, 197, 184, 0.04);
    border-right: 1px solid rgba(212, 197, 184, 0.04);
    border-bottom: 1px solid rgba(212, 197, 184, 0.04);
    animation: fadeUp 0.5s ease-out 0.15s both;
    transition: all 0.3s ease;
}

.disclaimer-card:hover {
    transform: translateX(4px);
}

.disclaimer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.disclaimer-title {
    font-weight: 600;
    font-size: 13px;
    color: #d4c5b8;
    letter-spacing: -0.2px;
}

.read-more-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #d4c5b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.read-more-btn:hover {
    background: rgba(212, 197, 184, 0.06);
    transform: scale(1.05);
}

.read-more-btn .material-symbols-outlined {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.read-more-btn.expanded .material-symbols-outlined {
    transform: rotate(180deg);
}

.disclaimer-text {
    font-size: 12px;
    color: #d4c5b8;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.2s ease;
    opacity: 0.85;
}

.disclaimer-text.expanded {
    max-height: 300px;
    margin-top: 6px;
}

.disclaimer-text p {
    margin-bottom: 6px;
}

.disclaimer-text p:last-child {
    margin-bottom: 0;
}

.modpack-disclaimer-card .disclaimer-text {
    max-height: 300px;
    margin-top: 6px;
}

.search-box {
    background: #2a1f1a;
    border-radius: 32px;
    padding: 10px 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(212, 197, 184, 0.05);
    transition: all 0.3s ease;
    animation: fadeUp 0.5s ease-out 0.2s both;
}

.search-box:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 197, 184, 0.10);
}

.search-box:focus-within {
    border-color: #c5b5aa;
    transform: scale(1.01);
}

.search-box .material-symbols-outlined { 
    color: #d4c5b8; 
    font-size: 20px; 
    opacity: 0.4;
}
.search-box input { 
    background: none; 
    border: none; 
    flex: 1; 
    font-size: 14px; 
    outline: none; 
    font-family: inherit;
    color: #d4c5b8;
}
.search-box input::placeholder { 
    color: rgba(212, 197, 184, 0.20); 
}

.sort-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin: -6px 0 10px;
    position: relative;
    z-index: 20;
}

.sort-wrapper {
    position: relative;
}

.sort-btn {
    background: #2a1f1a;
    border: 1px solid rgba(212, 197, 184, 0.05);
    border-radius: 10px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d4c5b8;
    font: 500 13px inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sort-btn:hover {
    background: rgba(212, 197, 184, 0.06);
    border-color: #c5b5aa;
}

.sort-btn .material-symbols-outlined,
.sort-option .material-symbols-outlined {
    font-size: 18px;
}

.sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    background: rgba(42, 31, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 197, 184, 0.06);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.18s ease;
}

.sort-wrapper.active .sort-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #d4c5b8;
    font: 500 13px inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sort-option:hover,
.sort-option.active {
    background: rgba(212, 197, 184, 0.07);
}

.sort-reverse-option {
    margin-top: 4px;
    border-top: 1px solid rgba(212, 197, 184, 0.05);
    border-radius: 0 0 8px 8px;
}

.modpacks-active .sort-bar {
    display: none !important;
}

.list-size-wrapper {
    position: relative;
}

.list-size-btn {
    background: #2a1f1a;
    border: 1px solid rgba(212, 197, 184, 0.05);
    border-radius: 10px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d4c5b8;
    font: 500 13px inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.list-size-btn:hover {
    background: rgba(212, 197, 184, 0.06);
    border-color: #c5b5aa;
}

.list-size-btn .material-symbols-outlined {
    font-size: 18px;
}

.list-size-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 74px;
    padding: 6px;
    background: rgba(42, 31, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 197, 184, 0.06);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.18s ease;
    z-index: 30;
}

.list-size-wrapper.active .list-size-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.list-size-option {
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #d4c5b8;
    font: 500 13px inherit;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.list-size-option:hover,
.list-size-option.active {
    background: rgba(212, 197, 184, 0.07);
}

.list-size-wrapper + .pagination-control {
    margin-top: 16px;
}

body.light-mode .list-size-btn,
body.light-mode .list-size-menu {
    background: #ede7e3;
    border-color: rgba(58, 42, 36, 0.06);
    color: #3a2a24;
}

body.light-mode .list-size-option {
    color: #3a2a24;
}

.pagination-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 16px 0 12px;
}

.page-btn {
    background: #2a1f1a;
    border: 1px solid rgba(212, 197, 184, 0.05);
    border-radius: 10px;
    padding: 6px 14px;
    font-weight: 500;
    font-size: 13px;
    color: #d4c5b8;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

.page-btn:hover:not(.disabled) {
    background: rgba(212, 197, 184, 0.06);
    border-color: #c5b5aa;
    transform: scale(1.04);
}

.page-btn:active:not(.disabled) {
    transform: scale(0.96);
}

.page-btn.disabled { 
    opacity: 0.15; 
    pointer-events: none; 
    cursor: default;
}

.page-number {
    background: #2a1f1a;
    font-size: 13px;
    font-weight: 500;
    color: #d4c5b8;
    padding: 4px 12px;
    border-radius: 10px;
    min-width: 60px;
    text-align: center;
    border: 1px solid rgba(212, 197, 184, 0.05);
}

.pagination-info {
    font-size: 12px;
    text-align: center;
    margin-top: 4px;
    color: rgba(212, 197, 184, 0.25);
}

.modpacks-active .pagination-control,
.modpacks-active .pagination-info,
.modpacks-active .search-box,
.modpacks-active #disclaimerCard {
    display: none !important;
}

.detail-actions {
    flex-wrap: wrap;
}

.detail-icon-btn {
    text-decoration: none;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modpack-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-item {
    background: #2a1f1a;
    border-radius: 28px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(212, 197, 184, 0.04);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    animation: fadeUp 0.4s ease-out backwards;
    cursor: pointer;
}

.download-item:nth-child(1) { animation-delay: 0.05s; }
.download-item:nth-child(2) { animation-delay: 0.10s; }
.download-item:nth-child(3) { animation-delay: 0.15s; }
.download-item:nth-child(4) { animation-delay: 0.20s; }
.download-item:nth-child(5) { animation-delay: 0.25s; }

.download-item:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 181, 170, 0.20);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.download-item:active { 
    transform: scale(0.98); 
}

.shader-icon {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(212, 197, 184, 0.08);
    transition: all 0.15s ease;
    image-rendering: pixelated;
    background: #2a1f1a;
}

.download-item:hover .shader-icon {
    transform: scale(1.05);
    border-color: rgba(197, 181, 170, 0.20);
}

.modpack-icon {
    border-radius: 10px;
    border: 1px solid rgba(212, 197, 184, 0.08);
    background: #2a1f1a;
}

body.light-mode .modpack-icon {
    background: #ede7e3;
    border-color: rgba(58, 42, 36, 0.08);
}

.item-content { 
    flex: 1; 
    min-width: 0;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #d4c5b8;
    letter-spacing: -0.2px;
    transition: color 0.2s ease;
}

.download-item:hover .item-title { 
    color: #d9ccc3; 
}

.modpack-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

@media (max-width: 600px) {
    .item-detail-card { padding: 28px 18px; }
    .detail-icon { width: 88px; height: 88px; }
    .item-detail-card h2 { font-size: 20px; }
}

@media (max-width: 600px) {
    .modpack-title {
        font-size: 14px;
    }
    .item-title {
        font-size: 13px;
    }
}

.item-subtitle {
    font-size: 12px;
    color: rgba(212, 197, 184, 0.35);
    margin-bottom: 6px;
    font-weight: 400;
}

.badge-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.badge-row {
    display: block;
    width: 100%;
}

.badge-row .meta-badge,
.badge-row .meta-badge-new {
    display: inline-block;
}

.meta-badge {
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.15s ease;
    background: rgba(212, 197, 184, 0.05);
    color: #d4c5b8;
    border: 1px solid rgba(212, 197, 184, 0.04);
    letter-spacing: -0.1px;
}

.download-item:hover .meta-badge {
    background: rgba(197, 181, 170, 0.08);
    border-color: rgba(197, 181, 170, 0.08);
}

.badge-group .badge-row:nth-child(2) .meta-badge {
    background: rgba(212, 197, 184, 0.03);
    border-color: rgba(212, 197, 184, 0.03);
}

.meta-badge-new {
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 400;
    display: inline-block;
    transition: all 0.15s ease;
    background: rgba(212, 197, 184, 0.03);
    color: #d4c5b8;
    border: 1px solid rgba(212, 197, 184, 0.02);
    letter-spacing: -0.1px;
}

.download-item:hover .meta-badge-new {
    background: rgba(197, 181, 170, 0.06);
    border-color: rgba(197, 181, 170, 0.06);
}

.modpack-item .badge-group .badge-row:nth-child(1) .meta-badge {
    background: rgba(212, 197, 184, 0.05);
    border-color: rgba(212, 197, 184, 0.04);
}

.modpack-item .badge-group .badge-row:nth-child(2) .meta-badge {
    background: rgba(212, 197, 184, 0.03);
    border-color: rgba(212, 197, 184, 0.03);
}

.modpack-item .badge-group .badge-row:nth-child(3) .meta-badge-new {
    background: rgba(212, 197, 184, 0.03);
    border-color: rgba(212, 197, 184, 0.02);
}

.arrow-icon { 
    color: #d4c5b8; 
    opacity: 0.30; 
    font-size: 22px; 
    transition: all 0.15s ease; 
}
.download-item:hover .arrow-icon { 
    opacity: 0.80; 
    transform: translateX(6px); 
}

.coming-soon-area {
    margin: 24px 0;
}

.coming-soon-glass {
    background: #2a1f1a;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid rgba(212, 197, 184, 0.04);
    animation: pulse 3s ease-in-out infinite, fadeUp 0.5s ease-out;
    transition: all 0.3s ease;
}

.coming-soon-glass:hover {
    transform: scale(1.02);
    border-color: rgba(197, 181, 170, 0.10);
}

.coming-soon-glass .material-symbols-outlined { 
    font-size: 48px; 
    color: #c5b5aa; 
    margin-bottom: 10px;
    opacity: 0.5;
}
.coming-soon-glass h3 { 
    font-size: 18px; 
    margin-bottom: 4px; 
    color: #d4c5b8;
    font-weight: 600;
}
.coming-soon-glass p { 
    color: rgba(212, 197, 184, 0.25); 
    font-size: 13px; 
}

.bottom-bar {
    position: sticky;
    bottom: 16px;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.tab-switch {
    display: flex;
    gap: 4px;
    background: rgba(42, 31, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 4px;
    border: 1px solid rgba(212, 197, 184, 0.05);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.tab-switch:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.30);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    color: rgba(212, 197, 184, 0.25);
    transition: all 0.15s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.2px;
}

.tab-btn .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.15s ease;
}

.tab-btn:hover:not(.active) {
    transform: translateY(-1px);
    color: #d4c5b8;
}

.tab-btn:hover:not(.active) .material-symbols-outlined {
    transform: scale(1.1);
}

.tab-btn.active {
    background: rgba(197, 181, 170, 0.08);
    color: #d4c5b8;
    border: 1px solid rgba(197, 181, 170, 0.10);
}

.footer {
    text-align: center;
    font-size: 11px;
    color: rgba(212, 197, 184, 0.15);
    border-top: 1px solid rgba(212, 197, 184, 0.03);
    padding: 16px 16px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: #2a1f1a;
    transition: all 0.3s ease;
    letter-spacing: -0.1px;
}

.footer:hover {
    transform: translateY(-2px);
}

.footer .material-symbols-outlined {
    font-size: 14px;
    color: #c5b5aa;
    opacity: 0.30;
}

@media (max-width: 600px) {
    .main-content { padding: 16px 12px 70px; }
    .header-bar { padding: 12px 16px; }
    .logo { font-size: 17px; }
    .header-btn { padding: 6px 12px; font-size: 13px; }
    .header-btn .material-symbols-outlined { font-size: 20px; }
    .tab-btn { padding: 6px 14px; font-size: 12px; }
    .tab-btn .material-symbols-outlined { font-size: 16px; }
    .download-item { padding: 10px 14px; }
    .item-title { font-size: 13px; }
    .modpack-title { font-size: 14px; }
    .item-subtitle { font-size: 11px; }
    .bottom-bar { bottom: 12px; }
    .combined-item { padding: 10px 12px; }
    .tiktok-avatar, .support-icon { width: 36px; height: 36px; }
    .subhead { font-size: 13px; }
    .meta-badge, .meta-badge-new { font-size: 9px; padding: 2px 8px; }
    .popup-item { font-size: 12px; padding: 8px 12px; }
    .page-btn { font-size: 12px; padding: 4px 10px; }
    .page-number { font-size: 12px; padding: 4px 8px; min-width: 50px; }
    .shader-icon { width: 56px; height: 56px; }
}

.item-detail-page {
    animation: fadeUp 0.4s ease-out;
    padding: 4px 0 24px;
}
.detail-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 1px solid rgba(212,197,184,0.06);
    border-radius: 12px; padding: 8px 12px; color: #d4c5b8;
    font: inherit; font-size: 13px; cursor: pointer; transition: all 0.15s ease; margin-bottom: 18px;
}
.detail-back-btn:hover { background: rgba(212,197,184,0.06); transform: translateX(-2px); }
.detail-back-btn .material-symbols-outlined { font-size: 19px; }
.item-detail-card {
    text-align: center; background: #2a1f1a; border: 1px solid rgba(212,197,184,0.06);
    border-radius: 28px; padding: 36px 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}
.detail-icon { width: 104px; height: 104px; border-radius: 16px; object-fit: cover; image-rendering: pixelated; border: 1px solid rgba(212,197,184,0.08); margin-bottom: 18px; }
.detail-title { margin: 0 0 12px; font-size: 23px; line-height: 1.25; color: #d4c5b8; }
.detail-meta {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    margin-bottom: 18px; font-size: 11px; color: rgba(212,197,184,0.45);
}
.detail-meta-dot { opacity: 0.35; }
.detail-description {
    max-width: 540px; margin: 0 auto 20px; font-size: 14px; line-height: 1.6;
    color: rgba(212,197,184,0.65);
}
.detail-install-instructions {
    max-width: 620px; margin: 0 auto 20px; font-size: 12px; line-height: 1.65;
    color: rgba(212,197,184,0.52);
}
.detail-actions {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.detail-download-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 38px; padding: 8px 15px; border-radius: 12px;
    border: 1px solid rgba(212,197,184,0.07); background: rgba(212,197,184,0.05);
    color: #d4c5b8; text-decoration: none; font: inherit; font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all 0.15s ease;
}
.detail-download-btn .material-symbols-outlined { font-size: 18px; }
.detail-download-btn:hover {
    background: rgba(197,181,170,0.10); border-color: rgba(197,181,170,0.16); transform: translateY(-1px);
}
.detail-download-btn:active { transform: scale(0.97); }
.detail-source-btn .material-symbols-outlined { font-size: 18px; }
body.light-mode .detail-back-btn { color: #3a2a24; border-color: rgba(58,42,36,0.08); }
body.light-mode .detail-back-btn:hover { background: rgba(58,42,36,0.05); }
body.light-mode .item-detail-card { background: #ede7e3; border-color: rgba(58,42,36,0.06); box-shadow: 0 4px 24px rgba(58,42,36,0.08); }
body.light-mode .detail-icon { border-color: rgba(58,42,36,0.08); }
body.light-mode .detail-title { color: #3a2a24; }
body.light-mode .detail-meta { color: rgba(58,42,36,0.45); }
body.light-mode .detail-description { color: rgba(58,42,36,0.60); }
body.light-mode .detail-install-instructions { color: rgba(58,42,36,0.56); }
body.light-mode .detail-download-btn { background: rgba(58,42,36,0.04); border-color: rgba(58,42,36,0.07); color: #3a2a24; }
body.light-mode .detail-download-btn:hover { background: rgba(197,181,170,0.15); border-color: #c5b5aa; }

.detail-downloads {
    width: 100%;
    max-width: 620px;
    margin: 24px auto 0;
    text-align: left;
}
.detail-download-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.detail-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 7px 9px 7px 13px;
    border: 1px solid rgba(212,197,184,0.06);
    border-radius: 11px;
    background: rgba(212,197,184,0.025);
}
.detail-download-name {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    color: rgba(212,197,184,0.78);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.detail-download-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 9px;
    border: 1px solid rgba(212,197,184,0.07);
    background: rgba(212,197,184,0.05);
    color: #d4c5b8;
    text-decoration: none;
    font: inherit;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.15s ease;
}
.detail-download-link .material-symbols-outlined { font-size: 16px; }
.detail-download-link:hover {
    background: rgba(197,181,170,0.10);
    border-color: rgba(197,181,170,0.16);
    transform: translateY(-1px);
}
body.light-mode .detail-download-item {
    border-color: rgba(58,42,36,0.06);
    background: rgba(58,42,36,0.025);
}
body.light-mode .detail-download-name { color: rgba(58,42,36,0.70); }
body.light-mode .detail-download-link {
    background: rgba(58,42,36,0.04);
    border-color: rgba(58,42,36,0.07);
    color: #3a2a24;
}
body.light-mode .detail-download-link:hover { background: rgba(197,181,170,0.15); border-color: #c5b5aa; }

@media (max-width: 520px) {
    .detail-download-item { align-items: stretch; }
    .detail-download-link { padding-left: 9px; padding-right: 9px; }
}

.shader-release-page {
    animation: fadeUp 0.4s ease-out;
    padding: 4px 0 24px;
}
.release-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 1px solid rgba(212,197,184,0.06);
    border-radius: 12px; padding: 8px 12px; color: #d4c5b8;
    font: inherit; font-size: 13px; cursor: pointer; transition: all 0.15s ease; margin-bottom: 18px;
}
.release-back-btn:hover { background: rgba(212,197,184,0.06); transform: translateX(-2px); }
.release-back-btn .material-symbols-outlined { font-size: 19px; }
.shader-release-card {
    text-align: center; background: #2a1f1a; border: 1px solid rgba(212,197,184,0.06);
    border-radius: 28px; padding: 36px 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}
.release-icon { width: 104px; height: 104px; border-radius: 16px; object-fit: cover; image-rendering: pixelated; border: 1px solid rgba(212,197,184,0.08); margin-bottom: 18px; }
.release-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; opacity: 0.45; margin-bottom: 8px; }
.shader-release-card h2 { margin: 0 0 12px; font-size: 23px; line-height: 1.25; color: #d4c5b8; }
.shader-release-card p { max-width: 540px; margin: 0 auto 20px; font-size: 14px; line-height: 1.6; color: rgba(212,197,184,0.65); }
.release-followers { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px; background: rgba(212,197,184,0.05); border: 1px solid rgba(212,197,184,0.06); font-size: 12px; color: rgba(212,197,184,0.72); }
.release-followers .material-symbols-outlined { font-size: 18px; }
body.light-mode .release-back-btn { color: #3a2a24; border-color: rgba(58,42,36,0.08); }
body.light-mode .release-back-btn:hover { background: rgba(58,42,36,0.05); }
body.light-mode .shader-release-card { background: #ede7e3; border-color: rgba(58,42,36,0.06); box-shadow: 0 4px 24px rgba(58,42,36,0.08); }
body.light-mode .release-icon { border-color: rgba(58,42,36,0.08); }
body.light-mode .shader-release-card h2 { color: #3a2a24; }
body.light-mode .shader-release-card p { color: rgba(58,42,36,0.60); }
body.light-mode .release-followers { background: rgba(58,42,36,0.04); border-color: rgba(58,42,36,0.06); color: rgba(58,42,36,0.65); }


