* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
            background: #f5f5f5;
            color: #333;
            line-height: 1.5;
            padding-bottom: 70px; /* ÇÏ´Ü ³»ºñ°ÔÀÌ¼ÇÀÇ °ø°£ */
        }

        /* Çì´õ */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            padding: 12px 16px;
            z-index: 1000;
            box-shadow: 0 2px 12px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            gap: 12px;
            height: 60px;
        }

        .header-content {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo {
            font-size: 20px;
            font-weight: bold;
            color: white;
            text-decoration: none;
            flex-shrink: 0;
        }

        .search-container {
            flex: 1;
            max-width: 400px;
        }

        .search-input {
            width: 100%;
            padding: 8px 12px;
            border: none;
            border-radius: 20px;
            font-size: 14px;
            background: rgba(255,255,255,0.9);
            outline: none;
        }

        .user-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .header-btn {
            background: rgba(255,255,255,0.2);
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .header-btn:hover, .header-btn:active {
            background: rgba(255,255,255,0.3);
            transform: scale(0.95);
        }

        .connection-status {
            font-size: 10px;
            padding: 4px 8px;
            border-radius: 10px;
            margin-right: 4px;
        }

        .connection-status.online {
            background: #28a745;
            color: white;
        }

        .connection-status.offline {
            background: #dc3545;
            color: white;
        }

        /* ¸ÞÀÎ ÄÁÅÙÃ÷ */
        .main-content {
            padding-top: 70px;
            padding-bottom: 10px;
            min-height: 100vh;
        }

        .content-area {
            max-width: 1200px;
            margin: 0 auto;
            padding: 16px;
        }

        /* TOP ¼½¼Ç */
        .top-section {
            background: white;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .top-section h2 {
            color: #2a5298;
            font-size: 18px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .top-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .top-item {
            background: #f8f9fa;
            padding: 12px;
            border-radius: 8px;
            border-left: 4px solid #2a5298;
            position: relative;
            cursor: pointer;
            transition: all 0.3s;
        }

        .top-item:active {
            transform: scale(0.98);
            background: #e9ecef;
        }

        .top-rank {
            position: absolute;
            top: 8px;
            right: 8px;
            background: #2a5298;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
        }

        .top-rank.gold { background: #ffd700; color: #333; }
        .top-rank.silver { background: #c0c0c0; color: #333; }
        .top-rank.bronze { background: #cd7f32; color: white; }

        .top-title {
            font-weight: bold;
            color: #333;
            margin-bottom: 6px;
            line-height: 1.4;
            font-size: 14px;
            padding-right: 32px;
        }

        .top-meta {
            font-size: 12px;
            color: #666;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .top-category {
            background: #6c757d;
            color: white;
            padding: 2px 6px;
            border-radius: 8px;
            font-size: 10px;
        }

        .top-views {
            font-weight: bold;
            color: #e74c3c;
            font-size: 12px;
        }

        /* ´º½º ÇÇµå */
        .news-feed {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .news-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: all 0.3s;
            cursor: pointer;
        }

        .news-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            transform: translateY(-2px);
        }

        .news-card:active {
            transform: scale(0.98);
        }

        .news-header {
            padding: 12px 16px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-bottom: 1px solid #e9ecef;
        }

        .news-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: #666;
            flex-wrap: wrap;
            gap: 8px;
        }

        .news-category {
            background: #2a5298;
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 11px;
            white-space: nowrap;
        }

        .news-views {
            font-size: 11px;
            color: #e74c3c;
            font-weight: bold;
        }

        .news-content {
            padding: 16px;
        }

        .news-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 8px;
            color: #333; /* ¸ð¹ÙÀÏ¿¡¼­ ±âº» ¾îµÎ¿î »ö»ó */
            line-height: 1.4;
        }

        .news-summary {
            color: #555; /* ¸ð¹ÙÀÏ¿¡¼­ ±âº» ¾îµÎ¿î »ö»ó */
            line-height: 1.5;
            margin-bottom: 12px;
            font-size: 14px;
        }

        .youtube-embed {
            width: 100%;
            height: 200px;
            border-radius: 8px;
            margin: 12px 0;
        }

        .news-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background: #f8f9fa;
            border-top: 1px solid #e9ecef;
            flex-wrap: wrap;
            gap: 8px;
        }

        .action-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .action-btn {
            background: none;
            border: none;
            color: #666;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 8px 12px;
            border-radius: 16px;
            transition: all 0.3s;
            font-size: 12px;
            white-space: nowrap;
        }

        .action-btn:hover, .action-btn:active {
            background: #e9ecef;
            color: #2a5298;
            transform: scale(0.95);
        }

        .action-btn.liked {
            color: #e74c3c;
        }

        .action-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .author-info {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            color: #999;
            flex-wrap: wrap;
        }

        /* ´ñ±Û ¼½¼Ç */
        .comments-section {
            padding: 16px;
            background: #f8f9fa;
            display: none;
        }

        .comments-section.show {
            display: block;
        }

        .comment-form {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }

        .comment-input {
            flex: 1;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 20px;
            outline: none;
            font-size: 14px;
        }

        .comment-submit {
            background: #2a5298;
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            white-space: nowrap;
        }

        .comment-submit:active {
            transform: scale(0.95);
        }

        .comment {
            background: white;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 8px;
        }

        .comment-author {
            font-weight: bold;
            color: #2a5298;
            font-size: 13px;
        }

        .comment-time {
            color: #999;
            font-size: 11px;
            margin-left: 8px;
        }

        .comment-text {
            margin-top: 4px;
            line-height: 1.4;
            font-size: 13px;
        }

        /* ÇÏ´Ü ³»ºñ°ÔÀÌ¼Ç */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid #e9ecef;
            display: flex;
            justify-content: space-around;
            padding: 8px 0;
            z-index: 1000;
            box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            text-decoration: none;
            color: #666;
            font-size: 10px;
            cursor: pointer;
            transition: all 0.3s;
            border-radius: 8px;
            min-width: 50px;
        }

        .nav-item:active {
            transform: scale(0.95);
        }

        .nav-item.active {
            color: #2a5298;
            background: rgba(42, 82, 152, 0.1);
        }

        .nav-icon {
            font-size: 20px;
        }

        /* ÇÃ·ÎÆÃ ÀÛ¼º ¹öÆ° */
        .floating-write-btn {
            position: fixed;
            bottom: 80px;
            right: 16px;
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            transition: all 0.3s;
            z-index: 999;
            display: none;
        }

        .floating-write-btn.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .floating-write-btn:hover {
            transform: scale(1.05);
        }

        .floating-write-btn:active {
            transform: scale(0.9);
        }

        /* ¸ð´Þ */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            backdrop-filter: blur(4px);
            padding: 20px;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            background: white;
            width: 100%;
            max-width: 600px;
            max-height: 90vh;
            border-radius: 16px;
            overflow: hidden;
            transform: scale(0.9);
            transition: transform 0.3s ease-out;
        }

        .modal.show .modal-content {
            transform: scale(1);
        }

        .modal-header {
            background: linear-gradient(135deg, #2a5298, #1e3c72);
            color: white;
            padding: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 18px;
            font-weight: bold;
        }

        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 4px;
            line-height: 1;
        }

        .modal-body {
            padding: 20px;
            max-height: calc(90vh - 140px);
            overflow-y: auto;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: bold;
            color: #555;
            font-size: 14px;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s;
            background: white;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: #2a5298;
        }

        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }

        .form-buttons {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }

        .btn {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn:hover {
            transform: translateY(-1px);
        }

        .btn:active {
            transform: scale(0.98);
        }

        .btn.primary {
            background: #2a5298;
            color: white;
        }

        .btn.secondary {
            background: #6c757d;
            color: white;
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* ÀÎÁõ ¸ð´Þ */
        .auth-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 3000;
            padding: 20px;
        }

        .auth-modal.show {
            display: flex;
        }

        .auth-form {
            background: white;
            padding: 24px;
            border-radius: 12px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        .auth-form h2 {
            text-align: center;
            margin-bottom: 24px;
            color: #2a5298;
            font-size: 20px;
        }

        .auth-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .google-btn {
            background: #db4437;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: background 0.3s;
        }

        .google-btn:hover, .google-btn:active {
            background: #c23321;
            transform: scale(0.98);
        }

        .google-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        .auth-switch {
            text-align: center;
            margin-top: 16px;
            color: #666;
            font-size: 14px;
        }

        .auth-switch a {
            color: #2a5298;
            text-decoration: none;
        }

        .error-message {
            color: #dc3545;
            font-size: 14px;
            margin-top: 8px;
            padding: 8px;
            background: #f8d7da;
            border-radius: 4px;
        }

        .success-message {
            color: #155724;
            font-size: 14px;
            margin-top: 8px;
            padding: 8px;
            background: #d4edda;
            border-radius: 4px;
        }

        /* ·Îµù */
        .loading {
            text-align: center;
            padding: 40px 20px;
            color: #666;
        }

        .loading-spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #2a5298;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* À¯Æ¿¸®Æ¼ Å¬·¡½º */
        .hidden {
            display: none !important;
        }

        .text-center {
            text-align: center;
        }

        /* Ä«Å×°í¸® ¸ð´Þ */
        .category-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            padding: 20px;
        }

        .category-modal.show {
            display: flex;
        }

        .category-content {
            background: white;
            width: 100%;
            max-width: 600px;
            max-height: 80vh;
            border-radius: 16px;
            overflow: hidden;
            transform: scale(0.9);
            transition: transform 0.3s ease-out;
        }

        .category-modal.show .category-content {
            transform: scale(1);
        }

        .category-list {
            max-height: calc(80vh - 60px);
            overflow-y: auto;
            padding: 20px;
        }

        .category-section {
            margin-bottom: 24px;
        }

        .category-section-title {
            font-size: 16px;
            font-weight: bold;
            color: #2a5298;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 2px solid #e9ecef;
        }

        .category-item {
            display: block;
            padding: 12px 16px;
            color: #666;
            text-decoration: none;
            border-radius: 8px;
            margin-bottom: 4px;
            transition: all 0.3s;
            font-size: 14px;
            border: 1px solid transparent;
        }

        .category-item:hover {
            background: #f8f9fa;
        }

        .category-item:active {
            background: #e9ecef;
            color: #2a5298;
            transform: scale(0.98);
        }

        .category-item.active {
            background: #2a5298;
            color: white;
        }

        .category-badge {
            background: #e74c3c;
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: bold;
            margin-left: 8px;
            min-width: 16px;
            text-align: center;
            display: inline-block;
        }

        /* ³» ±Û Åë°è */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }

        .stats-item {
            background: white;
            padding: 16px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .stats-title {
            font-size: 12px;
            color: #666;
            margin-bottom: 8px;
        }

        .stats-value {
            font-size: 20px;
            font-weight: bold;
            color: #2a5298;
        }

        /* ¸ð¹ÙÀÏ ÃÖ¿ì¼± - ±ÛÀÚ »ö»ó ¼öÁ¤ */
        @media (max-width: 767px) {
            .news-title {
                color: #333 !important; /* ¸ð¹ÙÀÏ¿¡¼­ ¾îµÎ¿î »ö»ó °­Á¦ Àû¿ë */
            }

            .news-summary {
                color: #555 !important; /* ¸ð¹ÙÀÏ¿¡¼­ ¾îµÎ¿î »ö»ó °­Á¦ Àû¿ë */
            }
        }

        /* ÅÂºí¸´ ´ëÀÀ (768px ÀÌ»ó) */
        @media (min-width: 768px) {
            body {
                padding-bottom: 20px;
            }

            .header {
                padding: 16px 24px;
                height: 70px;
            }

            .main-content {
                padding-top: 80px;
            }

            .content-area {
                padding: 24px;
            }

            .top-grid {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            }

            .news-feed {
                grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            }

            .youtube-embed {
                height: 220px;
            }

            .bottom-nav {
                display: none;
            }

            .floating-write-btn {
                bottom: 30px;
                right: 30px;
                width: 64px;
                height: 64px;
                font-size: 28px;
            }

            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            }

            /* ¸ð´ÞÀÌ È­¸é¿¡¼­ ¿Ã¹Ù¸£°Ô Áß¾Ó¿¡ Ç¥½Ã */
            .modal {
                align-items: center;
            }

            .category-modal {
                align-items: center;
            }
        }

        /* µ¥½ºÅ©Åé ´ëÀÀ (1024px ÀÌ»ó) */
        @media (min-width: 1024px) {
            .header {
                padding: 20px 32px;
                height: 80px;
            }

            .main-content {
                padding-top: 90px;
            }

            .content-area {
                padding: 32px;
            }

            .logo {
                font-size: 24px;
            }

            .search-container {
                max-width: 500px;
            }

            .top-grid {
                grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            }

            .news-feed {
                grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
                gap: 24px;
            }

            .news-title {
                font-size: 18px;
                color: #333; /* µ¥½ºÅ©Åé¿¡¼­µµ ¾îµÎ¿î »ö»ó */
            }

            .news-summary {
                color: #555; /* µ¥½ºÅ©Åé¿¡¼­µµ ¾îµÎ¿î »ö»ó */
            }

            .youtube-embed {
                height: 250px;
            }

            .floating-write-btn {
                bottom: 40px;
                right: 40px;
                width: 72px;
                height: 72px;
                font-size: 32px;
            }

            .floating-write-btn:hover {
                box-shadow: 0 6px 20px rgba(0,0,0,0.4);
            }

            .stats-grid {
                grid-template-columns: repeat(4, 1fr);
            }

            /* PC¿¡¼­´Â hover È¿°ú Ãß°¡ */
            .action-btn:hover {
                background: #e9ecef;
                color: #2a5298;
            }

            .category-item:hover {
                background: #f8f9fa;
                color: #2a5298;
            }

            .header-btn:hover {
                background: rgba(255,255,255,0.3);
                transform: none;
            }

            .btn:hover {
                box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            }
        }

        /* ´ëÇü µ¥½ºÅ©Åé (1440px ÀÌ»ó) */
        @media (min-width: 1440px) {
            .content-area {
                max-width: 1400px;
            }

            .news-feed {
                grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
                gap: 32px;
            }

            .top-grid {
                grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
            }
        }

        /* ¸ð¹ÙÀÏ ÃÖÀûÈ­ (ÀÛÀº È­¸é) */
        @media (max-width: 360px) {
            .header {
                padding: 10px 12px;
                height: 56px;
            }

            .header-content {
                gap: 8px;
            }

            .main-content {
                padding-top: 66px;
            }

            .content-area {
                padding: 12px;
            }

            .floating-write-btn {
                bottom: 76px;
                right: 12px;
                width: 48px;
                height: 48px;
                font-size: 20px;
            }

            .news-card {
                margin-bottom: 12px;
            }

            .youtube-embed {
                height: 180px;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            /* ÀÛÀº ¸ð¹ÙÀÏ¿¡¼­µµ ±ÛÀÚ »ö»ó °­Á¦ Àû¿ë */
            .news-title {
                color: #333 !important;
            }

            .news-summary {
                color: #555 !important;
            }
        }

        /* ´ÙÅ©¸ðµå ´ëÀÀ (½Ã½ºÅÛ ¼³Á¤ ±â¹Ý) */
        @media (prefers-color-scheme: dark) {
            body {
                background: #1a1a1a;
                color: #e0e0e0;
            }

            .news-card, .top-section, .comment, .stats-item {
                background: #2d2d2d;
                color: #ffffff;
            }

            .news-title {
                color: #ffffff !important; /* ´ÙÅ©¸ðµå¿¡¼­´Â ¹àÀº »ö»ó */
            }

            .news-summary {
                color: #e0e0e0 !important; /* ´ÙÅ©¸ðµå¿¡¼­´Â ¹àÀº »ö»ó */
            }

            .news-header {
                background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
            }

            .news-actions, .comments-section {
                background: #3a3a3a;
            }

            .bottom-nav {
                background: #2d2d2d;
                border-top-color: #4a4a4a;
            }

            .modal-content, .auth-form, .category-content {
                background: #2d2d2d;
                color: #e0e0e0;
            }

            .form-group input,
            .form-group textarea,
            .form-group select {
                background: #3a3a3a;
                color: #e0e0e0;
                border-color: #4a4a4a;
            }
        }

        /* ÇÁ¸°Æ® ÃÖÀûÈ­ */
        @media print {
            .header, .bottom-nav, .floating-write-btn {
                display: none !important;
            }

            .main-content {
                padding-top: 0;
            }

            .news-card {
                break-inside: avoid;
                box-shadow: none;
                border: 1px solid #ddd;
            }

            .news-title {
                color: #000 !important; /* ÇÁ¸°Æ®¿¡¼­´Â °ËÀº»ö */
            }

            .news-summary {
                color: #333 !important; /* ÇÁ¸°Æ®¿¡¼­´Â ¾îµÎ¿î È¸»ö */
            }
        }