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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000000;
    color: #ffffff;
}

body.no-scroll {
    overflow: hidden;
}

/* Age Verification Overlay */
.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.1s ease-out;
}

.age-verification-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.age-verification-overlay.hidden {
    display: none;
}

.age-verification-modal {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease-out;
}

.age-verification-overlay.fade-out .age-verification-modal {
    transform: scale(0.95);
}

.age-verification-modal h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.age-verification-modal p {
    color: #b3b3b3;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.age-enter-btn {
    background-color: #2b2b2b;
    color: #ffa31a;
    border: 2px solid #ffa31a;
    padding: 12px 60px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.age-enter-btn:hover {
    background-color: #3a3a3a;
    border-color: #ff9500;
    color: #ff9500;
}

.terms-link {
    display: inline-block;
    margin-top: 20px;
    color: #b3b3b3;
    font-size: 13px;
    text-decoration: underline;
    transition: color 0.3s;
}

.terms-link:hover {
    color: #ffa31a;
}

/* Hero Section - Centers the title and search */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.main-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-box {
    margin-top: 2rem;
}

.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid #2a2a2a;
    border-radius: 0.25rem;
    font-size: 1.125rem;
    background: #000000;
    color: #ffffff;
    transition: all 0.2s;
}

.search-input::placeholder {
    color: #4a4a4a;
}

.search-input:focus {
    border-color: #ff9000;
    background: #0a0a0a;
    box-shadow: 0 0 0 0.2rem rgba(255, 144, 0, 0.25);
    outline: none;
}

.search-input:disabled {
    background-color: #1a1a1a;
    opacity: 0.5;
}

/* Message */
.message {
    padding: 1rem 1.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.message.error {
    background-color: #2a0f0f;
    color: #ff6b6b;
    border: 1px solid #4a1f1f;
}

.message.success {
    background-color: #0f2a0f;
    color: #5fda5f;
    border: 1px solid #1f4a1f;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(to right, #ff9000, #ffb028);
    color: #000000;
    font-weight: bold;
    padding: 1.25rem;
    border-radius: 0.25rem;
    border: none;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: linear-gradient(to right, #ffb028, #ffc850);
    transform: translateY(-2px);
    color: #000000;
}

.submit-btn:disabled {
    background: #3a3a3a;
    color: #666666;
    transform: none;
}

/* Toplist Section */
.toplist-section {
    padding: 4rem 1rem;
    min-height: 100vh;
}

.toplist-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Loading/Empty States */
.loading-state,
.empty-state {
    padding: 3rem 1rem;
    color: #666666;
    font-size: 1.125rem;
}

.error-state {
    padding: 3rem 1rem;
    color: #ff6b6b;
    font-size: 1.125rem;
}

/* Link Item */
.link-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.link-item:hover {
    background-color: #252525;
    border-color: #3a3a3a;
}

.link-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff9000;
    min-width: 3rem;
    text-align: center;
}

.link-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.count-badge {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #ff9000, #ffb028);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.count-badge span {
    color: #000000;
    font-weight: bold;
    font-size: 1.25rem;
}

.link-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.link-title {
    font-weight: bold;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.link-url {
    display: block;
    font-size: 0.8rem;
    color: #ff9000;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

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

.external-icon {
    flex-shrink: 0;
    margin-left: 0.75rem;
    color: #666666;
    transition: color 0.2s;
    text-decoration: none;
}

.external-icon:hover {
    color: #ff9000;
}

.external-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Terms Page Specific Styles */
body.terms-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.terms-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.terms-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    line-height: 1.3;
}

.terms-list {
    text-align: left;
    list-style-position: inside;
    margin-bottom: 40px;
}

.terms-list li {
    color: #b3b3b3;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.back-btn {
    background-color: #2b2b2b;
    color: #ffa31a;
    border: 2px solid #ffa31a;
    padding: 12px 60px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.back-btn:hover {
    background-color: #3a3a3a;
    border-color: #ff9500;
    color: #ff9500;
}

/* Tablet and up */
@media (min-width: 768px) {
    .main-title {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
    
    .search-input {
        padding: 1.5rem 2rem;
        font-size: 1.25rem;
    }
    
    .submit-btn {
        padding: 1.5rem;
        font-size: 1.5rem;
    }
    
    .toplist-title {
        font-size: 2.5rem;
    }
    
    .link-item {
        padding: 1.5rem;
    }
    
    .link-title {
        font-size: 1.125rem;
    }
    
    .link-url {
        font-size: 0.875rem;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .main-title {
        font-size: 3.25rem;
    }
    
    .link-rank {
        font-size: 1.75rem;
        min-width: 4rem;
    }
}