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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f6f6ef;
    color: #000;
    line-height: 1.6;
    font-size: 13px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.header {
    background-color: #ff6600;
    padding: 2px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.logo {
    font-size: 13px;
    font-weight: bold;
    margin: 0;
}

.logo a {
    color: #000;
    text-decoration: none;
}


.main {
    padding: 10px 0;
    min-height: calc(100vh - 100px);
}

.loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.story-list {
    list-style: none;
    counter-reset: story-counter;
}

.story-item {
    counter-increment: story-counter;
    padding: 8px 0;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

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

.story-number {
    color: #828282;
    font-size: 12px;
    min-width: 25px;
    padding-top: 2px;
}

.story-number::before {
    content: counter(story-counter) ".";
}

.story-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.story-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.story-title {
    font-size: 13px;
    color: #000;
    text-decoration: none;
}

.story-title:visited {
    color: #828282;
}

.story-title:hover {
    text-decoration: underline;
}

.story-domain {
    font-size: 11px;
    color: #828282;
    text-decoration: none;
}

.story-domain:hover {
    text-decoration: underline;
}

.story-meta {
    font-size: 11px;
    color: #828282;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.story-meta a {
    color: #828282;
    text-decoration: none;
}

.story-meta a:hover {
    text-decoration: underline;
}

.points-badge {
    background-color: #4caf50;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.points-badge::before {
    content: "▲";
    font-size: 9px;
}

.points-badge.high {
    background-color: #2e7d32;
}

.points-badge.medium {
    background-color: #4caf50;
}

.points-badge.low {
    background-color: #81c784;
}

.comment-count {
    background-color: #ff6600;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    text-decoration: none;
    cursor: pointer;
}

.comment-count:hover {
    opacity: 0.9;
}

.comment-count::before {
    content: "💬";
    font-size: 10px;
}

.comment-count.high {
    background-color: #d32f2f;
}

.comment-count.medium {
    background-color: #ff6600;
}

.comment-count.low {
    background-color: #ff9800;
}


@media (max-width: 600px) {
    .story-item {
        flex-direction: column;
    }
    
    .story-number {
        display: none;
    }
    
    .story-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

