:root{--clr-primary: #ff4500;--clr-primary-dark: #cc3700;--clr-bg: #EEEBD3;--clr-surface: #ffffff;--clr-surface-hover: #f6f7f8;--clr-border: #edeff1;--clr-header-bg: #1a1a1b;--clr-header-text: #d7dadc;--clr-text: #1c1c1c;--clr-text-secondary: #878a8c;--clr-upvote: #ff4500;--clr-downvote: #7193ff;--clr-link: #0079d3;--clr-chip-active: #ff4500;--header-h: 48px;--filter-h: 48px;--radius-sm: 2px;--radius-md: 4px;--radius-lg: 8px;--radius-full: 9999px}@media(prefers-color-scheme:dark){:root{--clr-bg: #1a1a1b;--clr-surface: #272729;--clr-surface-hover: #313131;--clr-border: #343536;--clr-text: #d7dadc;--clr-text-secondary: #818384;--clr-link: #4fbdff;--clr-header-bg: #1a1a1b}}*,*:before,*:after{box-sizing:border-box}*{margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--clr-bg);color:var(--clr-text);font-size:14px;line-height:1.5}button{font-family:inherit;font-size:inherit}ul,ol{list-style:none}img{display:block;max-width:100%}.app{display:flex;flex-direction:column;min-height:100vh}.header{position:fixed;top:0;left:0;right:0;height:var(--header-h);background:var(--clr-header-bg);border-bottom:1px solid #343536;z-index:100}.header-inner{max-width:1200px;margin:0 auto;height:100%;display:flex;align-items:center;gap:16px;padding:0 20px}.logo{display:flex;align-items:center;gap:8px;flex-shrink:0}.logo-icon{width:32px;height:32px;background:var(--clr-primary);border-radius:var(--radius-full);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-weight:900;line-height:1}.logo-text{color:var(--clr-header-text);font-size:18px;font-weight:700;letter-spacing:-.3px}.search-wrapper{flex:1;max-width:690px;display:flex;align-items:center;background:#272729;border:1px solid #3c3c3e;border-radius:var(--radius-full);padding:0 14px;height:36px;gap:8px;transition:background .15s,border-color .15s}.search-wrapper:focus-within{background:var(--clr-surface);border-color:var(--clr-link)}.search-wrapper input[type=search]{flex:1;border:none;background:transparent;color:var(--clr-header-text);font-size:14px;outline:none;min-width:0}.search-wrapper:focus-within input[type=search]{color:var(--clr-text)}.search-wrapper input[type=search]::placeholder{color:#818384}.search-wrapper button{background:none;border:none;cursor:pointer;color:#818384;font-size:12px;padding:2px 4px;border-radius:var(--radius-sm);transition:color .1s;flex-shrink:0}.search-wrapper button:hover{color:var(--clr-header-text)}.subreddit-bar{position:sticky;top:var(--header-h);z-index:90;background:var(--clr-surface);border-bottom:1px solid var(--clr-border)}.subreddit-bar-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:4px;padding:8px 20px;overflow-x:auto;scrollbar-width:none}.subreddit-bar-inner::-webkit-scrollbar{display:none}.filter-chip{flex-shrink:0;padding:5px 16px;border-radius:var(--radius-full);border:1px solid transparent;background:transparent;color:var(--clr-text-secondary);font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s,border-color .15s;line-height:1.4}.filter-chip:hover{background:var(--clr-surface-hover);color:var(--clr-text);border-color:var(--clr-border)}.filter-chip[aria-pressed=true]{background:var(--clr-chip-active);color:#fff;border-color:var(--clr-chip-active)}.main{margin-top:calc(var(--header-h) + var(--filter-h));flex:1;padding:20px}.feed{max-width:740px;margin:0 auto}.posts-list{display:flex;flex-direction:column;gap:10px}.post-card{display:flex;background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--radius-md);overflow:hidden;position:relative;transition:border-color .15s;animation:postFadeIn .25s ease both}.post-card:hover{border-color:#818384}.posts-list li:nth-child(1) .post-card{animation-delay:0ms}.posts-list li:nth-child(2) .post-card{animation-delay:35ms}.posts-list li:nth-child(3) .post-card{animation-delay:70ms}.posts-list li:nth-child(4) .post-card{animation-delay:105ms}.posts-list li:nth-child(5) .post-card{animation-delay:.14s}.posts-list li:nth-child(6) .post-card{animation-delay:175ms}.posts-list li:nth-child(7) .post-card{animation-delay:.21s}.posts-list li:nth-child(8) .post-card{animation-delay:245ms}.posts-list li:nth-child(9) .post-card{animation-delay:.28s}.posts-list li:nth-child(10) .post-card{animation-delay:315ms}@keyframes postFadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.post-vote{display:flex;flex-direction:column;align-items:center;padding:10px 4px;background:var(--clr-surface-hover);gap:2px;min-width:40px}.vote-btn{background:none;border:none;cursor:pointer;color:var(--clr-text-secondary);font-size:18px;padding:3px 6px;border-radius:var(--radius-sm);line-height:1;transition:color .1s,background .1s;display:flex;align-items:center}.vote-btn:hover:not(:disabled){background:var(--clr-border)}.vote-btn.vote-up:hover:not(:disabled){color:var(--clr-upvote)}.vote-btn.vote-down:hover:not(:disabled){color:var(--clr-downvote)}.vote-btn:disabled{cursor:default;opacity:.4}.vote-score{font-size:12px;font-weight:700;color:var(--clr-text);text-align:center;line-height:1}.post-body{flex:1;padding:10px 12px;min-width:0;display:flex;flex-direction:column;gap:6px}.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:12px;color:var(--clr-text-secondary)}.post-subreddit{font-weight:700;color:var(--clr-text)}.post-dot{color:var(--clr-text-secondary)}.post-title{font-size:18px;font-weight:500;line-height:1.3;color:var(--clr-text)}.post-title-btn{background:none;border:none;cursor:pointer;text-align:left;color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0;width:100%}.post-title-btn:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:0}.post-card:hover .post-title-btn{color:var(--clr-primary)}.post-actions{display:flex;align-items:center;gap:2px;font-size:12px;font-weight:700;color:var(--clr-text-secondary);position:relative;z-index:1}.post-action{display:flex;align-items:center;gap:4px;padding:4px 8px;border-radius:var(--radius-sm)}.post-thumbnail-wrap{flex-shrink:0;width:96px;display:flex;align-items:center;justify-content:center;padding:8px}.post-thumbnail{width:80px;height:60px;object-fit:cover;border-radius:var(--radius-md)}.post-skeleton{height:100px;background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--radius-md);overflow:hidden;position:relative}.post-skeleton:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,transparent 0%,rgba(150,150,150,.1) 50%,transparent 100%);background-size:200% 100%;animation:shimmer 1.5s infinite}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.error-state{display:flex;flex-direction:column;align-items:center;gap:12px;padding:48px 20px;text-align:center;color:var(--clr-text-secondary);background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--radius-md)}.error-state p{font-size:15px}.retry-btn{padding:8px 20px;background:var(--clr-primary);color:#fff;border:none;border-radius:var(--radius-full);font-weight:700;cursor:pointer;transition:background .15s}.retry-btn:hover{background:var(--clr-primary-dark)}.empty-state{padding:48px 20px;text-align:center;color:var(--clr-text-secondary);background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--radius-md)}dialog{background:var(--clr-surface);border:none;border-radius:var(--radius-lg);padding:0;max-width:740px;width:90vw;max-height:85vh;overflow-y:auto;box-shadow:0 8px 32px #00000059;animation:dialogIn .2s ease}@keyframes dialogIn{0%{opacity:0;transform:scale(.97) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}dialog::backdrop{background:#0009;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-header{position:sticky;top:0;z-index:1;display:flex;justify-content:flex-end;padding:12px 16px 8px;background:var(--clr-surface);border-bottom:1px solid var(--clr-border)}button[data-testid=modal-close]{background:none;border:1px solid var(--clr-border);border-radius:var(--radius-full);cursor:pointer;color:var(--clr-text-secondary);font-size:12px;font-weight:700;padding:4px 14px;transition:background .15s,color .15s}button[data-testid=modal-close]:hover{background:var(--clr-surface-hover);color:var(--clr-text)}.post-detail{padding:0 20px 28px}.post-detail-header{padding:16px 0 12px;margin-bottom:12px;border-bottom:1px solid var(--clr-border)}.post-detail-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:12px;color:var(--clr-text-secondary);margin-bottom:8px}.post-detail-subreddit{font-weight:700;color:var(--clr-text)}.post-detail-title{font-size:20px;font-weight:600;line-height:1.3;color:var(--clr-text)}.post-selftext{font-size:14px;line-height:1.7;color:var(--clr-text);margin-bottom:16px;padding:14px;background:var(--clr-surface-hover);border-radius:var(--radius-md);border-left:3px solid var(--clr-border);white-space:pre-wrap}.comments-section{margin-top:4px}.comments-heading{font-size:14px;font-weight:700;color:var(--clr-text);padding-bottom:10px;border-bottom:1px solid var(--clr-border);margin-bottom:4px}.comment{padding:12px 0;border-bottom:1px solid var(--clr-border);animation:postFadeIn .2s ease both}.comment:last-child{border-bottom:none}.comment-header{display:flex;align-items:center;gap:8px;margin-bottom:6px}.comment-author{font-size:12px;font-weight:700;color:var(--clr-link)}.comment-score{font-size:12px;color:var(--clr-text-secondary)}.comment-body{font-size:14px;color:var(--clr-text);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}.comments-status{padding:20px 0;text-align:center;color:var(--clr-text-secondary);font-size:14px}@media(max-width:640px){.header-inner{padding:0 12px;gap:8px}.logo-text{display:none}.main{padding:12px 8px}.post-title{font-size:15px}.post-thumbnail-wrap{width:72px}.post-thumbnail{width:56px;height:56px}dialog{width:100vw;max-height:92vh;border-radius:var(--radius-lg) var(--radius-lg) 0 0;margin:auto auto 0}}
